wpfw_ewei_shopv2/plugin/tmessage/template/web/index.html
2023-02-14 19:57:32 +08:00

94 lines
3.9 KiB
HTML

{template '_header'}
<div class="page-heading">
<span class='pull-right'>
{ifp 'tmessage.add'}
<a class='btn btn-primary btn-sm' href="{php echo webUrl('tmessage/add')}"><i class="fa fa-plus"></i> 添加新模板</a>
{/if}
</span>
<h2>群发模板管理</h2> </div>
<form action="" method="post">
<form action="./index.php" method="get" class="form-horizontal form-search" role="form">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="{EWEI_SHOP_V2_MODULE_NAME}" />
<input type="hidden" name="do" value="web" />
<input type="hidden" name="r" value="tmessage" />
<div class="page-toolbar row m-b-sm m-t-sm">
<div class="col-sm-4">
<div class="input-group-btn">
<button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
{ifp 'tmessage.delete'}
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="{php echo webUrl('tmessage',array('op'=>'delete'))}"><i class='fa fa-trash'></i> 删除</button>
{/if}
</div>
</div>
<div class="col-sm-6 pull-right">
<div class="input-group">
<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="请输入关键词"> <span class="input-group-btn">
<button class="btn btn-sm btn-primary" type="submit"> 搜索</button> </span>
</div>
</div>
</div>
</form>
{if count($list)>0}
<table class="table table-responsive table-hover">
<thead>
<tr>
<th style="width:25px;"><input type='checkbox' /></th>
<th style='width:200px;'>模板名称</th>
<th style='width:100px;'>发送次数</th>
<th style='width:100px;'>发送人数</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{loop $list $row}
<tr>
<td>
<input type='checkbox' value="{$row['id']}"/>
</td>
<td>{$row['title']}</td>
<td>{php echo number_format($row['sendtimes'])}</td>
<td>{php echo number_format($row['sendcount'])}</td>
<td>
{ifp 'tmessage.edit|tmessage.view'}
<a class='btn btn-default btn-sm' href="{php echo webUrl('tmessage/edit', array('id' => $row['id']))}" ><i class='fa fa-edit'></i> {ifp 'tmessage.edit'}编辑{else}查看{/if}</a>{/if}
{ifp 'tmessage.delete'}<a class='btn btn-default btn-sm' data-toggle='ajaxRemove' href="{php echo webUrl('tmessage/delete', array('id' => $row['id']))}" data-confirm="确认删除此模板吗?" ><i class='fa fa-trash'></i> 删除</a>{/if}
{ifp 'tmessage.send'}<a class='btn btn-primary btn-sm' href="{php echo webUrl('tmessage/send', array('id' => $row['id']))}" title='发送'><i class='fa fa-send'></i> 发送</a></td>{/if}
</tr>
{/loop}
</tbody>
</table>
{$page}
{else}
<div class='panel panel-default'>
<div class='panel-body' style='text-align: center;padding:30px;'>
暂时没有任何群发模板!
</div>
</div>
{/if}
</div>
</form>
{template '_footer'}