2023-03-31 18:42:06 +00:00
< ? php
2023-08-14 15:15:05 +00:00
echo "
2022-06-06 21:30:34 +00:00
< script language = 'JavaScript' >
var elem = document . getElementById ( 'se-pre-con' );
elem . parentNode . removeChild ( elem );
</ script >
" ;
2023-08-14 15:15:05 +00:00
if ( ! defined ( 'GAME' )) {
die ();
2022-06-06 21:30:34 +00:00
}
?>
< style >
2023-08-14 15:15:05 +00:00
. obrsl1 {
border : 1 px solid #888;
padding : 1 px ;
}
. obrsl1 : hover {
background - color : #F00;
width : 118 px ;
height : 216 px ;
margin - bottom : 2 px ;
margin - left : 1 px ;
margin - right : 1 px ;
}
2022-06-06 21:30:34 +00:00
</ style >
< table width = " 100% " cellspacing = " 0 " cellpadding = " 0 " >
2023-08-14 15:15:05 +00:00
< form method = " post " action = " /main.php?inv " >
< tr >
< td valign = " top " align = " left " >< img src = " //img.new-combats.tech/i/1x1.gif " alt = " " width = " 1 " height = " 5 " />< br />
& nbsp ; & nbsp ;
</ td >
2023-12-05 01:01:04 +00:00
< center >< ? = User :: getLogin ( $u -> info [ 'id' ]) . '<br>' ; ?> </center>
2023-08-14 15:15:05 +00:00
< td valign = " top " align = " right " >& nbsp ;
< input type = " button " onClick = " location.href='/main.php?obraz'; " class = " btn " value = " Обновить " />
< input type = " submit " class = " btn " name = " edit " value = " Вернуться " />
< br >
< hr />
< br />
</ td >
</ tr >
</ form >
2022-06-06 21:30:34 +00:00
</ table >
< center >
2023-08-14 15:15:05 +00:00
< ? php
$sp = mysql_query ( 'SELECT * FROM `obraz` WHERE `sex` = "' . $u -> info [ 'sex' ] . '" AND `level` <= "' . $u -> info [ 'level' ] . '" AND (`login` = "" OR `login` = "' . $u -> info [ 'login' ] . '") AND (`uid` = "" OR `uid` = "' . $u -> info [ 'id' ] . '") AND (`align` = "0" OR `align` = "' . $u -> info [ 'align' ] . '") AND (`clan` = "0" OR `clan` = "' . $u -> info [ 'clan' ] . '") ORDER BY `level` ASC, `img` ASC' );
while ( $pl = mysql_fetch_array ( $sp )) {
$tr = true ;
$trd = '' ;
$po = Helper\Conversion :: dataStringToArray ( $pl [ 'tr' ]);
$t = $u -> items [ 'tr' ];
$x = 0 ;
if ( $pl [ 'level' ] > 0 ) {
$trd .= " \r " . '• Уровень персонажа: ' . $pl [ 'level' ] . '' ;
}
if ( $pl [ 'itm' ] > 0 ) {
$pl [ 'itm' ] = explode ( ',' , $pl [ 'itm' ]);
$j = 0 ;
$tritm = '' ;
while ( $j < count ( $pl [ 'itm' ])) {
$itm_id = $pl [ 'itm' ][ $j ];
if ( $itm_id > 0 ) {
$itm_id = mysql_fetch_array ( mysql_query ( 'SELECT `id`,`name` FROM `items_main` WHERE `id` = "' . $itm_id . '" LIMIT 1' ));
$itm_id_true = mysql_fetch_array ( mysql_query ( 'SELECT `id` FROM `items_users` WHERE `item_id` = "' . $itm_id [ 'id' ] . ' " AND
`delete` = 0 AND `inOdet` > 0 AND `inShop` = 0 AND `uid` = " ' . $u->info ['id'] . ' "
2022-06-06 21:30:34 +00:00
LIMIT 1 ' ));
2023-08-14 15:15:05 +00:00
if ( ! isset ( $itm_id_true [ 'id' ])) {
$tr = false ;
}
if ( $j > 0 ) {
$tritm .= ', ' ;
}
$tritm .= '"' . $itm_id [ 'name' ] . '"' ;
}
$j ++ ;
}
if ( $tritm != '' ) {
$trd .= " \r " . '• Предметы: ' . $tritm . '' ;
}
}
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $po [ 'tr_' . $n ])) {
$trd .= " \r " . '• ' . $u -> is [ $n ] . ': ' . $po [ 'tr_' . $n ] . '' ;
if ( $po [ 'tr_' . $n ] > $u -> stats [ $n ]) {
$tr = false ;
}
}
$x ++ ;
}
if (( $pl [ 'tr' ] == '' && $pl [ 'itm' ] == '' ) || $tr == true ) {
if ( $trd != '' ) {
$trd = 'Требуется минимальное:' . $trd ;
}
echo '<a href="main.php?inv=1&obr_sel=' . $pl [ 'id' ] . '&rnd=' . $code . '"><img class="obrsl1" title="' . $trd . '" src="//img.new-combats.tech/i/obraz/' . $pl [ 'sex' ] . '/' . $pl [ 'img' ] . '" width="120" height="220" /></a> ' ;
}
}
?>
2022-06-06 21:30:34 +00:00
</ center >