fuc/storage/framework/smarty/compile/4c6187e8e3020bdd926c735f1933819e9879e4f5_0.file_sub.tpl.php
2025-03-27 19:56:30 +08:00

110 lines
3.7 KiB
PHP
Executable File

<?php
/* Smarty version 5.3.1, created on 2025-03-03 23:49:35
from 'file:admin/log/sub.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_67c5cf8f7ee7e1_22497550',
'has_nocache_code' => false,
'file_dependency' =>
array (
'4c6187e8e3020bdd926c735f1933819e9879e4f5' =>
array (
0 => 'admin/log/sub.tpl',
1 => 1740366544,
2 => 'file',
),
),
'includes' =>
array (
'file:admin/header.tpl' => 1,
'file:datatable.tpl' => 1,
'file:admin/footer.tpl' => 1,
),
))) {
function content_67c5cf8f7ee7e1_22497550 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/admin/log';
$_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 my-3">订阅记录</span>
</h2>
<div class="page-pretitle">
<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-12">
<div class="card">
<div class="table-responsive">
<table id="data-table" class="table card-table table-vcenter text-nowrap datatable">
<thead>
<tr>
<?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('details')['field'], 'value', false, 'key');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('key')->value => $_smarty_tpl->getVariable('value')->value) {
$foreach0DoElse = false;
?>
<th><?php echo $_smarty_tpl->getValue('value');?>
</th>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $_smarty_tpl->renderSubTemplate('file:datatable.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<?php echo '<script'; ?>
>
tableConfig.serverSide = true;
tableConfig.ajax = {
url: '/admin/subscribe/ajax',
type: 'POST',
dataSrc: 'subscribes.data'
};
tableConfig.order = [
[0, 'desc']
];
tableConfig.columnDefs = [
{
orderable: false,
targets: [4]
},
];
let table = new DataTable('#data-table', tableConfig);
function loadTable() {
table;
}
loadTable();
<?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);
}
}