"" Then KeyWord = Request("Keyword") Else KeyWord =...">
论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > asp教程
Tag:入门,文摘,实例,技巧,iis,表单,对象,上传,数据库,记录集,session,cookies,存储过程,注入,分页,安全,优化,xmlhttp,fso,jmail,application,防盗链,stream,组件,md5,乱码,缓存,加密,验证码,算法,ubb,正则表达式,水印,,日志,压缩,url重写,控件,函数,破解,触发器,socket,ADO,初学,聊天室,留言本,视频教程

一个BBS的源代码(三)

文章类别:asp | 发表日期:2008-10-5 20:56:35

'=============================
Case "Content"
'=============================
' 显示内容

If Request("Keyword") <> "" Then KeyWord = Request("Keyword") Else KeyWord = ""

%>



<TABLE align=center border=0 cellPadding=1 cellSpacing=0 width=650>
<TR>
<TD class="menu">
<A href="/">飞林庄</A>-&gt;<A href="<%= ASP_FILE_NAME %><% If KeyWord <> "" Then Response.Write "?Keyword=" & KeyWord %>">经验交流</A>-&gt;怎样输出图像</TD>
</TR>
</TABLE>
<TABLE align=center border=0 cellPadding=8 cellSpacing=0 width=650>
<TR>
<TD bgColor=#000000>
<%
Which = Request("Which")

If IsNumeric( Which ) Then

Session("BBS_Which") = Which

' 点击数加一
Con.Execute( "UPDATE bbs SET [点击]=[点击]+1 WHERE [序号]=" & Which )

SQL = "SELECT * FROM bbs WHERE [序号]=" & Which
RecBBS.Open SQL , Con , 1
If Not RecBBS.EOF Then

Title = RecBBS.Fields("题目")
Session("BBS_WhichTitle") = Title
%>
<P><FONT color=#66ff99>序号</FONT>:<FONT color=#6699ff>E<%= Which %></FONT><BR>
<FONT color=#66ff99>作者</FONT>:<%= Server.HTMLEncode( RecBBS.Fields("作者") ) %><BR>
<FONT color=#66ff99>题目</FONT>:<%= Server.HTMLEncode( Title ) %><BR>
<FONT color=#66ff99>时间</FONT>:<%= RecBBS.Fields("时间") %><BR>
<BR>
<PRE>
<%= Server.HTMLEncode( RecBBS.Fields("内容") ) %>
</PRE>
</P>
<%
End If
RecBBS.Close

SQL = "SELECT * FROM bbsreply WHERE [原文]=" & Which
RecReply.Open SQL , Con , 3

AllID = "E" & Which

Do While Not RecReply.EOF

ID = RecReply.Fields("序号")
AllID = AllID & ":" & ID
%>
<P><FONT color=#66ff99>序号</FONT>:<FONT color=#6699ff><%= ID %></FONT><BR>
<FONT color=#66ff99>作者</FONT>:<%= Server.HTMLEncode( RecReply.Fields("作者") ) %><BR>
<FONT color=#66ff99>题目</FONT>:<%= Server.HTMLEncode( RecReply.Fields("题目") ) %><BR>
<FONT color=#66ff99>时间</FONT>:<%= RecReply.Fields("时间") %><BR>
<BR>
<PRE>
<%= Server.HTMLEncode( RecReply.Fields("内容") ) %>
</PRE>
</P>
<%
RecReply.MoveNext
If RecReply.EOF Then Exit Do
Loop
RecReply.Close

End If
%>
</TD>
</TR>
</TABLE>
<TABLE align=center border=0 cellPadding=7 cellSpacing=0 width=650>
<TR>
<TD class=menu>
<FORM action="<%= ASP_FILE_NAME %>" method=post>
<INPUT type=hidden id=Job name=Job value=Reply>
账号:<INPUT id=Userid name=Userid maxLength=30 size=30>
密码:<INPUT id=Password maxLength=30 name=Password size=30 type=password><BR>
题目:<INPUT id=Title maxLength=80 name=Title size=72 value="回复:<%= Title %>"><BR>
<TEXTAREA cols=80 id=Content name=Content rows=10></TEXTAREA><BR>
<INPUT type=submit value=" 回 复 ">
</FORM>
<P>
选中文章:
<SELECT id=Which name=Which size=1>
<%
WhichID = Split( AllID , ":" )

For Each ID In WhichID
Response.Write "<OPTION value="
Response.Write ID & ">" & ID
Response.Write "</OPTION>"
Next
%>
</SELECT><BR>
<INPUT id=Email maxLength=80 name=Email size=40>
<INPUT type=button id=MailBack name=MailBack value="寄回信箱" OnClick="window.open('<%= ASP_FILE_NAME %>?Job=Send&Which=' + Which.value + '&Email=' + Email.value , '_self')">
<INPUT type=button id=Modify name=Modify value="修改" OnClick="window.open('<%= ASP_FILE_NAME %>?Job=Modify&Which=' + Which.value , '_self')">
<INPUT type=button id=Delete name=Dalete value="删除" OnClick="window.open('<%= ASP_FILE_NAME %>?Job=Delete&Which=' + Which.value , '_self')">
</P>
</TD>
</TR>
</TABLE>
上一篇:{技巧}一个BBS的源代码(四) 人气:3646
下一篇:{技巧}一个BBS的源代码(二) 人气:3466
视频教程列表
文章教程搜索
 
Asp推荐教程
Asp热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058