<!--#include file="../include/hf_conn.asp"-->
<!--#include file="checkadmin.asp"-->
<script language=javascript src=../include/mouse_on_title.js></script>
<%call checkmanage("01")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>
<BODY background="../images/admin/back.gif">
<%action=request("ok")
if action="" then 
Set rs = conn.Execute("select * from hfvipsetup") 
%>
<table width="98%" border="1"style="border-collapse: collapse; border-style: dotted; border-width: 0px"bordercolor="#333333" cellspacing="0" cellpadding="2">
<form action=config1.asp method=post name=setup>
<tr class=backs><td colspan=2 class=td height=18>常规信息设置 &nbsp;</td></tr>
<tr><td width=20% align=right>网站开关状态 &nbsp;</td><td > <input type="radio" name="kaiguan" value="1" <%if rs("kaiguan")<>0 then%>checked<%end if%>>开放 &nbsp; <input type="radio" name="kaiguan" value="0" <%if rs("kaiguan")=0 then%>checked<%end if%>>关闭</td></TR>  
<tr>
  <td width=20% align=right>网站关闭时的提示语</td><td ><textarea name="guanbi" rows="5" cols="39" style="overflow:auto;"><%=Replace(rs("guanbi"),"<BR>",vbCRLF)%></textarea>    &nbsp;&nbsp; <img align=top src=../images/admin/memo.gif alt="支持html"></td></tr>
<tr><td width=20% align=right>网站名称 &nbsp;</td><td> 
	<input type=text value="<%=rs("sitename")%>" size=40 name=sitename maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="必填项。请填写网站名称<br>合理的填写名称，有利于搜索引擎找到你的网站"> </td></TR>
<tr><td width=20% align=right>网站描述 &nbsp;</td><td> 
	<input type=text value="<%=rs("sitedescription")%>" size=40 name=sitedescription>&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项。填写网站的简短描述，便于搜索引擎找到你的网站"> </td></TR>
<tr><td width=20% align=right>网站关键字 &nbsp;</td><td> 
	<input type=text value="<%=rs("sitekeywords")%>" size=40 name=sitekeywords>&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项。填写网站关键字，便于搜索引擎找到你的网站<br>多个关键词用西文逗号隔开"> </td></TR>
	<tr><td width=20% align=right>网站状态栏提示 &nbsp;</td><td> 
	<input type=text value="<%=rs("webzt")%>" size=40 name=webzt>&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项。填写网站底部状态提示，便于宣传你的网站<br>可作广告使用"> </td></TR>
	<tr><td width=20% align=right>版权信息 &nbsp;</td><td><textarea name="copyright" rows="5" cols="39" style="overflow:auto;"><%=Replace(rs("copyright"),"<BR>",vbCRLF)%></textarea>	  &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项。填写网站底部版权信息，方便修改你的网站！支持html"> </td>
	</TR>
	<tr>
		  <td width=20% align=right>首页滚动广告&nbsp;</td>
		  <td><textarea name="hf_gg" rows="5" cols="39" style="overflow:auto;"><%=Replace(rs("hf_gg"),"<BR>",vbCRLF)%></textarea>	  &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项。填写网站首页公告，方便修改你的网站！支持html"> </td>
	</TR>
<tr><td width=20% align=right>网站域名 &nbsp;</td><td> 
	<input type=text value="<%=rs("siteurl")%>" size=40 name=siteurl maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="必填项。填写网站域名，请以http://开头"> </td></TR>
<tr><td width=20% align=right>电子邮箱 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_mail")%>" size=40 name=adm_mail maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="必填项。用于接收订单通知等"> </td></TR>
<tr><td width=20% align=right>公司名称 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_comp")%>" size=40 name=adm_comp maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>联系地址 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_address")%>" size=40 name=adm_address maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>邮政编码 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_post")%>" size=40 name=adm_post maxlength="6">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>联 系 人 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_name")%>" size=40 name=adm_name maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>联系电话 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_tel")%>" size=40 name=adm_tel maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>传真号码 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_fax")%>" size=40 name=adm_fax maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>移动电话 &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_mob")%>" size=40 name=adm_mob axlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>Ｍ Ｓ Ｎ &nbsp;</td><td> 
	<input type=text value="<%=rs("adm_msn")%>" size=40 name=adm_msn maxlength="50">&nbsp;&nbsp; <img src=../images/admin/memo.gif alt="选填项，可空出<br>此内容显示在主页的“联系方式”页面"> </td></TR>
<tr><td width=20% align=right>常用联系方式 &nbsp;</td><td><textarea name="adm_kf" rows="6" cols="39" style="overflow:auto;"><%=Replace(rs("adm_kf"),"<BR>",vbCRLF)%></textarea>  &nbsp; <img src=../images/admin/memo.gif alt="显示在主页左侧“联系我们”位置<br>支持html，例如您可加上发E-mail的超链接"  align=top> </td></TR>
<tr><td width=20% align=right>联系方式显示颜色&nbsp;</td><td> 
	<input type=text value="<%=rs("kf_color")%>" size=10 name="kf_color" maxlength="10">&nbsp; <img src=../images/admin/memo.gif alt="主页左侧“联系我们”内容的颜色<br>如：red、blue、#CCAA33 等"> </td></TR>
<tr><td width=20% align=right>主页帮助区表格行数&nbsp;</td><td>
	<input type=text value="<%=rs("help_hang")%>" size=10 name="help_hang" maxlength="1">&nbsp; <img src=../images/admin/memo.gif alt="主页底部帮助信息区的表格行数，请填1-4整数"> </td></TR>
<tr><td width=20% align=right>是否强制注册 &nbsp;</td><td>
	<input type="radio" name="reg" value="0" <%if rs("reg")=0 then%>checked<%end if%>>是 &nbsp; <input type="radio" name="reg" value="1" <%if rs("reg")=1 then%>checked<%end if%>>否 &nbsp; <img src=../images/admin/memo.gif alt="是否必须注册为会员才能购物"> </td></TR>
<tr><td width=20% align=right>是否显示论坛链接 &nbsp;</td><td>
	<input type="radio" name="bbs" value="1" <%if rs("bbs")=1 then%>checked<%end if%>>是 &nbsp; <input type="radio" name="bbs" value="0" <%if rs("bbs")<>1 then%>checked<%end if%>>否 &nbsp; <img src=../images/admin/memo.gif alt="选择是，则导航栏显示论坛链接<br>选择否，则导航栏显示留言本链接"> </td></TR>

<tr><td width=20% align=right>是否打开右键菜单 &nbsp;</td><td>
	<input type="radio" name="menu" value="1" <%if rs("menu")=1 then%>checked<%end if%>>是 &nbsp; <input type="radio" name="menu" value="0" <%if rs("menu")<>1 then%>checked<%end if%>>否 &nbsp; <img src=../images/admin/memo.gif alt="选择是，则在主页点击右键，会显示快捷菜单"> </td></TR>

<tr><td colspan=2><INPUT name="ok" TYPE="hidden" value="ok"><INPUT name=action TYPE="submit" value="保存设置"></td></tr>
</form>
</table>
<script src='http://www.live800.com/live800/chatHtmlFiles/monitor.js?companyID=11526&imageurl=http://www.live800.com/live800/buttonImage/normal&configId=1'></script><script>var p=new Array(2);p[0]='companyID=11526';p[1]='imageUrl=http://www.live800.com/live800/buttonImage/normal';p[2]='configId=1';initCompany(p);</script>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if action="ok" then
if request.form("sitename")="" or request.form("siteurl")="" or request.form("adm_mail")="" or request.form("adm_kf")=""or request.form("kf_color")="" then
response.write "<script language='javascript'>"
response.write "alert('出错了，资料填写不完整或有错误！');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
if request.form("kaiguan")="0" and request.form("guanbi")="" then
response.write "<script language='javascript'>"
response.write "alert('出错了，请填写网站关闭时的提示语！');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
if request.form("help_hang")<>"1" and request.form("help_hang")<>"2" and request.form("help_hang")<>"3" and request.form("help_hang")<>"4" then
response.write "<script language='javascript'>"
response.write "alert('出错了，帮助区表格行数填写不正确，只能是1-4的整数！');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from hfvipsetup"
rs.open sql,conn,1,3
rs("kaiguan")=request.form("kaiguan")
rs("guanbi")=request.form("guanbi")
rs("sitekeywords")=trim(request.form("sitekeywords"))
rs("webzt")=trim(request.form("webzt"))
rs("hf_gg")=trim(request.form("hf_gg"))
rs("copyright")=trim(request.form("copyright"))
rs("sitedescription")=trim(request.form("sitedescription"))
rs("sitename")=trim(request.form("sitename"))
rs("siteurl")=trim(request.form("siteurl"))
rs("adm_mail")=trim(request.form("adm_mail"))
rs("adm_address")=request.form("adm_address")
rs("adm_comp")=request.form("adm_comp")
rs("adm_name")=request.form("adm_name")  
rs("adm_tel")=request.form("adm_tel")
rs("adm_fax")=request.form("adm_fax")
rs("adm_mob")=request.form("adm_mob")
rs("adm_post")=request.form("adm_post")  
rs("adm_msn")=request.form("adm_msn")
rs("adm_kf")=replace(request.form("adm_kf"),vbCRLF,"<BR>")
rs("kf_color")=request.form("kf_color")
rs("reg")=request.form("reg")
rs("bbs")=request.form("bbs")
rs("menu")=request.form("menu")
rs("help_hang")=request.form("help_hang")
rs.update
url="config1.asp"
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>"
response.write "alert('操作成功，您设置的信息已经保存！');"
response.write "location.href='"&url&"';"
response.write "</script>"
end if%>