<!--#include file="../Inc/adminESCMS_conn.asp" -->
<!--#include file="../Inc/adminESCMS_config.asp" --><!--#include file="../Inc/ESCMS_Md5.asp" -->
<!--#include file="check.asp" -->
<%
If Request("act")="update" then
	Call DBConnBegin()
	Sql="select * from wysystem"
	oRs.open Sql,oConn,1,3
	oRs("Web_Name")=request.Form("web_name")
	oRs("Web_host")=request.Form("web_host")
	oRs("Web_mail")=request.Form("web_mail")
	oRs("sys_user")=request.Form("sys_user")
	oRs("Web_Copyright")=request.Form("Web_Copyright")
	IF oRs("sys_pass") <> request.Form("sys_pass") then 
	oRs("sys_pass")=EnPas(md5(trim(request.Form("sys_pass"))))
	end if
	oRs.update
	Call DBConnEnd()
%>
<SCRIPT LANGUAGE="JScript">
window.alert ("修改成功,单击确定继续!");
window.location = ("ES_system.asp");
</SCRIPT>
<%End if%>
<!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=gb2312" />
<title>添加栏目</title>
<link href="Images/admin.css" rel="stylesheet" type="text/css" />
</head>

<body>
<%
Call DBConnBegin()
Sql="select * from wysystem"
oRs.open Sql,oConn,1,1
if oRs.eof and oRs.bof then
Response.Write("系统错误，请与管理员联系")
Response.End()
End if
%>
<form id="AddPro" name="AddPro" method="post" action="?act=update">
<table width="760" border="1" cellpadding="2" cellspacing="0" bordercolor="#666666">
  <tr>
    <td height="24" colspan="2" align="center" background="Images/bg1.gif"><strong>系 统 设 置</strong></td>
    </tr>
  <tr>
    <td height="10" colspan="2" align="right">&nbsp;</td>
    </tr>
  <tr>
    <td height="24" align="right">网站名称</td>
    <td width="614"><input name="Web_Name" type="text" id="Web_Name" value="<%=oRs("Web_Name")%>" /></td>
  </tr>
  <tr>
    <td height="24" align="right">网站域名</td>
    <td><input name="Web_host" type="text" id="Web_host" value="<%=oRs("Web_host")%>" /></td>
  </tr>
  <tr>
    <td height="24" align="right">管理员邮箱</td>
    <td><input name="Web_Mail" type="text" id="Web_Mail" value="<%=oRs("Web_Mail")%>" /></td>
  </tr>
  <tr>
    <td height="24" align="right">超管用户</td>
    <td><input name="Sys_user" type="text" id="Sys_user" value="<%=oRs("Sys_user")%>" /></td>
  </tr>
  <tr>
    <td height="24" align="right">超管密码</td>
    <td><input name="Sys_pass" type="password" id="Sys_pass" value="<%=oRs("Sys_pass")%>" /></td>
  </tr>
  

  <tr>
    <td height="24" colspan="2" align="center"><input name="OK" type="submit" class="submit" id="OK" value="修 改" />
&nbsp;&nbsp;
      <input class="submit" type="reset" name="Submit2" value="重 置" /></td>
    </tr>
</table>

</form>
<%Call DBConnEnd()%>
</body>
</html>
