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

📄 _addtopic__jsp.java

📁 CMS 1、增加子站点功能
💻 JAVA
字号:
/*
 * JSP generated by Resin-3.1.0 (built Fri, 22 Dec 2006 07:00:35 PST)
 */

package _jsp._forum._plugin._group;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import cn.js.fan.db.*;
import cn.js.fan.util.*;
import java.util.*;
import cn.js.fan.web.*;
import com.redmoon.forum.ui.*;
import com.redmoon.forum.*;
import com.redmoon.forum.person.*;
import com.redmoon.forum.setup.*;
import com.redmoon.forum.plugin.*;
import com.redmoon.forum.plugin.group.*;
import com.redmoon.forum.plugin.score.*;

public class _addtopic__jsp extends com.caucho.jsp.JavaPage
{
  private final java.util.HashMap<String,java.lang.reflect.Method> _jsp_functionMap = new java.util.HashMap<String,java.lang.reflect.Method>();
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false);
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    final javax.el.ELContext _jsp_env = pageContext.getELContext();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html;charset=utf-8");
    request.setCharacterEncoding("UTF-8");
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      out.print((request.getContextPath()));
      out.write(_jsp_string1, 0, _jsp_string1.length);
      
	  long groupId = ParamUtil.getLong(request, "groupId", -1);
	  GroupDb gd = new GroupDb();
	  Privilege pvg = new Privilege();
	  String sql = gd.getTable().getSql("listattend");
	  Iterator ir = gd.list(sql, new Object[] {pvg.getUser(request)}).iterator();
	  while (ir.hasNext()) {
	  	gd = (GroupDb)ir.next();
		if (gd==null) {
			continue;
		}
	  
      out.write(_jsp_string2, 0, _jsp_string2.length);
      out.print((gd.getLong("id")));
      out.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((groupId==gd.getLong("id")?"checked":""));
      out.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((gd.getString("name")));
      out.write(_jsp_string5, 0, _jsp_string5.length);
      
	  }
	  
      out.write(_jsp_string6, 0, _jsp_string6.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      com.caucho.jsp.QJspFactory.freePageContext(pageContext);
    }
  }

  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public java.util.ArrayList _caucho_getDependList()
  {
    return _caucho_depends;
  }

  public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend)
  {
    super._caucho_addDepend(depend);
    com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
  }

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.server.util.CauchoSystem.getVersionId() != 5022137076587403036L)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Dependency depend;
      depend = (com.caucho.vfs.Dependency) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public java.util.HashMap<String,java.lang.reflect.Method> _caucho_getFunctionMap()
  {
    return _jsp_functionMap;
  }

  public void init(ServletConfig config)
    throws ServletException
  {
    super.init(config);
    com.caucho.server.webapp.WebApp webApp
      = (com.caucho.server.webapp.WebApp) config.getServletContext();
    com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager();
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    com.caucho.loader.DynamicClassLoader loader;
    loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
    String resourcePath = loader.getResourcePathSpecificFirst();
    mergePath.addClassPath(resourcePath);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("forum/plugin/group/addtopic.jsp"), -8915251822998551674L, false);
    com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
  }

  private final static char []_jsp_string6;
  private final static char []_jsp_string5;
  private final static char []_jsp_string4;
  private final static char []_jsp_string2;
  private final static char []_jsp_string0;
  private final static char []_jsp_string1;
  private final static char []_jsp_string3;
  static {
    _jsp_string6 = "	  </TD>\r\n	</TR>\r\n  </TBODY>\r\n</TABLE>\r\n".toCharArray();
    _jsp_string5 = "\r\n	  ".toCharArray();
    _jsp_string4 = " />".toCharArray();
    _jsp_string2 = "\r\n	  	<input name=\"group_id\" value=\"".toCharArray();
    _jsp_string0 = "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<script src=\"".toCharArray();
    _jsp_string1 = "/inc/common.js\"></script><TABLE width=\"100%\" border=0 align=center cellPadding=2 cellSpacing=1 bgcolor=\"#CCCCCC\">\r\n  <TBODY>\r\n	<TR>\r\n	  <TD width=\"20%\" align=\"left\" bgcolor=\"#F9FAF3\">\u5708\u5b50\uff1a</TD>\r\n	  <TD height=23 align=\"left\" bgcolor=\"#F9FAF3\">\r\n	  ".toCharArray();
    _jsp_string3 = "\" type=\"checkbox\" ".toCharArray();
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -