📄 _index__jsp.java
字号:
_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("pian");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string97, 0, _jsp_string97.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("most_post_date");
_jsp_LabelTag_0.doEndTag();
out.print((DateUtil.format(forum.getMaxDate(), "yyyy-MM-dd")));
out.write(_jsp_string98, 0, _jsp_string98.length);
MiniPluginMgr mpm = new MiniPluginMgr();
MiniPluginUnit indexUnit = mpm.getMiniPluginUnit("index_new_elite_top");
if (indexUnit!=null && indexUnit.isPlugin()) {
out.write(_jsp_string99, 0, _jsp_string99.length);
int n = 5;
NewEliteTop net = new NewEliteTop();
java.util.Iterator newir = net.listNewMsg(5).iterator();
while (newir.hasNext()) {
com.redmoon.forum.MsgDb msg = (com.redmoon.forum.MsgDb)newir.next();
out.write(_jsp_string100, 0, _jsp_string100.length);
out.print((msg.getId()));
out.write(_jsp_string37, 0, _jsp_string37.length);
out.print((cn.js.fan.util.StrUtil.getLeft(msg.getTitle(), 20)));
out.write(_jsp_string101, 0, _jsp_string101.length);
}
out.write(_jsp_string102, 0, _jsp_string102.length);
n = 5;
newir = net.listEliteMsg(5).iterator();
while (newir.hasNext()) {
com.redmoon.forum.MsgDb msg = (com.redmoon.forum.MsgDb)newir.next();
out.write(_jsp_string103, 0, _jsp_string103.length);
out.print((msg.getId()));
out.write(_jsp_string37, 0, _jsp_string37.length);
out.print((cn.js.fan.util.StrUtil.getLeft(msg.getTitle(), 20)));
out.write(_jsp_string104, 0, _jsp_string104.length);
}
out.write(_jsp_string105, 0, _jsp_string105.length);
n = 5;
newir = net.listTopMsg(5).iterator();
while (newir.hasNext()) {
com.redmoon.forum.MsgDb msg = (com.redmoon.forum.MsgDb)newir.next();
out.write(_jsp_string103, 0, _jsp_string103.length);
out.print((msg.getId()));
out.write(_jsp_string37, 0, _jsp_string37.length);
out.print((cn.js.fan.util.StrUtil.getLeft(msg.getTitle(), 20)));
out.write(_jsp_string104, 0, _jsp_string104.length);
}
out.write(_jsp_string106, 0, _jsp_string106.length);
}
out.write(_jsp_string107, 0, _jsp_string107.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("notice");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string108, 0, _jsp_string108.length);
Vector vnotice = forum.getAllNotice();
if (vnotice.size()!=0) {
Iterator irnotice = vnotice.iterator();
while (irnotice.hasNext()) {
MsgDb md = (MsgDb)irnotice.next();
out.write(_jsp_string109, 0, _jsp_string109.length);
out.print((ForumPage.getShowTopicPage(request, md.getId())));
out.write(_jsp_string110, 0, _jsp_string110.length);
String color = StrUtil.getNullString(md.getColor());
String tp = md.getTitle();
if (!color.equals(""))
tp = "<font color='" + color + "'>" + tp + "</font>";
if (md.isBold())
tp = "<B>" + tp + "</B>";
out.write(_jsp_string111, 0, _jsp_string111.length);
out.print((tp));
out.write(_jsp_string112, 0, _jsp_string112.length);
out.print((com.redmoon.forum.ForumSkin.formatDate(request, md.getAddDate())));
out.write(_jsp_string113, 0, _jsp_string113.length);
}
}
out.write(_jsp_string114, 0, _jsp_string114.length);
// PluginMgr pmnote = new PluginMgr();
EntranceMgr em = new EntranceMgr();
MsgMgr mm = new MsgMgr();
String boardField = ParamUtil.get(request, "boardField");
boolean isShowBoardField = !boardField.equals("");
if (isShowBoardField) {
Leaf leaf = new Leaf();
leaf = leaf.getLeaf(boardField);
if (leaf==null) {
out.print(StrUtil.Alert_Back(boardField + " is not found."));
return;
}
}
LeafChildrenCacheMgr dlcm = new LeafChildrenCacheMgr(Leaf.CODE_ROOT);
java.util.Vector vt = dlcm.getChildren();
Iterator ir = vt.iterator();
boolean isDisplay = false;
boolean isFounded = false;
while (ir.hasNext()) {
Leaf leaf = (Leaf) ir.next();
String parentCode = leaf.getCode();
if(isShowBoardField) {
if (boardField.equals(leaf.getCode())) {
isFounded = true;
}
else
continue;
}
if (leaf.isDisplay(request, privilege1)) {
CookieBean cookiebean = new CookieBean();
boolean isCollapse = false;
String sCollapse = cookiebean.getCookieValue(request, leaf.getCode() + "_collapse");
if (sCollapse==null || sCollapse.equals(""))
isCollapse = leaf.getDisplayStyle()!=Leaf.DISPLAY_STYLE_VERTICAL;
else
isCollapse = sCollapse.equals("true");
if (!isCollapse) {
out.write(_jsp_string115, 0, _jsp_string115.length);
out.print((skin.getTableBorderClr()));
out.write(_jsp_string116, 0, _jsp_string116.length);
out.print((skinPath));
out.write(_jsp_string117, 0, _jsp_string117.length);
out.print((leaf.getCode()));
out.write(_jsp_string118, 0, _jsp_string118.length);
out.print((leaf.getName()));
out.write(_jsp_string119, 0, _jsp_string119.length);
MsgDb md = null;
LeafChildrenCacheMgr dl = new LeafChildrenCacheMgr(parentCode);
java.util.Vector v = dl.getChildren();
Iterator ir1 = v.iterator();
while (ir1.hasNext()) {
Leaf lf = (Leaf) ir1.next();
md = mm.getMsgDb(lf.getAddId());
if (lf.isDisplay(request, privilege1)) {
out.write(_jsp_string120, 0, _jsp_string120.length);
if (lf.isLocked()) {
out.write(_jsp_string121, 0, _jsp_string121.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("board_lock");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string122, 0, _jsp_string122.length);
out.print((skinPath));
out.write(_jsp_string123, 0, _jsp_string123.length);
}else{
out.write(_jsp_string124, 0, _jsp_string124.length);
if (lf.getTodayCount()>0) {
out.write(_jsp_string125, 0, _jsp_string125.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("board_new");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string122, 0, _jsp_string122.length);
out.print((skinPath));
out.write(_jsp_string126, 0, _jsp_string126.length);
}else{
out.write(_jsp_string125, 0, _jsp_string125.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("board_nonew");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string122, 0, _jsp_string122.length);
out.print((skinPath));
out.write(_jsp_string127, 0, _jsp_string127.length);
}
out.write(_jsp_string128, 0, _jsp_string128.length);
}
out.write(_jsp_string129, 0, _jsp_string129.length);
out.print((ForumPage.getListTopicPage(request, lf.getCode())));
out.write(_jsp_string130, 0, _jsp_string130.length);
String lfName = lf.getName();
if (!lf.getColor().equals("")) {
lfName = "<font color=" + lf.getColor() + ">" + lfName + "</font>";
}
if (lf.isBold()) {
lfName = "<strong>" + lfName + "</strong>";
}
out.write(_jsp_string131, 0, _jsp_string131.length);
out.print((lfName));
out.write(_jsp_string132, 0, _jsp_string132.length);
int chcount = lf.getChildCount();
if (chcount>0) {
out.print("(" + chcount + ")");
}
out.write(_jsp_string131, 0, _jsp_string131.length);
/*
Vector vplugin = pmnote.getAllPluginUnitOfBoard(lf.getCode());
if (vplugin.size()>0) {
out.print("<font color=#aaaaaa>");
Iterator irpluginnote = vplugin.iterator();
while (irpluginnote.hasNext()) {
PluginUnit pu = (PluginUnit)irpluginnote.next();
out.print(pu.getName(request) + " ");
}
out.print("</font>");
}
*/
Vector ventrance = em.getAllEntranceUnitOfBoard(lf.getCode());
if (ventrance.size()>0) {
Iterator irpluginent = ventrance.iterator();
while (irpluginent.hasNext()) {
EntranceUnit eu = (EntranceUnit)irpluginent.next();
out.print("<img src='images/passport.gif' alt='" + eu.getDesc(request) + "'> ");
}
}
out.write(_jsp_string133, 0, _jsp_string133.length);
String logo = StrUtil.getNullString(lf.getLogo());
if (!logo.equals("")) {
out.write(_jsp_string134, 0, _jsp_string134.length);
out.print((logo));
out.write(_jsp_string135, 0, _jsp_string135.length);
}
out.write(_jsp_string136, 0, _jsp_string136.length);
MsgDb mdb = mm.getMsgDb(md.getRootid());
out.write(_jsp_string137, 0, _jsp_string137.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("topic");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string137, 0, _jsp_string137.length);
if (md.isLoaded()) {
if (md.getReplyid()==-1){
out.write(_jsp_string138, 0, _jsp_string138.length);
out.print((StrUtil.toHtml(mdb.getTitle())));
out.write(_jsp_string23, 0, _jsp_string23.length);
out.print((ForumPage.getShowTopicPage(request, mdb.getId())));
out.write(_jsp_string37, 0, _jsp_string37.length);
out.print((DefaultRender.RenderTitle(request, mdb, 60)));
out.write(_jsp_string139, 0, _jsp_string139.length);
}else{
int CPages = (int)Math.ceil((double)md.getOrders()/pagesize);
out.write(_jsp_string138, 0, _jsp_string138.length);
out.print((StrUtil.toHtml(mdb.getTitle())));
out.write(_jsp_string23, 0, _jsp_string23.length);
out.print((ForumPage.getShowTopicPage(request, md.getRootid(), CPages, ""+md.getId())));
out.write(_jsp_string37, 0, _jsp_string37.length);
out.print((DefaultRender.RenderTitle(request, mdb, 60)));
out.write(_jsp_string139, 0, _jsp_string139.length);
}
}
out.write(_jsp_string140, 0, _jsp_string140.length);
if (md.isLoaded()) {
out.write(_jsp_string141, 0, _jsp_string141.length);
if (md.getReplyid()==-1) {
out.write(_jsp_string141, 0, _jsp_string141.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("topic_post");
_jsp_LabelTag_0.doEndTag();
out.write(_jsp_string142, 0, _jsp_string142.length);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -