<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<script type="text/javascript" src="../include/calendar.php"></script>
<link rel="stylesheet" rev="stylesheet" href="../include/calendar/calendar.css" type="text/css" media="all" />
<link href=images/style.css rel=stylesheet type=text/css>
<script language="JavaScript" src="js/common.js" type="text/javascript"></script>
<body>
<br>
<table width=96% height="32" border=0 align=center cellpadding=2 cellspacing=2 class=tableborder>
  <tr class=header>
    <form name="form1" method="post" action="info.php">
      <td height=45>
	  <div style="">&nbsp;&nbsp;分类：
        <select name="cat" id="cat">
        <option value="0">请选择分类</option>
		<?php echo $cats?>
        </select>
        &nbsp;&nbsp;地区：
        <select name="area" id="area">
          <option value="0">请选择地区</option>
			<? echo $area; ?>
        </select>
        &nbsp;&nbsp;类型：
        <select name="type" id="type">
          <option value="0">请选择类型</option>
          <option value="1">已审核信息</option>
          <option value="2">未审核信息</option>
          <option value="3">推荐信息</option>
		  <option value="4">置顶信息</option>
		</select> 
        &nbsp;&nbsp;关键字：
        <input name="keywords" type="text" id="keywords">
		</div>
		<div style="margin:5px 0 5px">&nbsp;&nbsp;用户名：
        <input name="username" type="text" id="username">
        &nbsp;&nbsp;
		<input name='act' type="hidden" value="list">
        <input name="submit" type="submit" id="submit" value=" 搜 索 ">
		</div>
      </td>
    </form>
  </tr>
</table>
<br>
<table width=96% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
  <tr>
    <td height=25 class=header>&nbsp;信息列表</td>
  </tr>
  <tr>
    <td bgcolor=#FFFFFF align=center style="padding:10px;"><table width=99% align=center border=0 cellspacing=2 cellpadding=2 bgcolor="#DBEAF5">
      <form name="form" action="" method=post>
        <tr bgcolor=#e7f5f9 align="center">
          <td width="8%" height=25> 编号</td>
          <td width="38%" bgcolor="#e7f5f9">信息标题</td>
          <td width="13%" bgcolor="#e7f5f9">发布时间</td>
          <td width="8%">推荐</td>
		  <td width="7%">置顶</td>
          <td width="7%">已审核</td>
          <td width="19%">操作</td>
        </tr>
        <?php
		foreach($articles AS $row)
		{
		?>
        <tr bgcolor=#FFFFFF align=center>
          <td><input name="id[]" type="checkbox" id="id[]" value="<?=$row[id]?>" /><?=$row[id]?></td>
          <td align=left>&nbsp;&nbsp;<a href="../view.php?id=<?=$row[id]?>" target="_blank" title="浏览前台信息"><?=$row[title]?></a></td>
          <td><?=$row[postdate]?></td>
		  <td><?=$row[is_pro]?></td>
		  <td><?=$row[is_top]?></td>
          <td><?=$row[is_check]?></td>
          <td><a href="../view.php?id=<?=$row[id]?>" title="浏览" target="_blank">浏览</a> | <a href="info.php?act=edit&id=<?=$row[id]?>" title="编辑"> 编辑 </a> | <a href="info.php?act=batch&type=delete&id=<?=$row[id]?>" onClick="if(!confirm('确定要删除吗？\n\n此操作不可以恢复！'))return false;" title="删除"> 删除 </a></td>
        </tr>
        <?}?>
        <tr align=center>
          <td height="26" colspan="7" align="left" bgcolor="#e7f5f9">&nbsp;&nbsp;
                <input name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/>
                <select name="type" id="type" >
                  <option value="0">请选择操作</option>
                  <option value="is_check">审核通过</option>
                  <option value="delete">删除</option>
              </select>
                <input type="hidden" name="act" value="batch">

                <input type="submit" name="submit2" id="submit2" value=" 确 定 " onClick="if(!confirm('确定要操作吗？\n\n此操作不可以恢复！'))return false;">
            
            <? include tpl('page');?></td>
        </tr>
      </form>
    </table></td>
  </tr>
</table>
</body>
</html>