Файл: gamele.ru/inc/inv.php
Строк: 593
<?php
if($msg){
echo '<LINK href="/css/stl.css" rel="STYLESHEET" type="text/css">';
echo "<SCRIPT>MessBoxDiv('".$msg."',0,0,0,0);</SCRIPT>";
}
$GetOS = new Browser();
/* Functions */
function blocks($bl){
if(!empty($bl)) {
switch($bl){
case 40: echo "<font class=weaponch><b><font color=#cc0000>Блокировка 1-ой точки</font></b><br>"; break;
case 70: echo "<font class=weaponch><b><font color=#cc0000>Блокировка 2-х точек</font></b><br>"; break;
case 90: echo "<font class=weaponch><b><font color=#cc0000>Блокировка 3-х точек</font></b><br>"; break;
}
}
}
/* End */
mysql_query("DELETE FROM `invent` WHERE `death`<'".time()."' `pl_id`='".$player['id']."';");
$opt=explode("|",$player['options']);
if(isset($soc)){
$opt[0]=$soc;
$save=1;
}
if(isset($sort)){
$opt[1]=$sort;
$save=1;
}
if($save==1){
$player['options']=implode("|",$opt);
mysql_query("UPDATE `user` SET `options`='".$player['options']."' WHERE `id`='".$player['id']."' LIMIT 1;");
}
if(isset($_GET['invf'])){
$_SESSION['user']['inv']=$_GET['invf'];
}
if($all==1){
$_SESSION['user']['inv']='';
}
echo'<td align="center"><a href="#"><img src=http://image.gamele.ru/gameplay/invent/0.gif width=44 height=53 onmouseover="tooltip(this,'<b>Вещи</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=1"><img src=http://image.gamele.ru/gameplay/invent/6.gif width=41 height=53 onmouseover="tooltip(this,'<b>Эликсиры</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=2"><img src=http://image.gamele.ru/gameplay/invent/1.gif width=41 height=53 onmouseover="tooltip(this,'<b>Алхимия</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=3"><img src=http://image.gamele.ru/gameplay/invent/2.gif width=41 height=53 onmouseover="tooltip(this,'<b>Рыбалка</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=4"><img src=http://image.gamele.ru/gameplay/invent/3.gif width=41 height=53 onmouseover="tooltip(this,'<b>Ресурсы</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=5"><img src=http://image.gamele.ru/gameplay/invent/4.gif width=41 height=53 onmouseover="tooltip(this,'<b>Руны</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=6"><img src=http://image.gamele.ru/gameplay/invent/5.gif width=41 height=53 onmouseover="tooltip(this,'<b>Еда</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="/main.php?im=7"><img src=http://image.gamele.ru/gameplay/invent/7.gif width=41 height=53 onmouseover="tooltip(this,'<b>Журнал заданий</b>')" onmouseout="hide_info(this)" class=cath border=0></a><a href="main.php?invf=w70"><img src="http://image.gamele.ru/gameplay/invent/cat/23.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Квестовые Вещи</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w61"><img src="http://image.gamele.ru/gameplay/invent/9.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Другое</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><img src="http://image.gamele.ru/gameplay/invent/10.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Лицензии</b>')" onmouseout="hide_info(this)" class="cath" border="0"></td>
</tr>
<tr>
<td><img src="http://image.gamele.ru/1x1.gif" width="1" height="4"></td>
</tr>
<tr>
<td align="center"><a href="main.php?invf=w4"><img src="http://image.gamele.ru/gameplay/invent/cat/0.gif" width="44" height="53" onmouseover="tooltip(this,'<b>Ножи</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w1"><img src="http://image.gamele.ru/gameplay/invent/cat/1.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Мечи</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w2"><img src="http://image.gamele.ru/gameplay/invent/cat/2.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Топоры</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w3"><img src="http://image.gamele.ru/gameplay/invent/cat/3.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Дробящие</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w6"><img src="http://image.gamele.ru/gameplay/invent/cat/4.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Алебарды и копья</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w7"><img src="http://image.gamele.ru/gameplay/invent/cat/6.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Посохи</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w20"><img src="http://image.gamele.ru/gameplay/invent/cat/7.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Щиты</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w18"><img src="http://image.gamele.ru/gameplay/invent/cat/10.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Кольчуги</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w19"><img src="http://image.gamele.ru/gameplay/invent/cat/11.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Доспехи</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w23"><img src="http://image.gamele.ru/gameplay/invent/cat/8.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Шлемы</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a></a><a href="main.php?invf=w21"><img src="http://image.gamele.ru/gameplay/invent/cat/14.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Сапоги</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a></td>
</tr>
<tr>
<td><img src="http://image.gamele.ru/1x1.gif" width="1" height="4"></td>
</tr>
<tr>
<td align="center"><a href="main.php?invf=w26"><img src="http://image.gamele.ru/gameplay/invent/cat/9.gif" width="44" height="53" onmouseover="tooltip(this,'<b>Пояса</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w24"><img src="http://image.gamele.ru/gameplay/invent/cat/12.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Перчатки</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w80"><img src="http://image.gamele.ru/gameplay/invent/cat/13.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Наручи</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w25"><img src="http://image.gamele.ru/gameplay/invent/cat/15.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Кулоны</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w22"><img src="http://image.gamele.ru/gameplay/invent/cat/16.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Кольца</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w28"><img src="http://image.gamele.ru/gameplay/invent/cat/17.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Свитки</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?invf=w27"><img src="http://image.gamele.ru/gameplay/invent/cat/21.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Зелья</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?soc='.(($opt[0]==0)?1:0).'"><img src="http://image.gamele.ru/gameplay/invent/cat/b1.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Полная / сокращенная информация</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?sort='.(($opt[1]==0)?1:0).'"><img src="http://image.gamele.ru/gameplay/invent/cat/b2.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Сортировка по категориям</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?all=1"><img src="http://image.gamele.ru/gameplay/invent/cat/b3.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Сбросить фильтр</b>')" onmouseout="hide_info(this)" class="cath" border="0"></a><a href="main.php?post_id=57&act=3&vcode='.scode().'"><img src="http://image.gamele.ru/gameplay/invent/cat/b0.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Снять все вещи</b>')" onmouseout="hide_info(this)" class="cath" border="0" /></a></td>
</tr>
<tr>
<td><img src="http://image.gamele.ru/1x1.gif" width="1" height="4"></td>
</tr>
<tr><td width=100%>';
if($_SESSION['user']['inv']!=''){
$sq="and `type`='".$_SESSION['user']['inv']."'";
}else{
$sq='';
}
if($opt[1]==1){
$sq2="ORDER by `type` ASC;";
}else{
$sq2="ORDER by `type` DESC;";
}
$ITEMS = mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`='".$player['id']."' and `invent`.`used`='0' and `invent`.`auction`='0' and `items`.`type`!='w71' AND `invent`.`bank`='0' AND (`arenda`>='".time()."' OR `arenda`='0') and `items`.`types`='' $sq $sq2");
$num = (mysql_num_rows($ITEMS));
if($num>0){
echo'<table cellpadding="5" cellspacing="1" border="0" width="100%">
<tr><td bgcolor="#F5F5F5" align="center" colspan="2"><font class="inv"><b>Масса Вашего инвентаря: '.number_format($plstt[71], 2, '.', '').'/'.$mass.'</b></font>'.(($plstt[71]>$mass)?'<br><div align="center"><font class="inv"><b><font color="#cc0000">Вы перегружены!</font></b></div>':'').'</td></tr></table>';
while ($ITEM = mysql_fetch_assoc($ITEMS)) {
$iz=$ITEM['dolg']-$ITEM['iznos'];
if($player['level']<5){
$licen=1;
}elseif(!empty($ITEM['gift'])){
$licen=0.45;
}else{
$licen=0.6;
}
$QueryLic = mysql_query("SELECT * FROM `licens` WHERE `time`>'".time()."' AND (`lic`='10' OR `lic`='11' OR `lic`='12' OR `lic`='13') AND `uid` = '".$player['id']."'");
$TradeLic = '';
$TradeGRLic = '';
while($GetLic = mysql_fetch_assoc($QueryLic)){
if($GetLic['lic'] == '11'){
$TradeLic .= 1;
}
if($GetLic['lic'] != '11'){
$TradeGRLic .= 1;
}
}
if(mysql_num_rows($QueryLic)>0){
if(!empty($TradeLic)){
$licen=0.99;
}
if(!empty($TradeGRLic) and empty($TradeLic)){
$licen=0.77;
}
}
if($ITEM['dolg']!='0' and $ITEM['iznos']){
$izn = round(($iz/($ITEM['dolg']/100))*0.62);
$pro = 62-$izn;
$price=round((($ITEM['price']*$licen)/$ITEM['dolg'])*($ITEM['dolg']-$ITEM['iznos']),2);
}else{
$price=$ITEM['price'];
}
$bt=0;
$tr_b='';
$mod=explode("|",$ITEM['mod']);
$need=explode("|",$ITEM['i_need']);
foreach ($need as $value) {
$treb=explode("@",$value);
include("sp_treb.php");
}
$ItemToOne[$ITEM['id']+$ITEM['arenda']+$ITEM['rassrok']][md5($iz.'/'.$ITEM['dolg'].$ITEM['mod'].$ITEM['clan'])] += 1;
if($ItemToOne[$ITEM['id']+$ITEM['arenda']+$ITEM['rassrok']][md5($iz.'/'.$ITEM['dolg'].$ITEM['mod'].$ITEM['clan'])] == 1){
$count = mysql_num_rows(mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `pl_id`='".$player['id']."' and `invent`.`used`='0' and `dolg`='".$ITEM['dolg']."' and `iznos`='".$ITEM['iznos']."' and `items`.`id`='".$ITEM['id']."' and `invent`.`arenda`='".$ITEM['arenda']."' and `invent`.`rassrok`='".$ITEM['rassrok']."' and `invent`.`mod`='".$ITEM['mod']."' and `invent`.`bank`='0' $sq $sq2;"));
echo'<table cellpadding="5" cellspacing="1" border="0" width="100%"><tr><td bgcolor="#F5F5F5"><div align="center"><img src="http://image.gamele.ru/weapon/'.$ITEM['img'].'" border="0"><br><img src="http://image.gamele.ru/1x1.gif" width="62" height="1"><br><img src="http://image.gamele.ru/solidst.gif" width="'.$izn.'" height="2" border="0" onmouseover="tooltip(this,'<b>Долговечность: '.$iz.'/'.$ITEM['dolg'].'</b>')" onmouseout="hide_info(this)"><img src="http://image.gamele.ru/nosolidst.gif" width="'.$pro.'" height="2" border="0" onmouseover="tooltip(this,'<b>Долговечность: '.$iz.'/'.$ITEM['dolg'].'</b>')" onmouseout="hide_info(this)"></div></td><td width="100%" bgcolor="#FFFFFF" valign="top"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td bgcolor="#FFFFFF" width="100%">';
$Echo_But = '';
$DopError = 0;
if($ITEM['cl_id'] != ''){
$DopError = 1;
}
if(($ITEM['cl_id'] == $player['clan_id'] or $ITEM['cl_id'] == $player['pair_id']) and $DopError == 1){
$DopError = 0;
}
if($bt==0 and $ITEM['slot']!=0 and $ITEM['slot']<100 and $DopError == 0){// Одиваемся
$Echo_But .= '<input type=button class=invbut onclick="location='main.php?post_id=57&act=1&wid='.$ITEM['id_item'].'&vcode='.scode().''" value="Надеть" /> ';
}
$DopError = 0;
if($ITEM['acte'] == 'fightmagicform' and $ITEM['num_a'] < 32){
if(mysql_num_rows(mysql_query("SELECT * FROM `effects` WHERE `userid`='".$player['id']."' AND (`eff_id`='1' OR `eff_id`='2')"))>0){
$DopError = 1;
}
}
if($bt==0 and $ITEM['acte']!='' and $ITEM['acte'] != 'doctorform' and $ITEM['acte'] != 'w28_form' and $DopError == 0){// Юзаем
$Echo_But .= '<input type=button class=invbut onclick="'.$ITEM['acte'].'(''.$ITEM['id_item'].'',''.$player['login'].'',''.$ITEM['ItemName'].'',''.scode().'''.(($ITEM['acte']=='fightmagicform')?',''.$ITEM['num_a'].''':'').')" value="Использовать"> ';
}
if($bt==0 and $ITEM['acte'] == 'svitok'){// Одиваемся
$Echo_But .= '<input type=button class=invbut onclick="location='main.php?post_id=63&act='.$ITEM['num_a'].'&wid='.$ITEM['id_item'].'&vcode='.scode().''" value="Использовать" /> ';
}
if($bt==0 and $ITEM['acte'] == 'w28_form'){// Доки
$Echo_But .= '<input type=button class=invbut onclick="'.$ITEM['acte'].'(''.scode().'',''.$ITEM['id_item'].'','.$ITEM['num_a'].',''.$ITEM['dolg'].'')" value="Использовать"> ';
}
if($bt==0 and $ITEM['acte']!='' and $ITEM['acte'] == 'doctorform'){// Доки
$Echo_But .= '<input type=button class=invbut onclick="window.location = 'main.php?useaction=addon-action&addid=2';" value="Использовать"> ';
}
$DopError = 0;
if($ITEM['cl_id'] != ''){
$DopError = 1;
}
if($ITEM['cl_id'] == $player['clan_id'] and ($player['clan_status'] == 8 or $player['clan_status'] == 9) and $DopError == 1){
$DopError = 0;
}
if(($player['loc']==2 or $player['loc']==102) and $ITEM['dprice']=="0" and $ITEM['death']=="0" and $ITEM['arenda']=="0" and $ITEM['rassrok']=="0" and $player['finblock']<time() and $DopError == 0 and $ITEM['death']=="0"){// Продаем
$Echo_But .= '<input type=button class=invbut onclick="javascript: if(confirm('Вы точно хотите продать "'.$ITEM['ItemName'].'" за '.round((($ITEM['price']*$licen)/$ITEM['dolg'])*($ITEM['dolg']-$ITEM['iznos']),2).' ER?')) { location='main.php?post_id=8&act=1&uid='.$ITEM['id_item'].'&WeaponName='.$ITEM['ItemName'].'&vcode='.scode().'' }" value="Продать за '.round((($ITEM['price']*$licen)/$ITEM['dolg'])*($ITEM['dolg']-$ITEM['iznos']),2).' ER"> ';
}
if(($player['loc']==2) and ($ITEM['type']=="w68" and $ITEM['slot']=="0" or $ITEM['type']=="w69") and $player['finblock']<time() and $DopError == 0){// Продаем
$Echo_But .= '<input type=button class=invbut onclick="javascript: if(confirm('Вы точно хотите продать "'.$ITEM['ItemName'].'"?')) { location='main.php?post_id=97&uid='.$ITEM['id_item'].'&WeaponName='.$ITEM['ItemName'].'&vcode='.scode().'' }" value="Продать все (в магазин)"> ';
}
if($ITEM['cl_id']=='' and $ITEM['gift']=="" and $ITEM['dprice']=="0" and $ITEM['arenda']=="0" and $ITEM['rassrok']=="0" and $ITEM['dcat']!="99" and $player['finblock']<time() and $ITEM['acte'] != 'doctorform'){// Работаем с персами
$Echo_But .= '<input type=button class=invbut onClick="transferform(''.$ITEM['id_item'].'','0',''.$ITEM['ItemName'].'',''.scode().'',''.$ITEM['price'].'','10','60','60')" value="Передать"> ';
$Echo_But .= '<input type=button class=invbut onClick="presentform(''.$ITEM['id_item'].'',''.$ITEM['ItemName'].'',''.scode().'','10',''.$ITEM['price'].'','0','0')" value="Подарить"> ';
$Echo_But .= '<input type=button class=invbut onclick="sellingform(''.$ITEM['id_item'].'',''.$ITEM['ItemName'].'',''.scode().'',''.$ITEM['price'].'',''.$ITEM['massa'].'',''.(($TradeLic)?$TradeLic:(($TradeGRLic)?$TradeGRLic:'')).'')" value="Продать">';
}
echo (($Echo_But)?$Echo_But.'<br><img src="http://image.gamele.ru/1x1.gif" width="1" height="5">':'').'</td><td valign="center" align="right">';
$Drop_But = '';
$DopError = 0;
if($ITEM['cl_id'] != ''){
$DopError = 1;
}
if($ITEM['cl_id'] == $player['clan_id'] and ($player['clan_status'] == 8 or $player['clan_status'] == 9) and $DopError == 1){
$DopError = 0;
}
if($ITEM['cl_id']=='' and $player['finblock']<time() and $ITEM['arenda']=="0" and $ITEM['rassrok']=="0" and $ITEM['death']=="0" and $DopError == 0){
$Drop_But .= '<input type=image src=http://image.gamele.ru/del.gif width=14 height=14 border=0 onClick="javascript: if(top.DeleteTrue(''.$ITEM['ItemName'].'')) { location='main.php?post_id=50&uid='.$ITEM['id_item'].'&vcode='.scode().'&wn='.$ITEM['ItemName'].'' }" value="x" >';
}
echo(($Drop_But)?$Drop_But.'<br><img src="http://image.gamele.ru/1x1.gif" width="1" height="5">':'').'</td></tr><tr><td colspan="2" width="100%"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>';
if($opt[0]==0){
echo'<td bgcolor=#D8CDAF width=50% colspan=3><div align=center><font class=invtitle><font color=#000000>свойства</font></div></td><td bgcolor=#B9A05C><img src=http://image.gamele.ru/1x1.gif width=1 height=16></td><td bgcolor=#D8CDAF width=50% colspan=3><div align=center><font class=invtitle><font color=#000000>требования</font></div></td></tr><tr><td bgcolor=#FCFAF3><img src=http://image.gamele.ru/1x1.gif width=5 height=1></td>';if($ITEM[mod_color]==0){echo'<td bgcolor=#FCFAF3 width=50%><font class=nickname><b>'.$ITEM['ItemName'].'</b> '.(($count>1)?'<font color="#CCCCCC">(<b>'.$count.' шт.</b>)</font>':'').'<br>';}else{if($ITEM[mod_color]==1){echo'<td bgcolor=#FCFAF3 width=50%><font class=nickname><b><font color=#006600>'.$ITEM['ItemName'].'</b> '.(($count>1)?'<font color="#CCCCCC">(<b>'.$count.' шт.</b>)</font>':'').'</font><br>';}if($ITEM[mod_color]==2){echo'<td bgcolor=#FCFAF3 width=50%><font class=nickname color=#4ABB58><b><font color=#3333CC>'.$ITEM['ItemName'].'</b> '.(($count>1)?'<font color="#CCCCCC">(<b>'.$count.' шт.</b>)</font>':'').'</font><br>';}if($ITEM[mod_color]==3){echo'<td bgcolor=#FCFAF3 width=50%><font class=nickname color=#AF51B5><b><font color=#993399>'.$ITEM['ItemName'].'</b> '.(($count>1)?'<font color="#CCCCCC">(<b>'.$count.' шт.</b>)</font>':'').'</font><br>';}}echo''.(($ITEM['slot']==16)?"<font class=weaponch><b><font color=#cc0000>Можно одевать на кольчуги</font></b><br>":'');
if($ITEM['death']>0 ){
echo '<font class=weaponch><b><font color=#cc0000>Срок годности: '.date("d.m.y H:i",$ITEM['death']).'</b><br>';
}
if($ITEM['arenda']>0 ){
echo '<font class=weaponch><b><font color=#cc0000>Вещь арендована до '.date("d.m.y H:i",$ITEM['arenda']).'</b><br>';
}
blocks($ITEM['block']);
if($ITEM['dcat']=='99' ){
echo '<font class=weaponch>Цена: <b>'.$ITEM['price'].'</b> DPV<br>';
}else{echo'<font class=weaponch>Цена: <b>'.$ITEM['price'].'</b> ER<br>';};
$modstat='';
foreach ($mod as $value){
$modstats=explode("@",$value);
$modstat[$modstats[0]]=$modstats[1];
}
$par=explode("|",$ITEM['i_param']);
foreach ($par as $value){
$stat=explode("@",$value);
include("sp_stat.php");
}
$dmod=explode("@",$ITEM['damage_mod']);
include($_SERVER["DOCUMENT_ROOT"]."/inc/sp_dmods.php");
echo'</font></td><td bgcolor="#FCFAF3"><img src="http://image.gamele.ru/1x1.gif" width="5" height="1"></td><td bgcolor="#B9A05C"><img src="http://image.gamele.ru/1x1.gif" width="1" height="1"></td><td bgcolor="#FCFAF3"><img src="http://image.gamele.ru/1x1.gif" width="5" height="1"></td><td bgcolor="#FCFAF3" width="50%">
<font class=weaponch>';
if($ITEM['gift']!="" and $ITEM['gift']!="0" and $ITEM['gift']!="1"){
echo "<img src=http://image.gamele.ru/gift/gift1.gif width=15 height=15 border=0 align=absmiddle title='".$ITEM['gift']."'> <b>".$ITEM['gift']."</b><br>";
}
echo $tr_b;
echo'</font></td><td bgcolor="#FCFAF3"><img src="http://image.gamele.ru/1x1.gif" width="5" height="1"></td>';
}else{
echo'<font class="nickname"><b>'.$ITEM['ItemName'].'</b> '.(($count>1)?'<font color="#CCCCCC">(<b>'.$count.' шт.</b>)</font>':'');
}
echo'</tr></table></td></tr></table></td></tr></table>';
}
}
echo'</table>';
}else{
echo'<table cellpadding="5" cellspacing="1" border="0" width="100%"><tr><td bgcolor="#F5F5F5" align="center" colspan="2"><font class="inv"><b>У Вас с собой нет вещей.</b></font></td></tr>';
}
?>
</td></tr>