Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Galera Boa Noite,

 

Estou com o seguinte problema, no meu site quando clico em selecionar uma terminada classe para ver suas mágias, o site está puxando todas ou seja, clico para selecionar somente magias de sorcerer porem aparece magias de kina, pala, sorcerer e druida.

 

Alguem sabe como solucionar esse problema? 

 

Grato!!

Link para o post
Compartilhar em outros sites

Cara, abra seu spells.php e substitua por isto:

 

<?PHP
if ($action == ""){
$main_content .='Here you can see the list of all available spells in Tibia. Click on any spell name to get detailed information. Please adjust the search criteria below if you want to see just certain spells. Also, you can sort the spell list by any column of your choice. For general information about spells and magic in Tibia please see the manual.<br /><br /><br />
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD WIDTH=45% CLASS=white><B>Name</B></TD>
<TD CLASS=white><B>Exp Lvl</B></TD>
<TD CLASS=white><B>Mana</B></TD>
<TD>&nbsp;</TD>
</TR>';
$xml = simplexml_load_file($config['site']['server_path'].'/data/spells/spells.xml');
foreach($xml->instant as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="site.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />

<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<input class="ButtonText" name="View" alt="View" src="'.$layout_name.'/images/buttons/_sbutton_view.gif" type="image">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</form></td>
</TR>';
}
foreach($xml->conjure as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="site.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
foreach($xml->conjure as $instant)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$instant['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="site.php?subtopic=spells&action=view&name='.$instant['name'].'">
<b>'.$instant['name'].'</b><br />('.$instant['words'].')</TD>
<TD align="center">'.$instant['lvl'].'</TD>
<TD align="center">'.$instant['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$instant['name'].'" name="name" />
<input type="hidden" value="'.$instant['words'].'" name="words" />
<input type="hidden" value="'.$instant['lvl'].'" name="lvl" />
<input type="hidden" value="'.$instant['mana'].'" name="mana" />
<input type="hidden" value="'.$instant['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$instant['groups'].'" name="groups" />
<input type="hidden" value="'.$instant['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
$main_content .='
</TABLE>
<br /><br />
';}
if ($action == "view"){
$main_content .='
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
<TD WIDTH=90%><CENTER><H2>'.$_POST['name'].'</H2></CENTER></TD>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
</TR>
</TABLE>
<BR>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD COLSPAN=2 CLASS=white><B>Spell Information</B></TD>
</TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Name:</TD><TD>'.$_POST['name'].'</TD></TR>
<TR BGCOLOR=#D4C0A1><TD WIDTH=15%>Formula:</TD><TD>'.$_POST['words'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Cooldown:</TD><TD>'.number_format($_POST['exhaustion']).'s (Group: '.number_format($_POST['groups'],0).'s)</TD></TR>
<TR BGCOLOR=#D4C0A1><TD>Exp Lvl:</TD><TD>'.$_POST['lvl'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD>Mana:</TD><TD>'.$_POST['mana'].'</TD></TR>
</TABLE>
<BR><CENTER>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<FORM ACTION="site.php?subtopic=spells" METHOD=post><TR><TD>
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$layout_name.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18>
</TD></TR>
</FORM></TABLE>
</CENTER> 
';
}
?> 

 

 

DeadPoolHost - Confira!

 

 

 

 

Fui útil? Realmente útil? Obrigado!

Não sabe como compensar?

Doe quanto puder... Seu ato é o que vale!

 

Link para o post
Compartilhar em outros sites

Cara, abra seu spells.php e substitua por isto:

 

<?PHP
if ($action == ""){
$main_content .='Here you can see the list of all available spells in Tibia. Click on any spell name to get detailed information. Please adjust the search criteria below if you want to see just certain spells. Also, you can sort the spell list by any column of your choice. For general information about spells and magic in Tibia please see the manual.<br /><br /><br />
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD WIDTH=45% CLASS=white><B>Name</B></TD>
<TD CLASS=white><B>Exp Lvl</B></TD>
<TD CLASS=white><B>Mana</B></TD>
<TD>&nbsp;</TD>
</TR>';
$xml = simplexml_load_file($config['site']['server_path'].'/data/spells/spells.xml');
foreach($xml->instant as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="site.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />

<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<input class="ButtonText" name="View" alt="View" src="'.$layout_name.'/images/buttons/_sbutton_view.gif" type="image">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</form></td>
</TR>';
}
foreach($xml->conjure as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="site.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
foreach($xml->conjure as $instant)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$instant['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="site.php?subtopic=spells&action=view&name='.$instant['name'].'">
<b>'.$instant['name'].'</b><br />('.$instant['words'].')</TD>
<TD align="center">'.$instant['lvl'].'</TD>
<TD align="center">'.$instant['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$instant['name'].'" name="name" />
<input type="hidden" value="'.$instant['words'].'" name="words" />
<input type="hidden" value="'.$instant['lvl'].'" name="lvl" />
<input type="hidden" value="'.$instant['mana'].'" name="mana" />
<input type="hidden" value="'.$instant['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$instant['groups'].'" name="groups" />
<input type="hidden" value="'.$instant['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
$main_content .='
</TABLE>
<br /><br />
';}
if ($action == "view"){
$main_content .='
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
<TD WIDTH=90%><CENTER><H2>'.$_POST['name'].'</H2></CENTER></TD>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
</TR>
</TABLE>
<BR>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD COLSPAN=2 CLASS=white><B>Spell Information</B></TD>
</TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Name:</TD><TD>'.$_POST['name'].'</TD></TR>
<TR BGCOLOR=#D4C0A1><TD WIDTH=15%>Formula:</TD><TD>'.$_POST['words'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Cooldown:</TD><TD>'.number_format($_POST['exhaustion']).'s (Group: '.number_format($_POST['groups'],0).'s)</TD></TR>
<TR BGCOLOR=#D4C0A1><TD>Exp Lvl:</TD><TD>'.$_POST['lvl'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD>Mana:</TD><TD>'.$_POST['mana'].'</TD></TR>
</TABLE>
<BR><CENTER>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<FORM ACTION="site.php?subtopic=spells" METHOD=post><TR><TD>
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$layout_name.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18>
</TD></TR>
</FORM></TABLE>
</CENTER> 
';
}
?> 

 

Fala ae amigo tudo bom? Não deu certo entra lá no site e veja como ficou:

 

tibialord.no-ip.info

Link para o post
Compartilhar em outros sites

Certo, tente este...

Segue em anexo as imagens a serem extraidas dentro da pasta images

<?PHP
if ($action == ""){
$main_content .='Here you can see the list of all available spells in Tibia. Click on any spell name to get detailed information. Please adjust the search criteria below if you want to see just certain spells. Also, you can sort the spell list by any column of your choice. For general information about spells and magic in Tibia please see the manual.<br /><br /><br />
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD WIDTH=45% CLASS=white><B>Name</B></TD>
<TD CLASS=white><B>Exp Lvl</B></TD>
<TD CLASS=white><B>Mana</B></TD>
<TD>&nbsp;</TD>
</TR>';
$xml = simplexml_load_file($config['site']['server_path'].'/data/spells/spells.xml');
foreach($xml->instant as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="index.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />

<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<input class="ButtonText" name="View" alt="View" src="'.$layout_name.'/images/buttons/_sbutton_view.gif" type="image">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</form></td>
</TR>';
}
foreach($xml->conjure as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="index.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
foreach($xml->conjure as $instant)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$instant['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="index.php?subtopic=spells&action=view&name='.$instant['name'].'">
<b>'.$instant['name'].'</b><br />('.$instant['words'].')</TD>
<TD align="center">'.$instant['lvl'].'</TD>
<TD align="center">'.$instant['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$instant['name'].'" name="name" />
<input type="hidden" value="'.$instant['words'].'" name="words" />
<input type="hidden" value="'.$instant['lvl'].'" name="lvl" />
<input type="hidden" value="'.$instant['mana'].'" name="mana" />
<input type="hidden" value="'.$instant['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$instant['groups'].'" name="groups" />
<input type="hidden" value="'.$instant['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
$main_content .='
</TABLE>
<br /><br />
';}
if ($action == "view"){
$main_content .='
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
<TD WIDTH=90%><CENTER><H2>'.$_POST['name'].'</H2></CENTER></TD>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
</TR>
</TABLE>
<BR>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD COLSPAN=2 CLASS=white><B>Spell Information</B></TD>
</TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Name:</TD><TD>'.$_POST['name'].'</TD></TR>
<TR BGCOLOR=#D4C0A1><TD WIDTH=15%>Formula:</TD><TD>'.$_POST['words'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Cooldown:</TD><TD>'.number_format($_POST['exhaustion']).'s (Group: '.number_format($_POST['groups'],0).'s)</TD></TR>
<TR BGCOLOR=#D4C0A1><TD>Exp Lvl:</TD><TD>'.$_POST['lvl'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD>Mana:</TD><TD>'.$_POST['mana'].'</TD></TR>
</TABLE>
<BR><CENTER>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<FORM ACTION="index.php?subtopic=spells" METHOD=post><TR><TD>
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$layout_name.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18>
</TD></TR>
</FORM></TABLE>
</CENTER> 
';
}
?> 

icon.rar

 

 

DeadPoolHost - Confira!

 

 

 

 

Fui útil? Realmente útil? Obrigado!

Não sabe como compensar?

Doe quanto puder... Seu ato é o que vale!

 

Link para o post
Compartilhar em outros sites

Certo, tente este...

Segue em anexo as imagens a serem extraidas dentro da pasta images

<?PHP
if ($action == ""){
$main_content .='Here you can see the list of all available spells in Tibia. Click on any spell name to get detailed information. Please adjust the search criteria below if you want to see just certain spells. Also, you can sort the spell list by any column of your choice. For general information about spells and magic in Tibia please see the manual.<br /><br /><br />
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD WIDTH=45% CLASS=white><B>Name</B></TD>
<TD CLASS=white><B>Exp Lvl</B></TD>
<TD CLASS=white><B>Mana</B></TD>
<TD>&nbsp;</TD>
</TR>';
$xml = simplexml_load_file($config['site']['server_path'].'/data/spells/spells.xml');
foreach($xml->instant as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="index.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />

<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<input class="ButtonText" name="View" alt="View" src="'.$layout_name.'/images/buttons/_sbutton_view.gif" type="image">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</form></td>
</TR>';
}
foreach($xml->conjure as $conjure)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$conjure['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="index.php?subtopic=spells&action=view&name='.$conjure['name'].'"><b>'.$conjure['name'].'</b><br />('.$conjure['words'].')</TD>
<TD align="center">'.$conjure['lvl'].'</TD>
<TD align="center">'.$conjure['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$conjure['name'].'" name="name" />
<input type="hidden" value="'.$conjure['words'].'" name="words" />
<input type="hidden" value="'.$conjure['lvl'].'" name="lvl" />
<input type="hidden" value="'.$conjure['mana'].'" name="mana" />
<input type="hidden" value="'.$conjure['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$conjure['groups'].'" name="groups" />
<input type="hidden" value="'.$conjure['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
foreach($xml->conjure as $instant)
{
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .='
<TR BGCOLOR=' . $bgcolor . '>
<TD align="center"><div align="center"><IMG SRC="images/icon/'.$instant['name'].'.gif" WIDTH=32 HEIGHT=32></div>
<br />
<form method="post" action="index.php?subtopic=spells&action=view&name='.$instant['name'].'">
<b>'.$instant['name'].'</b><br />('.$instant['words'].')</TD>
<TD align="center">'.$instant['lvl'].'</TD>
<TD align="center">'.$instant['mana'].'</TD>
<td align="center">
<input type="hidden" value="'.$instant['name'].'" name="name" />
<input type="hidden" value="'.$instant['words'].'" name="words" />
<input type="hidden" value="'.$instant['lvl'].'" name="lvl" />
<input type="hidden" value="'.$instant['mana'].'" name="mana" />
<input type="hidden" value="'.$instant['exhaustion'].'" name="exhaustion" />
<input type="hidden" value="'.$instant['groups'].'" name="groups" />
<input type="hidden" value="'.$instant['icon'].'" name="icon" />
<input type="submit" value="View" class="btn btn-primary" /></form></td>
</TR>';
}
$main_content .='
</TABLE>
<br /><br />
';}
if ($action == "view"){
$main_content .='
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
<TD WIDTH=90%><CENTER><H2>'.$_POST['name'].'</H2></CENTER></TD>
<TD><IMG SRC="images/icon/'.$_GET['name'].'.gif" WIDTH=32 HEIGHT=32></TD>
</TR>
</TABLE>
<BR>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR=#505050>
<TD COLSPAN=2 CLASS=white><B>Spell Information</B></TD>
</TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Name:</TD><TD>'.$_POST['name'].'</TD></TR>
<TR BGCOLOR=#D4C0A1><TD WIDTH=15%>Formula:</TD><TD>'.$_POST['words'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD WIDTH=15%>Cooldown:</TD><TD>'.number_format($_POST['exhaustion']).'s (Group: '.number_format($_POST['groups'],0).'s)</TD></TR>
<TR BGCOLOR=#D4C0A1><TD>Exp Lvl:</TD><TD>'.$_POST['lvl'].'</TD></TR>
<TR BGCOLOR=#F1E0C6><TD>Mana:</TD><TD>'.$_POST['mana'].'</TD></TR>
</TABLE>
<BR><CENTER>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<FORM ACTION="index.php?subtopic=spells" METHOD=post><TR><TD>
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$layout_name.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18>
</TD></TR>
</FORM></TABLE>
</CENTER> 
';
}
?> 

attachicon.gificon.rar

 

Amigo obrigado deu certinho, só que ainda não é o que queria, queria deixar categorizado sabe? mágias só de kina, mágias só de druid. Mas muito obrigado pela ajuda!!!

 

Abraços!!!

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo