<!--#include file = admin_chk.asp -->
<!--#include file="admin_conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body>
<br><table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="20" bgcolor="f1f1f1"> 
      <div align="center"><font color="#000000">导航菜单管理</font></div>
    </td>
  </tr>
  <tr> 
    <td height="44" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><IMG height=5 src="images/block.gif" width=1></td>
        </tr>
      </table> 
      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr bgcolor="f1f1f1"> 
          <td width="9%"> 
            <div align="center">分类名称</div></td>
          <td width="6%"> 
            <div align="center">链接</div></td>
          <td width="6%"> 
            <div align="center">排序</div></td>
			<td width="6%"> 
            <div align="center">显示</div></td>
          <td width="9%"> 
            <div align="center">修改删除</div></td>
        </tr>
        <%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from menu order by menuorder ",conn,1,1
		  dim paixu
		  if rs.EOF and rs.BOF then
		  response.Write "<div align=center><font color=red>还没有分类</font></center>"
		  paixu=0
		  else
		  do while not rs.EOF
		  %>
        <form name="form1" method="post" action="savemenu.asp?action=edit&id=<%=int(rs("id"))%>">
          <tr bgcolor="#FFFFFF"> 
            <td> 
              <div align="center"> 
                <input name="menuname" class="wenbenkuang" type="text" id="menuname" size="12" value="<%=trim(rs("menuname"))%>">
              </div></td>
			   <td> 
              <div align="center"> 
                <input name="url" type="text" class="wenbenkuang" id="url" size="15" value="<%=rs("url")%>">
              </div></td>
			   <td> 
              <div align="center"> 
                <input name="menuorder" type="text" class="wenbenkuang" id="menuorder" size="4" value="<%=int(rs("menuorder"))%>">
              </div> <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
            <td> 
              <div align="center">
                
                <input name="xx" type="checkbox" class="Gray" id="xx" value="1" <% if rs("xx")=true then  %> checked <%end if %>>
              </div></td>
            
            <td> 
              <div align="center"> 
                <input type="submit" name="Submit" value="修改" class="go-wenbenkuang">
                <a href="savemenu.asp?id=<%=int(rs("id"))%>&action=del" onClick="return confirm('您确定进行删除操作吗？')"><font color=red>删</font></a> 
              </div></td>
          </tr>
        </form>
        <%rs.MoveNext
          loop
          paixu=rs.RecordCount
          end if%>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><IMG height=5 src="images/block.gif" width=1></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="20" bgcolor="f1f1f1"> 
      <div align="center"><font color="#000000">添加导航菜单</font></div>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><IMG height=5 src="images/block.gif" width=1></td>
        </tr>
      </table> 
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="0">
        <tr> 
          <td width="9%"> <div align="center">分类名称</div></td>
		  <td width="6%"> <div align="center">链接</div></td>
          <td width="6%"> <div align="center">排序</div></td>
        <td width="6%"> <div align="center">显示</div></td>
          <td width="9%">
<div align="center">确定操作</div></td>
        </tr>
        <form name="form1" method="post" action="savemenu.asp?action=add">
          <tr> 
            <td> <div align="center"> 
                <input name="menuname2" type="text" class="wenbenkuang" id="menuname2" size="12">
              </div></td>
			              <td> <div align="center"> 
                <input name="url2" class="wenbenkuang" type="text" id="url2" size="15">
              </div></td>
			   <td> <div align="center"> 
                <input name="menuorder2" class="wenbenkuang" type="text" id="menuorder2" size="4" value="<%=paixu+1%>">
              </div></td>
            <td> <div align="center">
              <input name="xx2" type="checkbox" id="xx2" value="1">
            </div></td>
          
            <td><div align="center"> 
                <input type="submit" name="Submit3" value="添加" class="go-wenbenkuang">
              </div></td>
          </tr>
        </form>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><IMG height=5 src="images/block.gif" width=1></td>
        </tr>
      </table> 
    </td>
  </tr>
</table>
<br>
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td  rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="20"> 
                              <div align="center"><font color="#000000">操作注意事项及说明</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
                                <tr> 
                                  <td height="16"><font color="#FF0000">·请注意分类名称不要含有非法字符。<br>
                                    ·进行删除操作的同时，一定要先删除此大类下包含的所有小分类和新闻。</font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
 
