View file element_include/element_index_user_true_novichok.php

File size: 4.53Kb
	<?php 
	$labirint = explode(' ', $user['lost_labirint']);
	$status = StatusLabirint($labirint[0],$labirint[1]);
	$podsvetka = ''; $podsvetka_2 = ''; 
	$user_quests = user_quests($user['lost_id']);

		if ($user_mission['lost_location1'] >= 0 AND $user_mission['lost_location1'] < 3) {
			echo '<div class="nfl p5 mt5 cntr mlra">';
			echo '<img src="/images/help.jpg" alt=""/><br/>';
			echo '<div class="small ml5 lngreen">Перейдите в миссии и выиграйте три боя!</div>';
			echo '</table>';
			echo '</div>';
			$podsvetka = 'mission';
		} else if ($status == 0) {
			echo '<div class="nfl p5 mt5 cntr mlra">';
			echo '<img src="/images/help.jpg" alt=""/><br/>';
			echo '<div class="small ml5 lngreen">Проведите одну игру в лабиринте!</div>';
			echo '</table>';
			echo '</div>';
			$podsvetka = 'labirint';
		} else {
			echo '<div class="nfl p5 mt5 cntr mlra">';
			echo '<img src="/images/help.jpg" alt=""/><br/>';
			echo '<div class="small ml5 lngreen">Мы очень рады что Вы играете с нами!<br/>
				Если Вам понравилась наша игра, пожалуйста сохраните своего персонажа!<br/>
				<a class="button w70 mt5 mb5" href="save">Сохранить персонажа</a></div>';
			echo '</table>';
			echo '</div>';
			if ($user_energy[0] > 0) $podsvetka == 'mission';
			if ($status == 0 OR $status == 1 OR $status == 3) $podsvetka_2 == 'labirint';
		}
		
	?>
	
	<div class="nfl p5 mb5 mt5 mlra">
	
<div class="cntr mt5">
	<span class="inbl w30 va_t">
		<a class="atask" href="/mission">
			<span class="inbl prel">
				<img width="40" height="40" src="/images/mission.gif" alt=""/>
				<?php echo ($podsvetka == 'mission') ? '<img width="22" height="22" class="g-arrow" src="/images/green-arrow.png"/>' : ''; ?>
			</span><br/>
			<span class="small <?php echo ($podsvetka == 'mission') ? 'lngreen' : ''; ?> mt3">Миссии</span>
		</a>
	</span>
	
	<span class="inbl w30 va_t">
		<a class="atask" href="/arena">
			<span class="inbl prel">
				<img width="40" height="40" src="/images/arena.gif" alt=""/>
				<img width="22" height="22" class="g-arrow" src="/images/green-arrow.png"/>
			</span><br/>
			<span class="small lngreen mt3">Арена</span>
		</a>
	</span>
	
	<span class="inbl w30 va_t">
		<a class="atask" href="/labirint">
			<span class="inbl prel">
				<img width="40" height="40" src="/images/labirint.gif" alt=""/>
				<?php echo ($podsvetka == 'labirint' OR $podsvetka_2 == 'labirint') ? '<img width="22" height="22" class="g-arrow" src="/images/green-arrow.png"/>' : ''; ?>
			</span><br/>
			<span class="small <?php echo ($podsvetka == 'labirint' OR $podsvetka_2 == 'labirint') ? 'lngreen' : ''; ?> mt3">Лабиринт</span>
		</a>
	</span>
</div>
	
<div class="cntr mt10">
	<span class="inbl w30 va_t">
		<a class="atask" href="/quests">
			<span class="inbl prel">
				<img width="40" height="40" src="/images/index.gif" alt=""/>
				<?php echo ($user_quests['lost_new'] > 0) ? '<img width="22" height="22" class="g-arrow" src="/images/green-arrow.png"/>' : ''; ?>
			</span><br/>
			<span class="small <?php echo ($user_quests['lost_new'] > 0) ? 'lngreen' : ''; ?> mt3">Задания</span>
		</a>
	</span>
	
	<span class="inbl w30 va_t">
		<a class="atask" href="#">
			<span class="inbl prel">
				<img width="40" height="40" src="/images/gold.gif" alt=""/>
			</span><br/>
			<span class="small mt3">Банк</span>
		</a>
	</span>
	
	<span class="inbl w30 va_t">
		<a class="atask" href="#">
			<span class="inbl prel">
				<img width="40" height="40" src="/images/arena.gif" alt=""/>
			</span><br/>
			<span class="small gray1 mt3">Битва городов</span>
		</a>
	</span>
</div>
	
	
	<div class="nf2 small mt5 p5 mb5 mlra">
			<div class="ml5 mr5">
				<a class="bl p5 block odd" href="#">
					<span class="small yellow1"><img src="/images/icons/shop.png"> Магазины</span> <span class="lngreen"></span>
				</a>
			</div>
			<div class="ml5 mr5">
				<a class="bl p5 block" href="/abilities">
					<span class="small yellow1"><img src="/images/icons/shop.png"> Усиления</span> <span class="lngreen"></span>
				</a>
			</div>
			<div class="ml5 mr5">
				<a class="bl p5 block odd" href="/rating">
					<span class="small yellow1"><img src="/images/icons/rating.png"> Рейтинги</span> <span class="lngreen"></span>
				</a>
				<div class="hr"></div>
			</div>
		</div>
	
	
	
	
		
	</div>