📄 homepagegroup.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<%@ page import="java.util.*"%>
<html:html>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
</head>
<body topmargin=0 leftmargin=0>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
<TR>
<TD height=4 class=bgStyle></TD>
</TR>
<TR>
<TD class=noBgStyle>
<lybbs:typeAdTag/>
</TD>
</TR>
<TR>
<TD height=4 class=bgStyle></TD>
</TR>
<tr>
<td class=menuStyle height=22>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=left>
<lybbs:typeUserHeaderTag forumID="0"/>
</td>
<td align=right>
<lybbs:web key="returnHomeLink"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
<tr>
<td class=navStyle vAlign=center height=25>
<img src="lybbs/images/forum_nav.gif" width="9" height="9" align="absMiddle"> <a href="bbs_index.do"><lybbs:web key="forumName"/></a> <bean:message key="common.lybbs.arrow"/> <bean:write name="statusBean" property="homePageGroupName"/>
</td>
</tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=6 cellspacing=1 border=0 align=center>
<tr>
<td class=catStyle width=20% align=center>
<b><bean:message key="common.lybbs.username"/></b>
</td>
<td class=catStyle width=20% align=center>
<b><bean:message key="common.lybbs.warmindex"/></b>
</td>
<td class=catStyle width=20% align=center>
<b><bean:message key="common.lybbs.grade"/></b>
</td>
<td class=catStyle>
<b><bean:message key="jsp.team.adminforum"/></b>
</td>
</tr>
<bean:define id="userList" name="userListBean" type="java.util.List"/>
<%
int userID;
for(int i=0,m=userList.size();i<m;i++) {
net.lybbs.user.bean.IUser user=(net.lybbs.user.bean.IUser)userList.get(i);
userID=user.getUserID();
%>
<tr>
<td class=forumColorTwo>
<a href="bbs_userShow.do?userID=<%=userID%>"><%=user.getUserName()%></a>
</td>
<td class=forumColorTwo>
<%=user.getWarmIndex()%>
</td>
<td class=forumColorTwo>
<%=user.getWarmGrade()%>
</td>
<td class=forumColorTwo>
<%
List list=net.lybbs.admin.proxy.AdminProxy.getAdminCache().getCatalogList(userID);
list.addAll(net.lybbs.admin.proxy.AdminProxy.getAdminCache().getForumList(userID));
if(list.size()==0) {
%>
<bean:message key="jsp.team.adminforum.no"/>
<%
}
for(int j=0,n=list.size();j<n;j++) {
net.lybbs.admin.bean.Admin admin2=(net.lybbs.admin.bean.Admin)list.get(j);
if(admin2.getUserMode()==0) {
//forum
out.print("<a href=bbs_forum.do?forumID=");
out.println(admin2.getForumID());
out.println(">");
out.print(net.lybbs.forum.proxy.ForumProxy.getForumCache().getForum(admin2.getForumID()).getForumName());
out.print("</a> (");
%>
<bean:message key="common.lybbs.forumadmin"/>
<%
out.println(")<br>");
}
else {
//catalog
out.print("<a href=bbs_catalog.do?catalogID=");
out.println(admin2.getCatalogID());
out.println(">");
out.print(net.lybbs.catalog.proxy.CatalogProxy.getCatalog(admin2.getCatalogID()).getCatalogName());
out.print("</a> (");
%>
<bean:message key="common.lybbs.catalogadmin"/>
<%
out.println(")<br>");
}
}
%>
</td>
</tr>
<%
}
%>
<tr>
<td class=forumColorOne colspan=4>
<bean:write name="pageUtils" property="pageInfo" filter="false"/>
</td>
</tr>
<%--
<logic:iterate id="element" name="userListBean">
<tr>
<td class=forumColorTwo>
<a href="bbs_userShow.do?userID=<bean:write name="element" property="userID"/>"><bean:write name="element" property="userName"/></a>
</td>
<td class=forumColorTwo>
<bean:write name="element" property="warmIndex"/>
</td>
<td class=forumColorTwo>
<bean:write name="element" property="warmGrade"/>
</td>
<td class=forumColorTwo>
List list=AdminProxy.getAdminCache().getCatalogList(userID);
list.addAll(AdminProxy.getAdminCache().getForumList(userID));
if(list.size()==0) {
sb.append(Constants.MESSAGE.getMessage(locale,"jsp.team.adminforum.no"));
}
for(int j=0,n=list.size();j<n;j++) {
Admin admin2=(Admin)list.get(j);
if(admin2.getUserMode()==0) {
//forum
int forumID=admin2.getForumID();
sb.append(ForumProxy.getForumCache().getForum(forumID).getForumName());
sb.append(" (");
sb.append(Constants.MESSAGE.getMessage(locale,"common.lybbs.forumadmin"));
sb.append(")<br>");
}
else {
//catalog
int catalogID=admin2.getCatalogID();
sb.append(CatalogProxy.getCatalog(catalogID).getCatalogName());
sb.append(" (");
sb.append(Constants.MESSAGE.getMessage(locale,"common.lybbs.catalogadmin"));
sb.append(")<br>");
}
}
</td>
</tr>
</logic:iterate>
--%>
</table>
<br>
<lybbs:web key="foot"/>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -