<?php require_once("admin_public.php");?>
<div class="admin_bread">当前位置：文章管理</div>
<div class="admin_right">
  <div class="admin_main">
    <form action="result.php" method="post" name="files_form" class="admin_info_form files_form" onsubmit="return check_delbtn(select);">
      <div class="admin_info" id="info_a">
        <h4 class="h1">页面管理</h4>
        <div class="admin_table">
          <table width="100%">
            <thead>
              <tr>
                <td style="width:4%;"><input type="checkbox" name="chkAll" id="chkAll" onclick="return CheckAll(this.form)" title="全选" /></td>
                <td style="width:10%;">文章ID</td>
                <td style="width:72%;">文章名称</td>
                <td style="width:14%;">更新时间</td>
              </tr>
            </thead>

            <?php 
			$result=singlepage();
			while($singlepage=mysql_fetch_array($result))
			{
			?>
            <tr>
              <td><input type="checkbox" name="select[]" class="checkbox" value="<?php echo $singlepage['id'];?>" /></td>
              <td><?php echo $singlepage['id'];?></td>
              <td><a href="singlepage_view.php?id=<?php echo $singlepage['id'];?>" title="<?php echo $singlepage['pagename'];?>"><?php echo $singlepage['pagename'];?></a></td>
              <td><?php echo date('Y.m.d H:s',$singlepage['pubdate']);?></td>
            </tr>
            <?php
			}
			?>
          </table>
        </div>
      </div>
      <div class="page_box">
      <input type="hidden" value="删除所选" name="singlepage_del" class="submit_del" onclick="return window.confirm(' 确定删除全部所选吗？');"/>
      <input type="hidden" value="增加文章" class="submit_del" onclick="window.location.href='singlepage_view.php'" />
    </div>
    </form >
  </div>
</div>
<?php require_once("admin_footer.php");?>