<!--#include file="../utf-8.asp" -->
<!--#include file="../js/Function.asp" -->
<!--#include file="../CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../js/admin.css" rel="stylesheet" type="text/css">
<title>外部导航配置!</title>
</head>
<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.

		yida_nvname = request("yida_nvname")
		yida_nvurl = request("yida_nvurl")

        if request("t")="navigation" Then 
		dim rs,sql
		set rs=server.createobject("adodb.recordset")
		sql="select * from shuaiweb_navigation" 
		rs.open sql,dbok,3,2
		rs.addnew 
			rs("title")=trim(request.form("title"))
			rs("url")=trim(request.form("url"))
			rs("sort")=trim(request.form("sort"))
			rs("wait_nayi")=trim(request.form("wait_nayi"))
			rs("wait_nasi")=trim(request.form("wait_nasi"))
			rs("yida_language")="ch"
		rs.update
		rs.close
		set rs=nothing
		response.write "<div class='yida_admin_nv_font'>√ 添加成功! 2秒后返回...</div>"
		response.write "<meta http-equiv='refresh' content='2;URL=admin_navigation.asp' />"
        response.end
		End If 
%>
	  <table width="98%" height="131" border="0"cellpadding="10" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
	  <form id="form1" name="form1" method="POST" action="admin_navigation_new.asp?t=navigation" onsubmit="return numericCheck()">
		<tr>
		  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">导航归属<br />

<select name="wait_nasi" class="winla">
<option value="0">---项级导航---</option>
<%
set rs = server.createobject("adodb.recordset")
sql="select * from shuaiweb_navigation WHERE wait_nasi = 0 ORDER BY sort ASC"
rs.open sql,dbok,1,1
do while not rs.eof
%>
<option value="<%=rs("id")%>"><%=rs("title")%></option>
<%
rs.MoveNext 
loop
rs.close
%>
</select>
</td>
	</tr>
	<tr>
	  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">导航名称<br /><input name="title" type="text" id="title" class="win" value="<%=yida_nvname%>"/></td>
	</tr>
	<tr>
	  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">导航地址<br /><input name="url1" type="text" class="win" value="<%=yida_nvurl%>" disabled /></td>
	</tr>
	<tr>
	  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">打开选项<br /><select name="wait_nayi" class="winla">
						<option value="_self">原窗口打开</option>
					   <option value="_blank">新窗口打开</option>
				  </select>
				</td>
	</tr>
	<tr>
	  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">导航排序<br /><input name="sort" type="text" id="sort" size="5" value="0" class="win2"/></td>
	</tr>
	<tr>
	  <td><input type="submit" name="Submit" value="设为导航" class="inanniu"/> <input type=button onclick="history.back(-1);"value="返 回" class="inanniu"></td>
	</tr>
			   <input name="url" type="hidden" value="<%=yida_nvurl%>"/>
  </form>
</table>
</body>
</html>