File size: 6.45Kb
<?php defined('element_war') or die('Access forbidden!'); ?>
<div class="nfl p5 mt5 mb5 mlra">
<div class="cntr small mb5">
<?php
require_once './element_function/element_function_item.php';
echo ikonka_user($user['lost_race'], 'online').' <span class="yellow1 bold">'.$user['lost_login'].'</span><br/>';
echo ($user['lost_town'] > 0) ? '<span class="yellow1"><img src="/images/town/race_'.$user_town['lost_race'].'.png" alt=""/> <a class="yellow1 bold" href="/town?id='.$user_town['lost_id'].'">'.$user_town['lost_name'].'</a>, '.town_users_zvanie($town_other[0]).'</span><br/>' : '';
echo '<span class="yellow1">'.$name_race[$user['lost_race']].', <span class="bold">'.$user['lost_level'].'</span> уровень</span>';
?>
<br/><img width="120" height="150" src="/images/<?php echo ((!empty($user['lost_avatar'])) ? 'avatars/users/'.$user['lost_avatar'] : $user['lost_male'].'.jpg'); ?>">
</div>
<div>
<div class="nf2 small p5 mb5 mlra">
<div class="ml5 mr5">
<a class="bl p5 block odd" href="/equipment?id=<?php echo $user['lost_id']; ?>">
<span class="small yellow1"><img src="/images/icons/arena.gif"> Снаряжение</span> <span class="lngreen">[<?php echo count($wear_item); ?> / 9]</span>
</a>
</div>
<div class="ml5 mr5">
<a class="bl p5 block" href="/abilities?id=<?php echo $user['lost_id']; ?>">
<span class="small yellow1"><img src="/images/icons/1.gif"> Умения</span></span>
</a>
</div>
<div class="ml5 mr5">
<a class="bl p5 block odd" href="/bag">
<span class="small yellow1"><img src="/images/icons/1.gif"> Рюкзак</span> <span class="lngreen">[<?php echo count($shoot_item); ?> / 20]</span>
</a>
</div>
<div class="ml5 mr5">
<a class="bl p5 block" href="/mail">
<span class="small yellow1"><img src="/images/icons/mail.png"> Почта</span> <span class="lngreen"><?php echo (($lost_other[2] > 0) ? '[+'.$lost_other[2].']' : '' ); ?></span>
</a>
<div class="hr"></div>
</div>
</div>
<?php if ($user['lost_town_altar'] > 0) $colorr = 'lngreen'; else $colorr = 'yellow1'; ?>
<div class="hr"></div>
<div class="mt5 small">
<img src="/images/icons/strlen.png"> <span class="white">Сила: </span><span class="<?php echo $colorr.'">'.$user['lost_params_strlen']; ?></span><br/>
<img src="/images/icons/heatpoints.png"> <span class="white">Здоровье: </span><span class="<?php echo $colorr.'">'.$user['lost_params_heatpoints']; ?></span><br/>
<img src="/images/icons/protection.png"> <span class="white">Защита: </span><span class="<?php echo $colorr.'">'.$user['lost_params_protection']; ?></span><br/>
<img src="/images/icons/1.gif"> <span class="white">Сумма: </span><span class="<?php echo $colorr.'">'.$user['lost_params_summa']; ?></span>
<?php
if ($user['lost_town_altar'] > 0) {
echo '<br/><img src="/images/icons/1.gif"> <a class="white" href="/town/altar?id='.$user['lost_town'].'">Алтарь</a>: <span class="'.$colorr.'">+'.$user['lost_town_altar'].'%</span>';
}
?>
</div>
<div class="hr p5"></div>
<div class="mt5 small">
<img src="/images/icons/gold.png"> <span class="white">Золото: </span><span class="yellow1"><?php echo $user['lost_money_gold']; ?></span> <br/>
<img src="/images/icons/cristall.png"> <span class="yellow1"> <span class="white">Кристаллы: </span><span class="yellow1"><?php echo $user['lost_resourse_cristalls']; ?></span><br/>
<img src="/images/icons/irridyi.png"> <span class="white">Ирридий: </span><span class="yellow1"><?php echo $user['lost_resourse_irridyi']; ?></span>
</div>
<div class="hr p5"></div>
<div class="mt5 small">
<img width="13" height="14" src="/images/icons/experience.png"> <span class="white">Опыт: <span class="yellow1"><?php echo nmb_2($lost_exp[0]).' / '.nmb_2($cache_level_nex['lost_exp']); ?></span></span><br/>
<img width="13" height="14" src="/images/icons/experience.png"> <span class="white">Глобальный опыт: <span class="yellow1"><?php echo nmb_2($lost_exp[1]); ?></span><br/>
<?php echo ($user['lost_id'] <= 424) ? '<img width="13" height="13" src="/images/testers.png"> Почётный бета-тестер<span class="yellow1"></span><br/>' : ''; ?>
</div>
<?php
if ($user_blessing) {
if ($user['lost_blessing_time'] > (time() + (3600 * 24))) {
$time1 = (int)(($user['lost_blessing_time'] - time()) / (3600 * 24));
$time_1 = (int)($time1 * (3600 * 24) + time());
$time2 = $user['lost_blessing_time'] - $time_1;
$time2 = date("$time1 д. Hч. iм. sс.", mktime(0, 0, $time2));
} else {
$time2 = $user['lost_blessing_time'] - time();
$time2 = date("Hч. iм. sс.", mktime(0, 0, $time2));
}
echo '<div class="nf2 small p5 mt5 cntr mlra">';
echo '<div class="mb2">
<table>
<td>
<img width="30" height="30" src="/images/'.$user_blessing['image'].'">
</td>
<td class="small left" valign="top">
<span class="ml2"><span class="yellow1 small">'.$user_blessing['name'].'</span></span><br/>
<span class="ml2"><span class="white">Будет активно ещё: <span class="lngreen bold">'.$time2.'</span></span></span></td>
</table></div>';
echo '</div>';
}
?>
<div class="nf2 small p5 mt5 cntr mlra">
<div class="ml5 mr5">
<a class="sndr bl" href="/payment">
<span class="moderator">Купить золото</span>
</a>
</div>
<div class="ml5 mr5">
<a class="sndr bl" href="/refferer">
<span class="moderator">Пригласить друга</span>
</a>
</div>
<div class="ml5 mr5">
<a class="sndr bl" href="/ban/list?id=<?php echo $user['lost_id']; ?>">
<span class="moderator">История банов (<?php echo mysql_result(mysql_query("SELECT COUNT(`lost_id`) FROM `element_ban_list` WHERE `lost_user` = '$user[lost_id]'"), 0); ?>)</span>
</a>
</div>
<?php
echo ($user['lost_privilege'] == 3) ? '
<div class="ml5 cntr mr5"><a class="sndr bl" href="/element/admin/user?id='.$user['lost_id'].'">
<span class="moderator">Управление персонажом</span>
</a></div>
<div class="ml5 mr5"><a class="sndr bl" href="/basket?id='.$user['lost_id'].'">
<span class="moderator">Корзина</span>
</a></div>' : '';
?>
</div>
</div>
</div>