<!--#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:50px;color: #666;}
.w726{
width:726px;
}
</style>
</head>

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

webname = Request.Form("webname")
keywords = Request.Form("keywords")
description = Request.Form("description")
indexwebname = Request.Form("indexwebname")
copyright = Request.Form("copyright")


Set Rs = Server.CreateObject("ADODB.RecordSet")
Rs.Open "Select webname,keywords,description,indexwebname,copyright From inc Where id=1",Conn,1,3
If Not Rs.Bof And Not Rs.Eof Then
	Rs("webname") = webname
	Rs("keywords") = keywords
	Rs("description") = description
	Rs("indexwebname")=indexwebname
	Rs("copyright")=copyright
Else
	Rs.AddNew
	Rs("webname") = webname
	Rs("keywords") = keywords
	Rs("description") = description
	Rs("indexwebname")=indexwebname	
	Rs("copyright")=copyright

End If
Rs.Update:Rs.Close:Set Rs=Nothing:Conn.Close:Set Conn=Nothing
Response.Write "<script>alert('更新成功');top.location.href='index.php'</script>"
Response.End
End If 'end save
%>
	<form name="form1" method="post" action="?act=save">
	<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" /><input type="hidden" name="id" value="<%=id%>" /></td>
			</tr>
			<tr>
				<th width="15%">网站首页title</th>
				<td><input type="text" id="indexwebname" name="indexwebname" value="<%=TextEnCode(indexwebname)%>" class="txt1" /><input type="hidden" name="id" value="<%=id%>" /></td>
			</tr>
			<tr>
				<th width="15%">网站默认关键词</th>
				<td><input type="text" id="keywords" name="keywords" value="<%=TextEnCode(webkeywords)%>" class="txt1" /></td>
			</tr>
			<tr>
				<th width="15%">网站默认描述</th>
				<td><input type="text" id="description" name="description" value="<%=TextEnCode(webdescription)%>" 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>