<!--#include file="../siteconfig/conn.asp"-->
<%
if session("adminlogin")<>sessionvar then
Response.Write("<script language=javascript>alert('你尚未登录，或者超时了！请重新登录');this.location.href='login.asp';</script>")
Response.End
End if
set rs=server.createobject("adodb.recordset")
%>
<!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=gbk">
<link href="./images/admincp/admincp.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script language="JavaScript" type="text/javascript" src="js.js"></script>
<%dim Site_Name,Site_Url,Site_Memo,Site_Pass,Site_Div,Site_Copyright,Site_AdminDiv,Site_ClassSkinId
Site_Name=Request("Site_Name")
Site_ClassSkinId=Request("Site_ClassSkinId")
Site_Url=Request("Site_Url")
Site_Memo=Request("Site_Memo")
Site_Pass=Request("Site_Pass")
Site_Div=Request("Site_Div")
Site_AdminDiv=Request("Site_AdminDiv")
Site_Copyright=Request("Site_Copyright")
Menu=Request("Menu")
if Menu="UpConFig" then
   rs.open"select Site_Name,Site_Url,Site_Memo,Site_Pass,Site_Div,Site_Copyright,Site_AdminDiv,Site_ClassSkinId from ConFig",conn,1,3
   rs("Site_Name")=Site_Name
   rs("Site_ClassSkinId")=Site_ClassSkinId
   rs("Site_Url")=Site_Url
   rs("Site_Pass")=Site_Pass
   rs("Site_Div")=Site_Div
   rs("Site_AdminDiv")=Site_AdminDiv
   rs("Site_Copyright")=Site_Copyright
   rs("Site_Memo")=Site_Memo
   rs.update
   rs.close
   Response.Write("<script language=javascript>alert('网站信息修改成功');this.location.href='Admin_ConFig.asp';</script>")
   Response.End()  
else
   rs.open"select Site_Name,Site_Url,Site_Memo,Site_Pass,Site_Div,Site_Copyright,Site_AdminDiv,Site_ClassSkinId from ConFig",conn,1,3
   Site_Name=rs("Site_Name")
   Site_ClassSkinId=rs("Site_ClassSkinId")
   Site_Url=rs("Site_Url")
   Site_Pass=rs("Site_Pass")
   Site_Div=rs("Site_Div")
   Site_AdminDiv=rs("Site_AdminDiv")
   Site_Copyright=rs("Site_Copyright")
   Site_Memo=rs("Site_Memo")
   rs.close
end if
%>
<div id="append_parent"></div>
<div class="container" id="cpcontainer"><div class="smallfont"><h3>网站信息管理</h3>
<form name="ConFigFrom" method="post" action="?Menu=UpConFig" id="ConFigFrom" onSubmit="return ConFigCheck();">
    <table width="91%" class="tb tb2 fixpadding">
      <tr>
        <th colspan="18" class="partition"> </th>
      </tr>
      <tr>
        <td width="128" class="vtop td24 lineheight">网站名称：</td>
        <td width="261"><input name="Site_Name" type="text" id="Site_Name" value="<%=Site_Name%>" size="40" /></td>
        <td width="598">&nbsp;</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">网站地址：</td>
        <td class="lineheight smallfont"><input name="Site_Url" type="text" id="Site_Url" value="<%=Site_Url%>" size="40" /></td>
        <td class="lineheight smallfont">重要！请添写完整URL地址,如http://www.755s.cn/,<font color="#FF0000"> 注意：不能省略最后的 / 号</font>。</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">网站描术：</td>
        <td class="lineheight smallfont"><input name="Site_Memo" type="text" id="Site_Memo" value="<%=Site_Memo%>" size="40" /></td>
        <td class="lineheight smallfont">&nbsp;</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">网站关键字：</td>
        <td class="lineheight"><input name="Site_Pass" type="text" id="Site_Pass" value="<%=Site_Pass%>" size="40" /></td>
        <td class="lineheight">（更容易被搜索引擎找到,&quot;,&quot;号隔开）</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">网站目录：</td>
        <td class="lineheight"><input name="Site_Div" type="text" id="Site_Div" value="<%=Site_Div%>" size="40" /></td>
        <td class="lineheight"><span class="vtop td24 lineheight">如在根目录&quot;<font color="#FF0000">/</font>&quot;,如在子目录&quot;<font color="#FF0000">/子目录名/</font>&quot;</span></td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">后台目录：</td>
        <td class="lineheight"><input name="Site_AdminDiv" type="text" id="Site_AdminDiv" value="<%=Site_AdminDiv%>" size="40" /></td>
        <td class="lineheight"><span class="vtop td24 lineheight">如在目录&quot;<font color="#FF0000">Admin/</font>&quot;,如在多级目录下&quot;<font color="#FF0000">Admin/MY/</font>&quot;</span></td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">分类样式：</td>
        <td class="lineheight"><input name="Site_ClassSkinId" type="text" id="Site_ClassSkinId" value="<%=Site_ClassSkinId%>" size="40" /></td>
        <td class="lineheight"><span class="vtop td24 lineheight">设置默认分类样式ID，只能为数字ID号！</span></td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">版权信息：</td>
        <td class="lineheight"><textarea name="Site_Copyright" cols="40" rows="5" wrap="virtual" id="Site_Copyright"><%=Site_Copyright%></textarea></td>
        <td class="lineheight">&nbsp;</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">&nbsp;</td>
        <td class="lineheight"><input name="Submit" type="submit" class="SubmitCss" value="修改信息" onclick='javascript:return confirm(&quot;确定要更改网站信息吗？&quot;);' /></td>
        <td class="lineheight">&nbsp;</td>
      </tr>
    </table>
	</form>
</div>
</div>
</body>
</html>