📄 bbsindex.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ include file="/common/taglibs.jsp"%>
<html:html>
<head>
<title>
论坛主页
</title>
</head>
<link href="images/myStyleClass.css" rel="stylesheet" type="text/css">
<body>
<%@ include file="/common/header.jsp"%>
<html:errors />
<%@ page import="j2eebbs.*"%>
<%@ page import="java.util.*"%>
<%
Vector forumVector = (Vector) session
.getAttribute(Constants.FORUM_LIST_KEY);
Forum forum = null;
String username = (String) session.getAttribute("username");
if (forumVector != null) {
String manager;
%>
<table width="775" border="1" align="center">
<tr align="left">
<td colspan="4">
<table width="97%" border="0" align="center">
<tr>
<td>
欢迎你访问论坛:
<%=username%>
</td>
<td align="right">
<A href="logoff.do">
注销登录
</A>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#009999">
<td colspan="4">
Fly Forum
</td>
</tr>
<tr align="center">
<td width="19%">
论坛
</td>
<td width="10%">
主题数
</td>
<td width="59%">
论坛最新帖子
</td>
<td width="12%">
版主
</td>
</tr>
<%for (int i = 0; i < forumVector.size(); i++) {
forum = (Forum) forumVector.get(i);
manager = forum.getManager();
if (manager == null)
manager = "";
%>
<tr align="center">
<td width="19%">
<A href="topiclist.do?forumid=<%=forum.getId()%>&forumname=<%=forum.getForumname()%>" target=_self>
<%=forum.getForumname()%>
</A>
</td>
<td width="10%">
<%=forum.getTopicNum()%>
</td>
<td align="left" width="59%">
<%if (forum.getTopicNum() != 0) {%>
<A href="responselist.do?topicid=<%=forum.getLastTopicId()%>">
<%=forum.getLastTopicTitle()%>
</A>
(
<%=forum.getLastTopicAuthor()%>
)
<FONT color=#9a0112>
<%=forum.getLastTopicTime()%>
</FONT>
<%
}
%>
</td>
<td width="12%">
<%=manager%>
</td>
</tr>
<% }
}
%>
</table>
<%@ include file="/common/footer.jsp"%>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -