game/modules_data/7_panel.php

85 lines
4.2 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
echo "
<script language='JavaScript'>
var elem = document.getElementById('se-pre-con');
elem.parentNode.removeChild(elem);
</script>
";
if(!defined('GAME'))
{
die();
}
if($u->info['align']==7) {
if($u->error!='')
{
echo '<font color="red"><b>'.$u->error.'</b></font><br>';
}
$vu = array(0,0,0,0,0,0,0);
2023-01-10 16:29:32 +00:00
//Абилки $item_neytral
2022-06-06 21:30:34 +00:00
$item_neytral = array(
"" => array(
//array(5050,1,0,0,0,'tr_s1=10|tr_s2=10|tr_s3=10|tr_s4=25|onlyOne=1|oneType=74|tr_align=7|noremont=1|musor=1|srok=86400|nosale=1|sudba=1',1),
array(4943,1,0,0,0,'usefromfile=1|musor=1|noremont=1|sudba=1|tr_align=7|srok=86400|nosale=1|sudba=1',1)
),
);
$vi = array(
);
?>
<link href="//img.new-combats.tech/css/main.css" rel="stylesheet" type="text/css">
2022-06-06 21:30:34 +00:00
<link rel="stylesheet" type="text/css" href="css/clu0b.css" />
<link rel="stylesheet" type="text/css" href="css/windows.css" />
<?
?>
<table width="100%">
<tr>
2023-01-10 16:29:32 +00:00
<center><h3>Нейтральная Сила с нами, собрат <?=$u->microLogin($u->info['id'],1)?></center></h3>
<td width="150" align="right"><input type="button" class="btn" value="Обновить" onclick="location='main.php?7_panel=1';" /> </div> <input type="button" class="btn" value="Вернуться" onclick="location='main.php';" /></td>
2022-06-06 21:30:34 +00:00
</table>
2023-01-10 16:29:32 +00:00
<center><p><b>Абилки:</b><br /><small>(Чтобы забрать предмет просто нажмите на его изображение)</small></p>
2022-06-06 21:30:34 +00:00
<p>
<?
$i = 0; $seet = '';
2023-01-10 16:29:32 +00:00
$vnr = array(0 => 'на сегодня',1 => ' всего');
2022-06-06 21:30:34 +00:00
while($i < count($item_neytral[$neytral_panel])) {
if($item_neytral[$neytral_panel][$i][1]>0) {
$itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$item_neytral[$neytral_panel][$i][0].'" LIMIT 1'));
if(isset($itm['id'])) {
$vix = 0;
if($item_neytral[$neytral_panel][$i][4] == 0) {
$vix = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.strtotime('now 00:00:00').' AND `vars` = "dark_itm'.$itm['id'].'"',2);
$vix = $vix[0];
}else{
$vix = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.$vt['timeUse'].' AND `vars` = "dark_itm'.$itm['id'].'" ',2);
$vix = $vix[0];
}
if($item_neytral[$neytral_panel][$i][1]-$vix > 0) {
if(isset($_GET['take_item_neytral_panel']) && $_GET['take_item_neytral_panel'] == $itm['id']) {
$nitm = $u->addItem($itm['id'],$u->info['id'],$item_neytral[$neytral_panel][$i][5]);
if($item_neytral[$neytral_panel][6]>0) {
}
$u->addAction(time(),'dark_itm'.$itm['id'],'');
2023-01-10 16:29:32 +00:00
echo '<font color="red">Предмет &quot;<b>'.$itm['name'].'</b>&quot; перемещен к Вам в инвентарь!</font><br><br>';
2022-06-06 21:30:34 +00:00
}
}
$seet0 = '';
2023-01-10 16:29:32 +00:00
//Вывод предметов
2022-06-06 21:30:34 +00:00
$seet0 .= '<img '.$vix.' title="'.$itm['name'].'
2023-01-10 16:29:32 +00:00
(Осталось '.$vnr[$item_neytral[$i][4]].': '.($item_neytral[$neytral_panel][$i][1]-$vix).' шт.)" src="https://'.$c['img'].'/i/items/'.$itm['img'].'"> ';
2022-06-06 21:30:34 +00:00
if($item_neytral[$neytral_panel][$i][1]-$vix > 0) {
$seet0 = '<a href="main.php?7_panel=1&take_item_neytral_panel='.$itm['id'].'">'.$seet0.'</a>';
}else{
$seet0 = '<span style="filter: alpha(opacity=20); -moz-opacity: 0.20; -khtml-opacity: 0.20; opacity: 0.20;">'.$seet0.'</span>';
}
$seet .= $seet0;
}
}
$i++;
}
}
echo $seet;
?>
</p></td></center>
</tr>
</table>