{extend name="public/base" /}
{block name="title"}搜索关键词列表{/block}

{block name="content"}
<h2 class="sub-header">搜索关键词管理</h2>[ <a href="/admin/searchword/add">增加搜索关键词</a> ]<br><br>

<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
<thead>
<tr>
  <th>编号</th>
  <th>标签</th>
  <th>文档数</th>
  <th>更新时间</th>
  <th>管理</th>
</tr>
</thead>
<tbody>
<?php foreach($posts as $row){ ?>
<tr>
  <td><?php echo $row["id"]; ?></td>
  <td><a href="/admin/searchword/edit?id=<?php echo $row["id"]; ?>"><?php echo $row["name"]; ?></a></td><td><?php echo tagarcnum($row["id"]); ?></td>
  <td><?php echo date('Y-m-d',$row["pubdate"]); ?></td>
  <td><a target="_blank" href="<?php echo get_front_url(array("type"=>"tags","tagid"=>$row["id"])); ?>">预览</a>&nbsp;<a href="/admin/searchword/edit?id=<?php echo $row["id"]; ?>">修改</a>&nbsp;<a onclick="delconfirm('/admin/searchword/del?id=<?php echo $row["id"]; ?>')" href="javascript:;">删除</a></td>
</tr>
<?php } ?>
</tbody>
</table></div><!-- 表格结束 --></form><!-- 表单结束 -->

<div class="backpages">{$page}</div>
{/block}