<center>
<?
//   
if($speak=='alter' AND $id=='alter_sell' AND !$buy_items){
$db->openDB();
$sell_all_items=mysql_query("SET NAMES cp1251");
$sell_all_items=mysql_query("SELECT * FROM inv WHERE ID_USERS=\"$_SESSION[s]\" AND IL_ALL_CLASS=\"weapon\"");
echo"<a href=\"game.php\"> </a><br/><center><div><b>  :</b></div></center><br/>";
$sell_all_items_count=mysql_num_rows($sell_all_items);
if($sell_all_items_count==0){echo"<font color=\"red\"><center>     !</center></font>";}
while($sell_all_items2=mysql_fetch_assoc($sell_all_items)){

$cost=round($sell_all_items2[IL_COST]/5);
                  
echo "<font color=\"red\">$sell_all_items2[IL_NAME] <br/><img src=\"$sell_all_items2[IL_IMAGE]\"> </font><br/><b>  $cost</b>";
echo"<form action=\"game.php\" method=\"GET\">
<input name=\"speak\" value=\"alter\" type=\"hidden\">
<input name=\"id\" value=\"alter_sell\" type=\"hidden\">
<input name=\"count\" value=\"1\" type=\"hidden\">
<input name=\"itemsMenu\" value=\"sell\" type=\"hidden\">
<input name=\"idT\" value=\"$sell_all_items2[ID_IL]\" type=\"hidden\">
<input type=\"submit\" value=\"\" class=\"button\"><br/><br/>
</form>";
}
?>
</div></div>
<div class="line"></div>
<div class='main_foot'><div class=center><div class=grey><div class=small><div class=foot><a href=pvp.php?r=381966></a> | <a href=forum.php></a> | <a href=lib.php?cat=rules></a> | <a href=lib.php></a> | <a href=support.php></a></div></div><div class='foot_margin'></div><div class=smallest><?echo date("H:i");?> <br/><div class='min_margin'></div>&copy; 2013 <u> </u></div></div></div></div></div>

<?
die;
}
?>
</center>