<!--#include file="../../Conn.asp" -->
<!--#include file="../../Comm/Site_Class.asp" -->
<%
PagePath = "../../"

Set Qsite = New Site_Class

Qsite.SiteConfig_Master()

%>
<!--#include file="../Check_Login.asp" -->
<%
Qsite.Check_AdminFlag(arrAdminFlag(0 , 1))

If Request.Form <> "" Then
	SaveSiteConfig()
End If

Dim CompanyName,Addr,Tel,Fax,QQ2,Email

Set Rs = server.createobject("ADODB.Recordset")

Sub SaveSiteConfig()
	Dim SiteName,SiteUrl,SiteLogo,SiteIcp,SiteClose,SiteCloseNote,SiteMeta1,SiteMeta2,Sitediqu,Sitefbt,Sitegjc1,Sitegjc2,Sitegjc3,Sitegjc4,Sitegjc5,Sitegjc6,Sitegjc7
	Dim SiteQQ,QQ1
	Dim NewPerSh,NewComSh,PerRegClose,PerRegCloseNote,ComRegClose,ComRegCloseNote,RegNoName
	Dim IndNewZp,IndNewJl,MailSmtp,MailUserName,MailPassWord,maildizhi
	Dim CompanyName,Addr,Tel,Fax,QQ2,Email
	Dim jianjie1,jianjie2,jianjie3,jianjie4,jianjie5,jianjie6,jianjie7,tongji,zhdhmc,zhdhwz
	
	SiteName = Qsite.chgStr(Trim(Request.Form("SiteName")))
	SiteUrl = Qsite.chgStr(Trim(Request.Form("SiteUrl")))
	Sitediqu = Qsite.chgStr(Trim(Request.Form("Sitediqu")))
	Sitefbt = Qsite.chgStr(Trim(Request.Form("Sitefbt")))
	Sitegjc1 = Qsite.chgStr(Trim(Request.Form("Sitegjc1")))
	Sitegjc2 = Qsite.chgStr(Trim(Request.Form("Sitegjc2")))
	Sitegjc3 = Qsite.chgStr(Trim(Request.Form("Sitegjc3")))
	Sitegjc4 = Qsite.chgStr(Trim(Request.Form("Sitegjc4")))
	Sitegjc5 = Qsite.chgStr(Trim(Request.Form("Sitegjc5")))
	Sitegjc6 = Qsite.chgStr(Trim(Request.Form("Sitegjc6")))
	Sitegjc7 = Qsite.chgStr(Trim(Request.Form("Sitegjc7")))
	jianjie1 = Qsite.chgStr(Trim(Request.Form("jianjie1")))
	jianjie2 = Qsite.chgStr(Trim(Request.Form("jianjie2")))
	jianjie3 = Qsite.chgStr(Trim(Request.Form("jianjie3")))
	jianjie4 = Qsite.chgStr(Trim(Request.Form("jianjie4")))
	jianjie5 = Qsite.chgStr(Trim(Request.Form("jianjie5")))
	jianjie6 = Qsite.chgStr(Trim(Request.Form("jianjie6")))
	jianjie7 = Qsite.chgStr(Trim(Request.Form("jianjie7")))
	tongji = Qsite.chgStr(Trim(Request.Form("tongji")))
	zhdhmc = Qsite.chgStr(Trim(Request.Form("zhdhmc")))
	zhdhwz = Qsite.chgStr(Trim(Request.Form("zhdhwz")))
	SiteLogo = Qsite.chgStr(Trim(Request.Form("SiteLogo")))
	SiteIcp = Qsite.chgStr(Trim(Request.Form("SiteIcp")))
	SiteClose = Qsite.chgStr(Trim(Request.Form("SiteClose")))
	SiteCloseNote = Qsite.chgStrHtml(Trim(Request.Form("SiteCloseNote")))
	SiteMeta1 = Qsite.chgStr(Trim(Request.Form("SiteMeta1")))
	SiteMeta2 = Qsite.chgStr(Trim(Request.Form("SiteMeta2")))
	IndNewZp = Qsite.chgStr(Trim(Request.Form("IndNewZp")))
	IndNewJl = Qsite.chgStr(Trim(Request.Form("IndNewJl")))
	MailSmtp = Qsite.chgStr(Trim(Request.Form("MailSmtp")))
	maildizhi = Qsite.chgStr(Trim(Request.Form("maildizhi")))
	MailUserName = Qsite.chgStr(Trim(Request.Form("MailUserName")))
	MailPassWord = Qsite.chgStr(Trim(Request.Form("MailPassWord")))
	
	SiteQQ = Qsite.chgStr(Trim(Request.Form("SiteQQ")))
	CompanyName = Qsite.chgStr(Trim(Request.Form("CompanyName")))
	Addr = Qsite.chgStr(Trim(Request.Form("Addr")))
	Tel = Qsite.chgStr(Trim(Request.Form("Tel")))
	Fax = Qsite.chgStr(Trim(Request.Form("Fax")))
	QQ1 = Qsite.chgStr(Trim(Request.Form("QQ1")))
	QQ2 = Qsite.chgStr(Trim(Request.Form("QQ2")))
	Email = Qsite.chgStr(Trim(Request.Form("Email")))
	
	NewPerSh = Qsite.chgStr(Trim(Request.Form("NewPerSh")))
	NewComSh = Qsite.chgStr(Trim(Request.Form("NewComSh")))
	PerRegClose = Qsite.chgStr(Trim(Request.Form("PerRegClose")))
	PerRegCloseNote = Qsite.chgStr(Trim(Request.Form("PerRegCloseNote")))
	ComRegClose = Qsite.chgStr(Trim(Request.Form("ComRegClose")))
	ComRegCloseNote = Qsite.chgStr(Trim(Request.Form("ComRegCloseNote")))
	RegNoName = Qsite.chgStr(Trim(Request.Form("RegNoName")))
	
	If SiteName = "" Or IsNull(SiteName) Then
		Qsite.ShowMsg "请输入网站名称" , ""
	End If
	If SiteUrl = "" Or IsNull(SiteUrl) Then
		Qsite.ShowMsg "请输入网站域名" , ""
	End If
	If SiteLogo = "" Or IsNull(SiteLogo) Then
		Qsite.ShowMsg "请输入网站Logo" , ""
	End If
	If SiteClose <> "1" Then SiteClose = "0"
	If NewPerSh <> "1" Then NewPerSh = "0"
	If NewComSh <> "1" Then NewComSh = "0"
	If PerRegClose <> "1" Then PerRegClose = "0"
	If ComRegClose <> "1" Then ComRegClose = "0"
	If IndNewZp = "" Or Not IsNumeric(IndNewZp) Then IndNewZp = 40
	If IndNewJl = "" Or Not IsNumeric(IndNewJl) Then IndNewJl = 20
	
	Set Rs = server.createobject("ADODB.Recordset")
	
	Rs.Open "select * from SiteConfigTbl where ConfigId = 1" , Conn , 3 , 2
	If Not Rs.Eof Then
		Rs("SiteName") = SiteName
		Rs("SiteUrl") = SiteUrl
		Rs("SiteLogo") = SiteLogo
		Rs("Sitediqu") = Sitediqu
		Rs("Sitefbt") = Sitefbt
		Rs("Sitegjc1") = Sitegjc1
		Rs("Sitegjc2") = Sitegjc2
		Rs("Sitegjc3") = Sitegjc3
		Rs("Sitegjc4") = Sitegjc4
		Rs("Sitegjc5") = Sitegjc5
		Rs("Sitegjc6") = Sitegjc6
		Rs("Sitegjc7") = Sitegjc7
		Rs("jianjie1") = jianjie1
		Rs("jianjie2") = jianjie2
		Rs("jianjie3") = jianjie3
		Rs("jianjie4") = jianjie4
		Rs("jianjie5") = jianjie5
		Rs("jianjie6") = jianjie6
		Rs("jianjie7") = jianjie7
		Rs("tongji") = tongji
		Rs("zhdhmc") = zhdhmc
		Rs("zhdhwz") = zhdhwz
		Rs("SiteIcp") = SiteIcp
		Rs("SiteClose") = SiteClose
		Rs("SiteCloseNote") = SiteCloseNote
		Rs("SiteMeta1") = SiteMeta1
		Rs("SiteMeta2") = SiteMeta2
		Rs("IndNewZp") = IndNewZp
		Rs("IndNewJl") = IndNewJl
		Rs("SiteQQ") = SiteQQ
		Rs("NewPerSh") = NewPerSh
		Rs("NewComSh") = NewComSh
		Rs("PerRegClose") = PerRegClose
		Rs("PerRegCloseNote") = PerRegCloseNote
		Rs("ComRegClose") = ComRegClose
		Rs("ComRegCloseNote") = ComRegCloseNote
		Rs("RegNoName") = RegNoName
		Rs("MailSmtp") = MailSmtp
		Rs("Maildizhi") = Maildizhi
		Rs("MailUserName") = MailUserName
		Rs("MailPassWord") = MailPassWord
		Rs("CompanyName") = CompanyName
		Rs("Addr") = Addr
		Rs("Tel") = Tel
		Rs("Fax") = Fax
		Rs("QQ2") = QQ2
		Rs("Email") = Email
		Rs.Update
	End If
	Rs.Close
	
	
	Qsite.ShowMsg "基本配置修改成功" , "SiteConfig.asp"
End Sub

%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>基本配置</title>
<link href="../skins/css/main.css" rel="stylesheet" type="text/css">
<script language="javascript">
function UploadLogo()
{
	window.open('Upload_Logo.asp','Upload','width=380px,height=90px,left=300,top=300');
} 
</script>
</head>

<body>
<form name="ConfigForm" method="post" action="SiteConfig.asp" style="margin:0">
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" colspan="2" class="td_title">网站信息</td>
		</tr>
		<tr>
			<td height="23" class="td_content">网站名称：</td>
			<td class="td_content"><input name="SiteName" type="text" class="input_1" id="SiteName" value="<%=Qsite.SiteName%>" size="30"></td>
		</tr>
		<tr>
			<td height="23" class="td_content">网站副标题：</td>
			<td class="td_content"><input name="Sitefbt" type="text" class="input_1" id="Sitefbt" value="<%=Qsite.Sitefbt%>" size="30"></td>
		</tr>
		<tr>
		  <td height="23" class="td_content">网站域名：</td>
	      <td class="td_content"><input name="SiteUrl" type="text" class="input_1" id="SiteUrl" value="<%=Qsite.SiteUrl%>" size="60"> *不用加http://</td>
	  </tr>
		<tr>
		  <td height="23" class="td_content">网站地区：</td>
		  <td class="td_content"><input name="Sitediqu" type="text" class="input_1" id="Sitediqu" value="<%=Qsite.Sitediqu%>" size="30"></td>
	  </tr>
		<tr>
			<td height="23" class="td_content">网站Logo：</td>
			<td class="td_content"><input name="SiteLogo" type="text" class="input_1" id="SiteLogo" value="<%=Qsite.SiteLogo%>" size="60">
			<input name="Submit" type="button" class="input_1" value="上传Logo" onClick="UploadLogo();">
			(规格为：208×76)</td>
		</tr>
		<tr>
			<td height="23" class="td_content">网站ICP备案：</td>
			<td class="td_content"><input name="SiteIcp" type="text" class="input_1" id="SiteIcp" value="<%=Qsite.SiteIcp%>" size="30"></td>
		</tr>
		<tr>
			<td width="18%" height="23" class="td_content">网站状态：</td>
			<td width="82%" class="td_content"><input name="SiteClose" type="radio" value="0" <%If Qsite.SiteClose = "0" Then Response.Write("checked")%>>
				开启 
				<input type="radio" name="SiteClose" value="1" <%If Qsite.SiteClose = "1" Then Response.Write("checked")%>>
				关闭</td>
		</tr>
		<tr>
			<td class="td_content">网站关闭时描述：</td>
			<td class="td_content"><textarea name="SiteCloseNote" cols="80" rows="8" class="input_1" id="SiteCloseNote"><%=Qsite.SiteCloseNote%></textarea>
			(支持MTHL)</td>
		</tr>
		<tr>
			<td class="td_content">网站META关键词：</td>
			<td class="td_content"><input name="SiteMeta1" type="text" class="input_1" id="SiteMeta1" value="<%=Qsite.SiteMeta1%>" size="60">
			(多个关键词请用,分隔)</td>
		</tr>
		<tr>
			<td height="23" class="td_content">网站META网页描述：</td>
			<td class="td_content"><input name="SiteMeta2" type="text" class="input_1" id="SiteMeta2" value="<%=Qsite.SiteMeta2%>" size="60">
			(多个关键词请用,分隔)</td>
		</tr>
		<tr>
		  <td height="23" class="td_content">首页搜索关键词：</td>
		  <td class="td_content"><input name="Sitegjc1" type="text" class="input_1" id="Sitegjc1" value="<%=Qsite.Sitegjc1%>" size="10">&nbsp;&nbsp;<input name="Sitegjc2" type="text" class="input_1" id="Sitegjc2" value="<%=Qsite.Sitegjc2%>" size="10">&nbsp;&nbsp;<input name="Sitegjc3" type="text" class="input_1" id="Sitegjc3" value="<%=Qsite.Sitegjc3%>" size="10">&nbsp;&nbsp;<input name="Sitegjc4" type="text" class="input_1" id="Sitegjc4" value="<%=Qsite.Sitegjc4%>" size="10">&nbsp;&nbsp;<input name="Sitegjc5" type="text" class="input_1" id="Sitegjc5" value="<%=Qsite.Sitegjc5%>" size="10">&nbsp;&nbsp;<input name="Sitegjc6" type="text" class="input_1" id="Sitegjc6" value="<%=Qsite.Sitegjc6%>" size="10">&nbsp;&nbsp;<input name="Sitegjc7" type="text" class="input_1" id="Sitegjc7" value="<%=Qsite.Sitegjc7%>" size="10"></td>
	  </tr>
		<tr>
		  <td height="23" class="td_content">网页统计代码：</td>
	      <td class="td_content"><input name="tongji" type="text" class="input_1" id="tongji" value="<%=Qsite.tongji%>" size="100"></td>
	  </tr>
	  <tr>
		  <td height="23" class="td_content">最后导航名称：</td>
	      <td class="td_content"><input name="zhdhmc" type="text" class="input_1" id="zhdhmc" value="<%=Qsite.zhdhmc%>" size="30">&nbsp;&nbsp;&nbsp;&nbsp;网址：<input name="zhdhwz" type="text" class="input_1" id="zhdhwz" value="<%=Qsite.zhdhwz%>" size="60"></td>
	  </tr>
	</table>
	<br>
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
      <tr>
        <td height="25" colspan="2" class="td_title">邮件信息</td>
      </tr>
      <tr>
        <td width="18%" height="11" class="td_content">SMTP邮件发送服务器：</td>
        <td width="82%" class="td_content"><input name="MailSmtp" type="text" class="input_1" id="MailSmtp" value="<%=Qsite.MailSmtp%>" size="60">        </td>
      </tr>
      <tr>
        <td height="11" class="td_content">邮箱地址：</td>
        <td width="82%" class="td_content"><input name="Maildizhi" type="text" class="input_1" id="Maildizhi" value="<%=Qsite.Maildizhi%>" size="60"></td>
      </tr>
      <tr>
        <td height="23" class="td_content">登录用户：</td>
        <td class="td_content"><input name="MailUserName" type="text" class="input_1" id="MailUserName" value="<%=Qsite.MailUserName%>" size="60"></td>
      </tr>
      <tr>
        <td height="23" class="td_content">登录密码：</td>
        <td class="td_content"><input name="MailPassWord" type="password" class="input_1" id="MailPassWord" value="<%=Qsite.MailPassWord%>" size="60">
          (多个电话请用&quot;,&quot;分隔)</td>
      </tr>
    </table>
	<br>
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" colspan="2" class="td_title">联系信息</td>
		</tr>
		<tr>
			<td height="23" class="td_content">公司名称：</td>
			<td class="td_content"><input name="CompanyName" type="text" class="input_1" id="CompanyName" value="<%=Qsite.CompanyName%>" size="60"></td>
		</tr>
		<tr>
			<td height="23" class="td_content">公司地址：</td>
			<td class="td_content"><input name="Addr" type="text" class="input_1" id="Addr" value="<%=Qsite.Addr%>" size="60"></td>
		</tr>
		<tr>
			<td height="23" class="td_content">联系电话：</td>
			<td class="td_content"><input name="Tel" type="text" class="input_1" id="Tel" value="<%=Qsite.Tel%>" size="60">
			(多个电话请用&quot;,&quot;分隔)</td>
		</tr>
		<tr>
			<td height="23" class="td_content">传真号码：</td>
			<td class="td_content"><input name="Fax" type="text" class="input_1" id="Fax" value="<%=Qsite.Fax%>" size="60">
			(多个传真请用&quot;,&quot;分隔)</td>
		</tr>
		<tr>
			<td width="18%" height="23" class="td_content">客服专员QQ：</td>
			<td width="82%" class="td_content"><input name="SiteQQ" type="text" class="input_1" id="SiteQQ" value="<%=Qsite.SiteQQ%>" size="60">
			(多个QQ请用&quot;|&quot;分隔)</td>
		</tr>
		<tr>
			<td height="23" class="td_content">广告专员QQ：</td>
			<td class="td_content"><input name="QQ2" type="text" class="input_1" id="QQ2" value="<%=Qsite.QQ2%>" size="60">
			(多个QQ请用&quot;|&quot;分隔)</td>
		</tr>
		<tr>
			<td height="23" class="td_content">电子信箱：</td>
			<td class="td_content"><input name="Email" type="text" class="input_1" id="Email" value="<%=Qsite.Email%>" size="60">
			(多个电子信箱请用&quot;,&quot;分隔)</td>
		</tr>
	</table>
	<br>
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" colspan="2" class="td_title">网站其他配置信息</td>
		</tr>
		<tr>
			<td height="23" align="left" valign="top" class="td_content">人才网简介：</td>
			<td class="td_content"><textarea name="jianjie1" class="input_1" id="jianjie1" style="display:none"><%=Qsite.jianjie1%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie1&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
		<tr>
			<td height="23" align="left" valign="top" class="td_content">会员服务：</td>
			<td class="td_content"><textarea name="jianjie2" class="input_1" id="jianjie2" style="display:none"><%=Qsite.jianjie2%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie2&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
		<tr>
			<td height="23" align="left" valign="top" class="td_content">法律申明：</td>
		  <td class="td_content"><textarea name="jianjie3" class="input_1" id="jianjie3" style="display:none"><%=Qsite.jianjie3%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie3&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
		<tr>
			<td height="23" align="left" valign="top" class="td_content">广告报价：</td>
		  <td class="td_content"><textarea name="jianjie4" class="input_1" id="jianjie4" style="display:none"><%=Qsite.jianjie4%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie4&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
		<tr>
			<td width="18%" height="23" align="left" valign="top" class="td_content">客服中心：</td>
		  <td width="82%" class="td_content"><textarea name="jianjie5" class="input_1" id="jianjie5" style="display:none"><%=Qsite.jianjie5%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie5&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
		<tr>
			<td height="23" align="left" valign="top" class="td_content">帮助中心：</td>
		  <td class="td_content"><textarea name="jianjie6" class="input_1" id="jianjie6" style="display:none"><%=Qsite.jianjie6%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie6&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
		<tr>
			<td height="23" align="left" valign="top" class="td_content">求职防骗技巧：</td>
		  <td class="td_content"><textarea name="jianjie7" class="input_1" id="jianjie7" style="display:none"><%=Qsite.jianjie7%></textarea>
			<IFRAME ID="eWebEditor1" SRC="../html/ewebeditor.asp?id=jianjie7&style=s_blue_news" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="250"></IFRAME></td>
		</tr>
  </table>
	<br>
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" colspan="2" class="td_title">会员选项</td>
		</tr>
		<tr>
			<td height="23" class="td_content">新个人会员注册审核：</td>
			<td class="td_content"><input type="radio" name="NewPerSh" value="1" <%If Qsite.NewPerSh = "1" Then Response.Write("checked")%>>
				是 
				<input type="radio" name="NewPerSh" value="0" <%If Qsite.NewPerSh = "0" Then Response.Write("checked")%>>
				否</td>
		</tr>
		<tr>
			<td width="18%" height="23" class="td_content">新企业会员注册审核：</td>
			<td width="82%" class="td_content"><input type="radio" name="NewComSh" value="1" <%If Qsite.NewComSh = "1" Then Response.Write("checked")%>>
				是 
				<input type="radio" name="NewComSh" value="0" <%If Qsite.NewComSh = "0" Then Response.Write("checked")%>>
				否</td>
		</tr>
		<tr>
			<td class="td_content">关闭个人会员注册：</td>
			<td class="td_content"><input name="PerRegClose" type="checkbox" id="PerRegClose" value="1" <%If Qsite.PerRegClose = "1" Then Response.Write("checked")%>>
			说明
			<input name="PerRegCloseNote" type="text" class="input_1" id="PerRegCloseNote" value="<%=Qsite.PerRegCloseNote%>" size="50"></td>
		</tr>
		<tr>
			<td class="td_content">关闭企业会员注册：</td>
			<td class="td_content"><input name="ComRegClose" type="checkbox" id="ComRegClose" value="1" <%If Qsite.ComRegClose = "1" Then Response.Write("checked")%>>
			说明
			<input name="ComRegCloseNote" type="text" class="input_1" id="ComRegCloseNote" value="<%=Qsite.ComRegCloseNote%>" size="50"></td>
		</tr>
		<tr>
			<td class="td_content">禁止注册的用户名：</td>
			<td class="td_content"><input name="RegNoName" type="text" class="input_1" id="RegNoName" value="<%=Qsite.RegNoName%>" size="60">
			(多个用户名请用“|”符号分隔)</td>
		</tr>
	</table>
	<br>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td align="center"><input name="Submit" type="submit" class="input_1" value="保存设置">
			 	<input name="Submit" type="reset" class="input_1" value="重置设置"></td>
		</tr>
	</table>
</form>
<%=Qsite.Sitewz%>
</body>
</html>
