
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">

<head><meta http-equiv='content-type' content='application/xhtml+xml; charset=windows-1251'/>
<link rel="shortcut icon" href="ico.ico" type="image/x-icon" />


<link rel="stylesheet" href="styleN.css" type="text/css" />
</head>
<body>
<div class='main' style='word-wrap:break-word;'>
<div class="line"></div>
<div class="center"><div class='top'>

<b>Арант</b>
</div></div>
<div class="line"></div>
<div class="menu" style="padding:5px">
<?
//вступительное окно у торговца
if($speak=='arant' AND $id=='arant_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_CLASS=\"bow\"");
echo"<a href=\"game.php?NICK=$NICK&pass=$pass\">в игру</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 "<center><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=\"arant\" type=\"hidden\">
<input name=\"id\" value=\"arant_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\">
</form></b></center>";
}
?>
</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;
}
?>