📄 xxdown_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 infodown 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")
dj=rs("dj")
form_user=rs("form_user")
form_url=rs("form_url")
info=replace(rs("info"),"<br>",vbcrlf)
end if
rs.close
rs.open "select * from infotypedown 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=xxdown_sort.asp>文章首页</a>"
if request("id")<>"" then
rs.open "select * from infotypedown 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=xxdown_sort.asp?id="&TI(i)&">"&TN(i)&"</a>"
next
tj=rs("tj")
end if
rs.close
end if
thistype=TT
rs.open ("select * from infotypedown 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">
<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}
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="4" leftmargin="0">
<form action="xxdown_edit_save.asp?d=editsave&id=<%=request("id")%>" method=post name="frmAnnounce">
<div align="center">
<center>
<table border="0" width="100%" bgcolor="#E6E6E6" cellspacing="1" style="border-collapse: collapse">
<tr>
<td width="100%" bgcolor="#BBAADD" height="26"><b> <a class=JyDownSort href=xxdown_sort.asp>文章首页</a>
<font color="#FFFFFF"> >></font> <a class=JyDownSort href="xxdown_sort.asp?id=<%=sortid%>"><%=tname%></a>
<font color="#FFFFFF">++(
编辑文章)++ </font> <a class=JyDownSort target="_blank" href="../down/<%=request("id")%>.asp"><%=request("id")%></a></b></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 height="24"><font color="#ff0000">·</font>成功:修改文章完成!(<%=Now()%>)<%if request("update")="yes" then%>,你选择了自动生成Html页,请等待结果:</td>
<td width="100%" nowrap><iframe src='xxdown_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><td nowrap>软件标题:</td><td nowrap><input type="text" size=51 name="title" value="<%=title%>"></td></tr><tr><td nowrap>联系人:</td><td nowrap><input type="text" size=51 name="dj" value="<%=dj%>"></td></tr>
<tr><td nowrap>应用平台:</td><td nowrap><input type="text" size=51 name="form_user" value="<%=form_user%>"></td></tr>
<tr><td nowrap>大小:</td><td nowrap><input type="text" size=51 name="form_url" value="<%=form_url%>">k</td></tr>
<tr><td nowrap>下载地址:</td><td nowrap><input type="text" size=80 name="se" value="<%=se%>"></td></tr>
<tr>
<td valign="top" nowrap> 文章内容:<br>
<input type="checkbox" name="html" value="yes">HTML<br>
<a href="javascript:openscriphtml()">HTML编辑</a></td>
<td nowrap><textarea rows="17" name="body" cols="78"><%=info%></textarea></td> </tr>
</table>
</center>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#F7F7F7">
<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 + -