📄 bbsmain.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@page import = "java.util.*"%>
<%@page import = "model.bbs.hibernate.*"%>
<%
request.setCharacterEncoding("gb2312");
List topicList = (List)session.getAttribute("topiclist");
List articleCountList = (List)session.getAttribute("articlecountlist");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>BBS SYSTEM</title>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25" align="right"> </td>
</tr>
<tr>
<td><table width="92%" border="0" cellpadding="0" cellspacing="1" bgcolor="#44608A">
<tr align="center">
<td width="9%" height="25" bgcolor="#60BFFF"></td>
<td width="29%" background="image/bgcolor.gif" bgcolor="#60BFFF"><b>论 坛 主 题</b></td>
<td width="53%" background="image/bgcolor.gif" bgcolor="#60BFFF"><b>描 述</b></td>
<td width="9%" background="image/bgcolor.gif" bgcolor="#60BFFF"><strong>贴 子 数 </strong></td>
</tr>
<%
for (int i=0; i<topicList.size(); i++) {
Topic topic = (Topic)topicList.get(i);
int count = ((Integer)articleCountList.get(i)).intValue();
String name = topic.getName();
String id = String.valueOf(topic.getId());
String remarks = topic.getRemarks();
%>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><img src="bbs/image/topic.jpg" width="45" height="38"></div></td>
<td height="25" bgcolor="#FFFFFF"><a href="topicmain.do?id=<%=id%>&page=first"><%=name%></a></td>
<td align="center" bgcolor="#FFFFFF"><div align="left"><%=remarks%></div></td>
<td align="center" bgcolor="#FFFFFF"><%=count%></td>
</tr>
<%
}
%>
<tr bgcolor="#EFEFEF">
<td height="30" colspan="4"> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><hr size="1" noshade></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -