<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>
function chkform(){
	if(document.form.navname.value==""){
		alert('请输入导航名称');
		document.form.navname.focus();
		return false;
	}
	if(document.form.url.value==""){
		alert('请输入url！');
		document.form.url.focus();
		return false;
	}
}
</script>
</head>
<body>
<br />
<table width=96% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>

<tr>
  <td height=25  class=header>&nbsp;&nbsp;添加导航</td>
</tr>

<tr>
<td height="133" align=center bgcolor=#FFFFFF>

<table width="96%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<form method="post" name="form" action="nav.php?act=insert" onSubmit="return chkform()">

<tr bgcolor=#FFFFFF>
  <td width="40%" height=25><div align="right">导航名称：</div></td>
  <td width="60%"><input name=navname type=text id="navname" value="" size=32  class="dfinput">
    *</td>
 </tr>
<tr bgcolor=#FFFFFF>
  <td width="40%" height=25><div align="right">跳转网址：</div></td>
  <td><input name=url type=text id="url" value="" size=45  class="dfinput">
    * 非本地链接前面必须加http://</td>
</tr>
<tr bgcolor=#FFFFFF>
  <td width="40%" height=12><div align="right">在新窗口中打开：</div></td>
  <td><label>
    <select name="target" id="target">
      <option value="_blank">是</option>
      <option value="_self">否</option>
    </select>
  </label></td>
</tr>
<tr bgcolor=#FFFFFF>
  <td width="40%" height=12><div align="right">排序：</div></td>
  <td><input name=order type=text id="order" value="<?=$maxorder?>" size=10></td>
</tr>
<tr bgcolor=#FFFFFF>
  <td colspan=3 height=27 align=center>
 <input type="submit" name="addLink" value=" 提 交 " class="newFormBtn_red2"  />&nbsp;
 <input type=reset name=submit2 value=" 重置 " >  </td>
</tr>
</form>
</table>

</td>
</tr>
</table>
</body>
</html>