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

📄 index.jsp

📁 Struts+Spring+Hibernate开发的BBS,功能很强大很完善
💻 JSP
字号:

<%
/**
 *	$RCSfile: index.jsp,v $
 *	$Revision: 1.1.1.1 $
 *	$Date: 2002/09/09 13:50:23 $
 */
%>

<%@ page import="java.util.*,
                 com.jivesoftware.forum.*,
                 com.jivesoftware.forum.util.*"
    errorPage="error.jsp"
%>

<%@ include file="include/branding/style.jsp" %>

<%@ include file="include/forumSetup.jsp" %>

<%  String title = titlePrefix; %>
<%@ include file="include/header.jsp" %>

<%@ include file="include/branding/header.jsp" %>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
    <td valign="top" width="99%">

    <span class="header">
    <%  if (rootBreadcrumbText != null && rootBreadcrumbLink != null) { %>
    <a href="<%= rootBreadcrumbLink %>" class="header"
    ><%= rootBreadcrumbText %></a>
    &raquo;
    <%  } %>
    <a href="index.jsp" class="header" title="Refresh the forum listing"
    ><%= indexPageHeaderText %></a>
    </span>
    <p>

    <font size="-1" color="<%= deckTextColor %>">
    <%= indexPageDeckText %>
    </font>

    </td>
    <td valign="top" width="1%" align="center">
    <%@ include file="include/loginbox.jsp" %>
    </td>
</tr>
</table>

<p><br>

<%  String message = (String)session.getAttribute("message");
    if (message != null) {
        session.removeAttribute("message");
%>
    <font size="-1">
    <i><%= message %></i>
    <p>
    </font>
<%  }
%>

<table bgcolor="<%= tableBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
    <table bgcolor="<%= tableBorderColor %>" cellpadding="3" cellspacing="1" border="0" width="100%">
    <tr bgcolor="<%= tableHeaderBgColor %>">
        <td width="1%">
            <font size="-2" color="<%= tableHeaderTextColor %>">
            <b>NEW</b>
            </font>
        </td>
        <td width="97%">
            <font size="-2" color="<%= tableHeaderTextColor %>">
            <b>论坛名称   hello</b>
            </font>
        </td>
        <td width="1%" nowrap>
            <font size="-2" color="<%= tableHeaderTextColor %>">
            <b>TOPICS / MESSAGES</b>
            </font>
        </td>
        <td width="1%" nowrap align="center">
            <font size="-2" color="<%= tableHeaderTextColor %>">
            <b>LAST UPDATED</b>
            </font>
        </td>
    </tr>

<%  Iterator forums = forumFactory.forums();
    while (forums.hasNext()) {
        Forum forum = (Forum)forums.next();
        String description = forum.getDescription();
        boolean isNew = (forum.getModifiedDate().getTime() > lastVisited);
%>
    <tr bgcolor="<%= tableRowColor1 %>">
        <td width="1%" align="center" valign="top">
            <font size="-2" color="#ff0000">
        <%  if (isNew) { %>
            <b>&#149;</b>
        <%  } else { %>
            &nbsp;
        <%  } %>
            </font>
        </td>
        <td width="97%">
            <font size="-1">
            <a href="forum.jsp?forum=<%= forum.getID() %>"><%= forum.getName() %></a>
            <br>
            <i><%= (description!=null)?description:"" %></i>
            </font>
        </td>
        <td width="1%" nowrap align="center" valign="top">
            <font size="-1">
            <%= forum.getThreadCount() %> / <%= forum.getMessageCount() %>
            </font>
        </td>
        <td width="1%" nowrap valign="top">
            <font size="-1">
            <%= SkinUtils.formatDate(request,response,pageUser,forum.getModifiedDate()) %>
            </font>
        </td>
    </tr>
<%  } %>

    </table>
</td></tr>
</table>

<br>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
    <td align="right">
    <a href="http://www.jivesoftware.com/poweredby/" target="_blank"
    ><img src="images/powered_by_jive.gif" width="100" height="30" alt="Powered by Jive" border="0"></a>
    </td>
</tr>
</table>

<%@ include file="include/branding/footer.jsp" %>

<%@ include file="include/footer.jsp" %>

⌨️ 快捷键说明

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