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

📄 _position__jsp.java

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

package _jsp._forum._inc;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import com.redmoon.forum.person.*;
import com.redmoon.forum.plugin.*;
import com.redmoon.forum.*;
import com.redmoon.forum.ui.*;
import cn.js.fan.util.*;

public class _position__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");
    com.redmoon.forum.ui.LabelTag _jsp_LabelTag_0 = null;
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      
String pos_boardcode = ParamUtil.get(request, "boardcode");
if (!pos_boardcode.equals("")) {
	Leaf pos_curleaf = new Leaf();
	pos_curleaf = pos_curleaf.getLeaf(pos_boardcode);
	String pos_op = ParamUtil.get(request, "op");

      out.write(_jsp_string1, 0, _jsp_string1.length);
      
if (com.redmoon.forum.Privilege.isUserLogin(request)) {
	UserDb user = new UserDb();
	user = user.getUser(com.redmoon.forum.Privilege.getUser(request));

      out.write(_jsp_string2, 0, _jsp_string2.length);
      out.print((user.getNick()));
      out.write(_jsp_string3, 0, _jsp_string3.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("welcome");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((ForumSkin.formatDate(request, user.getLastTime())));
      out.write(_jsp_string5, 0, _jsp_string5.length);
      }else{
      out.write(_jsp_string6, 0, _jsp_string6.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("guest");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string7, 0, _jsp_string7.length);
      out.print((request.getContextPath()));
      out.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((StrUtil.getUrl(request)));
      out.write(_jsp_string9, 0, _jsp_string9.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("login");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((request.getContextPath()));
      out.write(_jsp_string11, 0, _jsp_string11.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("regist");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string12, 0, _jsp_string12.length);
      }
      out.write(_jsp_string13, 0, _jsp_string13.length);
      out.print((request.getContextPath()));
      out.write(_jsp_string14, 0, _jsp_string14.length);
      out.print((pos_curleaf.getMenuString(request, pos_curleaf.getLeaf(Leaf.CODE_ROOT))));
      out.write(_jsp_string15, 0, _jsp_string15.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("cur_position");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string16, 0, _jsp_string16.length);
      out.print((request.getContextPath()));
      out.write(_jsp_string17, 0, _jsp_string17.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("forum_home");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string18, 0, _jsp_string18.length);
      
		  	String pCode = pos_curleaf.getParentCode();
			String plink = "";
		  	while (!pCode.equals(Leaf.CODE_ROOT)) { 
				Leaf pleaf = pos_curleaf.getLeaf(pCode);
				// \u9632\u6b62\u5f53parentCode\u51fa\u9519\u65f6\uff0c\u9677\u5165\u6b7b\u5faa\u73af
				if (pleaf==null || !pleaf.isLoaded())
					break;
			
      out.write(_jsp_string19, 0, _jsp_string19.length);
      out.print((pleaf.getCode()));
      out.write(_jsp_string20, 0, _jsp_string20.length);
      out.print((pleaf.getCode()));
      out.write(_jsp_string21, 0, _jsp_string21.length);
      out.print((pos_curleaf.getMenuString(request, pleaf)));
      out.write(_jsp_string22, 0, _jsp_string22.length);
      
				if (pleaf.getType()==pleaf.TYPE_BOARD) {
					plink = "&nbsp;<a href='" + ForumPage.getListTopicPage(request, pCode) + "' onmousemove='showmenu(event, posspan_" + pleaf.getCode() + ".innerHTML, 0)'>" + pleaf.getName() + "</a>&nbsp;<B>&raquo;</B>" + plink;
				}
				else {
					plink = "&nbsp;<a href='" + request.getContextPath() + "/forum/index.jsp?boardField=" + StrUtil.UrlEncode(pCode) + "' onmousemove='showmenu(event, posspan_" + pleaf.getCode() + ".innerHTML, 0)'>" + pleaf.getName() + "</a>&nbsp;<B>&raquo;</B>" + plink;
		  		}
		  		pCode = pleaf.getParentCode();
		   }
		  
      out.write(_jsp_string23, 0, _jsp_string23.length);
      out.print((plink));
      out.write(_jsp_string24, 0, _jsp_string24.length);
      out.print((request.getContextPath()));
      out.write(_jsp_string25, 0, _jsp_string25.length);
      out.print((ForumPage.getListTopicPage(request, pos_boardcode)));
      out.write(_jsp_string26, 0, _jsp_string26.length);
      	
				out.print(pos_curleaf.getName());
		  
      out.write(_jsp_string27, 0, _jsp_string27.length);
      if (pos_op.equals("showelite")) {
      out.write(_jsp_string23, 0, _jsp_string23.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("elite_field");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string23, 0, _jsp_string23.length);
      }
      out.write(_jsp_string28, 0, _jsp_string28.length);
      
} else if (!com.redmoon.forum.Privilege.isUserLogin(request)) { 
	String posprivurl = request.getRequestURL() + "?" + request.getQueryString();

      out.write(_jsp_string29, 0, _jsp_string29.length);
      out.print((cn.js.fan.web.Global.getRootPath()));
      out.write(_jsp_string30, 0, _jsp_string30.length);
      out.print((cn.js.fan.web.Global.getRootPath()));
      out.write(_jsp_string31, 0, _jsp_string31.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("user_name");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string32, 0, _jsp_string32.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("pwd");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string33, 0, _jsp_string33.length);
      
        com.redmoon.forum.Config cfg_pos = com.redmoon.forum.Config.getInstance();
        if (cfg_pos.getBooleanProperty("forum.loginUseValidateCode")) {
		
      out.write(_jsp_string34, 0, _jsp_string34.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("validate_code");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string35, 0, _jsp_string35.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.index");
      _jsp_LabelTag_0.setKey("refresh_validatecode");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string36, 0, _jsp_string36.length);
      }
      out.write(_jsp_string37, 0, _jsp_string37.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("not_cover");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string38, 0, _jsp_string38.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_LabelTag_0.setRes("res.label.forum.inc.position");
      _jsp_LabelTag_0.setKey("cover");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string39, 0, _jsp_string39.length);
      if (_jsp_LabelTag_0 == null) {
        _jsp_LabelTag_0 = new com.redmoon.forum.ui.LabelTag();
        _jsp_LabelTag_0.setPageContext(pageContext);
        _jsp_LabelTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);

⌨️ 快捷键说明

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