<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo APPADMIN; ?>?m=admin_links">友情链接</a></li>
<li><a href="<?php echo APPADMIN; ?>?m=admin_links&a=add">添加链接</a></li>
</ul>
 <table class="table table-bordered" width="100%">
 <tr>
 	<td width="7%" align="center">id</td>
    <td width="18%" align="center">名称</td>
    <td width="16%" align="center">网址</td>
    <td width="18%" align="center">时间</td>
    <td width="14%" align="center">状态</td>
    <td width="27%" align="center">操作</td>
 </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
 <tr>
   <td align="center"><?php echo $this->_var['c']['id']; ?></td>
   <td align="center"><?php echo $this->_var['c']['title']; ?></td>
   <td align="center"><?php echo $this->_var['c']['url']; ?></td>
   <td align="center"><?php echo date("Y-m-d H:m",$this->_var['c']['dateline']); ?></td>
   <td align="center"><?php if ($this->_var['c']['status']): ?><img src="/static/images/yes.gif" class="ajax_no" url="<?php echo APPADMIN; ?>?m=admin_links&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=0" rurl="<?php echo APPADMIN; ?>?m=admin_links&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=1"><?php else: ?><img src="/static/images/no.gif"  class="ajax_yes" url="<?php echo APPADMIN; ?>?m=admin_links&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=1" rurl="<?php echo APPADMIN; ?>?m=admin_links&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=0"><?php endif; ?></td>
   <td align="center"><a href="<?php echo $this->_var['c']['url']; ?>" target="_blank">查看</a> 
   	<a href="<?php echo APPADMIN; ?>?m=admin_links&a=add&id=<?php echo $this->_var['c']['id']; ?>">编辑</a> 
    <a href="<?php echo APPADMIN; ?>?m=admin_link&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
 </tr>
 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 
 </table>
</div>
</div>

<?php echo $this->fetch('footer.html'); ?>