📄 articleupload.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin/ubbhtml.asp"-->
<%
dim title
dim sort
dim content
dim sql
dim rs
dim founderr
if trim(request("atitle"))="" then
response.write"<SCRIPT language=JavaScript>alert('笑话标题不能为空!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
if trim(request("body"))="" then
response.write"<SCRIPT language=JavaScript>alert('笑话内容不能为空!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
if trim(request("author"))="" then
response.write"<SCRIPT language=JavaScript>alert('你的昵称');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
sort=trim(request("sort"))
title=trim(request("atitle"))
writer=trim(request("author"))
content=server.htmlencode(request("body"))
if trim(request("atitle"))<>"" and trim(request("sort"))<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from learning where title='"&request("atitle")&"' and sort='"&request("sort")&"' order by articleid desc"
rs.open sql,conn,1,1
if not(rs.eof or rs.bof) then
response.write"<SCRIPT language=JavaScript>alert('对不起,您所添加的文章已有同名存在,请核实!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
rs.close
set rs=nothing
end if
end if
set rs=server.createobject("adodb.recordset")
sql="select * from learning"
rs.open sql,conn,1,2
rs.addnew
rs("title")=title
rs("sort")=sort
rs("writer")=writer
rs("writer_url")=writerurl
rs("content")=content
rs("dateandtime")=date()
rs("hits")=100
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>搞笑图图发表结果 - 荆网笑话</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
td img {display: block;}body,td,th {
font-size: 14px;
}
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: -1px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(img/index_bg.jpg);
background-repeat: repeat-x;
}
a {
font-size: 13px;
color: #0000CC;
}
a:visited {
color: #0066FF;
}
a:hover {
color: #009966;
}
a:active {
color: #0099CC;
}
.dixian {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #62BBE5;
}
</style>
<SCRIPT language=JavaScript>
var newwin
function openwin(url)
{
var newwin=window.open(url,"flash","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=506,left=100,top=50")
}
</SCRIPT>
<SCRIPT language=javascript src="joke/mouse_up.js"></SCRIPT>
</head>
<body>
<table width="926" border="0" align="left" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="index.png" fwbase="index.jpg" fwstyle="Dreamweaver" fwdocid = "162338751" fwnested="0" -->
<tr>
<td><img src="img/spacer.gif" width="31" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="253" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="22" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="126" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="122" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="111" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="115" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="132" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="14" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="3"><img name="index_r1_c1" src="img/index_r1_c1.jpg" width="306" height="146" border="0" id="index_r1_c1" alt="" /></td>
<td><img src="img/index_r1_c4.jpg" alt="" name="index_r1_c4" width="126" height="146" border="0" usemap="#index_r1_c4Map" id="index_r1_c4" /></td>
<td><img src="img/index_r1_c5.jpg" alt="" name="index_r1_c5" width="122" height="146" border="0" usemap="#index_r1_c5Map" id="index_r1_c5" /></td>
<td><img src="img/index_r1_c6.jpg" alt="" name="index_r1_c6" width="111" height="146" border="0" usemap="#index_r1_c6Map" id="index_r1_c6" /></td>
<td><img src="img/index_r1_c7.jpg" alt="" name="index_r1_c7" width="115" height="146" border="0" usemap="#index_r1_c7Map" id="index_r1_c7" /></td>
<td colspan="2"><img src="img/index_r1_c8.jpg" alt="" name="index_r1_c8" width="146" height="146" border="0" usemap="#index_r1_c8Map" id="index_r1_c8" /></td>
<td><img src="img/spacer.gif" width="1" height="146" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="2"><img name="index_r2_c1" src="img/index_r2_c1.jpg" width="31" height="285" border="0" id="index_r2_c1" alt="" /></td>
<td rowspan="2" align="right" valign="top" background="img/index_r2_c2.jpg"><!--#include file="f.asp"--></td>
<td colspan="7" align="center" background="img/index_r2_c3.jpg">操作成功</td>
<td><img src="img/spacer.gif" width="1" height="34" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="6" rowspan="2" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><p align="left"><br />
笑话标题:<%=title%> 类别:<%=sort%></p>
<p> 感谢您对<font color="#FF0000">荆网笑话</font>的支持!您所发表的笑话需要等带管理员的审核后才能显示!</p>
<p>您可以进行其他操作 </p>
<ul>
<li> <a href="upload.asp?sort=1">返回继续添加</a><br />
<br />
<br />
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="gb1"><%=content%></td>
</tr>
</table>
</li>
</ul>
</td>
</tr>
</table></td>
<td rowspan="3" background="img/index_r3_c9.jpg"> </td>
<td><img src="img/spacer.gif" width="1" height="251" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="2" rowspan="2" background="img/index_r4_c1.jpg"> </td>
<td><img src="img/spacer.gif" width="1" height="250" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="6" background="img/index_r5_c3.jpg"> </td>
<td><img src="img/spacer.gif" width="1" height="62" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="9" align="center" background="img/index_r6_c1.jpg"><!--#include file="d.asp"--></td>
<td><img src="img/spacer.gif" width="1" height="72" border="0" alt="" /></td>
</tr>
</table>
<map name="index_r1_c4Map" id="index_r1_c4Map"><area shape="rect" coords="25,46,111,140" href="index.asp" />
</map>
<map name="index_r1_c5Map" id="index_r1_c5Map">
<area shape="rect" coords="17,71,86,140" href="class.asp" />
</map>
<map name="index_r1_c6Map" id="index_r1_c6Map"><area shape="rect" coords="11,51,86,140" href="picclass.asp" />
</map>
<map name="index_r1_c7Map" id="index_r1_c7Map">
<area shape="rect" coords="30,52,98,140" href="upload.asp?sort=1" />
</map>
<map name="index_r1_c8Map" id="index_r1_c8Map"><area shape="rect" coords="38,70,99,141" href="upload.asp?sort=2" />
</map></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -