?? index.jsp
字號:
<%@page pageEncoding="GB2312"%>
<%@page contentType="text/html; charset=gb2312"%>
<%request.setCharacterEncoding("GB2312");%>
<%@ include file="incdb.jsp"%>
<jsp:useBean id="user" class="twm.bbsuser" scope="page"/>
<jsp:useBean id="board" class="twm.bbsboard" scope="page"/>
<jsp:useBean id="bbs" class="twm.bbs" scope="page"/>
<%
java.sql.ResultSet sqlRst;
sqlRst=board.listBoard(7);
String boardmaster;
int boardid;
java.util.Date dateandtime= new java.util.Date();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>bbs</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<style type="text/css">
<!--
a:hover { text-decoration: underline }
body { scrollbar-base-color: #F4F4F4; scrollbar-arrow-color: #000000; font-size: 12px; background-color: #EFFFCE }
table { font: 12px Tahoma, Verdana; color: #000000 }
input,select,textarea { font: 11px Tahoma, Verdana; color: #000000; font-weight: normal; background-color: #F4F4F4 }
form { margin: 0; padding: 0}
select { font: 11px Arial, Tahoma; color: #000000; font-weight: normal; background-color: #F4F4F4 }
.nav { font: 12px Tahoma, Verdana; color: #000000; font-weight: bold }
.nav a { color: #000000 }
.header { font: 11px Tahoma, Verdana; color: #000000; font-weight: bold; background-color: #99CC66 }
.header a { color: #000000 }
.category { font: 11px Arial, Tahoma; color: #000000; background-color: #EFEFEF }
.tableborder { background: #D6E0EF; border: 1px solid #000000 }
.singleborder { font-size: 0px; line-height: 1px; padding: 0px; background-color: #F4F4F4 }
.smalltxt { font: 11px Arial, Tahoma }
.outertxt { font: 12px Tahoma, Verdana; color: #000000 }
.outertxt a { color: #000000 }
.bold { font-weight: bold }
.altbg1 { background: #F4F4F4 }
.altbg2 { background: #F8F8F8 }
.maintable { width: 100%; background-color: #EFFFCE }
#Layer1 {
position:absolute;
left:205px;
top:60px;
width:60px;
height:48px;
z-index:1;
}
#Layer2 {
position:absolute;
left:205px;
top:84px;
width:79px;
height:38px;
z-index:1;
background-color: #FF00FF;
}
--></style>
<SCRIPT src="js/menu.js"></SCRIPT>
</head>
<body >
<table bgcolor="#EFFFCE" width="101%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<div class="maintable">
<table cellspacing="1" cellpadding="4" width="98%" align="center" class="tableborder">
<tr class="header">
<td height="58"><h1>
<div align="center">BBS</div>
<h1></h1>
</h1></td>
</tr>
</table>
</div>
<tr>
<td align="right" class="smalltxt"><span class="bold">»</span> <span class="bold">游客<img src="images/userlist1.gif">: </span> <a href="registry.jsp" >注冊</a> | <a href="login.jsp">登錄</a> </td>
<td rowspan="2" width="0">歡迎你:
你登錄的時間為:<font color="#CC3333"><%=dateandtime%></font></td>
</tr>
</table>
<center>
<table cellspacing="4" cellpadding="0" border="0" width="98%" align="center" class="outertxt">
<tr>
<td width="90%" class="smalltxt">
<a href="index.jsp" target="_top">返回首頁 </a>|
<a href="about.jsp" target="rtop"> 關(guān)于論壇 </a>|
<a href="query.jsp"> 帖子查詢 </a>|
<img src="images/hot_folder.gif" name="bar1" width="25" height="23" id=bar1>
<A href="guanli.jsp">管理員</A>
<img src="images/hot_folder.gif" id=bar2 width="25" height="23">
<A HREF="paihp.jsp" target="_self">排 行 榜|</a>
<img src="images/hot_folder.gif" id=bar3 width="25" height="23">
<A HREF="grxx.jsp" target="_self">用戶信息</a>
</td>
<td width="10%" align="right" nowrap class="smalltxt">注冊人數(shù):<font color="#FF0000"><%=user.countUser()%></font>注冊版面:<font color="#FF0000"><%=board.countBoard()%></font>共有帖子數(shù):<font color="#FF0000"><%=bbs.countBbs()%></font>
</td>
</tr></table>
<div class="maintable">
<table cellspacing="1" cellpadding="4" width="98%" align="center" class="tableborder">
<tr class="header"><td height="65"><p> <img src="images/gb.gif" width="18" height="18">論壇系統(tǒng)廣播:</p> <MARQUEE onmouseover=this.stop() onmouseout=this.start() width="98%">
希望大家相互灌水!</MARQUEE>
</td></tr>
</table>
<br></div>
<div class="maintable">
<table cellspacing="1" cellpadding="4" width="98%" align="center" class="tableborder">
<tr><td height="32" colspan="7" class="header"><table cellspacing="0" cellpadding="0" width="100%">
<tr class="smalltxt">
<td class="bold">
<%
while(sqlRst.next()){
%>
<a href="bbslist.jsp?boardid=<%=sqlRst.getString("boardid")%>"><%=sqlRst.getString("boardname")%></a>
<%
}
//'sqlRst.close();
%>
</td>
</tr></table></td></tr>
<tr class="category" align="center">
<td width="5%"> </td>
<td width="51%">論壇</td>
<td width="5%">主題</td>
<td width="5%">帖數(shù)</td>
<td width="5%">今日</td>
<td width="13%">最后發(fā)表</td>
<td width="16%">版主</td>
</tr>
<tbody id="category_19" style="">
<tr>
<td class="altbg1" align="center"><img src="images/forum.gif" width="30" height="29"></td>
<td class="altbg2" align="left" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<a href="bbslist.jsp?boardid=1"><span class="bold">修閑論壇</span></a>
<br><span class="smalltxt"><br>
</span></td>
<td class="altbg1" align="center">3</td>
<td class="altbg2" align="center">2</td>
<td class="altbg1" align="center">0</td>
<td class="altbg2"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td align="right" class="smalltxt" title="標(biāo)題: " nowrap>
<%=dateandtime%><br>
by
<a href="bbslist.jsp?boardid=1">aa</a></td>
<td nowrap> <a href="redirect.php?tid=40462&goto=lastpost#lastpost"><img src="images/lastpost.gif" width="14" height="9" border="0"></a></td>
</tr></table></td>
<td class="altbg1" align="center" style="word-break: keep-all">安安</td>
</tr>
<tr>
<td class="altbg1" align="center"><img src="images/forum.gif" width="30" height="29"></td>
<td class="altbg2" align="left" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<a href="bbslist.jsp?boardid=2"><span class="bold">情感論壇</span></a>
<br></td>
<td class="altbg1" align="center">2</td>
<td class="altbg2" align="center">3</td>
<td class="altbg1" align="center">1</td>
<td class="altbg2"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td align="right" class="smalltxt" nowrap>
<%=dateandtime%><br>by
<a href="bbslist.jsp?boardid=2">hh</a></td>
<td nowrap> <img src="images/lastpost.gif" width="14" height="9" border="0"></td>
</tr></table></td>
<td class="altbg1" align="center" style="word-break: keep-all">
碧柏</td>
</tr>
<tr>
<td class="altbg1" align="center"><img src="images/forum.gif" width="30" height="29"></td>
<td class="altbg2" align="left" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<a href="bbslist.jsp?boardid=3"><span class="bold">文字游戲</span></a>
<br></td>
<td class="altbg1" align="center">4</td>
<td class="altbg2" align="center">1</td>
<td class="altbg1" align="center">0</td>
<td class="altbg2"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td align="right" class="smalltxt" t nowrap>
<%=dateandtime%><br>
by
<a href="bbslist.jsp?boardid=3">tt</a></td>
<td nowrap> <a href="redirect.php?tid=83493&goto=lastpost#lastpost"><img src="images/lastpost.gif" width="14" height="9" border="0"></a></td>
</tr></table></td>
<td class="altbg1" align="center" style="word-break: keep-all"><span class="smalltxt">新人類 </span></td>
</tr>
<tr>
<td class="altbg1" align="center"><img src="images/forum.gif" width="30" height="29"></td>
<td class="altbg2" align="left" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<a href="bbslist.jsp?boardid=4"><span class="bold">交友熱線</span></a>
<br></td>
<td class="altbg1" align="center">1</td>
<td class="altbg2" align="center">3</td>
<td class="altbg1" align="center">3</td>
<td class="altbg2"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td align="right" class="smalltxt" nowrap>
<%=dateandtime%><br>
by<a href="bbslist.jsp?boardid=4">ww</a></td>
<td nowrap> <a href="redirect.php?tid=86433&goto=lastpost#lastpost"><img src="images/lastpost.gif" width="14" height="9" border="0"></a></td>
</tr></table></td>
<td class="altbg1" align="center" style="word-break: keep-all">楓</td>
</tr>
</tbody></table><br>
</div>
</center><br>
</body></html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -