📄 info_mb.asp
字号:
<%Admin="InfoMb"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_info.asp"-->
<%
set rs=server.CreateObject("ADODB.RecordSet")
if request("JyDownDo")="save" then
if request.form("body")<>"" then
rs.open "select * from mb",conn,1,2
if request("type")="list" then
rs("info_list")=request.form("body")
elseif request("type")="show" then
rs("info_show")=request.form("body")
end if
rs.Update
rs.close
JyDownMgs="成功:修改网页模板完成"
else
JyDownMgs="错误:模版内容不能为空"
end if
end if
rs.open "select * from mb",conn,1
if request("type")="list" then
title="文章分类"
mb=rs("info_list")
elseif request("type")="show" then
title="文章内容"
mb=rs("info_show")
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style>
td{font-size:9pt;line-height:120%}
body{font-size:9pt;line-height:120%}
a:link { color: #666666; text-decoration: none }
a:visited { color: #666666; text-decoration: none }
a:active { color: #666666; text-decoration: none }
a:hover { color: #000000; text-decoration: underline}
</style>
<SCRIPT LANGUAGE="JavaScript">
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
if (swtch == 1){
basic = false;
stprompt = false;
helpstat = true;
} else if (swtch == 0) {
helpstat = false;
stprompt = false;
basic = true;
} else if (swtch == 2) {
helpstat = false;
basic = false;
stprompt = true;
}
}
function AddText(NewCode) {
document.frmAnnounce.body.value+=NewCode
}
function openscriphtml()
{
if (navigator.appName!="Microsoft Internet Explorer")
alert("此功能 Netscape 用户不能使用!")
else
{newwin=window.open('html_editor.htm','','width=544,height=294');
newwin.focus();
}
}
function runEx(){
//alert('请注意,按下确定将生成页面,按下后请稍后....');
var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace");
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value));
winEx.document.close();
}
</SCRIPT>
<script language="Javascript">
<!-- hide
function insertsmilie(smilieface){
document.frmAnnounce.body.value+=smilieface;
}
// -->
</script>
</head>
<body topmargin="4" leftmargin="0">
<table border="0" cellspacing="1" width="100%" bgcolor="#E6E6E6" height="100%">
<form name="frmAnnounce" method="post" action="info_mb.asp?JyDownDo=save&type=<%=request("type")%>">
<tr>
<td width="100%" bgcolor="#BBAADD" height="26"> <b><font color="#FFFFFF"><%=title%>(HTML)页模板</font></b></td>
</tr>
<%if JyDownMgs<>"" then%>
<tr>
<td bgcolor="#FFFFFF" height="22"><font color="#FF0000">·</font><%=JyDownMgs%>,时间<%=Now()%></td>
</tr>
<%end if%>
<%if request("type")="list" then%>
<tr>
<td bgcolor="#FFFFFF" height="22">代号:网页标题(<font color="#FF0000">T_TITLE</font>)
分类位置(<font color="#FF0000">T_TYPE</font>)
列表部分(<font color="#FF0000">T_LB</font>) 本级分类名:(<font color="#FF0000">T_NAME</font>) 本级分类列表(<font color="#FF0000">TXlist</font>)
本类TOP(<font color="#FF0000">TXtop</font>)</td>
</tr>
<%elseif request("type")="show" then%>
<tr>
<td bgcolor="#FFFFFF" height="40">代号:网页标题(<font color="#FF0000">T_TITLE</font>)分类位置(<font color="#FF0000">T_TYPE</font>)本级分类名:(<font color="#FF0000">T_NAME</font>)同级分类表(<font color="#ff0000">TXlist</font>)本类TOP(<font color="#FF0000">TXtop</font>) 相关文章:<font color="#FF0000">XG_LIST </font>
相关下载:<font color="#FF0000">XG_DOWN </font>文章编号:<font color="#ff0000">S_ID </font>文章标题:<font color="#FF0000">S_TITLE </font>文章
内容:<font color="#FF0000">S_INFO </font>作者:<font color="#FF0000">S_FORM_USER</font>
来自:<font color="#FF0000">S_FORM_URL</font> 人气:<font color="#FF0000">S_HITS</font>
加入时间<font color="#FF0000">:S_DATE</font></td>
</tr>
<%end if%>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="100%"><textarea style="width:100%; height:100%;" rows="19" name="body" cols="102"><%=mb%></textarea></td>
</tr>
<tr>
<td width="100%" bgcolor="#F7F7F7">
<p align="center">
<input name="change" value="修改<%=title%>(HTML)页模板" type='submit'> [<a href="javascript:openscriphtml()">HTML编辑器</a>]</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -