?? configmb.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>網(wǎng)站參數(shù)設(shè)置</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"> </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">網(wǎng)站參數(shù)設(shè)置</span> </b></font></b></td>
<td width="8" class="mainrights"></td>
</tr>
</table>
<font color="#990000">注:以下設(shè)置請不要添加雙引號"",否則會發(fā)生錯誤!</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">網(wǎng)站名稱</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">網(wǎng)站地址</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">
顯示在網(wǎng)站名稱后面</td>
</tr>
<tr class="tabbgcolorli">
<td height="20"> <div align="center">首頁關(guān)鍵字</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="設(shè)置" name="tijiao" class="border">
</div></td>
</tr>
</table>
</form>
</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -