<?php
/*
Dev.丂ᐯㄒㄖㄩ
Ver.Core.SVTO-0-0-1
*/
require_once "../../svtoConfig/_core.php";
#. Проверка на гостя
auth(0);
require_once "../../svtoConfig/_head.php";
#. Подключаем функционал зданий
require_once "../../svtoFunctions/_main/house.php";
$get = isset($_GET["id"]) && !empty($_GET["id"]) ? (string) $_GET["id"] : false;
switch($get){
default:
echo "<div class=\"cntr\">
<div style=\"height:18px\"></div>
<b>Главное здание</b>
<a href=\"/main\" class=\"button-exit\">
<svg width=\"24px\" height=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\"></path></svg>
</a>
<div style=\"height:18px\"></div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<small>Доход от зданий и новые разведданные через: 10000 мин.</small>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Рейд</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Нападение</a>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"?id=stalkers\" class=\"button\" style=\"float:left;\">Сталкеры</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Гарнизон</a>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Сейф</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Склад</a>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Мастерская</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Кланы</a>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Статистика</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Защита</a>
</div>
<div class=\"line-gray\"></div>
</div>";
break;
case "stalkers":
echo "<div class=\"cntr\">
<div style=\"height:18px\"></div>
<b>Вольные сталкеры</b>
<a href=\"/main\" class=\"button-exit\">
<svg width=\"24px\" height=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\"></path></svg>
</a>
<div style=\"height:18px\"></div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
Вольных сталкеров: 5 из 15, готовы: 5
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>";
#. Создаем выборку данных
$query = svtoQuery("SELECT * FROM `stalkers` WHERE `user` = '{$account["id"]}' ORDER BY `id` ASC");
#. Создаем цикл для вывода сталкеров пользователя
while($row = mysqli_fetch_assoc($query)){
echo "<a href=\"/stalkers?id={$row["id"]}\" class=\"stalkers-block\">
<table width=\"100%\" class=\"stalkers-inline\">
<tr>
<td width=\"100%\">
{$row["name"]}
</td>
</tr>
<tr>
<td width=\"24%\">
{$row["level"]}
</td>
<td width=\"24%\">
</td>
<td width=\"24%\">
</td>
<td width=\"24%\">
</td>
</tr>
<tr>
<td width=\"25%\">
</td>
<td width=\"25%\">
</td>
<td width=\"25%\">
</td>
<td width=\"25%\">
</td>
</tr>
</table>
</a>
<div class=\"line-gray\"></div>";
}
echo "</div>";
break;
case 2:
echo "<div class=\"cntr\">
<div style=\"height:18px\"></div>
<b>Торговец</b>
<a href=\"/main\" class=\"button-exit\">
<svg width=\"24px\" height=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\"></path></svg>
</a>
<div style=\"height:18px\"></div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<small>До подвоза нового товара: ~8000 мин.</small>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Продать предметы</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Купить предметы</a>
</div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<small>Для торговли с игроками нужен 4 ур. здания</small>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button disabled\" style=\"float:left;\">Продать на ярмарке</a>
<a href=\"#\" class=\"button disabled\" style=\"float:right;\">Купить на ярмарке</a>
</div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<small>Специальные предложения</small>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<table width=\"100%\" class=\"table-main\">
<tr>
<td width=\"70%\">
Предложение
</td>
<td width=\"30%\">
Цена
</tr>
</tr>
</table>
</div>";
break;
case 3:
echo "<div class=\"cntr\">
<div style=\"height:18px\"></div>
<b>Ученые</b>
<a href=\"/main\" class=\"button-exit\">
<svg width=\"24px\" height=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\"></path></svg>
</a>
<div style=\"height:18px\"></div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<small>До подвоза нового товара: ~8000 мин.</small>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<table width=\"100%\">
<tr>
<td width=\"50%\">
<small style=\"float:left;\">Задание: достать Артефакт: A002, 1 шт.</small>
</td>
<td width=\"50%\">
<a href=\"#\" class=\"button\" style=\"float:right;\">Задание</a>
</td>
</tr>
</table>
</div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Продать предметы</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Купить предметы</a>
</div>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
<div style=\"height:4px\"></div>
<small>Для трансмутации нужен уровень 10 здания.</small>
<div style=\"height:4px\"></div>
<div class=\"line-gray\"></div>
</div>";
break;
case 4:
echo "<div class=\"cntr\">
<div style=\"height:18px\"></div>
<b>Арена</b>
<a href=\"/main\" class=\"button-exit\">
<svg width=\"24px\" height=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\"></path></svg>
</a>
<div style=\"height:18px\"></div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Выставить бойца</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Мои бои</a>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"float:left;\">Сделать ставку</a>
<a href=\"#\" class=\"button\" style=\"float:right;\">Мои ставки</a>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<table width=\"100%\">
<tr>
<td width=\"50%\">
<small style=\"float:left;\">Мой рейтинг Арены: 1400</small>
</td>
<td width=\"50%\">
<a href=\"#\" class=\"button\" style=\"float:right;\">Задание</a>
</td>
</tr>
</table>
</div>
<div class=\"line-gray\"></div>
</div>";
break;
case 5:
echo "<div class=\"cntr\">
<div style=\"height:18px\"></div>
<b>Бар</b>
<a href=\"/main\" class=\"button-exit\">
<svg width=\"24px\" height=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\"></path></svg>
</a>
<div style=\"height:18px\"></div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<table width=\"100%\">
<tr>
<td width=\"50%\">
<small style=\"float:left;\">Задание: достать Костюм сталкера №1, 1 шт.</small>
</td>
<td width=\"50%\">
<a href=\"#\" class=\"button\" style=\"float:right;\">Задание</a>
</td>
</tr>
</table>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<small style=\"margin:15px 0;float:left;\">Вольных сталкеров: 5 из 14, готовы: 5</small>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<table width=\"100%\">
<tr>
<td width=\"50%\">
<small style=\"float:left;\">Нанять сталкера: 2000$</small>
</td>
<td width=\"50%\">
<a href=\"#\" class=\"button\" style=\"float:right;\">Нанять</a>
</td>
</tr>
</table>
</div>
<div class=\"line-gray\"></div>
<div class=\"castle-info-block\">
<a href=\"#\" class=\"button\" style=\"max-width:250px\">Поговорить с барменом</a>
</div>
<div class=\"line-gray\"></div>
</div>";
break;
}
echo "<style>.header{display:none;}</style>";
require_once "../../svtoConfig/_foot.php";