📄 blog_view.asp
字号:
<!--#include file="../main.asp" -->
<!--#include file="../Space.asp" -->
<%
id=clng(request("id"))
if id="" or IsNumeric(id)<>true then
response.write"请输入正确的ID号!"
response.end
end if
sql="select * from "&WebSqlType&"_blog where "&WebSqlType&"_blogid="&request("blogid")&""
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
conn.execute("update "&WebSqlType&"_blog set "&WebSqlType&"_bloghtc="&WebSqlType&"_bloghtc+1 where "&WebSqlType&"_blogid="&request("blogid"))
sql3="select * from "&WebSqlType&"_member where "&WebSqlType&"_id="&id&""
set rs3=server.createobject("ADODB.Recordset")
rs3.open sql3,conn,1,1
usertitle=rs3(""&WebSqlType&"_username")
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE><%=rs(""&WebSqlType&"_blogtitle")%> - 博客 - <%=usertitle%>的个人空间</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=follow,index name=robots>
<LINK href="<%=cityurl%>images/style.css"
type=text/css rel=stylesheet>
<LINK href="<%=cityurl%>images/msg.css" type=text/css
rel=stylesheet>
<script>
function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements[i];
if (e.name != 'chkall') e.checked = form.chkall.checked;
}
}
</script>
<STYLE>#flashcontent P {
COLOR: #000
}
#foot {
DISPLAY: block; MARGIN: 0px auto; WIDTH: 720px
}
</STYLE>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<BODY>
<DIV id=append_parent></DIV>
<DIV id=wrap>
<!--#include file="top.asp" -->
<DIV class=main>
<!--#include file="right.asp" -->
<DIV class=main-box-4>
<DIV class=box-top>
<DIV></DIV></DIV>
<DIV class=nav>我的位置:<A href="<%=cityurl%>">首页</A> » <A
href="index.asp?id=<%=id%>"><%=usertitle%>的个人空间</A> » <STRONG><%=usertitle%>的博客</STRONG></DIV>
<DIV class=box>
<TABLE class=title cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="14" class=title-l></TD>
<TD width="816"><%=rs(""&WebSqlType&"_blogtitle")%></TD>
<TD width="116"><!-- <a href="/bbs/bbs_add.asp">发布新贴子</a> --></TD>
<TD width="14" class=title-r></TD></TR></TBODY></TABLE>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="300" valign="top"><%=rs(""&WebSqlType&"_blogbook")%></td>
</tr>
</table>
<TABLE width=90% border=0 align="center" cellPadding=6 cellSpacing=0 borderColor=#111111
style="BORDER-COLLAPSE: collapse">
<TBODY>
<TR align="left">
<TD height=30 colspan="2" style="border-bottom:1px solid red; "><DIV class=tablehead><B class=tableheadr>给我留言 </B></DIV></TD>
</TR>
<FORM id="book" name="leavewordForm" action="server.asp " method="post">
<INPUT type=hidden value=<%=id%> name=id>
<INPUT type=hidden value=7 name=key>
<INPUT type=hidden value=<%=request("blogid")%> name=htc>
<TR>
<TD width=17% height=25 align=right><span class="STYLE1">内容 :</span></TD>
<TD height=25 align=left style="border-bottom:1px solid #cccccc; ">
<INPUT type=hidden
value="blog_view.asp?id=<%=id%>&blogid=<%=request("blogid")%>" name="url"> <TEXTAREA name=book cols="80" rows=5 id=input_words onKeyUp="return textLimitCheck(this,500);"></TEXTAREA>
</TD>
</TR>
<TR>
<TD width=17% height=25 align=right><span class="STYLE1"></span></TD>
<TD width=83% height=25 align=left style="border-bottom:1px solid #cccccc; "><INPUT id=btn_post type=submit value=发表留言 name=Submit>
</TD>
</TR>
</form>
<TR align="center" valign="bottom">
<TD height=10 colSpan=2></TD>
</TR>
</TBODY>
</TABLE>
<table width="90%" border="0" align="center" cellpadding="6" cellspacing="0" bordercolor="#111111"
style="BORDER-COLLAPSE: collapse">
<tbody>
<tr align="left">
<td height="13" colspan="2" style="border-bottom:1px solid red; ">
<div class="tablehead"><b class="tableheadr">查看评论 </b></div></td>
</tr>
<%set rs1=server.createobject("adodb.recordset")
sql="select * from "&WebSqlType&"_book where "&WebSqlType&"_key=7 and "&WebSqlType&"_htc="&request("blogid")&" order by "&WebSqlType&"_id desc"
rs1.open sql,conn,1,1
do while not rs1.eof
%>
<tr>
<td width="17%" height="25" align="right" ><span class="STYLE1"><A
href="index.asp?id=<%=rs1(""&WebSqlType&"_user")%> " target=_blank><%=rs1(""&WebSqlType&"_username")%></A> 说:</span></td>
<td height="25" align="left" style="border-bottom:1px solid #cccccc; "><%=rs1(""&WebSqlType&"_book")%></td>
</tr>
<%
rs1.movenext
loop
rs1.close%>
<tr align="center" valign="bottom">
<td height="10" colspan="2">
</td>
</tr>
</tbody>
</table>
</DIV>
<DIV class=box-bot>
<DIV></DIV></DIV></DIV></DIV>
<DIV id=bot><!--#include file="../bottom.asp" --></DIV>
<DIV id=wrap-bot>
<DIV></DIV></DIV></DIV>
</BODY></HTML>
<%rs3.close
rs.close%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -