<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>左导航栏列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function Juge()
{
  if (theForm.l_parent.value == "")
  {
    alert("请选择栏目名称!");
    document.theForm.l_parent.focus();
    return false;
  }
  if (theForm.l_title.value == "")
  {
    alert("请填写左导航栏!");
    document.theForm.l_title.focus();
    return false;
  }
}
//-->
</script>

</head>

<body bgcolor="#CCCCCC" topmargin="0">
<table height="238" align="center" cellpadding="5" bgcolor="#FFFFFF">
  <tr><td valign="top">
<table width="459" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="459" height="30"><div align="center"></div></td>
  </tr>
</table>
<table width="415" height="227" border="0" align="center" cellpadding="0" cellspacing="0">
  <form name="theForm" method="post" action="leftaddadmin.asp" onSubmit="return Juge()">
    <tr> 
      <td height="38" colspan="2"><div align="center"><font size="4"><strong>增加导航栏</strong></font></div></td>
    </tr>
    <tr> 
      <td width="92" height="45">网站名称</td>

      <td width="208">
<select name="l_parent" size="1">
<option value="">请选择栏目名称</option>
<%
		set rs2=server.CreateObject("adodb.recordset")
		sql2="select * from e_board"
		rs2.open sql2,conn,1,1
		if rs2.bof or rs2.eof then
		else
		do while not rs2.eof
		response.write "<option value='"&rs2("id")&"'>"&rs2("title")&"</option>"
		rs2.movenext
		loop
		end if
		rs2.close
		set rs2=nothing
%>
        </select></td>
    </tr>
    <tr>
      <td height="43">导航栏</td>
      <td> 
        <input type="text" name="l_title"></td>
    </tr>
    <tr> 
      <td height="38">顺序</td>
      <td><input name="l_num" type="text" size="5" maxlength="5"></td>
    </tr>
    <tr> 
      <td height="63">&nbsp;</td>
      <td> <input type="submit" name="Submit" value=" 提 交 "> </td>
    </tr>
  </form>
</table>
</td></tr></table>
</body>
</html>


