Файл: gamele.ru/includes/addons/clan-action/3.php
Строк: 460
<?php
if($clan_menu[1]=='1'){
if($sign['pair_id'] == 'c8' or $sign['pair_id'] == 'c10'){
$sign['pair_id'] = 'none';
}
$GetClanItems = mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE `invent`.`cl_id` = '".$sign['clan_id']."'".(($_GET["wca"])?" and `items`.`type`='".preg_replace('/[^w0-9]/','',$_GET["wca"])."'":"").";");
$GetYouItems = mysql_query("SELECT `invent`.*, `items`.* FROM `items` INNER JOIN `invent` ON `items`.`id` = `invent`.`protype` WHERE
`pl_id` = '".$pers['id']."' and `invent`.`arenda`='0' and `items`.`types`='' and `invent`.`rassrok`='0' and `invent`.`auction`='0' and `invent`.`used` = '0' and `invent`.`cl_id` = ''
".(($_GET["wca"])?" and `items`.`type`='".preg_replace('/[^w0-9]/','',$_GET["wca"])."'":"").";");
echo'<SCRIPT src="./js/clan_items.js"></SCRIPT><table cellpadding="3" cellspacing="2" border="0" width="100%">
<tr>
<td colspan="5"><div align="center"><a href="?wca=w4&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w1&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w2&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w3&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w6&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w7&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w20&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w18&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w19&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w23&useaction=clan-action&addid=3"><img src="http://image.neverlands.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 href="?wca=w21&useaction=clan-action&addid=3"><img src="http://image.neverlands.ru/gameplay/invent/cat/14.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Сапоги</b>')" onmouseout="hide_info(this)" class="cath" border="0" /></a><a href="?wca=w26&useaction=clan-action&addid=3"><img src="http://image.neverlands.ru/gameplay/invent/cat/9i.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Пояса</b>')" onmouseout="hide_info(this)" class="cath" border="0" /></a><a href="?wca=w24&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w80&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w25&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w22&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w28&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w27&useaction=clan-action&addid=3"><img src="http://image.neverlands.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="?wca=w85&useaction=clan-action&addid=3"><img src="http://image.neverlands.ru/gameplay/invent/cat/85.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Сумки лекаря</b>')" onmouseout="hide_info(this)" class="cath" border="0" /></a><a href="?wca=w61&useaction=clan-action&addid=3"><img src="http://image.guild-honor.ru/gameplay/invent/9.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Другое</b>')" onmouseout="hide_info(this)" class="cath" border="0" /></a><a href="?wfo=1&useaction=clan-action&addid=3"><img src="http://image.neverlands.ru/gameplay/invent/cat/b3.gif" width="41" height="53" onmouseover="tooltip(this,'<b>Сбросить фильтр</b>')" onmouseout="hide_info(this)" class="cath" border="0" /></a></div></td>
</tr>
<tr>
<td colspan="5"><table border="0" width="100%" cellpadding="3" cellspacing="2"></tr><td colspan="3" bgcolor="#E3EDEF"><font class="freemain"><font color="#3564A5"><b>
<div align="center">БАЛАНС КЛАНА</div>
</b></font></font></td></tr></tr><td align="center" width="33%" bgcolor="#E3EDEF"><font class="freemain"><font color="#3564A5"><b>'.$sign['rb'].'</b> ER</font></font></td><td align="center" width="33%" bgcolor="#E3EDEF"><font class="freemain"><font color="#3564A5"><b>'.$sign['hr'].'</b> $</font></font></td><td align="center" width="33%" bgcolor="#E3EDEF"><font class="freemain"><font color="#3564A5"><b>'.$sign['dhr'].'</b> DLE</font></font></td></tr></table></td>
</tr>
<tr>
<td colspan="5" bgcolor="#E3EDEF"><font class="freemain"><font color="#3564A5"><b>
<div align="center">СПИСОК ВЕЩЕЙ КЛАНА</div>
</b></font></font></td>
</tr>';
$access = explode("|",$pers['clan_accesses']);
if(mysql_num_rows($GetClanItems)>0 and in_array('1',$access)){
echo'<tr><td bgcolor=#D8CDAF><div align=center><font class=invtitle>название вещи</font></div></td><td bgcolor=#D8CDAF><div align=center><font class=invtitle>у кого</font></div></td><td bgcolor=#D8CDAF><div align=center><font class=invtitle>износ</font></div></td><td bgcolor=#D8CDAF><div align=center><font class=invtitle>статус</font></div></td><td bgcolor=#D8CDAF><div align=center><font class=invtitle>действия</font></div></td></tr>';
$i = 0;
while($ShowItems = mysql_fetch_assoc($GetClanItems)){
$i++;
$bgcolor = (($i%2)?'f0f0f0':'ffffff');
$WhoItem = GetUserFID($ShowItems['pl_id'],1);
$par=explode("|",$ShowItems['i_param']);
$bt=0;$tr_b1='';$m=1;
foreach ($par as $value) {
$treb1=explode("@",$value);
switch($treb1[0])
{
case 71: $tr_b1.="$treb1[1]";break;
}
}
$tr_b='';
foreach ($par as $value) {
$treb=explode("@",$value);
switch($treb[0])
{
case 0: $tr_b.="<font class=weaponch>($treb[1])</font>";break;
}
}
echo'<tr><td bgcolor=#'.$bgcolor.'><font class=nickname>'.$i.'. <b style="cursor:default;" onmouseover="tooltip(this,ShowInfo(''.$ShowItems['ItemName'].'',''.$ShowItems['img'].'',''.$ShowItems['price'].'',''.$ShowItems['slot'].'',''.$ShowItems['block'].'',''.$ShowItems['hand'].'',''.preg_replace('/@/',':',$ShowItems['i_param']).'',''.preg_replace('/@/',':',$ShowItems['i_need']).'',''.$ShowItems['massa'].'',''.$ShowItems['level'].''))" onmouseout="hide_info(this)">'.$ShowItems['ItemName'].'</b> '.$tr_b.' <b><font color=#BB0000>'.$tr_b1.'</font></b></td><td bgcolor=#'.$bgcolor.'><div align=center><font class=weaponch><b>'.$WhoItem['login'].'</b></font></div></td><td bgcolor=#'.$bgcolor.'><div align=center><font class=weaponch><b>Долговечность:</b> '.(($ShowItems['dolg'])?($ShowItems['dolg']-$ShowItems['iznos']).'/'.$ShowItems['dolg']:'вечная').'</font></div></td><td bgcolor=#'.$bgcolor.'><div align=center><font class=weaponch><b>'.(($ShowItems['used'])?'<font color=#dd0000>занят</font>':'<font color=#00A80C>свободен</font>').'</b></font></div></td><td bgcolor=#'.$bgcolor.'><div align=center>'.(($ShowItems['used'])?(($WhoItem['last']<(time()-300))?((in_array('2',$access))?'<input type=button class=invbut onClick="location='?get_id=29&uid='.$ShowItems['id_item'].'&plid='.$ShowItems['pl_id'].'&vcode='.vCode().'&clan_act=5&useaction=clan-action&addid=3'.(($_GET["wca"])?'&wca='.preg_replace('/[^w0-9]/','',$_GET["wca"]):'').''" value="Снять вещь">':' '):' '):(($ShowItems['pl_id']!=$pers['id'])?'<input type=button class=invbut onClick="location='?get_id=29&uid='.$ShowItems['id_item'].'&plid='.$ShowItems['pl_id'].'&vcode='.vCode().'&clan_act=4&useaction=clan-action&addid=3'.(($_GET["wca"])?'&wca='.preg_replace('/[^w0-9]/','',$_GET["wca"]):'').''" value="Взять из казны">':' ')).'</div></td></tr>';
}
}else{
if(!in_array('1',$access)){
echo'<tr><td colspan="5"><div align="center"><font class="nickname"><font color="#dd0000"><b>Нет доступа к казне</b></font></font></div></td></tr>';
}else{
echo'<tr><td colspan="5"><div align="center"><font class="nickname"><font color="#dd0000"><b>Нет доступных вещей</b></font></font></div></td></tr>';
}
}
echo'<tr>
<td colspan="5" bgcolor="#E3EDEF"><font class="freemain"><font color="#3564A5"><b>
<div align="center">СПИСОК ВАШИХ ВЕЩЕЙ</div>
</b></font></font></td>
</tr>';
$i = 0;
while($ShowItems = mysql_fetch_assoc($GetYouItems)){
$i++;
$bgcolor = (($i%2)?'f0f0f0':'ffffff');
echo'<tr><td bgcolor=#'.$bgcolor.'><font class=nickname><b style="cursor:default;" onmouseover="tooltip(this,ShowInfo(''.$ShowItems['ItemName'].'',''.$ShowItems['img'].'',''.$ShowItems['price'].'',''.$ShowItems['slot'].'',''.$ShowItems['block'].'',''.$ShowItems['hand'].'',''.preg_replace('/@/',':',$ShowItems['i_param']).'',''.preg_replace('/@/',':',$ShowItems['i_need']).'',''.$ShowItems['massa'].'',''.$ShowItems['level'].''))" onmouseout="hide_info(this)">'.$ShowItems['ItemName'].'</b></font></td><td bgcolor=#'.$bgcolor.'><div align=center><font class=weaponch><b>'.GetUserFID($ShowItems['pl_id']).'</b></font></div></td><td bgcolor=#'.$bgcolor.'><div align=center><font class=weaponch><b>Долговечность:</b> '.(($ShowItems['dolg'])?($ShowItems['dolg']-$ShowItems['iznos']).'/'.$ShowItems['dolg']:'вечная').'</font></div></td><td bgcolor=#'.$bgcolor.'><div align=center><font class=weaponch><b><font color=#00A80C>свободен</font></b></font></div></td><td bgcolor=#'.$bgcolor.'><div align=center><input type=button class=invbut onClick="location='?get_id=18&uid='.$ShowItems['id_item'].'&vcode='.vCode().'&useaction=clan-action&addid=3'.(($_GET["wca"])?'&wca='.preg_replace('/[^w0-9]/','',$_GET["wca"]):'').''" value="Пожертвовать"></div></td></tr>';
}
echo'</table>';
}else{
echo"<center>Нет Доступа</center>";
}
?>