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

📄 configmb.asp

📁 一个简单的小程序
💻 ASP
字号:
<!--#include file="session.asp"-->
<!--#include file="../config.asp"-->
<%
Function html(constring)
constring=replace(constring,CHR(13),"")
constring=replace(constring,"""","'")
constring=replace(constring,CHR(10)&CHR(10),"</p><p>")
html=constring
End Function

function html1(constring)
constring=replace(constring,"",CHR(13))
constring=replace(constring,"</p><p>",CHR(10)&CHR(10))
html1=constring
end function

If Request("Action")="Save" then
filename="../config.asp"
website=request("website")
url1=request("url")
biaoti=request("biaoti")
gjz=html(request("gjz"))
miaoshu=html(request("miaoshu"))
bottom=html(request("bottom"))

mb=""
mb=chr(60)&"%"&VbCrLf&"website="""&website&""""&VbCrLf&"url1="""&url1&""""&VbCrLf&"zhifubao="""&zhifubao&""""&VbCrLf
mb=mb&"biaoti="""&biaoti&""""&VbCrLf&"gjz="""&gjz&""""&VbCrLf&"miaoshu="""&miaoshu&""""&VbCrLf&"bottom="""&bottom&""""&VbCrLf
mb=mb&"%"&chr(62)

set fso = Server.CreateObject("Scripting.FileSystemObject")
set f1= fso.CreateTextFile(server.mappath(""&filename&""))
f1.write mb
f1.close
set f1=nothing
set fso=nothing

Response.Redirect"configmb.asp"
End If
%>
<html>
<head>
<title>网站参数设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link  href="css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
        <tr> 
          <td width="29" height="32"> <div align="left"> 
              <p class="maindaohang">&nbsp;</p>
            </div></td>
          <td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <b><font color="#000000"><b> <span class="bigNavi">网站参数设置</span>              </b></font></b></td>
          <td width="8" class="mainrights"></td>
        </tr>
      </table> 
  <font color="#990000">注:以下设置请不要添加双引号&quot;&quot;,否则会发生错误!</font> 
  <form method="POST" name="formadd" action="?Action=Save">
    <table width="95%" height="148" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
      <tr class="tabbgcolorli"> 
        <td width="26%" height="20"> <div align="center">网站名称</div></td>
        <td width="74%" height="20">  
          <input type="text" name="website" size="36" value="<%=website%>" class="border">
            </td>
      </tr>
      <tr class="tabbgcolorli"> 
        <td width="26%" height="20"> <div align="center">网站地址</div></td>
        <td width="74%" height="20">  
          <input type="text" name="url" size="36"  value="<%=url1%>" class="border">
          例如 http://www.88red.com/ 
          <div align="center"></div></td>
      </tr>
      <tr class="tabbgcolorli"> 
        <td height="20"> <div align="center">首页标题</div></td>
        <td height="20">  
<input type="text" name="biaoti" size="36"  value="<%=biaoti%>" class="border">
          显示在网站名称后面</td>
      </tr>
      <tr class="tabbgcolorli"> 
        <td height="20"> <div align="center">首页关键字</div></td>
        <td height="20">  
          <textarea rows="3" name="gjz" cols="50" class="border"><%=html1(gjz)%></textarea> 
          <div align="center"></div></td>
      </tr>
      <tr class="tabbgcolorli"> 
        <td height="20"> <div align="center">首页描述</div></td>
        <td height="20">  
<textarea rows="3" name="miaoshu" cols="50" class="border"><%=html1(miaoshu)%></textarea> 
          <div align="center"></div></td>
      </tr>
      <tr class="tabbgcolorli"> 
        <td width="26%" height="20"> <div align="center">页面底部文字[bottom]</div></td>
        <td width="74%" height="20">   
          <textarea rows="3" name="bottom" cols="50" class="border"><%=html1(bottom)%></textarea>
          支持html语言,禁止回车和空格 
          <div align="center"></div></td>
      </tr>
      <tr class="tabbgcolorli"> 
        <td height="20" colspan="2"> <div align="center"></div>
          <div align="center"> 
            <input type="submit"  value="设置" name="tijiao" class="border">
                 </div></td>
      </tr>
    </table>
  </form>
    </div>
</body>
</html>

⌨️ 快捷键说明

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