<!--#include file="conn.asp"-->
<!--#include file="inc/cook1.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="top.asp"-->
<%
select case request.QueryString("Action")
case "SaveConst"
SaveConstInfo
end select
%>

<div id="container">
<div class="top_but">
 <li class="left">&nbsp;</li>
 <li><img src="images/but_8.gif" alt="刷新" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" onClick="window.print() "/></li>
</div>

<form name="myform" method="post" action="?Action=SaveConst">
<div class="tableAll titlebgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:700px">网站功能设置</li>
</div>

 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px"><%=language_en%>版本</li>
  <li ><input name="Const_webEn" type="radio" value="1" <%if Const_webEn=1 then%> checked<%end if%>>开启 <input name="Const_webEn" type="radio" value="0" <%if Const_webEn=0 then%> checked<%end if%>>关闭</li>
 </div>

<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">客服在线</li>
  <li ><input name="Const_QQ" type="radio" value="1" <%if Const_QQ=1 then%> checked<%end if%>>开启 <input name="Const_QQ" type="radio" value="0" <%if Const_QQ=0 then%> checked<%end if%>>关闭</li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">顶部客服</li>
  <li ><input name="Const_QQT" type="radio" value="1" <%if Const_QQT=1 then%> checked<%end if%>>开启 <input name="Const_QQT" type="radio" value="0" <%if Const_QQT=0 then%> checked<%end if%>>关闭&nbsp;&nbsp;  电话：<input name="Const_TopTel" type="text" style="width: 150px;" value="<%=Const_TopTel%>"></li>
 </div>

<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">缩略图</li>
  <li ><input name="thumb_pic" type="radio" value="1" <%if thumb_pic=1 then%> checked<%end if%>>开启 <input name="thumb_pic" type="radio" value="0" <%if thumb_pic=0 then%> checked<%end if%>>关闭
  &nbsp;&nbsp;宽：<input name="thumb_pic_W" value="<%=thumb_pic_W%>" type="text" size="5" /> 高：<input name="thumb_pic_H" value="<%=thumb_pic_H%>" size="5" type="text" />
  </li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">缩略图</li>
  <li ><input name="thumbm_pic" type="radio" value="1" <%if thumbm_pic=1 then%> checked<%end if%>>开启 <input name="thumbm_pic" type="radio" value="0" <%if thumbm_pic=0 then%> checked<%end if%>>关闭
  &nbsp;&nbsp;宽：<input name="thumbm_pic_W" value="<%=thumbm_pic_W%>" type="text" size="5" /> 高：<input name="thumbm_pic_H" value="<%=thumbm_pic_H%>" size="5" type="text" />
  </li>
 </div>
 
  <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">单个批量上传</li>
  <li ><input name="Const_Onepl" type="radio" value="1" <%if Const_Onepl=1 then%> checked<%end if%>>开启 <input name="Const_Onepl" type="radio" value="0" <%if Const_Onepl=0 then%> checked<%end if%>>关闭</li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">自动水印</li>
  <li ><input name="sy_pic" type="radio" value="1" <%if sy_pic=1 then%> checked<%end if%>>开启 <input name="sy_pic" type="radio" value="0" <%if sy_pic=0 then%> checked<%end if%>>关闭
  &nbsp;&nbsp;透明度：<input name="sy_tmd" value="<%=sy_tmd%>" size="5" type="text" /> 0~100
  </li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">水印位置</li>
  <li ><input name="sy_wz" type="radio" value="5" <%if sy_wz=5 then%> checked<%end if%>> 居中<input name="sy_wz" type="radio" value="1" <%if sy_wz=1 then%> checked<%end if%>>左上 <input name="sy_wz" type="radio" value="2" <%if sy_wz=2 then%> checked<%end if%>>左下 <input name="sy_wz" type="radio" value="3" <%if sy_wz=3 then%> checked<%end if%>>右上 <input name="sy_wz" type="radio" value="4" <%if sy_wz=4 then%> checked<%end if%>>右下
  </li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">水印图片</li>
  <li><input name="sy_img" type="text" id="sy_img" size="60" value=<%=sy_img%>></li>
  <li><iframe ID="UploadFiles" src="update_file.asp?editname=sy_img&sltname=sy_img&filepath=upload_files" frameborder=0 scrolling="no" width="200" height="20"></iframe></li>
 </div>

<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">禁止注册的用户名</li>
  <li ><input name="Const_Pingname" type="text" style="width: 400px;" value="<%=Const_Pingname%>"></li>
</div>
<div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:700px">支付宝设置</li>
</div>
  <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">使用支付宝</li>
  <li ><input name="ali_pay" type="radio" value="1" <%if ali_pay=1 then%> checked<%end if%>>开启 <input name="ali_pay" type="radio" value="0" <%if ali_pay=0 then%> checked<%end if%>>关闭</li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">合作身份者ID</li>
  <li ><input name="cart_partner" type="text" style="width: 300;" value="<%=cart_partner%>"></li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">安全检验码</li>
  <li ><input name="cart_key" type="text" style="width: 300;" value="<%=cart_key%>"></li>
 </div>
 
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">支付宝帐户</li>
  <li ><input name="cart_email" type="text" style="width: 300;" value="<%=cart_email%>"></li>
 </div>
 
 <div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:700px">财付通设置</li>
</div>
  <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">使用财付通</li>
  <li ><input name="ten_pay" type="radio" value="1" <%if ten_pay=1 then%> checked<%end if%>>开启 <input name="ten_pay" type="radio" value="0" <%if ten_pay=0 then%> checked<%end if%>>关闭</li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">财付通商户号</li>
  <li ><input name="cart_tenpartner" type="text" style="width: 300;" value="<%=cart_tenpartner%>"></li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">财付通密钥</li>
  <li ><input name="cart_tenkey" type="text" style="width: 300;" value="<%=cart_tenkey%>"></li>
 </div>
 
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">财付通帐户</li>
  <li ><input name="cart_spname" type="text" style="width: 300;" value="<%=cart_spname%>"></li>
 </div>
 
  <div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:700px">快钱设置</li>
</div>
  <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">使用快钱</li>
  <li ><input name="bill_pay" type="radio" value="1" <%if bill_pay=1 then%> checked<%end if%>>开启 <input name="bill_pay" type="radio" value="0" <%if bill_pay=0 then%> checked<%end if%>>关闭</li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">人民币网关账户号</li>
  <li ><input name="cart_merchantAcctId" type="text" style="width: 300;" value="<%=cart_merchantAcctId%>">用户编号后加01即为人民币网关账户号。</li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">人民币网关密钥</li>
  <li ><input name="cart_billkey" type="text" style="width: 300;" value="<%=cart_billkey%>"></li>
 </div>

 
<div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:700px">购物设置</li>
</div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">官网网址</li>
  <li ><input name="cart_web" type="text" style="width: 300;" value="<%=cart_web%>"> 例: www.SuiYue.com (不能含http://或/)</li>
 </div>
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">积分抵换</li>
  <li ><input name="cart_jfdk" type="text" style="width: 100;" value="<%=cart_jfdk%>"> = 1元</li>
 </div>
 
  <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">会员等级</li>
  <li >大于<input name="vip_one" type="text" style="width: 50;" value="<%=vip_one%>">分 = 金卡会员&nbsp;|&nbsp;大于<input name="vip_two" type="text" style="width: 50;" value="<%=vip_two%>">分 = 钻卡会员</li>
 </div>
 
<div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:700px">系统邮件设置(服务器须 JMAIL 支持</li>
</div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">服务器</li>
  <li ><input name="Const_Mailsmtp" type="text" style="width: 200;" value="<%=Const_Mailsmtp%>"></li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">登录用户名</li>
  <li ><input name="Const_Mailuser" type="text" style="width: 200;" value="<%=Const_Mailuser%>"></li>
 </div>

<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">登录密码</li>
  <li><input name="Const_Mailpass" type="text" style="width: 200;" value="<%=Const_Mailpass%>"></li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">发信邮箱</li>
  <li><input name="Const_Maildns" type="text" style="width: 200;" value="<%=Const_Maildns%>"></li>
 </div>
 
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px">接收邮箱</li>
  <li><input name="Const_Mailpost" type="text" style="width: 200;" value="<%=Const_Mailpost%>"></li>
 </div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:150px"></li>
  <li><input class="button" type="submit" name="Submit" value="确认OK，保存设置" ></li>
 </div> 

 </form>
</div>

<!--#include file="footer.asp"-->
<%
Function SaveConstInfo()
Set objStream=Server.CreateObject("ADODB.Stream")
With objStream
.Open
.Charset="utf-8" '编码，这里你可以改成任何编码
.Position=objStream.Size
.WriteText="<"&"%"&vbcrlf
.WriteText="Const_webStyle = "&chr(34)&ReplaceConstChar(trim(request("Const_webStyle")))&chr(34)&""&vbcrlf
.WriteText="Const_webEn = "&chr(34)&ReplaceConstChar(trim(request("Const_webEn")))&chr(34)&""&vbcrlf
.WriteText="Const_menuclass = "&chr(34)&ReplaceConstChar(trim(request("Const_menuclass")))&chr(34)&""&vbcrlf
.WriteText="Const_QQ = "&chr(34)&ReplaceConstChar(trim(request("Const_QQ")))&chr(34)&""&vbcrlf
.WriteText="Const_QQT = "&chr(34)&ReplaceConstChar(trim(request("Const_QQT")))&chr(34)&""&vbcrlf
.WriteText="Const_TopTel = "&chr(34)&ReplaceConstChar(trim(request("Const_TopTel")))&chr(34)&""&vbcrlf
.WriteText="Const_Onepl = "&chr(34)&ReplaceConstChar(trim(request("Const_Onepl")))&chr(34)&""&vbcrlf
.WriteText="Const_Pingname = "&chr(34)&ReplaceConstChar(trim(request("Const_Pingname")))&chr(34)&""&vbcrlf
.WriteText="ali_pay = "&chr(34)&ReplaceConstChar(trim(request("ali_pay")))&chr(34)&""&vbcrlf
.WriteText="cart_partner = "&chr(34)&ReplaceConstChar(trim(request("cart_partner")))&chr(34)&""&vbcrlf
.WriteText="cart_key = "&chr(34)&ReplaceConstChar(trim(request("cart_key")))&chr(34)&""&vbcrlf
.WriteText="cart_email = "&chr(34)&ReplaceConstChar(trim(request("cart_email")))&chr(34)&""&vbcrlf

.WriteText="ten_pay = "&chr(34)&ReplaceConstChar(trim(request("ten_pay")))&chr(34)&""&vbcrlf
.WriteText="cart_tenpartner = "&chr(34)&ReplaceConstChar(trim(request("cart_tenpartner")))&chr(34)&""&vbcrlf
.WriteText="cart_tenkey = "&chr(34)&ReplaceConstChar(trim(request("cart_tenkey")))&chr(34)&""&vbcrlf
.WriteText="cart_spname = "&chr(34)&ReplaceConstChar(trim(request("cart_spname")))&chr(34)&""&vbcrlf

.WriteText="bill_pay = "&chr(34)&ReplaceConstChar(trim(request("bill_pay")))&chr(34)&""&vbcrlf
.WriteText="cart_merchantAcctId = "&chr(34)&ReplaceConstChar(trim(request("cart_merchantAcctId")))&chr(34)&""&vbcrlf
.WriteText="cart_billkey = "&chr(34)&ReplaceConstChar(trim(request("cart_billkey")))&chr(34)&""&vbcrlf

.WriteText="vip_one = "&chr(34)&ReplaceConstChar(trim(request("vip_one")))&chr(34)&""&vbcrlf
.WriteText="vip_two = "&chr(34)&ReplaceConstChar(trim(request("vip_two")))&chr(34)&""&vbcrlf

.WriteText="cart_jfdk = "&chr(34)&ReplaceConstChar(trim(request("cart_jfdk")))&chr(34)&""&vbcrlf
.WriteText="cart_web = "&chr(34)&ReplaceConstChar(trim(request("cart_web")))&chr(34)&""&vbcrlf
.WriteText="Const_Mailsmtp = "&chr(34)&ReplaceConstChar(trim(request("Const_Mailsmtp")))&chr(34)&""&vbcrlf
.WriteText="Const_Mailuser = "&chr(34)&ReplaceConstChar(trim(request("Const_Mailuser")))&chr(34)&""&vbcrlf
.WriteText="Const_Mailpass = "&chr(34)&ReplaceConstChar(trim(request("Const_Mailpass")))&chr(34)&""&vbcrlf
.WriteText="Const_Maildns = "&chr(34)&ReplaceConstChar(trim(request("Const_Maildns")))&chr(34)&""&vbcrlf
.WriteText="Const_Mailpost = "&chr(34)&ReplaceConstChar(trim(request("Const_Mailpost")))&chr(34)&""&vbcrlf
.WriteText="thumb_pic = "&chr(34)&ReplaceConstChar(trim(request("thumb_pic")))&chr(34)&""&vbcrlf
.WriteText="thumb_pic_W = "&ReplaceConstChar(trim(request("thumb_pic_W")))&""&vbcrlf
.WriteText="thumb_pic_H = "&ReplaceConstChar(trim(request("thumb_pic_H")))&""&vbcrlf
.WriteText="thumbm_pic = "&chr(34)&ReplaceConstChar(trim(request("thumbm_pic")))&chr(34)&""&vbcrlf
.WriteText="thumbm_pic_W = "&ReplaceConstChar(trim(request("thumbm_pic_W")))&""&vbcrlf
.WriteText="thumbm_pic_H = "&ReplaceConstChar(trim(request("thumbm_pic_H")))&""&vbcrlf
.WriteText="sy_pic = "&chr(34)&ReplaceConstChar(trim(request("sy_pic")))&chr(34)&""&vbcrlf
.WriteText="sy_tmd = "&ReplaceConstChar(trim(request("sy_tmd")))&""&vbcrlf
.WriteText="sy_wz = "&ReplaceConstChar(trim(request("sy_wz")))&""&vbcrlf
.WriteText="sy_img = "&chr(34)&ReplaceConstChar(trim(request("sy_img")))&chr(34)&""&vbcrlf
.WriteText="%"&">"
.SaveToFile server.mappath("inc/const.asp"),2 '生成文件路径
.Close
End With
Set objStream=Nothing
response.Write "<script language=javascript>alert('设置成功！');location.href='db_web.asp';</script>"
End Function
%>