<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>