fuc/storage/framework/smarty/compile/7a6617dc01a532abd884edfca92617bd6a316f3a_0.file_system.tpl.php
2025-03-13 17:13:42 +08:00

100 lines
3.8 KiB
PHP
Executable File

<?php
/* Smarty version 5.3.1, created on 2024-12-11 20:21:27
from 'file:admin/system.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_675983c7158ff8_04504082',
'has_nocache_code' => false,
'file_dependency' =>
array (
'7a6617dc01a532abd884edfca92617bd6a316f3a' =>
array (
0 => 'admin/system.tpl',
1 => 1712762115,
2 => 'file',
),
),
'includes' =>
array (
'file:admin/header.tpl' => 1,
'file:admin/footer.tpl' => 1,
),
))) {
function content_675983c7158ff8_04504082 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/xiaofu.cloud/resources/views/tabler/admin';
$_smarty_tpl->renderSubTemplate('file:admin/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<div class="page-wrapper">
<div class="container-xl">
<div class="page-header d-print-none text-white">
<div class="row align-items-center">
<div class="col">
<h2 class="page-title">
<span class="home-title">系统状态</span>
</h2>
<div class="page-pretitle my-3">
<span class="home-subtitle">查看系统的运行状态</span>
</div>
</div>
</div>
</div>
</div>
<div class="page-body">
<div class="container-xl">
<div class="row row-deck row-cards">
<div class="col-sm-12 col-lg-12">
<div class="card">
<div class="card-body">
<table class="table table-transparent table-responsive">
<tr>
<td>SSPanel-UIM 版本</td>
<td class="text-end" id="version"><a href="#" id="version_check"><?php echo $_smarty_tpl->getValue('version');?>
</a>
</td>
</tr>
<tr>
<td>数据库版本</td>
<td class="text-end"><?php echo $_smarty_tpl->getValue('db_version');?>
</td>
</tr>
<tr>
<td>最后一次每日任务执行时间</td>
<td class="text-end"><?php echo $_smarty_tpl->getValue('last_daily_job_time');?>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
>
$('#version_check').click(function () {
$.ajax({
url: '/admin/system/check_update',
type: 'POST',
dataType: "json",
success: function (data) {
if (data.is_upto_date) {
$('.badge').remove();
$('#version').append('<span class="badge bg-green text-green-fg">已是最新版本</span>');
} else {
$('.badge').remove();
$('#version').append('<span class="badge bg-red text-red-fg">有新版本 ' + data.latest_version + ' 可用</span>');
}
}
})
});
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->renderSubTemplate('file:admin/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}