⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postdisplay.asp

📁 单班同学录 一个非常漂亮的同学录 哦
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@LANGUAGE="VBScript" CODEPAGE="936"%>
<!--#include file="SESSION.asp" -->
<!--#include file="CONN.asp" -->
<!--#include file="CHAR.asp" -->
<%
PostID=request("id")
If PostID="" or IsNumeric(PostID)=False Then
	response.Redirect("error.asp")
end if
strsql="select bbs.*,user.realname,user.email,user.jifen,user.oicq,user.msn,user.homepage from bbs inner join [user] on user.username=bbs.postuser where ReplyID=0 and postID="&PostID
set rs=server.CreateObject("adodb.recordset")
rs.open strsql,conn,1,3
If rs.eof or rs.bof Then
	response.Redirect("error.asp")
end if
rs("PostHits")=rs("PostHits")+1
rs.update
PostID=rs("PostID")
PostTitle=rs("PostTitle")
PostText=rs("PostText")
Realname=rs("realname")
PostUser=rs("PostUser")
email=rs("email")
jifen=rs("jifen")
oicq=rs("oicq")
Msn=rs("Msn")
homepage=rs("homepage")
PostUser=rs("PostUser")
PostTime=formatdate(rs("PostTime"))
rs.close
set rs=nothing
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title><%=classname%>同学录--发表留言</title>
<link href="css/class.css" type=text/css rel=stylesheet>
<script language="JavaScript">
<!--
function checkform(){
	if  (document.post.MssgText.value.length==0) {
	alert("内容不能为空!");
	document.post.MssgText.focus();
	return false;
	}
	return true
	}
//-->
</script>
<script language="JavaScript" src="js/go.js"></script>
<script language="JavaScript" src="js/ubb.js"></script>
</head>

<body background="images/1.GIF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td colspan="3"><img src="images/top_t.gif" width="776" height="43"></td>
  </tr>
  <tr> 
    <td width="138"><img src="images/top_l.gif" width="138" height="39"></td>
    <td width="584" align="right" bgcolor="#666B52"><a href="index.asp"><img src="images/toplogo.gif" alt="<%=classname%>同学录" width="200" height="39" border="0"></a></td>
    <td width="54"><img src="images/top_r.gif" width="54" height="39"></td>
  </tr>
  <tr> 
    <td colspan="3"><table width="776" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="120" rowspan="2" valign="top" background="images/left_x.gif"><img src="images/left_img.gif" width="120" height="480"></td>
          <td rowspan="2" valign="top" bgcolor="#F2F2EA"> <div align="center"> 
              <!--#include file="top.asp" -->
            </div>
            <table width="618" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td valign="top"> <div align="center"><br>
				 <!--#include file="right.asp" -->
                  </div></td>
                <td width="10"> </td>
                <td width="418" valign="top"><table width="400" border="0" align="center" cellpadding="2" class="font1">
                    <tr> 
                      <td width="459">您的位置&gt;班级论坛</td>
                      <td width="27"> </td>
                    </tr>
                  </table>
                  <div align="center"> 
                    <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td><table width="400" border="0" cellpadding="0" cellspacing="0" background="images/bjbj.gif">
                            <tr> 
                              <td width="135"><img src="images/bjlt.gif" width="135" height="36"></td>
                              <td align="right"><a href="postadd.asp"><img src="images/fbht1.gif" width="78" height="36" border="0"></a></td>
                              <td width="85"><a href="postreply.asp?pid=<%=PostID%>"><img src="images/hfht.gif" width="85" height="36" border="0"></a></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr> 
                        <td><table width="400" border="0" cellpadding="0" cellspacing="0" background="images/n_bk.gif">
                            <tr> 
                              <td valign="top"> <table border="0" cellpadding="2" width="400" cellspacing="2">
                                  <tr> 
                                    <td> <div align="center">
                                        <table width="380" border="0" cellpadding="0" cellspacing="0" bgcolor="#666B52">
                                          <tr>
                                            <td><table width="380" border="0" align="center" cellpadding="2" cellspacing="1">
                                                <tr> 
                                                  <td width="90"> <font color="#FFFFFF"></font></td>
                                                  <td width="290"><font color="#FFFFFF"><strong>标题:<%=PostTitle%></strong></font></td>
                                                </tr>
                                                <tr> 
                                                  <td align="center" valign="top" bgcolor="#F4F4EA">
												  <%if len(oicq)>0 then%><p align="center">
												  <img src="http://qqshow-user.tencent.com/<%=oicq%>/11/00/" width="70" height="113" border="0" class="1px-table"><BR> <%end if%><b><%=Realname%></b><BR>积分:<%=jifen%></td>
                                                  <td valign="top" bgcolor="#FAFAF5"><strong><%=PostTitle%></strong> <br> 
                                                  <%=ubbcode(PostText)%> <br> 
													<img border="0" src="images/signbbs.gif" width="194" height="15" align="right"><br> <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                      <tr> 
                                                        <td><div align="right"> 
                                                            <%if PostUser=session("username") or session("usergroup")=3 then%>
                                                            <a href="postadd.asp?id=<%=postid%>"><img src="images/edit.gif" alt="修改" width="22" height="16" border="0"></a><a href='javascript:go("postdel.asp?id=<%=postid%>","您确定要删除?")'><img src="images/del.gif" alt="删除" width="22" height="16" border="0"></a> 
                                                            <%end if%>
                                                          </div></td>
                                                      </tr>
                                                    </table></td>
                                                </tr>
                                                <tr> 
                                                  <td valign="top" bgcolor="#F4F4EA"><%=PostTime%></td>
                                                  <td bgcolor="#F4F4EA"><a href="member.asp?id=<%=postuser%>"><img src="images/zl.gif" width="44" height="17" border="0"></a><a href="#" onClick="javascript:window.open('primsgsend.asp?id=<%=PostUser%>','','width=400,height=300,left=300,top=200')"><img src="images/dx.gif" width="44" height="17" border="0"></a><a href="mailto:<%=email%>"><img src="images/yj.gif" width="44" height="17" border="0"></a> 
                                                    <%if len(oicq)>0 then%> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -