fuc/storage/framework/smarty/compile/9a88c8c55d2f320f2e37d1cda8bd58a111c37a14_0.file_detail.tpl.php
2025-02-23 13:30:57 +08:00

448 lines
14 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/* Smarty version 5.3.1, created on 2024-12-07 14:37:55
from 'file:gembox/draw/detail.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_6753ed438e4e56_67817610',
'has_nocache_code' => false,
'file_dependency' =>
array (
'9a88c8c55d2f320f2e37d1cda8bd58a111c37a14' =>
array (
0 => 'gembox/draw/detail.tpl',
1 => 1733550922,
2 => 'file',
),
),
'includes' =>
array (
'file:gembox/layout/head.tpl' => 1,
'file:gembox/layout/foot.tpl' => 1,
),
))) {
function content_6753ed438e4e56_67817610 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/private/var/www/wwwroot/crc.loc/resources/views/tabler/gembox/draw';
$_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>
.topBtns {
<!-- display:flex;-->
}
.listTable {
width:auto;
}
.mtop {
margin-top:20px;
}
</style>
<div class="row1">
<div class="topBtns">
<button class="btn-1" action="done" action-id="<?php echo $_smarty_tpl->getValue('id');?>
">完成</button>
<button class="btn-1" action="back" action-id="<?php echo $_smarty_tpl->getValue('id');?>
">驳回</button>
<a href="/gembox/draw"><button class="btn-1">回到申请列表</button></a>
</div>
<div class="options mtop">
<input name="options" type="radio" checked value="drawFirst">该提现申请</input>
<!-- <input name="options" type="radio" value="userFirst">该用户表</input>-->
<input name="options" type="radio" value="payBackList">返利记录100条</input>
<input name="options" type="radio" value="subUserList">其与下级用户100条</input>
<input name="options" type="radio" value="moneyLogList">该用户资金表30条</input>
<input name="options" type="radio" value="inviteUp">邀请链接30天</input>
</div>
<table class="listTable mtop" id="payBackList" name="optionTable">
<thead>
<tr>
<th>表id</th>
<th>下级id</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')['payBackList'], 'payBackRow');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('payBackRow')->value) {
$foreach0DoElse = false;
?>
<tr>
<td><?php echo $_smarty_tpl->getValue('payBackRow')['id'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('payBackRow')['userid'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('payBackRow')['total'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('payBackRow')['ref_get'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('payBackRow')['invoice_id'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('payBackRow')['datetime'];?>
</td>
</tr>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</tbody>
</table>
<table class="listTable mtop" id="userFirst" name="optionTable">
<thead>
<tr>
<th>字段</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['id'];?>
</td>
</tr>
<tr>
<td>name</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['user_name'];?>
</td>
</tr>
<tr>
<td>money</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['money'];?>
</td>
</tr>
<tr>
<td>money_aff</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['money_aff'];?>
</td>
</tr>
<tr>
<td>等级</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['class'];?>
</td>
</tr>
<tr>
<td>等级过期时间</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['class_expire'];?>
</td>
</tr>
<tr>
<td>封禁</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['is_banned'];?>
</td>
</tr>
<tr>
<td>异常</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['is_shadow_banned'];?>
</td>
</tr>
<tr>
<td>注册时间</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['reg_date'];?>
</td>
</tr>
</tbody>
</table>
<table class="listTable mtop" id="subUserList" name="optionTable">
<thead>
<tr>
<th>id</th>
<th>name</th>
<th>mail</th>
<th>money</th>
<th>money_aff</th>
<th>等级</th>
<th>等级过期时间</th>
<th>封禁</th>
<th>异常</th>
<th>注册时间</th>
<th>注册ip</th>
<th>同ip</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['id'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['user_name'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['email'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['money'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['money_aff'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['class'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['class_expire'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['is_banned'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['is_shadow_banned'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['reg_date'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('data')['userFirst']['reg_ip'];?>
</td>
<td>⭕️</td>
</tr>
<?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('data')['subUserList'], 'row');
$foreach1DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('row')->value) {
$foreach1DoElse = false;
?>
<tr>
<td><?php echo $_smarty_tpl->getValue('row')['id'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['user_name'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['email'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['money'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['money_aff'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['class'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['class_expire'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['is_banned'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['is_shadow_banned'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['reg_date'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['reg_ip'];?>
</td>
<td><?php if ($_smarty_tpl->getValue('row')['reg_ip'] == $_smarty_tpl->getValue('data')['userFirst']['reg_ip']) {?>⚠️<?php }?></td>
</tr>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</tbody>
</table>
<table class="listTable mtop" id="moneyLogList" name="optionTable">
<thead>
<tr>
<th>表id</th>
<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('data')['moneyLogList'], 'row');
$foreach2DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('row')->value) {
$foreach2DoElse = false;
?>
<tr>
<td><?php echo $_smarty_tpl->getValue('row')['id'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['user_id'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['before'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['after'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['amount'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['remark'];?>
</td>
<td><?php echo $_smarty_tpl->getValue('row')['create_time'];?>
</td>
</tr>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</tbody>
</table>
<table class="listTable mtop" id="drawFirst" name="optionTable">
<thead>
<tr>
<th>字段</th>
<th>值</th>
</tr>
</thead>
<tr>
<td>id</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['id'];?>
</td>
</tr>
<tr>
<td>uid</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['user_id'];?>
</td>
</tr>
<tr>
<td>邮箱</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['user_mail'];?>
</td>
</tr>
<tr>
<td>udst地址</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['addr'];?>
</td>
</tr>
<tr>
<td>提款金额</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['amount'];?>
</td>
</tr>
<tr>
<td>状态</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['status'];?>
</td>
</tr>
<tr>
<td>创建时间</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['create_at'];?>
</td>
</tr>
<tr>
<td>更新时间</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['update_at'];?>
</td>
</tr>
<tr>
<td>memo</td>
<td><?php echo $_smarty_tpl->getValue('data')['drawFirst']['memo'];?>
</td>
</tr>
</table>
<table class="listTable mtop" id="inviteUp" name="optionTable">
<thead>
<tr>
<th>字段</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td><?php echo $_smarty_tpl->getValue('data')['inviteUpGroup']['code'];?>
</td>
</tr>
<tr>
<td>点击数</td>
<td><?php echo $_smarty_tpl->getValue('data')['inviteUpGroup']['click'];?>
</td>
</tr>
<tr>
<td>注册数</td>
<td><?php echo $_smarty_tpl->getValue('data')['inviteUpGroup']['reg'];?>
</td>
</tr>
</tbody>
</table>
</div>
<div class="row2">
</div>
<?php echo '<script'; ?>
>
$(document).ready(function() {
// 初始化时显示选中的表格
updateTable();
// 当 radio 按钮变化时调用 updateTable 函数
$('input[name="options"]').change(function() {
updateTable();
});
function updateTable() {
const selectedValue = $('input[name="options"]:checked').val();
$("[name=optionTable]").hide();
$("#"+selectedValue).show();
}
$("[action=done]").click(function(){
if (confirm("已完成?")) {
$.ajax({
type: "POST",
url: "/gembox/draw/done",
data: {
id:$(this).attr('action-id')
},
success: function() {
if (response.status == 1) {
alert('成功');
document.location.href = document.location.href;
} else {
alert(response)
}
}
});
}
});
$('[action=back]').click(function() {
dialog({
content: '<textarea id="userInput" placeholder="驳回原因"></textarea>',
cancelValue: '取消',
cancel: function() {
// 取消时的操作
},
okValue: '确定',
ok: function() {
// 获取用户输入的内容
var userInput = $('#userInput').val();
// 发送 POST 请求
$.post('/gembox/draw/back', {
memo: userInput,
id:<?php echo $_smarty_tpl->getValue('id');?>
,
siteCode:"<?php echo $_smarty_tpl->getValue('siteCode');?>
"
}, function(response) {
// 处理服务器响应
if (response.status == 1) {
alert('成功');
document.location.href = document.location.href;
} else {
alert(response)
}
}).fail(function(response) {
// 处理请求失败
alert('失败');
});
}
}).showModal();
});
});
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->renderSubTemplate('file:gembox/layout/foot.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}