fuc/storage/framework/smarty/compile/1f0f2940e9899678b4dde7456922ffdc0d2c3a13_0.file_profile.tpl.php
2025-03-13 17:13:42 +08:00

178 lines
7.3 KiB
PHP
Executable File

<?php
/* Smarty version 5.3.1, created on 2025-02-04 11:15:39
from 'file:user/profile.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_67a1865bc06695_25286640',
'has_nocache_code' => false,
'file_dependency' =>
array (
'1f0f2940e9899678b4dde7456922ffdc0d2c3a13' =>
array (
0 => 'user/profile.tpl',
1 => 1712762115,
2 => 'file',
),
),
'includes' =>
array (
'file:user/header.tpl' => 1,
'file:user/footer.tpl' => 1,
),
))) {
function content_67a1865bc06695_25286640 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/user';
$_smarty_tpl->renderSubTemplate('file:user/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-6 col-lg-3">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">账户邮箱</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('user')->email;?>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">账户昵称</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('user')->user_name;?>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">账户注册时间</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('user')->reg_date;?>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">账户累计使用流量</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('user')->totalTraffic();?>
</div>
</div>
</div>
</div>
</div>
<div class="row row-deck my-3">
<div class="col-md-6 com-sm-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">最近10次成功登录记录</h3>
</div>
<div class="table-responsive">
<table class="table table-vcenter text-nowrap card-table">
<thead>
<tr>
<th>IP</th>
<th>时间</th>
<th>IP归属地</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('logins'), 'login');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('login')->value) {
$foreach0DoElse = false;
?>
<tr>
<td><?php echo $_smarty_tpl->getValue('login')->ip;?>
</td>
<td><?php echo $_smarty_tpl->getValue('login')->datetime;?>
</td>
<td><?php echo $_smarty_tpl->getValue('login')->location;?>
</td>
</tr>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-6 com-sm-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">当前在线IP</h3>
</div>
<div class="table-responsive">
<table class="table table-vcenter text-nowrap card-table">
<thead>
<tr>
<th>IP</th>
<th>IP归属地</th>
<th>节点名称</th>
<th>最后在线时间</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('ips'), 'ip');
$foreach1DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('ip')->value) {
$foreach1DoElse = false;
?>
<tr>
<td><?php echo $_smarty_tpl->getValue('ip')->ip;?>
</td>
<td><?php echo $_smarty_tpl->getValue('ip')->location;?>
</td>
<td><?php echo $_smarty_tpl->getValue('ip')->node_name;?>
</td>
<td><?php echo $_smarty_tpl->getValue('ip')->last_time;?>
</td>
</tr>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $_smarty_tpl->renderSubTemplate('file:user/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}