Files
thinksaas_lmve/app/photo/html/admin/comment_list.html
T
2023-06-22 13:33:25 +08:00

89 lines
1.9 KiB
HTML

{php include pubTemplate("header_admin")}
<!--main-->
<div class="midder">
{php include template("admin/menu");}
<div class="page">{$pageUrl}</div>
<div class="mb-3">
<form method="get" action="index.php">
<input type="hidden" name="app" value="photo">
<input type="hidden" name="ac" value="admin">
<input type="hidden" name="mg" value="comment">
<input type="hidden" name="ts" value="list">
<input type="number" name="photoid" placeholder="图片ID">
<input type="number" name="userid" placeholder="用户ID">
<input type="submit" value="搜索">
<a class="btn btn-sm btn-outline-secondary" href="index.php?app=photo&ac=admin&mg=comment&ts=list">全部</a>
</form>
</div>
<table class="table table-hover">
<thead class="thead-light fs14">
<tr><th>ID</th>
<th>UserID</th>
<th>photoid</th>
<th>内容</th>
<th>时间</th>
<th>操作</th></tr>
</thead>
<tbody class="fs12">
{loop $arrComment $key $item}
<tr>
<td>{$item['commentid']}</td>
<td>{$item['userid']}</td>
<td>{$item['photoid']} <a target="_blank" href="{tsUrl('photo','show',array('id'=>$item['photoid']))}">[查看内容]</a></td>
<td>
<div style="width: 600px;">{php echo tsTitle($item['content'])}</div>
</td>
<td>{php echo date('Y-m-d H:i:s',$item['addtime'])}</td>
<td>
<a onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=photo&ac=admin&mg=comment&ts=delete&commentid={$item['commentid']}">删除</a>
</td></tr>
{/loop}
</tbody>
</table>
</div>
{php include pubTemplate("footer_admin")}