<div id="table_list"><h3>新闻列表</h3>
<a href="?c=admin&action=news_add">新增</a>
    <table class="table">
        <tr>
            <td>编号</td>
            <td>标题</td>
            <td>时间</td>
            <td>操作</td>
        </tr>
        <?php
        if($result)
        {foreach ($result as $row) {

        ?>
        <tr>
            <td><?php echo $row['id']?></td>
            <td><?php echo $row['title']?></td>
            <td><?php echo $row['add_time']?></td>
            <td><a href="index.php?c=admin&action=news_edit&id=<?php echo $row['id']?>">编辑</a> <a href="index.php?c=admin&action=news_del&id=<?php echo $row['id']?>">删除</a> <a href="index.php?c=admin&action=news_index&id=<?php echo $row['id']?>">首页</a>  </td>
        </tr>
        <?php }}
        else
        {
            echo "nothing";
        }?>
    </table>
    
</div>
