?? groupsearch.jsp
字號:
<%-- - $RCSfile: groupSearch.jsp,v $ - $Revision: 1.1.2.1 $ - $Date: 2003/09/30 13:50:40 $--%><%@ page import="java.util.*, com.jivesoftware.forum.*, com.jivesoftware.forum.util.*, com.jivesoftware.util.ParamUtils, com.jivesoftware.util.StringUtils" errorPage="error.jsp"%><%@ include file="global.jsp" %><% // get parameters boolean lookup = ParamUtils.getBooleanParameter(request,"lookup"); long groupID = ParamUtils.getLongParameter(request,"group",-1L); String groupName = ParamUtils.getParameter(request,"group"); // get a group manager so we can lookup the group GroupManager groupManager = forumFactory.getGroupManager(); // The group requested Group group = null; boolean error = false; try { group = groupManager.getGroup(groupID); } catch (Exception e) { try { group = groupManager.getGroup(groupName); } catch (Exception e2) { error = true; } } // Remove the group in the session (if we come to this page, the sidebar // shouldn't show the specific group options). session.removeAttribute("admin.sidebar.groups.currentGroupID");%><% // special onload command to load the sidebar onload = " onload=\"parent.frames['sidebar'].location.href='sidebar.jsp?sidebar=users';\"";%><%@ include file="header.jsp" %><p><% // Title of this page and breadcrumbs String title = "Group Search"; String[][] breadcrumbs = { {"Main", "main.jsp"}, {"Group Summary", "groups.jsp"}, {title, "groupSearch.jsp"} };%><%@ include file="title.jsp" %><font size="-1"><% if (error) { %> Error: Unable to find group. Please go back to the last page and try again.<% } else { %> Below is a summary of group info.<% } %></font><p><form action="groupSearch.jsp"><font size="-1">Jump to group: (enter ID or group name)</font><input type="text" name="group" size="20" maxlength="100"><input type="submit" value="Go"></form><p><% if (group != null) { %><table bgcolor="<%= tblBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><table bgcolor="<%= tblBorderColor %>" cellpadding="3" cellspacing="1" border="0" width="100%"><tr bgcolor="#eeeeee"> <td align="center" nowrap><font size="-2" face="verdana"><b>GROUP ID</b></font></td> <td align="center" nowrap><font size="-2" face="verdana"><b>GROUP NAME</b></font></td> <td align="center" nowrap><font size="-2" face="verdana"><b>ADMINS</b></font></td> <td align="center" nowrap><font size="-2" face="verdana"><b>MEMBERS</b></font></td> <td align="center" nowrap><font size="-2" face="verdana"><b>EDIT</b></font></td> <td align="center" nowrap><font size="-2" face="verdana"><b>DELETE</b></font></td></tr><tr bgcolor="#ffffff"> <td align="center" width="2%"> <%= group.getID() %> </td> <td width="50%"> <a href="editGroup.jsp?group=<%= group.getID() %>"><%= group.getName() %></a> <% if (group.getDescription() != null) { %> <br> <font size="-2"> <%= StringUtils.escapeHTMLTags(group.getDescription()) %> </font> <% } %> </td> <td width="20%" align="center"> <%= group.getAdministratorCount() %> </td> <td width="20%" align="center"> <%= group.getMemberCount() %> </td> <td align="center" width="4%" ><a href="editGroup.jsp?group=<%= group.getID() %>" ><img src="images/button_edit.gif" width="17" height="17" alt="Edit Group Properties..." border="0" ></a ></td> <td align="center" width="4%" ><a href="removeGroup.jsp?group=<%= group.getID() %>" ><img src="images/button_delete.gif" width="17" height="17" alt="Delete Group..." border="0" ></a ></td></tr></table></td></tr></table><% } %><p></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -