📄 forumrow.jsp
字号:
<%/** * $RCSfile: forumRow.jsp,v $ * $Revision: 1.3 $ * $Date: 2002/10/28 02:35:23 $ */%><% // This page is meant to be included in index.jsp each time a row of the // table of forums is displayed. This page was created because the display // logic to print out a forum row is used in two places so it's factored // out here. // // This page assumes a "forum" variable which is a Forum object.%><% // Figure out if there is new content in the forum since the last time // the page user visited this page. Do this by checking the modification // date of the forum and compare it to the last visited time of the user. // See global.jsp for the initialization of 'lastVisited' boolean isNew = lastVisited.getTime() < forum.getModificationDate().getTime();%> <tr> <td align="center" valign="top" width="1%" nowrap> <% // Display a bullet with different CSS tags to indicate // new/old content. The CSS should customize the colors // so a new piece of content is visually distinguished from // an old one: if (isNew) { %> <span class="new-content">•</span> <% } else { %> <span class="old-content">•</span> <% } %> </td> <td class="forum-cell" width="97%"> <a href="forum.jsp?forum=<%= forum.getID() %>" ><%= forum.getName() %></a> <br> <i><%= forum.getDescription() %> </td> <td align="center" width="1%" nowrap> <%= forum.getThreadCount() %> / <%= forum.getMessageCount() %> </td> <td width="1%" nowrap> <%= dateFormatter.format(forum.getModificationDate()) %> </td> </tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -