📄 index.jsp
字号:
<%}%>
</td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="47%" height="23">
『 <a href="<%=ForumPage.getListTopicPage(request, lf.getCode())%>">
<%if (lf.getColor().equals("")) {%>
<%=lf.getName()%>
<%}else{%>
<font color="<%=lf.getColor()%>"><%=lf.getName()%></font>
<%}%>
</a> 』
<%
int chcount = lf.getChildCount();
if (chcount>0) {
out.print("(" + chcount + ")");
}
%>
<%
/*
Vector vplugin = pmnote.getAllPluginUnitOfBoard(lf.getCode());
if (vplugin.size()>0) {
out.print("<font color=#aaaaaa>");
Iterator irpluginnote = vplugin.iterator();
while (irpluginnote.hasNext()) {
PluginUnit pu = (PluginUnit)irpluginnote.next();
out.print(pu.getName(request) + " ");
}
out.print("</font>");
}
*/
%>
</td>
<td width="23%" rowspan="2" align="right" valign="middle">
<%
String logo = StrUtil.getNullString(lf.getLogo());
if (!logo.equals("")) {
%>
<img src="images/board_logo/<%=logo%>" align="absmiddle">
<%}%>
</td>
<td width="30%" rowspan="2"><table width="100%">
<tr>
<td>
<%
MsgDb mdb = mm.getMsgDb(md.getRootid());
%>
<lt:Label res="res.label.forum.index" key="topic"/>
<a title="<%=mdb.getTitle()%>" href="<%=ForumPage.getShowTopicPage(request, mdb.getId())%>"><%=StrUtil.toHtml(StrUtil.getLeft(mdb.getTitle(), 60))%></a></td>
</tr>
<tr>
<td>
<%if (md.isLoaded()) {%>
<%if (md.getReplyid()==-1) {%>
<lt:Label res="res.label.forum.index" key="topic_post"/>
<%}else{%>
<lt:Label res="res.label.forum.index" key="topic_reply"/>
<%}%><a href="../userinfo.jsp?username=<%=StrUtil.UrlEncode(md.getName())%>"><%=um.getUser(md.getName()).getNick()%></a>
<%}%>
</td>
</tr>
<tr>
<td><lt:Label res="res.label.forum.index" key="topic_date"/>
<%=com.redmoon.forum.ForumSkin.formatDateTime(request, md.getAddDate())%> <img src="images/lastpost.gif" width="11" height="10"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="23">
<img src="images/readme.gif" width="10" height="10"> <%=lf.getDescription()%>
<%if (chcount>0) {%>
<table width="100%" height="22" border="0" cellpadding="2" cellspacing="0">
<tr><td>
<%
LeafChildrenCacheMgr lfc = new LeafChildrenCacheMgr(lf.getCode());
Vector chv = lfc.getLeafChildren();
Iterator chir = chv.iterator();
while (chir.hasNext()) {
Leaf chlf = (Leaf) chir.next();
%>
<a href="<%=ForumPage.getListTopicPage(request, chlf.getCode())%>"><%=chlf.getName()%> </a>
<%}%>
</td></tr></table>
<%}%>
</td>
</tr>
<tr>
<td height="23" colspan="2" bgcolor="#EEEEEE">
<lt:Label res="res.label.forum.index" key="board_manager"/>
<%
Vector managers = mm.getBoardManagers(lf.getCode());
Iterator irmgr = managers.iterator();
while (irmgr.hasNext()) {
UserDb user = (UserDb) irmgr.next();
%>
<a href="../userinfo.jsp?username=<%=StrUtil.UrlEncode(user.getName())%>"><%=user.getNick()%></a>
<%}%>
</td>
<td height="23" valign="center" bgcolor="#EEEEEE"> <img alt="今日发贴数" src="images/Forum_today.gif" width="25" height="10" align="absmiddle"> <%=lf.getTodayCount()%> <img alt="主题贴数" src="images/Forum_topic.gif" width="25" height="10" align="absmiddle"> <%=lf.getTopicCount()%> <img src="images/Forum_post.gif" alt="发贴总数" width="25" height="10" align="absmiddle"> <%=lf.getPostCount()%></td>
</tr>
</table>
</td>
</tr>
<%}%>
<%}%>
</tbody>
</table><br>
<% }
}
} else {
Leaf leaf = new Leaf();
leaf = leaf.getLeaf(boardField);
if (leaf==null) {
out.print(StrUtil.Alert_Back(boardField + "not found."));
return;
}
%>
<table bordercolor=<%=skin.getTableBorderClr()%> cellspacing=0 cellpadding=0 width="98%" align=center border=1>
<tbody>
<tr align="left">
<td colspan="4" noWrap class="td_title"><span class="text_title"> <%=leaf.getName()%> </span></td>
</tr>
<%
MsgDb md = new MsgDb();
LeafChildrenCacheMgr dl = new LeafChildrenCacheMgr(boardField);
java.util.Vector v = dl.getChildren();
Iterator ir1 = v.iterator();
while (ir1.hasNext()) {
Leaf lf = (Leaf) ir1.next();
md = md.getMsgDb(lf.getAddId());
if (lf.getIsHome()) {
%>
<tr>
<td width="49" align="center"><%if (lf.isLocked()) {%>
<img alt="<lt:Label res="res.label.forum.index" key="board_lock"/>" src="<%=skinPath%>/images/board_lock.gif">
<%}else{%>
<%if (lf.getTodayCount()>0) {%>
<img alt="<lt:Label res="res.label.forum.index" key="board_new"/>" src="<%=skinPath%>/images/board_new.gif">
<%}else{%>
<img alt="<lt:Label res="res.label.forum.index" key="board_nonew"/>" src="<%=skinPath%>/images/board_nonew.gif">
<%}%>
<%}%>
</td>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="47%" height="23"> 『 <a href="<%=ForumPage.getListTopicPage(request, lf.getCode())%>">
<%if (lf.getColor().equals("")) {%>
<%=lf.getName()%>
<%}else{%>
<font color="<%=lf.getColor()%>"><%=lf.getName()%></font>
<%}%>
</a> 』
<%
int chcount = lf.getChildCount();
if (chcount>0) {
out.print("(" + chcount + ")");
}
%>
<%
/*
Vector vplugin = pmnote.getAllPluginUnitOfBoard(lf.getCode());
if (vplugin.size()>0) {
out.print("<font color=#aaaaaa>");
Iterator irpluginnote = vplugin.iterator();
while (irpluginnote.hasNext()) {
PluginUnit pu = (PluginUnit)irpluginnote.next();
out.print(pu.getName(request) + " ");
}
out.print("</font>");
}
*/
%>
</td>
<td width="23%" rowspan="2" align="right" valign="middle"><%
String logo = StrUtil.getNullString(lf.getLogo());
if (!logo.equals("")) {
%>
<img src="images/board_logo/<%=logo%>" align="absmiddle">
<%}%>
</td>
<td width="30%" rowspan="2"><table width="100%" >
<tr>
<td><%
MsgDb mdb = mm.getMsgDb(md.getRootid());
%>
<lt:Label res="res.label.forum.index" key="topic"/>
<a title="<%=mdb.getTitle()%>" href="<%=ForumPage.getShowTopicPage(request, mdb.getId())%>"><%=StrUtil.toHtml(StrUtil.getLeft(mdb.getTitle(), 60))%></a></td>
</tr>
<tr>
<td><%if (md.isLoaded()) {%>
<%if (md.getReplyid()==-1) {%>
<lt:Label res="res.label.forum.index" key="topic_post"/>
<%}else{%>
<lt:Label res="res.label.forum.index" key="topic_reply"/>
<%}%>
<a href="../userinfo.jsp?username=<%=StrUtil.UrlEncode(md.getName())%>"><%=um.getUser(md.getName()).getNick()%></a>
<%}%>
</td>
</tr>
<tr>
<td><lt:Label res="res.label.forum.index" key="topic_date"/>
<%=com.redmoon.forum.ForumSkin.formatDateTime(request, md.getAddDate())%> <img src="images/lastpost.gif" width="11" height="10"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="23"><img src="images/readme.gif" width="10" height="10"> <%=lf.getDescription()%>
<%if (chcount>0) {%>
<table width="100%" height="22" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>
<%
LeafChildrenCacheMgr lfc = new LeafChildrenCacheMgr(lf.getCode());
Vector chv = lfc.getLeafChildren();
Iterator chir = chv.iterator();
while (chir.hasNext()) {
Leaf chlf = (Leaf) chir.next();
%>
<a href="<%=ForumPage.getListTopicPage(request, chlf.getCode())%>"><%=chlf.getName()%> </a>
<%}%>
</td>
</tr>
</table>
<%}%>
</td>
</tr>
<tr>
<td height="23" colspan="2" bgcolor="#EEEEEE"><lt:Label res="res.label.forum.index" key="board_manager"/>
<%
Vector managers = mm.getBoardManagers(lf.getCode());
Iterator irmgr = managers.iterator();
while (irmgr.hasNext()) {
UserDb user = (UserDb) irmgr.next();
%>
<a href="../userinfo.jsp?username=<%=StrUtil.UrlEncode(user.getName())%>"><%=user.getNick()%></a>
<%}%>
</td>
<td height="23" valign="center" bgcolor="#EEEEEE"> <img alt="今日发贴数" src="images/Forum_today.gif" width="25" height="10" align="absmiddle"> <%=lf.getTodayCount()%> <img alt="主题贴数" src="images/Forum_topic.gif" width="25" height="10" align="absmiddle"> <%=lf.getTopicCount()%> <img src="images/Forum_post.gif" alt="发贴总数" width="25" height="10" align="absmiddle"> <%=lf.getPostCount()%></td>
</tr>
</table></td>
</tr>
<%}%>
<%}%>
</tbody>
</table>
<%}%>
<%if (forum.isShowLink()) {%>
<TABLE borderColor="<%=skin.getTableBorderClr()%>" cellSpacing=0 cellPadding=4 width="98%" align=center
border=1>
<TBODY>
<TR>
<TD class="td_title"><lt:Label res="res.label.forum.index" key="link"/></TD>
</TR>
<TR>
<TD height="22"
colSpan=4>
<table width=100% align=center>
<%
LinkDb ld = new LinkDb();
String listsql = "select id from " + ld.getTableName() + " where userName=" + StrUtil.sqlstr(ld.USER_SYSTEM) + " and kind=" + StrUtil.sqlstr(ld.KIND_DEFAULT) + " order by sort";
Iterator irlink = ld.list(listsql).iterator();
int m = 0;
while (irlink.hasNext())
{
ld = (LinkDb) irlink.next();
if (m==0)
out.print("<tr>");
%>
<td align=center><a target="_blank" href="<%=ld.getUrl()%>" title="<%=ld.getTitle()%>">
<%if (ld.getImage()!=null && !ld.getImage().equals("")) {%>
<img src="../<%=ld.getImage()%>" border=0>
<%}else{%>
<%=ld.getTitle()%>
<%}%>
</a></td>
<%
m ++;
if (m==8) {
out.print("</tr>");
m = 0;
}
}
if (m!=8)
out.print("</tr>");
%>
</table>
</TD>
</TR>
</TBODY>
</TABLE>
<br>
<%}%>
<TABLE borderColor="<%=skin.getTableBorderClr()%>" cellSpacing=0 cellPadding=4 width="98%" align=center
border=1>
<TBODY>
<TR>
<TD background="<%=skinPath%>/images/bg1.gif" class="online"><span>
<%
OnlineInfo oli = new OnlineInfo();
int allcount = oli.getAllCount();
int allusercount = oli.getAllUserCount();
int allguestcount = allcount - allusercount;
%>
<lt:Label res="res.label.forum.index" key="online"/>
<%=allcount%>
<lt:Label res="res.label.forum.index" key="ren"/>
<lt:Label res="res.label.forum.index" key="online_reg_count"/> <%=allusercount%> <lt:Label res="res.label.forum.index" key="ren"/>
<lt:Label res="res.label.forum.index" key="online_guest_count"/> <%=allguestcount%> <lt:Label res="res.label.forum.index" key="ren"/> <lt:Label res="res.label.forum.index" key="today_post"/> <b><%=forum.getTodayCount()%></b>
<A title="<lt:Label res="res.label.forum.index" key="show_online"/>" href="javascript:loadonline('')"><IMG id=followImg000 style="CURSOR: hand"
src="images/plus.gif" border=0 loaded="no"> <SPAN id=advance><lt:Label res="res.label.forum.index" key="online_list"/></SPAN></A>
<lt:Label res="res.label.forum.index" key="create_date"/><%=com.redmoon.forum.ForumSkin.formatDateTime(request, forum.getCreateDate())%> | <lt:Label res="res.label.forum.index" key="online_max_count"/><%=forum.getMaxOnlineCount()%>
<lt:Label res="res.label.forum.index" key="ren"/>
<%=com.redmoon.forum.ForumSkin.formatDateTime(request, forum.getMaxOnlineDate())%></span></TD>
</TR>
<TR>
<TD
colSpan=4
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><DIV id="followDIV000" name="followDIV000">
<div style="display:none; BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: black 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 18px; BORDER-LEFT: black 1px solid; WIDTH: 240px; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: lightyellow"
onclick="loadonline('')"><lt:Label res="res.label.forum.index" key="wait"/></DIV>
</div></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD width="70%"> </TD>
<TD width="40%"> </TD></TR></TBODY></TABLE>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center"><IMG src="<%=skinPath%>/images/board_nonew.gif" alt=<lt:Label res="res.label.forum.index" key="board_nonew"/> width="24" height="24" align=absMiddle> <lt:Label res="res.label.forum.index" key="board_nonew"/>
<IMG src="<%=skinPath%>/images/board_new.gif" alt=<lt:Label res="res.label.forum.index" key="board_new"/> width="24" height="24" align=absMiddle> <lt:Label res="res.label.forum.index" key="board_new"/>
<IMG src="<%=skinPath%>/images/board_lock.gif" alt=<lt:Label res="res.label.forum.index" key="board_lock"/> width="24" height="24" align=absMiddle> <lt:Label res="res.label.forum.index" key="board_locked"/></td>
</tr>
</table>
</CENTER>
<jsp:include page="inc/footer.jsp" />
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -