📄 info_add1.asp
字号:
<%Admin="InfoAdd"%>
<!--#include file="check.asp"-->
<%
if request("addok")="" then
if request("k")="" then
response.write "请输入查找内容"
response.end
else
if request("d")<>"add" then
response.redirect "info_sort.asp?k="&request("k")&"&id="&request("id")&""
response.end
end if
%>
<!--#include file="mdb_path_info.asp"-->
<%
set rs=server.CreateObject("ADODB.RecordSet")
rs.open "select id,title from info where title like '%"&request("k")&"%' order by date desc",conn,1,1
if not rs.eof then
do while not rs.EOF
oldcx=oldcx&"[<a target=""_blank"" href=""../joke/"&rs("id")&".htm"">HTM页</a>][<a href=""javascript:makeHTML("&rs("id")&")"">生成</a>]·<a href=info_edit.asp?id="&rs("id")&">"&rs("title")&"</a><br>"
rs.MoveNext
loop
else
rs.close
set rs=nothing
conn.close
set conn=nothing
response.redirect "info_add.asp?title="&request("k")&"&id="&request("id")&""
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta copy="作品展示 [MyFlash中国区,网址MyFlash.ShanKe.cn] ; www.MyFlash.NET!">
<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: #4D9CC8; text-decoration: none }
a:hover { color: #4D9CC8; text-decoration: underline}
</style>
<script language="javascript">
function makeHTML(id)
{window.open("info_makeinfo.asp?type=page&id="+id,"","width=200,height=100,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");}
</script>
</head>
<body topmargin="1" leftmargin="1">
<p align="center">
<form action="info_add1.asp?d=add&id=<%=request("id")%>" method=post>
<table border="0" width="100%" cellspacing="1" style="border-collapse: collapse" bgcolor="#cococo">
<tr>
<td width="200%" nowrap bgcolor="#4D9CC8"><font color="#FFFFFF"><b>添加笑话
1/2</b></font></td>
</tr>
<tr>
<td width="200%" align="right" bgcolor="#FFFFFF">
<p align="center">笑话标题:<input type="text" size=40 name="k" value="<%=request("k")%>">
<input name="change" value="重新查找" type="submit"> <input type="button" onclick="location.href='info_add.asp?title=<%=request("k")%>&id=<%=request("id")%>'" value="添加笑话"></td>
</tr>
<%if oldcx<>"" then%>
<tr>
<td width="200%" bgcolor="#F4F4F4"><font color="#000080"><b>查找到数据库中已有相同的笑话</b></font></td>
</tr>
<tr>
<td width="200%" bgcolor="#FFFFFF"><%=oldcx%></td>
</tr>
<%end if%>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -