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

📄 groups.jsp

📁 java开发的一套非常好用的oa系统
💻 JSP
字号:
<%
/**
 *	$RCSfile: groups.jsp,v $
 *	$Revision: 1.1.1.1 $
 *	$Date: 2002/09/09 13:50:28 $
 */
%>

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

<%!	// Global vars, methods etc
    
	private final String YES = "<font color='#006600' size='-1'><b>Yes</b></font>";
	private final String NO  = "<font color='#ff0000' size='-1'><b>No</b></font>";
%>
 
<%@	include file="include/global.jsp" %>

<%	// get parameters
	int start = ParamUtils.getIntParameter(request,"start",0);
	int range = ParamUtils.getIntParameter(request,"range",10);
    
    // if the start isn't passed in as a parameter, look for it in the session
    if (request.getParameter("start") == null) {
        try {
            start = Integer.parseInt((String)session.getAttribute("admin.groups.start"));
        } catch (Exception e) {}
    }
    else {
        session.setAttribute("admin.groups.start",start+"");
    }
    
	// get an Iterator of groups
	GroupManager manager = forumFactory.getGroupManager();
	Iterator groups = manager.groups(start, range);
    
    // Total group count
	int groupCount = manager.getGroupCount();
    
    // Remove the user in the session (if we come to this page, the sidebar
    // shouldn't show the specific user options).
    session.removeAttribute("admin.sidebar.groups.currentGroup");
%>

<%  // special onload command to load the sidebar
    onload = " onload=\"parent.frames['sidebar'].location.href='sidebar.jsp?sidebar=users';\"";
%>
<%@ include file="include/header.jsp" %>

<p>

<%  // Title of this page and breadcrumbs
    String title = "Groups Summary";
    String[][] breadcrumbs = {
        {"Main", "main.jsp"},
        {title, "groups.jsp"}
    };
%>
<%@ include file="include/title.jsp" %>

<font size="-1">
<%= groupCount %> total group<%= (groupCount==1)?"":"s" %> (<%= range %> displayed per page).
You can <a href="createGroup.jsp">create a new group</a>.
</font>

<p>

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

<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="#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>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>
<%  while (groups.hasNext()) {
        Group group = (Group)groups.next();
%>
<tr bgcolor="#ffffff">
    <td align="center" width="2%"><font size="-1"><%= group.getID() %></font></td>
    <td width="80%"><font size="-1"><a href="editGroup.jsp?group=<%= group.getID() %>"><%= group.getName() %></a><br><%= group.getDescription() %></font></td>
    <td width="8%" align="center"><font size="-1"><%= group.getMemberCount() %></font></td>
    <td align="center" width="5%"
        ><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="5%"
        ><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 + -