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

📄 xx_systemconfig.asp

📁 生成防伪码,并导出为EXCEL表格,可查寻
💻 ASP
字号:
<!--#include file=conn.asp-->
<!--#include file=cookies.asp--><!--#include file=function.asp--><!--#include file=config.asp-->
<html>
<head><link href="css.css" rel="stylesheet" type="text/css">
<title>祥星送货单打印系统--打印设置</title>
</head>
<body>
<%
dim ObjInstalled,Action,FoundErr,ErrMsg
ObjInstalled=IsObjInstalled("Scripting.FileSystemObject")
Action=trim(request("Action"))
if Action="" then
	Action="ShowInfo"
end if
%>
<html>
<head>
<title>网站配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0"> 
<%
if Action="SaveConfig" then
	call SaveConfig()
	Response.Redirect "XX_SystemConfig.asp" 
else
	call ShowConfig()
end if
if FoundErr=True then
	call WriteErrMsg()
end if


sub ShowConfig()
%>
<form method="POST" action="XX_SystemConfig.asp" id="form" name="form">
  <table width="650" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#000000"  >
    <tr bgcolor="#3399FF"> 
      <td height="24" colspan="4" bgcolor="#33FF99" > <div align="center"><strong>网 
      站 配 置</strong></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="4" class="topbg"> <strong>网站信息配置</strong></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="224" class="tdbg"><strong>使用单位名称:</strong></td>
      <td colspan="3" class="tdbg"><span class="topbg"><strong>
        <input name="SiteName" type="text" id="SiteName" value="<%=SiteName%>" size="40" maxlength="50">
      </strong></span></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="224" class="tdbg"><strong>使用单位电话:</strong></td>
      <td colspan="3" class="tdbg"> <input name="Tel" type="text" id="Tel" value="<%=Tel%>" size="40" maxlength="50">      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="224" class="tdbg"><strong>LogoU:</strong><br>
        如logo/logo.gif</td>
      <td colspan="3" class="tdbg"> <input name="LogoUrl" type="text" id="LogoUrl" value="<%=LogoUrl%>" size="40" maxlength="255">      </td>
    </tr>

    <tr bgcolor="#FFFFFF"> 
      <td width="224" class="tdbg"><strong>使用单位传真:</strong></td>
      <td colspan="3" class="tdbg"> <input name="Fax" type="text" id="Fax" value="<%=Fax%>" size="40" maxlength="20">      </td>
    </tr>
	
    <tr bgcolor="#FFFFFF"> 
      <td width="224" class="tdbg"><strong>使用单位邮箱:</strong></td>
      <td colspan="3" class="tdbg"> <input name="Email" type="text" id="Email" value="<%=Email%>" size="40" maxlength="100">      </td>
    </tr>


    <tr bgcolor="#FFFFFF"> 
      <td class="tdbg">&nbsp;</td>
      <td colspan="3" class="tdbg">&nbsp;</td>
    </tr>

    <tr bgcolor="#FFFFFF"> 
      <td colspan="4" align="center" class="tdbg"> <input name="Action" type="hidden" id="Action" value="SaveConfig"> 
        <input name="cmdSave" type="submit" id="cmdSave" value=" 保存设置 " <% If ObjInstalled=false Then response.write "disabled" %>>      </td>
    </tr>
    <%
If ObjInstalled=false Then
	Response.Write "<tr class='tdbg'><td height='40' colspan='3'><b><font color=red>你的服务器不支持 FSO(Scripting.FileSystemObject)! 不能使用本功能。<br>请直接修改“config.asp”文件中的内容。</font></b></td></tr>"
End If
%>
  </table>
<%
end sub
%>
</form>
</body>
</html>
<%
sub SaveConfig()
	If ObjInstalled=false Then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>你的服务器不支持 FSO(Scripting.FileSystemObject)! </li>"
		exit sub
	end if
	dim fso,hf
	set fso=Server.CreateObject("Scripting.FileSystemObject")
	set hf=fso.CreateTextFile(Server.mappath("config.asp"),true)
	hf.write "<" & "%" & vbcrlf
	hf.write "Const SiteName=" & chr(34) & trim(request("SiteName")) & chr(34) & "        '网站名称" & vbcrlf
	hf.write "Const Tel=" & chr(34) & trim(request("Tel")) & chr(34) & "        '电话" & vbcrlf
	hf.write "Const fax=" & chr(34) & trim(request("fax")) & chr(34) & "        '传真" & vbcrlf
	hf.write "Const EMail=" & chr(34) & trim(request("EMail")) & chr(34) & "        '企业邮局" & vbcrlf
	hf.write "Const LogoUrl=" & chr(34) & trim(request("LogoUrl")) & chr(34) & "        'Logo地址" & vbcrlf
	
	hf.write "%" & ">"
	hf.close
	set hf=nothing
	set fso=nothing	
end sub
%>
 </center>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -