<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';


$set['title']='Ангар'; // заголовок страницы

include_once '../sys/inc/thead.php';
title();
echo '<link rel="stylesheet" href="style.css" type="text/css" />';
include_once 'function.php';
if($tanks_code['tank'] == NULL){
echo '<div class="trnt-block mb6">
    <div class="wrap1">
      <div class="wrap2">
        <div class="wrap3">
          <div class="wrap4">
            <div class="wrap5">
              <div class="wrap6">
                <div class="wrap7">
                  <div class="wrap8">
                    <div class="wrap-content-mini">
                      <div class="mt5 mb5 small green1 cntr">У вас в ангаре нет ни одного танк вы должны купить танк чтобы у вас появилась возможность пользоваться всеми функциями игры
					  ( <b><a href="store.php">Купить танк</a></b> )</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>';
  
include_once '../sys/inc/tfoot.php';
exit;
}

echo '<div class="p5">
  <span w:id="mainTank">
    <div class="trnt-block">
      <div class="wrap1">
        <div class="wrap2">
          <div class="wrap3">
            <div class="wrap4">
              <div class="wrap5">
                <div class="wrap6">
                  <div class="wrap7">
                    <div class="wrap8">
                      <div class="wrap-content">
                        <div class="cntr"><table>
  <tbody>
    <tr>
      <td class="ta_r">
        <a class="blck thumb fr" href="profile.php">
          <img alt="avatar" src="images/avatar/8.jpg">
          <span class="mask1"> </span>
        </a>
        <div class="clrb"></div>
        <a class="lh1 blck small sh_b" href="profile.php">профиль</a>
      </td>
    </tr>
  </tbody>
</table>';
						
						echo '<img src="images/tanks/'.$tank_lin['screen'].'">';
                        echo '</div><div class="cntr medium green2 bold"><span><span>';
						echo $tank_lin['name'];
                        echo '</span></span>
                        </div>
                        <div class="bot">
                          <table>
                            <tbody>
                              <tr>
                                <td class="w50 pr1">
                                  <a class="simple-but border" href="shop.php">
                                    <span>
                                      <span>Магазин</span>
                                    </span>
                                  </a>
                                </td>
                                <td class="w50 pl1">
                                  <a class="simple-but border" href="sclad.php">
                                    <span>
                                      <span>Склад</span>
                                    </span>
                                  </a>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </span>
  <span w:id="navigation">
    <div class="brunches-block">
      <table>
        <tbody>
          <tr>
            <td>
              <a href="price.php">
                <span class="image">
                  <img src="images/payment.jpg" alt="image">
                  <span class="mask"> </span>
                </span>Золото
              </a>
            </td>
            <td>
              <a href="stat.php">
                <span class="image">
                  <img src="images/pvp.jpg" alt="image">
                  <span class="mask"> </span>
                </span> Статистика
              </a>
            </td>
            <td>
              <a href="battle.php">
                <span class="image">
                  <img src="images/pve.jpg" alt="image">
                  <span class="mask"> </span>
                </span>Сражения
              </a>
            </td>
			<td>
  <a href="chat.php">
    <span class="image">
      <img src="images/company.jpg" alt="image">
      <span class="mask"> </span>
    </span> Чат
  </a>
</td>   </tr>
          <tr>
            <td>
              <a href="shop.php">
                <span class="image">
                  <img src="images/magazine.jpg" alt="image">
                  <span class="mask"> </span>
                </span>Магазин
              </a>
            </td>
            <td>
              <a href="sclad.php">
                <span class="image">
                  <img src="images/rating.jpg" alt="image">
                  <span class="mask"> </span>
                </span>Склад</a>
            </td>
            <td>
              <a href="store.php">
                <span class="image">
                  <img src="images/tanksmagazine.jpg" alt="image">
                  <span class="mask"> </span>
                </span>Танки</a>
            </td>';
			if (user_access('adm_panel_show')){
			echo '
<td>
  <a href="admin.php">
    <span class="image">
      <img src="images/missions.jpg" alt="image">
      <span class="mask"> </span>
    </span>  Админка</a>
</td>';}
echo '
          </tr>
        </tbody>
      </table>
    </div>
  </span>
  <div class="trnt-block mb6">
    <div class="wrap1">
      <div class="wrap2">
        <div class="wrap3">
          <div class="wrap4">
            <div class="wrap5">
              <div class="wrap6">
                <div class="wrap7">
                  <div class="wrap8">
                    <div class="wrap-content-mini">
                      <div class="mt5 mb5 small green1 cntr">World Of Tanks Mobile</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="footer">
    <div class="round-panel">
      <div class="wrp1">
        <div class="wrp2">
          <table class="esmall bold">
            <tbody>
              <tr>
                <td class="w50">';
                  echo '<a href="profile.php">'.$user['nick'].'</a>';
                echo '</td>
                <td class="w50 ta_r">
                  <a class="green1" href="/">Выйти из игры</a>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="esmall cntr mb5 cD2">
      <a href="online/">Онлайн</a>
      : 
      <span class="green1">'.mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-600)."' AND `url` like '/tanks/%'"), 0).' человек'.'</span>
    </div>
    <div class="esmall cntr mb5 cD2">
      <a href="rules.php">Об игре</a>
    </div>

  </div>
</div>';

include_once '../sys/inc/tfoot.php';
?>
