{extend name="public/base" /}
{block name="title"}友情链接列表{/block}

{block name="content"}
<h2 class="sub-header">友情链接管理</h2>[ <a href="/admin/Friendlink/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>
</tr></thead>
<tbody>
<?php foreach($posts as $row){ ?><tr>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["webname"]; ?></td>
<td><?php echo $row["url"]; ?></td>
<td><a href="/admin/Friendlink/edit?id=<?php echo $row["id"]; ?>">修改</a> | <a onclick="delconfirm('/admin/Friendlink/del?id=<?php echo $row["id"]; ?>')" href="javascript:;">删除</a></td>
</tr><?php } ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

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