1 line
4.5 KiB
HTML
Executable File
1 line
4.5 KiB
HTML
Executable File
<div class="row-content am-cf">
|
|
|
|
<div class="row">
|
|
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
|
|
|
|
<div class="widget am-cf">
|
|
|
|
<div class="widget-head am-cf">
|
|
|
|
<div class="widget-title am-cf">图文素材列表</div>
|
|
|
|
</div>
|
|
{if $wechat AND $wechat['status']['value'] == 1}
|
|
<div class="widget-body am-fr">
|
|
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
|
|
|
|
<div class="am-form-group">
|
|
|
|
<div class="am-btn-toolbar">
|
|
|
|
<div class="am-btn-group am-btn-group-sm">
|
|
|
|
<a class="am-btn am-btn-primary am-radius"
|
|
|
|
href="{:url('wechat.material.text/add')}">
|
|
|
|
<span class="am-icon-plus"></span> 新增
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="am-u-sm-12">
|
|
|
|
<table width="100%" class="am-table am-table-hover tpl-table-black">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>编号</th>
|
|
|
|
<th>预览</th>
|
|
|
|
<th>名称</th>
|
|
|
|
<th>MEDIA_ID</th>
|
|
|
|
<th>时间</th>
|
|
|
|
<th>操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{if !$list->isEmpty()}
|
|
|
|
{foreach $list as $item}
|
|
|
|
<tr>
|
|
|
|
<td class="am-text-middle">{$item['material_id']}</td>
|
|
|
|
<td class="am-text-middle">
|
|
|
|
<a href="{$item['file_url']}" title="点击查看大图" target="_blank">
|
|
|
|
<img src="{$item['file_url']}" width="50" height="50">
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="am-text-middle">{$item['name']}</td>
|
|
|
|
<td class="am-text-middle">{$item['media_id']}</td>
|
|
|
|
<td class="am-text-middle">{$item['create_time']}</td>
|
|
|
|
<td class="am-text-middle">
|
|
|
|
<div class="tpl-table-black-operation">
|
|
|
|
<a href="{:url('wechat.material.text/edit',['id' => $item['material_id'],'text_no' => $item['text_no']])}">
|
|
|
|
<i class="am-icon-pencil"></i> 编辑
|
|
|
|
</a>
|
|
|
|
<a href="javascript:;" class="item-del tpl-table-black-operation-del"
|
|
|
|
data-id="{$item['material_id']}">
|
|
|
|
<i class="am-icon-trash"></i> 删除
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
{else /}
|
|
|
|
<tr>
|
|
|
|
<td colspan="6" class="am-text-center">暂无记录</td>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="am-u-lg-12 am-cf">
|
|
|
|
<div class="am-fr">{:$list->render()} </div>
|
|
|
|
<div class="am-fr pagination-total am-margin-right">
|
|
|
|
<div class="am-vertical-align-middle">总记录:{:$list->total()}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{else /}
|
|
<div class="tips am-margin-bottom-sm am-u-sm-12">
|
|
<div class="pre-error">未绑定授权公众号</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
// 删除元素
|
|
|
|
$('.item-del').del('id', "{:url('wechat.material.text/delete')}");
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|