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

📄 bbsmanage.asp

📁 简单的企业发布信息网站 有留言功能 界面 美观
💻 ASP
字号:
<!--#include file="conn/db.asp"-->
<% 
response.ContentType="text/html;charset=gb2312"
if session("login")<>true then
%>
<script language="javascript">
alert("你还没有登陆!");
this.location.href="administratorlogin.asp"
</script>
<%
else
%>
<html>
<head>
<title>岳海鑫源后台管理</title>
<style>
body{ margin: 0 auto; width: 778px; padding: 0; text-align: center;}

#head{ background: url("image/head.gif") #fff no-repeat 0 0; height: 101px; width: 778px;}
#head ul{ width: 762px; list-style-type: none; margin:75px 7px 0 9px; padding: 0; height: 20px; background: #13b3fd; text-align: center;}
#head ul li{ float: left; display: block; margin: 0; padding: 3px 2px; width: 88px; text-align: center;}
#head li a{ display: block; width: 100%; height: 18px; padding: 2px 3px; text-decoration: none; font-size: 14px; color: #fff; font-weight: bold; border-left: 1px #fff solid;}
#head li#empty{ width: 142px;}
#head li a#first{ border: 0;}
#head li a:hover{ color: #1193fd; background: #fff; border-right: 1px solid #fff;}

#hengfu{ background: url("image/cont_04.jpg") #fff no-repeat 0 0; width: 778px; height: 184px;}

#foot{ width: 778px;}

img{ display: block; border: 0;}

#content{ width: 400px; height: 120px;}

#messageboardshow{ text-align: left; margin: 0 0 0 60px;}
#messageboardshow ul{ margin: 0 0 10px 0; padding: 0; list-style-type: none; border: 1px solid #7e7e7e; width: 420px; color: #444; font: 9pt arail;}
#messageboardshow li{ margin: 0 5px 10px 2px; padding: 5px 0 0 0; float: left; }
#messageboardshow li.name{ border-right: 1px solid #7e7e7e; width: 100px;} 
#messageboardshow li img{ display: inline;}

.title{ width: 420px; padding: 2px; margin: 0; color: #fff; background: #7e7e7e; text-algin: left;}

#center{ width: 778px; margin: 0; padding: 0;}

#c_left{ background: url("image/cont_left.jpg") #fff repeat-y 0 0; float: left; padding: 0 0 0 34px;}
#c_right{ background: url("image/cont_071.jpg") #fff repeat-y 0 0; width: 31px; height: 461px; padding: 0; float: right;}
#c_center{ width: 489px; float: left; background: #fff; padding: 0; height: 461px; line-height: 120%;}
#c_bottom{ clear: both; background: url("image/cont_left3.jpg") #fff no-repeat 0 0;}
</style>
<script src="common.js" language="javascript" type="text/javascript"></script>
</head>
<body>
         <div id="head">
              <ul>
                   <li id="empty">&nbsp;</li>
                   <li><a href="company.asp" title="公司简介" id="first">公司简介</a></li>    
                   <li><a href="zhici.asp" title="总经理致辞">总经理致辞</a></li>    
                   <li><a href="zhaopin.asp" title="招聘启事">招聘启事</a></li> 
                   <li><a href="zgrz.asp" title="资格认证">资格认证</a></li>
                   <li><a href="fwxm.asp" title="服务项目">服务项目</a></li>
                   <li><a href="pgyj.asp" title="评估业绩">评估业绩</a></li>
                   <li><a href="messageboard.asp" title="留言板">留言板</a></li>
              </ul>
          </div>
    
          <div id="hengfu">
          </div>

          <div id="center">
              <div id="c_left">
                   <img src="image/cont_left2.jpg" />
              </div>
              <div id="c_center">
                      <img src='image/cont_06_admin.jpg' />
<div id="messageboardshow">
<%
page=getpage(request.QueryString("page"))
set rs=server.CreateObject("adodb.recordset")
rs.pagesize=4
sql = "select * from bbs order by id "
rs.open sql,conn,3,2 
if rs.eof then

         p "当前没有留言信息"
  
   else 
   ipage=0
   rs.absolutepage=page
   do while not rs.eof and ipage<rs.pagesize
%>   
<div class="title"><span style="float: right">时间: <%=rs("publishtime")%>&nbsp;&nbsp;&nbsp;<a href="bbsdel.asp?page=<%=page%>&read=<%=rs(0)%>">删除</a></span><span>主题: <%=rs("title")%></span></div>
<ul>
      <li class="name"><span>姓名:<%=rs("name")%></span><br /><span>地区:<%=rs("address")%></span><br /><img src="image/phone.jpg" width="10pt" height="10pt" title="电话" /><span>:<%=rs("phone")%></span>&nbsp;&nbsp;&nbsp;<a href='mailto: <%=rs("email")%>'><img src="image/email.jpg" width="10pt" height="10pt" title="email" /></a></li>
      <li><%=rs("content")%></li>
</ul>
<%
  ipage=ipage+1
  rs.movenext
  loop
%>
			<div id="page">
		        共<%= rs.recordcount %>条留言 每页<%= rs.pagesize %>条 页次:<%=page%>/<%= rs.pagecount %>
			<% If page=1 Then %>
			          首页
			          上页 
			<% else %>
			          <a href="bbsmanage.asp?page=1"><strong>首页</strong></a>
                                  <a href="bbsmanage.asp?page=<%=(page-1)%>"><strong>上页</strong></a>
			<% end if %>
			<% If page=rs.pagecount Then %>
			          下页
			          尾页 
			<% else %>
			          <a href="bbsmanage.asp?page=<%=(page+1)%>"><strong>下页</strong></a>
			          <a href="bbsmanage.asp?page=<%=rs.pagecount%>"><strong>尾页</strong></a>
			<% end if %>		
			</div>
<%   
end if
rs.close
set rs=nothing   
%>
</div>
<div style="text-align: center; margin: 10px 0 0 0;"><a href="checkadmin.asp">返回管理首页</a></div>
              </div>		
              <div id="c_right">
                 &nbsp;
               </div>
          </div>


<!--#include file="foot.asp"-->
</body>
</html>
<%end if%>

⌨️ 快捷键说明

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