134 lines
5.6 KiB
PHP
Executable File
134 lines
5.6 KiB
PHP
Executable File
<?php
|
|
/* Smarty version 5.3.1, created on 2025-02-03 23:39:57
|
|
from 'file:user/money.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.3.1',
|
|
'unifunc' => 'content_67a0e34dc7ee22_30447839',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'f694173199a0fbc16f6ca53fbef31fb62f797e22' =>
|
|
array (
|
|
0 => 'user/money.tpl',
|
|
1 => 1712762115,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:user/header.tpl' => 1,
|
|
'file:user/footer.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_67a0e34dc7ee22_30447839 (\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 class="col-auto">
|
|
<div class="btn-list">
|
|
<a href="#" class="btn btn-primary" data-bs-toggle="modal"
|
|
data-bs-target="#apply-giftcard-dialog">
|
|
<i class="icon ti ti-cash-banknote"></i>
|
|
兑换礼品卡
|
|
</a>
|
|
</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="table-responsive">
|
|
<table class="table card-table table-vcenter text-nowrap datatable">
|
|
<thead>
|
|
<tr>
|
|
<th>事件ID</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('moneylogs'), 'moneylog');
|
|
$foreach0DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('moneylog')->value) {
|
|
$foreach0DoElse = false;
|
|
?>
|
|
<tr>
|
|
<td><?php echo $_smarty_tpl->getValue('moneylog')->id;?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('moneylog')->before;?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('moneylog')->after;?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('moneylog')->amount;?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('moneylog')->remark;?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('moneylog')->create_time;?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal modal-blur fade" id="apply-giftcard-dialog" tabindex="-1" role="dialog" aria-hidden="true">
|
|
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">兑换礼品卡</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group mb-3 row">
|
|
<div class="col">
|
|
<input id="giftcard" type="text" class="form-control"
|
|
placeholder="输入礼品卡卡号并点击兑换">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn me-auto" data-bs-dismiss="modal">取消</button>
|
|
<button id="apply-giftcard" class="btn btn-primary" data-bs-dismiss="modal"
|
|
hx-post="/user/giftcard" hx-swap="none"
|
|
hx-vals='js:{ giftcard: document.getElementById("giftcard").value }'>
|
|
兑换
|
|
</button>
|
|
</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);
|
|
}
|
|
}
|