📄 info_edit.asp
字号:
<!--#include file="check.asp"-->
<%if CheckAdmin("DownAdminAll",JyDownAdminAdmin) then
else
if CheckAdmin("DownAdmin",JyDownAdminAdmin) then
NotMe=" and user='"&JyDownAdminName&"'"
else
response.write("<li>您没有进入本页面的权限!")
response.end
end if
end if%>
<!--#include file="mdb_path_info.asp"-->
<!--#include file="config.asp"-->
<%
savetime=Now()+webtime/24
set rs=server.CreateObject("ADODB.RecordSet")
sql="select * from info where id="&request("id")&""&NotMe&""
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<b>错误:</b>此ID号的文章已被删除或不是你添加的!"
response.end
else
tid=rs("tid")
title=rs("title")
se=rs("se")
form_user=rs("form_user")
form_url=rs("form_url")
info=rs("info")
end if
rs.close
rs.open "select * from infotype where id="&tid,conn,1,1
if not rs.eof then
sortid=rs("id")
tname=rs("tname")
end if
rs.close
TT=TT & "<a class=JyDownSort href=info_sort.asp>文章首页</a>"
if request("id")<>"" then
rs.open "select * from infotype where id="&request("id"),conn,1,1
if not rs.EOF then
TN=split(rs("tname"),"|")
TI=split(rs("ts"), ",")
for i = 0 to ubound(TN)-1
TT=TT & ">> <a class=JyDownSort href=info_sort.asp?id="&TI(i)&">"&TN(i)&"</a>"
next
tj=rs("tj")
end if
rs.close
end if
thistype=TT
rs.open ("select * from infotype where tj>1 order by ts"),conn,1,1
tn=""
do while not rs.eof
tname2=replace(rs("tname"),"|","->")
if rs("tj")=2 and rs("tn")<>tn then
i=i+1
if i=2 then
i=0
color="#808000"
else
color="#000000"
end if
end if
tn=rs("tn")
typelist=typelist&"<option style='COLOR:"&color&"' value='"&rs("id")&"'>"&tname2&"</option>"
rs.MoveNext
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<SCRIPT LANGUAGE="JavaScript">
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>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta copy="程序制作 [惊云,网址www.65658.com] ; 盗版必究!">
<title>修改文章</title>
<style>
td{font-size:9pt;line-height:140%}
body{font-size:9pt;line-height:140%}
a:link { color: #0033CC; text-decoration: none }
a:visited { color: #0033CC; text-decoration: none }
a:active { color: #FF0000; text-decoration: none }
a:hover { color: #000000; text-decoration: underline}
a.JyDownSort:link { color: #FFFFFF; text-decoration: none }
a.JyDownSort:visited { color: #FFFFFF; text-decoration: none }
a.JyDownSort:hover { color: #DFDFDF; text-decoration: underline}
</style>
</head>
<body topmargin="1" leftmargin="1">
<form action="info_edit_save.asp?d=editsave&id=<%=request("id")%>" method=post name="frmAnnounce">
<div align="center">
<center>
<table border="0" width="638" bgcolor="#555555" cellspacing="1" style="border-collapse: collapse">
<tr>
<td width="100%" bgcolor="#6A6A6A"><b><a class=JyDownSort href=info_sort.asp>文章首页</a>>> <a class=JyDownSort href="info_sort.asp?id=<%=sortid%>"><%=tname%></a> ++(
编辑文章)++ <a class=JyDownSort target="_blank" href="../info/<%=request("id")%>.htm"><b><%=request("id")%></b></a></td>
</tr>
<%if request("d")="saveok" then%>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellspacing="0" width="100%" cellpadding="0">
<tr>
<td nowrap><font color="#ff0000">·</font>成功:修改文章完成!(<%=Now()%>)<%if request("update")="yes" then%>,你选择了自动生成Html页,请等待结果:</td>
<td width="100%" nowrap><iframe src='info_makeinfo.asp?type=page&id=<%=request("id")%>' width='180' height='100%' frameborder='no' border='0' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='no'></iframe><%end if%></td>
</tr>
</table>
</td>
</tr>
<%end if%>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" cellspacing="0">
<tr>
<td nowrap><font color="#FF0000">文章类别</font>:</td>
<td nowrap><select size="1" name="tid">
<option selected value="<%=sortid%>"><%=tname%>(<%=sortid%>)</option>
<%=typelist%></select>
</tr>
</tr>
<tr>
<td nowrap><font color="#FF0000">文章标题</font>:</td>
<td nowrap>
<input type="text" size=51 name="title" value="<%=title%>">
关键字:<input type="text" size=19 name="se" value="<%=se%>"></td>
</tr>
<tr>
<center>
</tr>
<tr>
<td nowrap>相关信息:</td>
<td nowrap>作者:<input type="text" size=23 name="form_user" value="<%=form_user%>">
来源:<input type="text" size=23 name="form_url" value="<%=form_url%>"> </td>
</tr>
<tr>
<td valign="top" nowrap>文章内容:<br>
<input type="checkbox" name="html" value="yes" checked>HTML<br>
<a href="javascript:openscriphtml()">HTML编辑</a></td>
<td nowrap><textarea rows="17" name="body" cols="78"><%=info%></textarea></td>
</tr>
<tr>
<td nowrap bgcolor="#F9F9F9">图片上传:</td>
<td nowrap bgcolor="#F9F9F9"><iframe name="JyDownUpload" frameborder="0" width="100%" height="25" scrolling="no" src="upload.htm"></iframe></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#DFDFDF">
<p align="center"><input name="change" value="添加" type="submit">
<input name="change1" value="重置" type="reset">
<input type="checkbox" name="update" value="yes" checked>自动生成HTML页
<input type="checkbox" name="update1" value="yes" checked>更新日期</td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -