2018-03-13 15:37:38 +08:00

76 lines
2.9 KiB
PHP

{extend name='admin@public/content'}
{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
<div class="layui-form-item layui-inline">
<label class="layui-form-label">手机号码</label>
<div class="layui-input-inline">
<input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入手机号码" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">短信内容</label>
<div class="layui-input-inline">
<input name="content" value="{$Think.get.content|default=''}" placeholder="请输入短信内容" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">返回结果</label>
<div class="layui-input-inline">
<input name="result" value="{$Think.get.result|default=''}" placeholder="请输入返回结果" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">发送时间</label>
<div class="layui-input-inline">
<input name="date" id='range-date' value="{$Think.get.date|default=''}" placeholder="请选择发送时间" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
</div>
</form>
<!-- 表单搜索 结束 -->
<form onsubmit="return false;" data-auto="true" method="post">
<input type="hidden" value="resort" name="action"/>
<table class="layui-table" lay-skin="line">
<thead>
<tr>
<th class='list-table-check-td'>
<input data-auto-none="" data-check-target='.list-check-box' type='checkbox'/>
</th>
<th class='text-left nowrap'>手机号</th>
<th class='text-left nowrap'>短信内容</th>
<th class='text-left nowrap'>返回结果</th>
<th class='text-left nowrap'>发送时间</th>
</tr>
</thead>
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class='list-table-check-td'>
<input class="list-check-box" value='{$vo.id}' type='checkbox'/>
</td>
<td class='text-left nowrap'>{$vo.phone}</td>
<td class='text-left nowrap'>{$vo.content}</td>
<td class='text-left nowrap'>{$vo.result}</td>
<td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
</tr>
{/foreach}
</tbody>
</table>
{if isset($page)}<p>{$page}</p>{/if}
<script>
window.form.render();
window.laydate.render({range: true, elem: '#range-date'});
</script>
</form>
{/block}