<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>

<table width=100% height="28" border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>

  <tr>

    <form name="form1" method="post" action="juan.php">

      <td>

	  分类：

        <select name="cat" id="cat">

        <option value="0">全部分类</option>

		<?php echo $cats?>

        </select>

        &nbsp;&nbsp;类型：

        <select name="type" id="type">

          <option value="0">全部类型</option>

          <option value="1" <? if($typeid=='1') echo "selected=selected"; ?>>已审核</option>

          <option value="2" <? if($typeid=='2') echo "selected=selected"; ?>>未审核</option>

		</select>
		<input name='act' type="hidden" value="list">

        <input name="submit" type="submit" id="submit" value="搜索">

      </td>

    </form>

  </tr>

</table>

<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>

      <form name="form" action="" method=post>

        <tr class="bgs tc">

          <td width="10%">编号</td>

          <td width="35%">券</td>

		  <td width="20%">发布商家</td>

          <td width="15%">发布时间</td>

          <td width="5%">已审核</td>

          <td width="15%">操作</td>

        </tr>

        <?php

		foreach($juan AS $row)

		{

		?>

        <tr>

          <td><input name="id[]" type="checkbox" id="id[]" value="<?=$row[id]?>" /><?=$row[id]?></td>

          <td><a href="../view.php?id=<?=$row[id]?>" target="_blank">
<?=$row['title']?></a></td>

		  <td><a href="../com.php?act=view&id=<?=$row[cid]?>" target="_blank"><?=$row[comname]?></a></td>

          <td><?=$row[postdate]?></td>

          <td><?=$row[is_check]?></td>

          <td class="tda"><a href="juan.php?act=edit&id=<?=$row[id]?>" title="编辑">编辑</a> <a href="juan.php?act=batch&type=delete&id=<?=$row[id]?>" onClick="if(!confirm('确定要删除吗？\n\n此操作不可以恢复！'))return false;" title="删除">删除</a></td>

        </tr>

        <?}?>

        <tr>

          <td colspan="6">&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>

</body>

</html>