EngineGP/template/sections/servers/mc/index.html
2023-11-11 23:56:12 +03:00

123 lines
3.9 KiB
HTML

<h4 class="hblock_content">Игровой сервер: #[id]</h4>
<div class="block_content">
<div class="server_list">
<div class="server_img" id="image"><img src="[img]"></div>
<table>
<tbody>
<tr>
<td width="32%"><div class="server_name" id="name">[name]</div></td>
<td width="33%">Игра: [game] <u>(id: [id])</u></td>
<td width="35%">Создан: [date]</td>
</tr>
<tr>
<td>Адрес: [address]</td>
<td>Локация: [unit]</td>
<td id="time">Арендован до: [time]</td>
</tr>
<tr>
<td id="status">[status]</td>
<td>Сборка: [pack]</td>
<td id="time_end">[time_end]</td>
</tr>
<tr>
<td>
Онлайн: <span id="online">[online]</span> / [slots]
<div class="change_close" id="maps_close" onclick="server_change_close('[id]')">x</div>
<div class="change_map" id="maps_list"></div>
</td>
<td colspan="2">Тариф: [tarif]</td>
</tr>
<tr>
<td colspan="2" id="buttons">[btn]</td>
<td align="center"><a href="[home]servers/id/[id]/section/tarif"><div class="btn btn-short">Продлить аренду</div></a></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="space"></div>
<div class="left">
<h4 class="hblock_content">Показатели нагрузки</h4>
<div class="block_content width550">
<table class="table_pad">
<tbody>
<tr>
<td align="center"><div id="load_usr"></div></td>
<td align="center"><div id="load_cpu"></div></td>
<td align="center"><div id="load_ram"></div></td>
<td align="center"><div id="load_hdd"></div></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="right">
<h4 class="hblock_content">Быстрый доступ</h4>
<div class="block_content width350">
<table class="table_pad" style="height: 113px">
<tbody>
<tr>
<td>Основные настройки (server.properties)</td>
<td width="1%"><a href="[home]servers/id/[id]/section/settings/subsection/server"><div class="btn btn-short">Перейти</div></a></td>
</tr>
<tr>
<td>Снимки консоли (StartLogs)</td>
<td width="1%"><a href="[home]servers/id/[id]/section/settings/subsection/startlogs"><div class="btn btn-short">Перейти</div></a></td>
</tr>
<!-- <tr>
<td>Блокировка на оборудовании (FireWall)</td>
<td width="1%"><a href="[home]servers/id/[id]/section/settings/subsection/firewall"><div class="btn btn-short">Перейти</div></a></td>
</tr>
<tr>
<td>Планировщик задач (CronTab)</td>
<td width="1%"><a href="[home]servers/id/[id]/section/settings/subsection/crontab"><div class="btn btn-short">Перейти</div></a></td>
</tr> -->
</tbody>
</table>
</div>
</div>
<div class="space"></div>
<h4 class="hblock_content">Игроки онлайн</h4>
<div class="block_content">
<table class="table_pad">
<thead>
<tr>
<th width="1%" align="left">#</th>
<th width="99%" align="left">Ник</th>
</tr>
</thead>
<tbody id="players">
[players]
</tbody>
</table>
</div>
<script src="[js]load.js" type="text/javascript"></script>
<script type="text/javascript">
var wait = false;
$(document).ready(function(){
setTimeout(function() {update_resources('[id]')}, 500);
setTimeout(function() {update_info('[id]', true)}, 500);
setTimeout(function() {update_status('[id]', true)}, 500);
});
var $load_usr = $("#load_usr").percentageLoader({width: 105, height: 105, progress : 0, value: 'USR'});
var $load_cpu = $("#load_cpu").percentageLoader({width: 105, height: 105, progress : 0, value: 'CPU'});
var $load_ram = $("#load_ram").percentageLoader({width: 105, height: 105, progress : 0, value: 'RAM'});
var $load_hdd = $("#load_hdd").percentageLoader({width: 105, height: 105, progress : 0, value: 'SSD'});
</script>
<script src="[js]sections/servers/index.js" type="text/javascript"></script>