<!--#include file="Conn.asp"--><%Checklogin("系统管理")%><!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理区域</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script language="javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<style>
#jmbox{
overflow:auto;zoom:1;margin-top:5px;
}
.jmlabel{
float:left;
width:70px;text-align:right;
height:22px;line-height:22px;
font-size:14px;font-weight:bold;
color:#0099CC;padding-right:4px
}
.txt1{float:left;}
.txtbox{width:820px;height:28px}
.w726{
width:726px;
}
</style>
</head>

<body>
<div id="man_zone">
<%
Act = Request.QueryString("act")
If act = "save" Then

webname = Request.Form("webname")
webnameen = Request.Form("webnameen")
keywords = Request.Form("keywords")
description = Request.Form("description")
jmon = Request.Form("jmon")
jmfrom = Request.Form("jmfrom")
jmsmtp = Request.Form("jmsmtp")
jmuser = Request.Form("jmuser")
jmpwd = Request.Form("jmpwd")
jmto = Request.Form("jmto")
cnzzid = Request.Form("cnzzid")
cnzzpwd = Request.Form("cnzzpwd")
indexwebname = Request.Form("indexwebname")
cnzzsrc = Request.Form("cnzzsrc")
zxrx = Request.Form("zxrx")

qq = Request.Form("qq")
lx1 = Request.Form("lx1")
lx2 = Request.Form("lx2")
lx3 = Request.Form("lx3")
weburl = Request.Form("weburl")
copyright = Request.Form("copyright")


nav1 = Request.Form("nav1")
nav2 = Request.Form("nav2")
nav3 = Request.Form("nav3")
nav4 = Request.Form("nav4")
nav5 = Request.Form("nav5")
nav6 = Request.Form("nav6")

Set Rs = Server.CreateObject("ADODB.RecordSet")
Rs.Open "Select webname,keywords,description,jmon,jmfrom,jmsmtp,jmuser,jmpwd,jmto,cnzzid,cnzzpwd,indexwebname,cnzzsrc,webnameen,zxrx,qq,lx1,lx2,lx3,weburl,copyright,nav1,nav2,nav3,nav4,nav5,nav6 From inc Where id=1",Conn,1,3
If Not Rs.Bof And Not Rs.Eof Then
	Rs(0) = webname:Rs(1) = keywords:Rs(2) = description:Rs(3) = jmon:Rs(4) = jmfrom:Rs(5) = jmsmtp:Rs(6) = jmuser:Rs(7) = jmpwd:Rs(8) = jmto:Rs(9) = cnzzid:Rs(10) = cnzzpwd:Rs(11) = indexwebname:Rs(12)=cnzzsrc:Rs(13)=webnameen:Rs(14)=zxrx
	Rs("qq")=qq:Rs("lx1")=lx1:Rs("lx2")=lx2:Rs("lx3")=lx3:Rs("weburl")=weburl:Rs("copyright")=copyright
	Rs("nav1")=nav1
	Rs("nav2")=nav2
	Rs("nav3")=nav3
	Rs("nav4")=nav4
	Rs("nav5")=nav5
	Rs("nav6")=nav6

Else
	Rs.AddNew:Rs(0) = webname:Rs(1) = keywords:Rs(2) = description:Rs(3) = jmon:Rs(4) = jmfrom:Rs(5) = jmsmtp:Rs(6) = jmuser:Rs(7) = jmpwd:Rs(8) = jmto:Rs(9) = cnzzid:Rs(10) = cnzzpwd:Rs(11)=indexwebname:Rs(12)=cnzzsrc:Rs(13)=webnameen:Rs(14)=zxrx
	Rs("qq")=qq:Rs("lx1")=lx1:Rs("lx2")=lx2:Rs("lx3")=lx3:Rs("weburl")=weburl:Rs("copyright")=copyright
	Rs("nav1")=nav1
	Rs("nav2")=nav2
	Rs("nav3")=nav3
	Rs("nav4")=nav4
	Rs("nav5")=nav5
	Rs("nav6")=nav6
End If
Rs.Update:Rs.Close:Set Rs=Nothing:Conn.Close:Set Conn=Nothing
Response.Write "<script>alert('更新成功');top.location.href='index.asp'</script>"
Response.End
End If 'end save
%>
	<form name="form1" method="post" action="?act=save">
<input type="hidden" name="id" value="<%=id%>" />
	<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
		<tbody>
			<tr>
				<th width="15%">网站名称</th>
				<td><input type="text" id="webname" name="webname" value="<%=TextEnCode(webname)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">导航一名称</th>
				<td><input type="text" id="nav1" name="nav1" value="<%=TextEnCode(nav1)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">导航二名称</th>
				<td><input type="text" id="nav2" name="nav2" value="<%=TextEnCode(nav2)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">导航三名称</th>
				<td><input type="text" id="nav3" name="nav3" value="<%=TextEnCode(nav3)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">导航四名称</th>
				<td><input type="text" id="nav4" name="nav4" value="<%=TextEnCode(nav4)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">导航五名称</th>
				<td><input type="text" id="nav5" name="nav5" value="<%=TextEnCode(nav5)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">导航六名称</th>
				<td><input type="text" id="nav6" name="nav6" value="<%=TextEnCode(nav6)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站英文名</th>
				<td><input type="text" id="webnameen" name="webnameen" value="<%=TextEnCode(webnameen)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站首页title</th>
				<td><input type="text" id="indexwebname" name="indexwebname" value="<%=TextEnCode(indexwebname)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站默认关键词</th>
				<td><input type="text" id="keywords" name="keywords" value="<%=TextEnCode(keywords)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站默认描述</th>
				<td><input type="text" id="description" name="description" value="<%=TextEnCode(description)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">反馈邮件提醒</th>
				<td>
					<input type="radio" id="jmon1" name="jmon" value="1" <%If jmon = 1 Then Response.Write "checked=""checked"""%> onClick="document.getElementById('jmbox').style.display='block';" /><label for="jmon1">开</label> <input type="radio" id="jmon0" name="jmon" value="0" <%If jmon = 0 Then Response.Write "checked=""checked"""%> onClick="document.getElementById('jmbox').style.display='none';" /><label for="jmon0">关</label>
					<div id="jmbox"<%If jmon = 0 Then Response.Write " style=""display:none"""%>>
						<div class="txtbox"><label class="jmlabel">发送邮箱</label><input type="text" id="jmfrom" name="jmfrom" value="<%=TextEnCode(jmfrom)%>" class="txt1 w726" /></div>
						<div class="txtbox"><label class="jmlabel">smtp地址</label><input type="text" id="jmfrom" name="jmsmtp" value="<%=TextEnCode(jmsmtp)%>" class="txt1 w726" /></div>
						<div class="txtbox"><label class="jmlabel">发送账号</label><input type="text" id="jmuser" name="jmuser" value="<%=TextEnCode(jmuser)%>" class="txt1 w726" /></div>
						<div class="txtbox"><label class="jmlabel">发送密码</label><input type="text" id="jmpwd" name="jmpwd" value="<%=TextEnCode(jmpwd)%>" class="txt1 w726" /></div>
						<div class="txtbox"><label class="jmlabel">接收邮箱</label><input type="text" id="jmto" name="jmto" value="<%=TextEnCode(jmto)%>" class="txt1 w726" /></div>
					</div>
				</td>
			</tr>
			<tr>
				<th width="15%">CNZZ访问id</th>
				<td><input type="text" id="cnzzid" name="cnzzid" value="<%=TextEnCode(cnzzid)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">CNZZ访问密码</th>
				<td><input type="password" id="cnzzpwd" name="cnzzpwd" value="<%=TextEnCode(cnzzpwd)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">CNZZ代码</th>
				<td><input type="text" id="cnzzsrc" name="cnzzsrc" value="<%=TextEnCode(cnzzsrc)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">咨询热线</th>
				<td><input type="text" id="zxrx" name="zxrx" value="<%=TextEnCode(zxrx)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">QQ号码</th>
				<td><input type="text" id="qq" name="qq" value="<%=TextEnCode(qq)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站底部联系信息1</th>
				<td><input type="text" id="lx1" name="lx1" value="<%=TextEnCode(lx1)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站底部联系信息2</th>
				<td><input type="text" id="lx2" name="lx2" value="<%=TextEnCode(lx2)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站底部联系信息3</th>
				<td><input type="text" id="lx3" name="lx3" value="<%=TextEnCode(lx3)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站网址（结尾不加 /）</th>
				<td><input type="text" id="weburl" name="weburl" value="<%=TextEnCode(weburl)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">版权信息</th>
				<td><input type="text" id="copyright" name="copyright" value="<%=TextEnCode(copyright)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th></th>
				<td><input type="submit" name="save" id="save" value="确定" class="btn1" /> <input type="reset" name="save" id="save" value="重置" class="btn1" /></td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
</body>
</html>
