<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">

<link href=images/style.css rel=stylesheet type=text/css>

<script language="JavaScript" src="js/common.js" type="text/javascript"></script>

</head>

<body>

<p class="add"><a href="nav.php?act=add">添加导航</a></p>

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

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

            <tr class="bgs tc">

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

              <td width="30%">导航名称</td>

			  <td width="15%">显示位置</td>

              <td width="35%">跳转地址</td>

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

            </tr>

<?

foreach($nav AS $row)

{

?>

            <tr>

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

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

			  <td><? if($row['navwz']=='top'){

					echo"PC端顶部";

				}elseif($row['navwz']=='list'){

					echo"WAP导航";

				}elseif($row['navwz']=='bottom'){

					echo"WAP底部";

				}elseif($row['navwz']=='pcbottom'){

					echo"PC底部";

				}?>			  

			  </td>

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

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

            </tr>

<?

}

?>

           <tr>

		  <td height="26" colspan="5">

			  <input name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/>

			  <input type="hidden" name="act" value="batch">

			  <input type="submit" name="submit" value=" 批量删除 " onClick="if(!confirm('确定要删除吗？\n\n此操作不可以恢复！'))return false;" />		     </td>

            </tr>

          </form>

        </table>

</body>

</html>