94 lines
3.0 KiB
PHP
Executable File
94 lines
3.0 KiB
PHP
Executable File
<?php
|
|
/* Smarty version 5.3.1, created on 2024-12-07 15:17:19
|
|
from 'file:gembox/node/live.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.3.1',
|
|
'unifunc' => 'content_6753f67fda0a69_99832603',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'6cc51fcf045cf095a751dd9f717592d98d84032e' =>
|
|
array (
|
|
0 => 'gembox/node/live.tpl',
|
|
1 => 1733555839,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:gembox/layout/head.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_6753f67fda0a69_99832603 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = '/private/var/www/wwwroot/crc.loc/resources/views/tabler/gembox/node';
|
|
$_smarty_tpl->renderSubTemplate('file:gembox/layout/head.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
|
|
?>
|
|
|
|
<style>
|
|
.row1 {
|
|
|
|
}
|
|
|
|
.listTable {
|
|
//margin:0px;
|
|
//display: inline-block;
|
|
width:auto;
|
|
}
|
|
|
|
.onlineUserCount {
|
|
color:var(--gembox-yellow-1);
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="row1">
|
|
|
|
<table class="listTable" >
|
|
<thead>
|
|
<tr>
|
|
<th>节点id</th>
|
|
<th>节点名称</th>
|
|
<th>启用</th>
|
|
<th>心跳</th>
|
|
<th>在线</th>
|
|
<th>五日</th>
|
|
<th>没墙</th>
|
|
<th>用户</th>
|
|
<th>详细</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('data')['data'], 'row', false, 'k');
|
|
$foreach0DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('k')->value => $_smarty_tpl->getVariable('row')->value) {
|
|
$foreach0DoElse = false;
|
|
?>
|
|
<tr>
|
|
<td><?php echo $_smarty_tpl->getValue('row')['id'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('row')['name'];?>
|
|
</td>
|
|
<td><?php if ($_smarty_tpl->getValue('row')['type'] == 1) {?>✅<?php } else { ?>❌<?php }?></td>
|
|
<td><?php if ($_smarty_tpl->getValue('row')['node_heartbeat'] > 0) {?>✅<?php } else { ?>❌<?php }?></td>
|
|
<td><?php if ($_smarty_tpl->getValue('row')['online'] == 1) {?>✅<?php } else { ?>❌<?php }?></td>
|
|
<td><?php if ($_smarty_tpl->getValue('row')['xDayActive'] == 1) {?>✅<?php } else { ?>❌<?php }?></td>
|
|
<td><?php if ($_smarty_tpl->getValue('row')['gfw_block'] != 1) {?>✅<?php } else { ?>❌<?php }?></td>
|
|
<td class="onlineUserCount"><?php echo $_smarty_tpl->getValue('row')['online_user'];?>
|
|
</td>
|
|
<td><a href="/gembox/node/live/detail/<?php echo $_smarty_tpl->getValue('siteCode');?>
|
|
/<?php echo $_smarty_tpl->getValue('row')['id'];?>
|
|
">*详细*</a></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
<?php }
|
|
}
|