📄 config.asp
字号:
<%@ LANGUAGE = VBScript.Encode %><%
if session("shiwei_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<!--#include file="../zcm.asp"-->
<%
zj=replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(left(replace(Request.ServerVariables("SERVER_NAME"),"www.",""),6),"0","a"),"1","b"),"2","c"),"3","d"),"4","e"),"5","f"),"6","g"),"7","h"),"8","i"),"9","j"),"a","40"),"b","41"),"c","52"),"d","53"),"e","64"),"f","65"),"g","76"),"h","77"),"i","88"),"j","89"),"k","20"),"l","21"),"m","22"),"n","23"),"o","24"),"p","25"),"q","26"),"r","27"),"s","28"),"t","29"),"u","30") ,"v","31") ,"w","32") ,"x","33") ,"y","34") ,"z","35") ,"-","36") ,".","37")
yzcv=zj*(len(zj)+len(zcn&"bossiWebMIB"))
Do While yzcv>10000000000
yzcv=yzcv-10000000000
loop
if yzcv<>zcv then
response.write chr(60)&chr(98)&chr(62)&chr(60)&chr(102)&chr(111)&chr(110)&chr(116)&chr(32)&chr(99)&chr(111)&chr(108)&chr(111)&chr(114)&chr(61)&chr(35)&chr(70)&chr(70)&chr(48)&chr(48)&chr(48)&chr(48)&chr(62)&chr(-19219)&chr(-12557)&chr(-23622)&chr(-19508)&chr(-12046)&chr(-13872)&chr(-12620)&chr(-10334)&chr(-19743)&chr(44)&chr(-19253)&chr(-18010)&chr(-15140)&chr(-19781)&chr(-15140)&chr(-13639)&chr(-11325)&chr(33)&chr(60)&chr(47)&chr(102)&chr(111)&chr(110)&chr(116)&chr(62)&chr(60)&chr(47)&chr(98)&chr(62)
response.end
end if
server_vv=len(Request.ServerVariables("SERVER_NAME"))
server_v1=left(Cstr(Request.ServerVariables("HTTP_REFERER")),server_vv)
server_v2=left(Cstr("http://"&Request.ServerVariables("SERVER_NAME")),server_vv)
if server_v1<>server_v2 and server_v1<>"" and server_v2<>"" then
response.write("<script>alert('错误:禁止从站点外部提交数据!.')</script>")
response.end
end if
%>
<html>
<head>
<title><%=dianming%> - 基本信息设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<style>
body {
background-color:#FFFFFF;
}
</style>
</HEAD>
<BODY>
<%
if fla59="0" and session("shiwei_id")<>"1" then
%>
<br><center><img src="../images/note.gif" align="absmiddle"> <font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%
response.end
end if
%>
<%if request("hid1")="" then%>
<form name="form1">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/r_1.gif" alt="" /></td>
<td width="100%" background="../images/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 基本信息设置</td>
<td align="right"> </td>
</tr>
</table>
</td>
<td><img src="../images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr>
<td width="28%" height="30" align="right"><b>公司名称:</b> </td>
<td width="72%" class="category">
<input type="text" name="dianming" style="width:300px" value="<%=dianming%>"></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>介绍一个会员加多少积分:</b> </td>
<td width="72%" class="category">
<input type="text" name="jieshaojifen" style="width:200px" value="<%=jieshaojifen%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯数字)</font> </td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>续会加多少积分:</b> </td>
<td width="72%" class="category">
<input type="text" name="xuhuijifen" style="width:200px" value="<%=xuhuijifen%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯数字)</font></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>是否启用库存报警功能:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="baojin"<%if baojin="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>是否启用会员生日提醒功能:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="baojin2"<%if baojin2="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>会员生日提前多少天提醒:</b> </td>
<td width="72%" class="category">
<input type="text" name="tiqian" style="width:200px" value="<%=tiqian%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯数字)</font></td>
</tr>
<tr class="a3">
<td width="28%" height="30" align="right"><b>添加产品后是否马上打印:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="dayin1"<%if dayin1="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>销售产品后是否马上打印:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="dayin2"<%if dayin2="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>产品是否有图片:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="showpic"<%if showpic="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>各种查询中每页显示多少条记录:</b> </td>
<td width="72%" class="category">
<input type="text" name="maxrecord" style="width:200px" value="<%=maxrecord%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯数字)</font></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>入库出库一次最多添加多少个产品:</b> </td>
<td width="72%" class="category">
<input type="text" name="maxproduit" style="width:200px" value="<%=maxproduit%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯数字)</font></td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>员工是否只能查看自己的操作记录:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="lookbuysell"<%if lookbuysell="yes" then%> checked="checked"<%end if%> value="yes">
<font color="#666666">(选中即为是)</font>
</td>
</tr>
<tr>
<td width="28%" height="30" align="right"><b>员工是否只能查看自己的会员:</b> </td>
<td width="72%" class="category">
<input type="checkbox" name="lookhuiyuan"<%if lookhuiyuan="yes" then%> checked="checked"<%end if%> value="yes">
<font color="#666666">(选中即为是)</font>
</td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input name="submit" type="submit" value=" 确 认 " class="button">
<input type="hidden" name="hid1" value="ok">
<input name="reset" type="reset" value=" 重新填写 " class="button">
</td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="../images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="../images/r_3.gif" alt="" /></td>
</tr>
</table>
</form>
<%
else
nowdianming=request("dianming")
nowjieshaojifen=request("jieshaojifen")
if nowjieshaojifen="" then
nowjieshaojifen=0
end if
nowxuhuijifen=request("xuhuijifen")
if nowxuhuijifen="" then
nowxuhuijifen=0
end if
maxrecord=request("maxrecord")
if maxrecord="" then
maxrecord=16
end if
maxproduit=request("maxproduit")
if maxproduit="" then
maxproduit=1
end if
nowbaojin=request("baojin")
if nowbaojin="" then
nowbaojin="no"
end if
nowbaojin2=request("baojin2")
if nowbaojin2="" then
nowbaojin2="no"
end if
tiqian=request("tiqian")
if tiqian="" then
tiqian=2
end if
nowdayin1=request("dayin1")
if nowdayin1="" then
nowdayin1="no"
end if
nowdayin2=request("dayin2")
if nowdayin2="" then
nowdayin2="no"
end if
nowshowpic=request("showpic")
if nowshowpic="" then
nowshowpic="no"
end if
lookbuysell=request("lookbuysell")
if lookbuysell="" then
lookbuysell="no"
end if
lookhuiyuan=request("lookhuiyuan")
if lookhuiyuan="" then
lookhuiyuan="no"
end if
sql="update config set dianming='"&nowdianming&"',jieshaojifen="&nowjieshaojifen&",xuhuijifen="&nowxuhuijifen&",baojin='"&nowbaojin&"',baojin2='"&nowbaojin2&"',tiqian="&tiqian&",dayin1='"&nowdayin1&"',dayin2='"&nowdayin2&"',showpic='"&nowshowpic&"',maxrecord="&maxrecord&",maxproduit="&maxproduit&",lookbuysell='"&lookbuysell&"',lookhuiyuan='"&lookhuiyuan&"' where id=1"
conn.execute(sql)
%>
<script language="javascript">
alert("基本信息设置成功!")
window.location.href="config.asp"
</script>
<%
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -