⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.asp

📁 不错的进销存管理系统。功能比较全
💻 ASP
字号:
<%
if session("yida_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%  
  response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->

<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">&nbsp;<font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%  
  response.end
end if
%>
<%if request("hid1")="" then%>
<form name="form2">
<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>&nbsp;基本信息设置</td>
	  <td align="right">&nbsp;</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="gonggao" style="width:300px" value="<%=gonggao%>"></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 align="right" height="30"><b>桌面背景图片:</b></td>
        <td class="category">
		  <table cellpadding="3" cellspacing="0" width="100%"><tr><td width="20%" align="center">
		  <div id=pic style="width:100;height:100;background-color:ffffff;border:solid 1 #FBA685"><%if deskphoto="" or isnull(deskphoto) then%><br><br><br>&nbsp;&nbsp;&nbsp;暂无图片<%else%><img src="../upload/<%=deskphoto%>" width=100><%end if%></div></td>
		  <td width="80%">
		  <font color="#ff0000">选择完图片后,请点击上传按钮上传图片!</font><br>
          <iframe src="../uploadpic.asp" width=400 height=30 frameborder=none framespacing=0 scrolling=no noresize marginwidth=0 marginheight=0></iframe><br>
          <font color=999999>所选图片都必须是 jpg 或 gif 格式</font>
		  <input type="button" value="恢复系统默认图片" onClick="photo.value='desk.gif';document.all.pic.innerHTML='<img src=../upload/desk.gif width=100>'" class="button">
		  </td></tr></table>
		</td>
      </tr>      
  <tr>
    <td height="30">&nbsp;</td>
    <td class="category">
        <input name="submit" type="submit" value=" 确 认 " class="button">
      &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="hidden" name="hid1" value="ok">
		<input type="hidden" name="photo" value="<%=deskphoto%>">
        <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")
nowgonggao=request("gonggao")
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
nowdeskphoto=request("photo")
sql="update config set dianming='"&nowdianming&"',gonggao='"&nowgonggao&"',jieshaojifen="&nowjieshaojifen&",xuhuijifen="&nowxuhuijifen&",baojin='"&nowbaojin&"',baojin2='"&nowbaojin2&"',tiqian="&tiqian&",dayin1='"&nowdayin1&"',dayin2='"&nowdayin2&"',showpic='"&nowshowpic&"',maxrecord="&maxrecord&",maxproduit="&maxproduit&",lookbuysell='"&lookbuysell&"',lookhuiyuan='"&lookhuiyuan&"',deskphoto='"&nowdeskphoto&"' 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 + -