📄 classmb.asp
字号:
<%
If Request("Action")="Save" then
filename="../classmb.htm"
set fso = Server.CreateObject("Scripting.FileSystemObject")
set f1= fso.CreateTextFile(server.mappath(""&filename&""))
f1.write request("mb")
f1.close
set f1=nothing
set fso=nothing
Response.Redirect"classmb.asp"
End If
%>
<!--#include file="Session.asp"-->
<!--#include file="Conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<title>新闻分类页面生成</title></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">新闻分类页面生成</span> </b></font></b></td>
<td width="8" class="mainrights"></td>
</tr>
</table>
<br>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form name="form1" method="post" action="makebigclass.asp">
大类生成
<select size="1" name="mc1">
<%
'=======================================
'88red科技独立开发完成本程序,并提供免费技术支持与升级服务
'官方网站 http://www.88red.com QQ:8375158 TEL:13964489818
'对于商业客户,本站提供细致周到的各项售后服务;对于盗版客户恕不提供,对于散播本程序者本站将追究其法律责任
'88red科技将陆续开发其他各种先进程序,例如企业网站建站系统等等,对老客户购买其他程序给予最大程度的优惠,欢迎洽谈
'=======================================
set rs=server.createobject("adodb.recordset")
sql="select * from bigclass"
rs.open sql,conn,1,1
if rs.eof then
response.write"暂时没有分类,请先添加新闻分类"
else
do while not rs.eof
%>
<option value="<%=rs("bcid")%>"><%=rs("bcname")%></option>
<%
rs.movenext
loop
end if
rs.close%>
</select>
<input type="submit" name="sub1" value="生成大类" class="border">
</form></td>
<td><form name="form2" method="post" action="makesmallclass.asp">
小类生成
<select size="1" name="mc2">
<%
sql="select * from smallclass"
rs.open sql,conn,1,1
if rs.eof then
response.write"暂时没有分类,请先添加新闻分类"
else
do while not rs.eof
%>
<option value="<%=rs("scid")%>"><%=rs("scname")%></option>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
</select>
<input type="submit" name="sub1" value="生成小类" class="border">
</form></td>
</tr>
</table>
<br>
<div align=center><a href="makebigclass.asp?type=all">生成所有大类</a> <a href="makesmallclass.asp?type=all">生成所有小类</a></div>
<br>
<form method="POST" name="formadd" action="classmb.asp?Action=Save">
<table width="95%" height="43" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="17%" height="20" valign="top"><div align="center">模版标签<br>
[title] <br>
[banner] </div></td>
<td width="83%" height="20">
<textarea rows="10" name="mb" cols="60" class="border"><%
filename="../classmb.htm"
set fso = Server.CreateObject("Scripting.FileSystemObject")
set f2= fso.OpenTextFile(server.mappath(""&filename&""))
If Not fso.FileExists(server.mappath(""&filename&"")) Then
classmb="新闻分类模版newsclassmb.htm不存在,请检查该路径文件。"
else
classmb=f2.ReadAll
End If
f2.close
set f2=nothing
set fso=nothing
%>
<%=classmb%></textarea> <div align="center"></div></td>
</tr>
<tr class="tabbgcolorli">
<td height="20" colspan="2">
<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 + -