134 lines
5.2 KiB
PHP
134 lines
5.2 KiB
PHP
<?php
|
|
/* Smarty version 5.3.1, created on 2025-02-24 21:13:43
|
|
from 'file:gembox/invite/up.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.3.1',
|
|
'unifunc' => 'content_67bc7087596406_80706246',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'ff341a6c4f4a0875c3abb41dab27e1b0656f0b17' =>
|
|
array (
|
|
0 => 'gembox/invite/up.tpl',
|
|
1 => 1740366544,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:gembox/layout/head.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_67bc7087596406_80706246 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/gembox/invite';
|
|
$_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);
|
|
?>
|
|
<div class="row1">
|
|
<div class="options" style="margin:10px;">
|
|
<label for="fruits">时间:</label>
|
|
<select id="dateSelect">
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'today') {?>selected<?php }?> value="today">今天</option>
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'oneWeek') {?>selected<?php }?> value="oneWeek">一周</option>
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'oneMonth') {?>selected<?php }?> value="oneMonth">一月</option>
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'threeMonth') {?>selected<?php }?> value="threeMonth">三月</option>
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'halfYear') {?>selected<?php }?> value="halfYear">半年</option>
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'oneYear') {?>selected<?php }?> value="oneYear">一年</option>
|
|
<option <?php if ($_smarty_tpl->getValue('dateSelect') == 'threeYear') {?>selected<?php }?> value="threeYear">三年</option>
|
|
</select>
|
|
</div>
|
|
<table class="listTable" style="max-width:300px;">
|
|
<thead>
|
|
<tr>
|
|
<th>code</th>
|
|
<th>点击数</th>
|
|
<th>注册数</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('tableInviteUp')['data'], 'dataRow', false, 'k');
|
|
$foreach0DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('k')->value => $_smarty_tpl->getVariable('dataRow')->value) {
|
|
$foreach0DoElse = false;
|
|
?>
|
|
<tr>
|
|
<td><?php echo $_smarty_tpl->getValue('dataRow')['code'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('dataRow')['click'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getValue('dataRow')['reg'];?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
<div class="pagination">
|
|
<button class="btn-1 btn-page" id="page-first">|<</button>
|
|
<button class="btn-1 btn-page" id="page-prev"><</button>
|
|
<span class='page-num'>
|
|
<?php
|
|
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('pageBar')['barNums'], 'pageBarNum');
|
|
$foreach1DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('pageBarNum')->value) {
|
|
$foreach1DoElse = false;
|
|
?>
|
|
<a page-go="<?php echo $_smarty_tpl->getValue('pageBarNum');?>
|
|
" href="#" class="<?php if ($_smarty_tpl->getValue('page') == $_smarty_tpl->getValue('pageBarNum')) {?> page-on <?php }?>"><?php echo $_smarty_tpl->getValue('pageBarNum');?>
|
|
</a>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
|
|
<?php if ($_smarty_tpl->getValue('pageBar')['haveMore'] == true) {?>
|
|
<span clas="page-more">..</span>
|
|
<?php }?>
|
|
</span>
|
|
<button class="btn-1 btn-page" id="page-next">></button>
|
|
<button class="btn-1 btn-page" id="page-last">>|</button>
|
|
<input type="hidden" id='limit' value="<?php echo $_smarty_tpl->getValue('count')->limit;?>
|
|
">
|
|
<input type="hidden" id='page-on' value="<?php echo $_smarty_tpl->getValue('page');?>
|
|
">
|
|
<input type="hidden" id="page-total" value="<?php echo $_smarty_tpl->getValue('tableInviteUp')['count']['total_page'];?>
|
|
">
|
|
<input type="hidden" id="page-location" value="/gembox/invite/up">
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
|
|
obj.PageGo = function (pageTotal, pageGo, limit) {
|
|
|
|
if (pageGo > pageTotal) {
|
|
return false;
|
|
}
|
|
|
|
if (pageGo <= 0) {
|
|
return false;
|
|
}
|
|
|
|
const params = new URLSearchParams();
|
|
params.set('p', pageGo);
|
|
params.set('l', limit);
|
|
params.set('dateSelect', $("#dateSelect").val())
|
|
|
|
document.location.href = "/gembox/invite/up?"+params.toString();
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
$('#dateSelect').change(function() {
|
|
var selectedValue = $(this).val();
|
|
|
|
document.location.href = "/gembox/invite/up?d="+selectedValue;
|
|
|
|
});
|
|
});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
<?php }
|
|
}
|