Просмотр файла element_include/element_profile_user_false.php

Размер файла: 5.13Kb
<div class="nfl p5 mt5 mb5 mlra">
	
	<div class="cntr small mb5">
	<?php
		$on_off = (!empty($online[$id])) ? 'online' : 'offline';
		echo ikonka_user($profile_user['lost_race'], $on_off).' <span class="yellow1 bold">'.$profile_user['lost_login'].'</span><br/>';
		
		if ($profile_user['lost_town'] > 0) {
			$profile_town = cache_town($profile_user['lost_town']);
			$profile_town_other = explode(':', $profile_user['lost_town_other']);
			echo '<span class="yellow1"><img src="/images/town/race_'.$profile_town['lost_race'].'.png" alt=""/> 
			<a class="yellow1 bold" href="/town?id='.$profile_town['lost_id'].'">'.$profile_town['lost_name'].'</a>, 
			'.town_users_zvanie($profile_town_other[0]).'</span><br/>';
		}
		
		echo '<span class="yellow1">'.$name_race[$profile_user['lost_race']].', <span class="bold">'.$profile_user['lost_level'].'</span> уровень</span>'; 
	?>
		<br/><img width="100" height="120" src="/images/<?php echo ((!empty($profile_user['lost_avatar'])) ? 'avatars/users/'.$profile_user['lost_avatar'] : $profile_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 $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="/mail/create?id=<?php echo $id; ?>">
					<span class="small yellow1"><img src="/images/icons/mail.png"> Отправить почту</span> <span class="lngreen"></span>
				</a>
			</div>
			<?php
				if ($user['lost_town'] > 0  AND $profile_user['lost_level'] >= $create_level) {
				if ($town_other[0] < 3 AND $town_other[0] >= 0 AND $profile_user['lost_town'] == 0 AND $profile_user['lost_race'] == $user_town['lost_race'] AND empty($priglashenie)) {
				echo '<div class="ml5 mr5">
					<a class="bl p5 block odd" href="/user?id='.$id.'&go=gorod">
					<span class="small yellow1"><img src="/images/icons/1.gif"> Пригласить в город</span> <span class="lngreen"></span>
					</a>
					</div>';
				}
				}
			?>
		</div>
	
		<?php if ($profile_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.'">'.$profile_user['lost_params_strlen']; ?></span><br/>
			<img src="/images/icons/heatpoints.png"> <span class="white">Здоровье: </span><span class="<?php echo $colorr.'">'.$profile_user['lost_params_heatpoints']; ?></span><br/>
			<img src="/images/icons/protection.png"> <span class="white">Защита: </span><span class="<?php echo $colorr.'">'.$profile_user['lost_params_protection']; ?></span><br/>
			<img src="/images/icons/1.gif"> <span class="white">Сумма: </span><span class="<?php echo $colorr.'">'.$profile_user['lost_params_summa']; ?></span>
		<?php
		if ($profile_user['lost_town_altar'] > 0) {
			echo '<br/><img src="/images/icons/1.gif"> <a class="white" href="/town/altar?id='.$profile_user['lost_town'].'">Алтарь</a>: <span class="'.$colorr.'">+'.$profile_user['lost_town_altar'].'%</span>';
		}
		?>
		</div>
		
		<div class="hr p5"></div>
		<div class="mt5 small">
		<?php echo ($user['lost_level'] >= $profile_user['lost_level']) ? '<img src="/images/icons/1.gif"> <span class="white">Опыт: <span class="yellow1">'.nmb_2($profile_exp[0]).' / '.nmb_2($cache_level_nex1['lost_exp']).'</span></span><br/>' : ''; ?>
		<?php $expllp = explode(' ', $profile_user['lost_other']); echo (empty($online[$id]) ? '<img src="/images/icons/1.gif"> <span class="white">Посл. вход: </span><span class="yellow1">'.rdate("d M H:i", $expllp[1]).'</span><br/>' : '' ); ?>
		<?php echo ($id <= 424) ? '<img width="13" height="13" src="/images/testers.png"><span class="yellow1"> Почётный бета-тестер</span><br/>' : ''; ?>
		</div>
		
		<?php
		echo ($user['lost_privilege'] == 3) ? '
		<div class="nf2 small p5 mt10 mb5 mlra">
		<div class="small p5 mb5 yellow1 cntr">Управление персонажом</div>
			<div class="ml5 mr5"><a class="sndr bl" href="/element/admin/user?id='.$id.'">
				<img src="/images/icons/1.gif"> <span class="yellow1">Управление персонажом</span>
			</a></div>
			<div class="ml5 mr5"><a class="sndr bl" href="/basket?id='.$id.'">
				<img src="/images/icons/1.gif"> <span class="yellow1">Корзина ( вещи )</span>
			</a></div>
			<div class="ml5 mr5"><a class="sndr bl" href="/ban/list?id='.$id.'">
				<img src="/images/icons/1.gif"> <span class="yellow1">История банов ('.mysql_result(mysql_query("SELECT COUNT(`lost_id`) FROM `element_ban_list` WHERE `lost_user` = '$id'"), 0).')</span>
			</a></div>
			<div class="ml5 mr5"><a class="sndr bl" href="/element/admin/mail?id='.$id.'">
				<img src="/images/icons/mail.png"> <span class="yellow1">Почта "'.$profile_user['lost_login'].'"</span>
			</a></div>
		</div>' : '';
		?>
	</div>

</div>