📄 _addtopic_0new__jsp.java
字号:
return;
}
}
TimeConfig tc = new TimeConfig();
if (tc.isVisitForbidden(request)) {
if (hUrl.indexOf("/info.jsp")==-1) {
String str = SkinUtil.LoadString(request, "res.label.forum.inc.header", "time_visit_forbid");
str = StrUtil.format(str, new Object[] {tc.getProperty("forbidVisitTime1"), tc.getProperty("forbidVisitTime2")});
response.sendRedirect(rootpath + "/info.jsp?info=" + StrUtil.UrlEncode(str));
return;
}
}
// String rootpath = Global.getRootPath(); // "http://" + Global.server + ":" + Global.port + "/" + Global.virtualPath; // "http://www.zjrj.cn";
String hboardcode,hboardname;
hboardcode = ParamUtil.get(request, "boardcode");
hboardname = ParamUtil.get(request, "boardname");
if (hboardcode==null)
hboardcode = "";
if (hboardname == null)
hboardname = "";
hboardname = cn.js.fan.util.StrUtil.UrlEncode(hboardname);
String hSessionBoardCode = UserSession.getBoardCode(request);
ThemeMgr tm = new ThemeMgr();
Theme hTheme = tm.getTheme("default");
if (!hSessionBoardCode.equals("")) {
Leaf hleaf = new Leaf();
hleaf = hleaf.getLeaf(hSessionBoardCode);
String theme = "";
if (hleaf!=null)
theme = hleaf.getTheme();
if (theme==null || theme.equals(""))
;
else {
Theme t = tm.getTheme(theme);
if (t!=null) {
hTheme = t;
}
}
}
out.write(_jsp_string24, 0, _jsp_string24.length);
out.print((rootpath));
out.write(_jsp_string25, 0, _jsp_string25.length);
out.print((hTheme.getHeight()));
out.write(_jsp_string26, 0, _jsp_string26.length);
out.print((rootpath));
out.print((hTheme.getPath() + "/" + hTheme.getBanner()));
out.write(_jsp_string27, 0, _jsp_string27.length);
if (_jsp_AdTag_1 == null) {
_jsp_AdTag_1 = new com.redmoon.forum.ad.AdTag();
_jsp_AdTag_1.setPageContext(pageContext);
_jsp_AdTag_1.setParent((javax.servlet.jsp.tagext.Tag) null);
}
_jsp_AdTag_1.setType(AdDb.TYPE_HEADER);
_jsp_AdTag_1.setBoardCode(hSessionBoardCode);
_jsp_AdTag_1.doEndTag();
out.write(_jsp_string28, 0, _jsp_string28.length);
com.redmoon.forum.ui.menu.LeafChildrenCacheMgr dlcmHe = new com.redmoon.forum.ui.menu.LeafChildrenCacheMgr("root");
java.util.Vector vtHe = dlcmHe.getChildren();
Iterator irHe = vtHe.iterator();
int headCt = 0;
int navpos = vtHe.size() - 2;
int lastpos = vtHe.size() - 1;
while (irHe.hasNext()) {
com.redmoon.forum.ui.menu.Leaf menuleaf = (com.redmoon.forum.ui.menu.Leaf) irHe.next();
out.print("<li>");
String menuItem = "";
if (menuleaf.getType()==com.redmoon.forum.ui.menu.Leaf.TYPE_LINK) {
out.write(_jsp_string29, 0, _jsp_string29.length);
out.print((menuleaf.getTarget()));
out.write(_jsp_string30, 0, _jsp_string30.length);
out.print((menuleaf.getLink(request)));
out.write(_jsp_string31, 0, _jsp_string31.length);
out.print((menuleaf.getWidth()-15));
out.write(_jsp_string32, 0, _jsp_string32.length);
out.print((menuleaf.getWidth()));
out.write(_jsp_string33, 0, _jsp_string33.length);
out.print((menuleaf.getName(request)));
out.write(_jsp_string34, 0, _jsp_string34.length);
}
else {
menuItem = com.redmoon.forum.ui.menu.PresetLeaf.getMenuItem(request, menuleaf);
out.print(menuItem);
}
com.redmoon.forum.ui.menu.LeafChildrenCacheMgr dl = new com.redmoon.forum.ui.menu.LeafChildrenCacheMgr(menuleaf.getCode());
java.util.Vector headv = dl.getChildren();
Iterator headir1 = headv.iterator();
if (headv.size()>0)
out.print("<ul>");
while (headir1.hasNext()) {
com.redmoon.forum.ui.menu.Leaf menulf = (com.redmoon.forum.ui.menu.Leaf) headir1.next();
out.write(_jsp_string35, 0, _jsp_string35.length);
out.print((menulf.getTarget()));
out.write(_jsp_string30, 0, _jsp_string30.length);
out.print((menulf.getLink(request)));
out.write(_jsp_string31, 0, _jsp_string31.length);
out.print((menulf.getWidth()));
out.write(_jsp_string33, 0, _jsp_string33.length);
out.print((menulf.getName(request)));
out.write(_jsp_string36, 0, _jsp_string36.length);
com.redmoon.forum.ui.menu.LeafChildrenCacheMgr dl2 = new com.redmoon.forum.ui.menu.LeafChildrenCacheMgr(menulf.getCode());
java.util.Vector v2 = dl2.getChildren();
Iterator ir2 = v2.iterator();
if (v2.size()>0)
out.print("<ul>");
while (ir2.hasNext()) {
com.redmoon.forum.ui.menu.Leaf menulf2 = (com.redmoon.forum.ui.menu.Leaf) ir2.next();
out.write(_jsp_string37, 0, _jsp_string37.length);
out.print((menulf2.getTarget()));
out.write(_jsp_string30, 0, _jsp_string30.length);
out.print((menulf2.getLink(request)));
out.write(_jsp_string31, 0, _jsp_string31.length);
out.print((menulf2.getWidth()));
out.write(_jsp_string33, 0, _jsp_string33.length);
out.print((menulf2.getName(request)));
out.write(_jsp_string38, 0, _jsp_string38.length);
}
if (v2.size()>0)
out.print("</ul>");
out.print("</li>");
}
if (headv.size()>0)
out.print("</ul>");
out.print("</li>");
// \u6700\u540e\u4e00\u9879\u4e0d\u5199\u5206\u9694\u7ebf
if (headCt!=lastpos) {
if (menuleaf.getType()==com.redmoon.forum.ui.menu.Leaf.TYPE_PRESET && menuItem.equals(""))
;
else
out.print("<li class='menuDiv'></li>");
}
// \u5728\u5012\u6570\u7b2c\u4e8c\u9879\u5199\u63d2\u4ef6\u7684\u83dc\u5355\u9879
if (headCt==navpos) {
com.redmoon.forum.plugin.PluginMgr headerPm = new com.redmoon.forum.plugin.PluginMgr();
Iterator irHeaderPlugin = headerPm.getAllPlugin().iterator();
while (irHeaderPlugin.hasNext()) {
com.redmoon.forum.plugin.PluginUnit pu = (com.redmoon.forum.plugin.PluginUnit)irHeaderPlugin.next();
com.redmoon.forum.plugin.base.IPluginUI ipu = pu.getUI(request, response, out);
com.redmoon.forum.plugin.base.IPluginViewCommon pvc = ipu.getViewCommon();
if (pvc!=null) {
String hnavstr = pvc.render(com.redmoon.forum.plugin.base.IPluginViewCommon.POS_NAV_BAR);
if (!hnavstr.equals("")) {
out.print("<li>" + hnavstr + "</li>");
out.print("<li class='menuDiv'></li>");
}
}
}
}
headCt++;
}
out.write(_jsp_string39, 0, _jsp_string39.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_string40, 0, _jsp_string40.length);
if (com.redmoon.forum.Privilege.isUserLogin(request)) {
UserDb user = new UserDb();
user = user.getUser(com.redmoon.forum.Privilege.getUser(request));
out.write(_jsp_string41, 0, _jsp_string41.length);
out.print((user.getNick()));
out.write(_jsp_string42, 0, _jsp_string42.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_string43, 0, _jsp_string43.length);
out.print((ForumSkin.formatDate(request, user.getLastTime())));
out.write(_jsp_string44, 0, _jsp_string44.length);
}else{
out.write(_jsp_string45, 0, _jsp_string45.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_string46, 0, _jsp_string46.length);
out.print((request.getContextPath()));
out.write(_jsp_string47, 0, _jsp_string47.length);
out.print((StrUtil.getUrl(request)));
out.write(_jsp_string48, 0, _jsp_string48.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_string49, 0, _jsp_string49.length);
out.print((request.getContextPath()));
out.write(_jsp_string50, 0, _jsp_string50.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_string34, 0, _jsp_string34.length);
}
out.write(_jsp_string51, 0, _jsp_string51.length);
out.print((request.getContextPath()));
out.write(_jsp_string52, 0, _jsp_string52.length);
out.print((pos_curleaf.getMenuString(request, pos_curleaf.getLeaf(Leaf.CODE_ROOT))));
out.write(_jsp_string53, 0, _jsp_string53.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_string54, 0, _jsp_string54.length);
out.print((request.getContextPath()));
out.write(_jsp_string55, 0, _jsp_string55.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_string56, 0, _jsp_string56.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_string57, 0, _jsp_string57.length);
out.print((pleaf.getCode()));
out.write(_jsp_string58, 0, _jsp_string58.length);
out.print((pleaf.getCode()));
out.write(_jsp_string59, 0, _jsp_string59.length);
out.print((pos_curleaf.getMenuString(request, pleaf)));
out.write(_jsp_string60, 0, _jsp_string60.length);
if (pleaf.getType()==pleaf.TYPE_BOARD) {
plink = " <a href='" + ForumPage.getListTopicPage(request, pCode) + "' onmousemove='showmenu(event, posspan_" + pleaf.getCode() + ".innerHTML, 0)'>" + pleaf.getName() + "</a> <B>»</B>" + plink;
}
else {
plink = " <a href='" + request.getContextPath() + "/forum/index.jsp?boardField=" + StrUtil.UrlEncode(pCode) + "' onmousemove='showmenu(event, posspan_" + pleaf.getCode() + ".innerHTML, 0)'>" + pleaf.getName() + "</a> <B>»</B>" + plink;
}
pCode = pleaf.getParentCode();
}
out.write(_jsp_string61, 0, _jsp_string61.length);
out.print((plink));
out.write(_jsp_string62, 0, _jsp_string62.length);
out.print((request.getContextPath()));
out.write(_jsp_string63, 0, _jsp_string63.length);
out.print((ForumPage.getListTopicPage(request, pos_boardcode)));
out.write(_jsp_string64, 0, _jsp_string64.length);
out.print(pos_curleaf.getName());
out.write(_jsp_string65, 0, _jsp_string65.length);
if (pos_op.equals("showelite")) {
out.write(_jsp_string61, 0, _jsp_string61.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");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -