<?php
require_once 'core/system.php';
echo only_reg();
require_once 'core/head.php';
?>




<?

$taxi_ostalos=$user['pohod_time']-time();
if($user['pohod_start'] != 0){
if($taxi_ostalos > 0){


echo " <center><img src='/style/theme/images/200x80_pahan.gif' alt=''/></center>";
echo '<div class="attention-panel">
<b><center>
Осталось гопать еще : </b>
<br>
'.(int)($taxi_ostalos/3600).' часов '.($taxi_ostalos/60%60).' минут '.($taxi_ostalos%60).' секунд </div>
';
include_once 'core/foot.php';
?>

</div>
</div>

<?
exit;
}
else{
if($user['pohod_start'] == '1'){$nagrada='300';}     #####Цены за  поход####
elseif($user['pohod_start'] == '2'){$nagrada='700';} #####Цены за  поход####
elseif($user['pohod_start'] == '3'){$nagrada='1100';} #####Цены за  поход####
elseif($user['pohod_start'] == '4'){$nagrada='2200';} #####Цены за  поход####
elseif($user['pohod_start'] == '5'){$nagrada='5000';} #####Цены за  поход####
mysql_query("UPDATE `user` SET `silver` = silver+$nagrada WHERE `id` = '".$user['id']."'");
mysql_query("UPDATE `user` SET `pohod_start` = 0 WHERE `id` = '".$user['id']."'");
mysql_query("UPDATE `user` SET `pohod` = 0 WHERE `id` = '".$user['id']."'");

echo '<div class="menu"><b>Твоя награда </b>'.$nagrada . ' <img src="/images/icon/silver.png"></div>';
?>
<?
}
}else{
?>

<?
}
?>


<div class="menu"> 
<span style="float:left"> 
<b>Время:</b> <br> 
<img src="images/icon/clock.gif" alt="">
<font color="#ff0000"><b>8 часов</b></font> 
</span> 
<span style="float:right"> 
<b>Добыча:</b><br> 
<img src="/images/icon/silver.png" alt=""> 
<font color="#5ca13a"><b>5000</b></font>
</span> 
<br><br><br> 
 
<center><a class='btn' href='pohod_go.php?pohod&amp;time=5'><span class='end'><span class='label'>Гопать</span></span></a></center>

 
</div>
<div class="menu"> 
<span style="float:left"> 
<b>Время:</b> <br> 
<img src="images/icon/clock.gif" alt="">
<font color="#ff0000"><b>4 часа</b></font> 
</span> 
<span style="float:right"> 
<b>Добыча:</b><br> 
<img src="/images/icon/silver.png" alt=""> 
<font color="#5ca13a"><b>2200</b></font>
</span> 
<br><br><br> 
 
<center><a class='btn' href='pohod_go.php?pohod&amp;time=4'><span class='end'><span class='label'>Гопать</span></span></a></center>

 
</div>
<div class="menu"> 
<span style="float:left"> 
<b>Время:</b> <br> 
<img src="images/icon/clock.gif" alt="">
<font color="#ff0000"><b>2 часа</b></font> 
</span> 
<span style="float:right"> 
<b>Добыча:</b><br> 
<img src="/images/icon/silver.png" alt=""> 
<font color="#5ca13a"><b>1100</b></font>
</span> 
<br><br><br> 
 
<center><a class='btn' href='pohod_go.php?pohod&amp;time=3'><span class='end'><span class='label'>Гопать</span></span></a></center>

 
</div>
<div class="menu"> 
<span style="float:left"> 
<b>Время:</b> <br> 
<img src="images/icon/clock.gif" alt="">
<font color="#ff0000"><b>1 час</b></font> 
</span> 
<span style="float:right"> 
<b>Добыча:</b><br> 
<img src="/images/icon/silver.png" alt=""> 
<font color="#5ca13a"><b>700</b></font>
</span> 
<br><br><br> 
 
<center><a class='btn' href='pohod_go.php?pohod&amp;time=2'><span class='end'><span class='label'>Гопать</span></span></a></center>

 
</div>
<div class="menu"> 
<span style="float:left"> 
<b>Время:</b> <br> 
<img src="images/icon/clock.gif" alt="">
<font color="#ff0000"><b>30 мин.</b></font> 
</span> 
<span style="float:right"> 
<b>Добыча:</b><br> 
<img src="/images/icon/silver.png" alt=""> 
<font color="#5ca13a"><b>300</b></font>
</span> 
<br><br><br> 
 
<center><a class='btn' href='pohod_go.php?pohod&amp;time=1'><span class='end'><span class='label'>Гопать</span></span></a></center>


 
</div>
<?include_once 'core/foot.php'?>
</div>
</body>
</html>