📄 _groups__jsp.java
字号:
/*
* JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
*/
package _admin._forum;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.util.*;
import com.coolservlets.forum.*;
import com.coolservlets.forum.util.*;
import com.coolservlets.forum.util.admin.*;
public class _groups__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
//////////////////
// page variables
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>";
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, "/admin/forum/error.jsp", true, 8192, true);
javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.http.HttpSession session = pageContext.getSession();
javax.servlet.ServletContext application = pageContext.getServletContext();
response.setContentType("text/html;charset=gb2312");
request.setCharacterEncoding("GB2312");
try {
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
/**
* $RCSfile: groups.jsp,v $
* $Revision: 1.3 $
* $Date: 2000/12/18 02:06:21 $
*/
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
com.coolservlets.forum.util.admin.AdminBean adminBean;
synchronized (session) {
adminBean = (com.coolservlets.forum.util.admin.AdminBean) session.getValue("adminBean");
if (adminBean == null) {
adminBean = new com.coolservlets.forum.util.admin.AdminBean();
session.putValue("adminBean", adminBean);
}
}
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
////////////////////////////////
// Jive authorization check
// check the bean for the existence of an authorization token.
// Its existence proves the user is valid. If it's not found, redirect
// to the login page
Authorization authToken = adminBean.getAuthToken();
if( authToken == null ) {
response.sendRedirect( "login.jsp" );
return;
}
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
////////////////////
// Security check
// make sure the user is authorized to administer users:
ForumFactory forumFactory = ForumFactory.getInstance(authToken);
boolean isSystemAdmin = ((Boolean)session.getValue("jiveAdmin.systemAdmin")).booleanValue();
boolean isGroupAdmin = ((Boolean)session.getValue("jiveAdmin.groupAdmin")).booleanValue();
// redirect to error page if we're not a group admin or a system admin
if( !isGroupAdmin && !isSystemAdmin ) {
throw new UnauthorizedException("Sorry, you don't have permission to administer groups");
}
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
///////////////////////
// pageTitleInfo variable (used by include/pageTitle.jsp)
String[] pageTitleInfo = { "组:组信息" };
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
///////////////////
// pageTitle include
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
if( pageTitleInfo != null ) {
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
for( int i=0; i<pageTitleInfo.length; i++ ){
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
out.print(( pageTitleInfo[i] ));
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
if( (i+1)<pageTitleInfo.length ) {
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
}
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
}
pageContext.write(_jsp_string8, 0, _jsp_string8.length);
}
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string9, 0, _jsp_string9.length);
////////////////////////////////
// get an Iterator of users
ProfileManager manager = forumFactory.getProfileManager();
Iterator groupIterator = manager.groups();
pageContext.write(_jsp_string10, 0, _jsp_string10.length);
if( isSystemAdmin ) {
pageContext.write(_jsp_string11, 0, _jsp_string11.length);
}
pageContext.write(_jsp_string12, 0, _jsp_string12.length);
pageContext.write(_jsp_string13, 0, _jsp_string13.length);
//////////////////
// no groups:
if( !groupIterator.hasNext() ) {
pageContext.write(_jsp_string14, 0, _jsp_string14.length);
}
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
////////////////////////////////////
// iterate through users, show info
while( groupIterator.hasNext() ) {
Group group = (Group)groupIterator.next();
int groupID = group.getID();
String groupName = group.getName();
String groupDescription = group.getDescription();
int numMembers = group.getMemberCount();
pageContext.write(_jsp_string15, 0, _jsp_string15.length);
out.print(( groupID ));
pageContext.write(_jsp_string16, 0, _jsp_string16.length);
out.print(( groupName ));
pageContext.write(_jsp_string17, 0, _jsp_string17.length);
out.print(( (groupDescription!=null&&!groupDescription.equals(""))?groupDescription:" " ));
pageContext.write(_jsp_string18, 0, _jsp_string18.length);
out.print(( numMembers ));
pageContext.write(_jsp_string19, 0, _jsp_string19.length);
out.print((groupID));
pageContext.write(_jsp_string20, 0, _jsp_string20.length);
out.print((groupID));
pageContext.write(_jsp_string21, 0, _jsp_string21.length);
out.print((groupID));
pageContext.write(_jsp_string22, 0, _jsp_string22.length);
}
pageContext.write(_jsp_string23, 0, _jsp_string23.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != 2057024144)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Depend depend;
depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
mergePath.addClassPath(getClass().getClassLoader());
_caucho_line_map = new com.caucho.java.LineMap("_groups__jsp.java", "e:\\jnjt\\admin\\forum\\groups.jsp");
_caucho_line_map.add("/admin/forum/groups.jsp", 15, 1);
_caucho_line_map.add(21, 16);
_caucho_line_map.add(2, 37);
_caucho_line_map.add(9, 45);
_caucho_line_map.add(15, 46);
_caucho_line_map.add(18, 47);
_caucho_line_map.add(21, 56);
_caucho_line_map.add(27, 57);
_caucho_line_map.add(67, 84);
_caucho_line_map.add(71, 89);
_caucho_line_map.add(74, 93);
_caucho_line_map.add("/admin/forum/include/pageTitle.jsp", 9, 96);
_caucho_line_map.add(14, 98);
_caucho_line_map.add(15, 100);
_caucho_line_map.add(16, 102);
_caucho_line_map.add(19, 106);
_caucho_line_map.add(24, 108);
_caucho_line_map.add("e:\\jnjt\\admin\\forum\\groups.jsp", 75, 111);
_caucho_line_map.add(82, 117);
_caucho_line_map.add(86, 119);
_caucho_line_map.add(104, 122);
_caucho_line_map.add(115, 127);
_caucho_line_map.add(130, 141);
_caucho_line_map.add(131, 143);
_caucho_line_map.add(132, 145);
_caucho_line_map.add(133, 147);
_caucho_line_map.add(136, 149);
_caucho_line_map.add(140, 151);
_caucho_line_map.add(144, 153);
_caucho_line_map.add(148, 155);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/e:/jnjt/admin/forum/include/pageTitle.jsp"), 989631934000L, 553L);
_caucho_depends.add(depend);
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/e:/jnjt/admin/forum/groups.jsp"), 1029827085397L, 4389L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string2;
private static byte []_jsp_string13;
private static byte []_jsp_string10;
private static byte []_jsp_string6;
private static byte []_jsp_string7;
private static byte []_jsp_string4;
private static byte []_jsp_string18;
private static byte []_jsp_string3;
private static byte []_jsp_string20;
private static byte []_jsp_string9;
private static byte []_jsp_string14;
private static byte []_jsp_string22;
private static byte []_jsp_string8;
private static byte []_jsp_string0;
private static byte []_jsp_string21;
private static byte []_jsp_string17;
private static byte []_jsp_string23;
private static byte []_jsp_string19;
private static byte []_jsp_string12;
private static byte []_jsp_string11;
private static byte []_jsp_string16;
private static byte []_jsp_string15;
private static byte []_jsp_string1;
private static byte []_jsp_string5;
static {
try {
_jsp_string2 = "\r\n \r\n".getBytes("GB2312");
_jsp_string13 = "\r\n<table bgcolor=\"#666666\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n<td>\r\n<table bgcolor=\"#666666\" cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\r\n<tr bgcolor=\"#eeeeee\">\r\n <td class=\"groupHeader\" width=\"1%\" nowrap>ID</td>\r\n <td class=\"groupHeader\" width=\"40%\" nowrap>组名</td>\r\n <td class=\"groupHeader\" width=\"55%\">说明</td>\r\n <td class=\"groupHeader\" width=\"1%\" nowrap>成员</td>\r\n <td class=\"groupHeader\" width=\"1%\" nowrap>修改</td>\r\n <td class=\"groupHeader\" width=\"1%\" nowrap>许可</td>\r\n <td class=\"groupHeader\" width=\"1%\" nowrap>删除</td>\r\n</tr>\r\n\r\n".getBytes("GB2312");
_jsp_string10 = "\r\n<p>\r\n\r\n".getBytes("GB2312");
_jsp_string6 = "\r\n : \r\n ".getBytes("GB2312");
_jsp_string7 = "\r\n ".getBytes("GB2312");
_jsp_string4 = "\r\n <table class=\"pageHeaderBg\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n <td><table class=\"pageHeaderFg\" cellpadding=\"3\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n <td>\r\n <span class=\"pageTitle\">\r\n ".getBytes("GB2312");
_jsp_string18 = "</i></td>\r\n <td align=\"center\">".getBytes("GB2312");
_jsp_string3 = "\r\n\r\n<html>\r\n<head>\r\n <title></title>\r\n <link rel=\"stylesheet\" href=\"style/global.css\">\r\n <style type=\"text/css\">\r\n .groupHeader {\r\n font-size : 8pt;\r\n text-align : center;\r\n }\r\n </style>\r\n</head>\r\n\r\n<body background=\"../images/background.gif\" bgcolor=\"#ffffff\" text=\"#000000\" link=\"#0000ff\" vlink=\"#800080\" alink=\"#ff0000\">\r\n".getBytes("GB2312");
_jsp_string20 = "';\">\r\n </td>\r\n <td align=\"center\">\r\n <input type=\"radio\" name=\"perms\"\r\n onclick=\"location.href='groupPerms.jsp?group=".getBytes("GB2312");
_jsp_string9 = "\r\n\r\n\r\n\r\n\r\n".getBytes("GB2312");
_jsp_string14 = "\r\n <tr bgcolor=\"#ffffff\">\r\n <td colspan=\"7\" align=\"center\">\r\n <br>\r\n <i>没有组,重试<a href=\"createGroup.jsp\">添加一个</a>.</i>\r\n <br><br>\r\n </td>\r\n </tr>\r\n".getBytes("GB2312");
_jsp_string22 = "';\">\r\n </td>\r\n</tr>\r\n\r\n".getBytes("GB2312");
_jsp_string8 = "\r\n </span>\r\n </td>\r\n </table></td>\r\n </table>\r\n".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
_jsp_string21 = "';\">\r\n </td>\r\n <td align=\"center\">\r\n <input type=\"radio\" name=\"remove\"\r\n onclick=\"location.href='removeGroup.jsp?group=".getBytes("GB2312");
_jsp_string17 = "</b></td>\r\n <td><i>".getBytes("GB2312");
_jsp_string23 = "\r\n</table>\r\n</td>\r\n</table>\r\n\r\n</form>\r\n\r\n</body>\r\n</html>\r\n\r\n".getBytes("GB2312");
_jsp_string19 = "</td>\r\n <td align=\"center\">\r\n <input type=\"radio\" name=\"edit\"\r\n onclick=\"location.href='editGroup.jsp?group=".getBytes("GB2312");
_jsp_string12 = "\r\n\r\n<form>\r\n \r\n".getBytes("GB2312");
_jsp_string11 = "\r\n <p>\r\n (<a href=\"createGroup.jsp\">添加新组</a>)\r\n <p>\r\n".getBytes("GB2312");
_jsp_string16 = "</td>\r\n <td><b>".getBytes("GB2312");
_jsp_string15 = "\r\n\r\n<tr bgcolor=\"#ffffff\">\r\n <td align=\"center\">".getBytes("GB2312");
_jsp_string1 = "\r\n\r\n".getBytes("GB2312");
_jsp_string5 = "\r\n ".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -