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

📄 _listtopic__jsp.java

📁 CMS 1、增加子站点功能
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string163, 0, _jsp_string163.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_one_day");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string164, 0, _jsp_string164.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_two_day");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string165, 0, _jsp_string165.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_week");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string166, 0, _jsp_string166.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_half_month");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string167, 0, _jsp_string167.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_one_month");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string168, 0, _jsp_string168.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_two_month");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string162, 0, _jsp_string162.length);
      out.print((boardcode));
      out.write(_jsp_string169, 0, _jsp_string169.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.listtopic");
      _jsp_LabelTag_0.setKey("topic_half_year");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string170, 0, _jsp_string170.length);
      out.print((boardcode));
      out.write(_jsp_string171, 0, _jsp_string171.length);
      out.print((timelimit));
      out.write(_jsp_string172, 0, _jsp_string172.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.listtopic");
      _jsp_LabelTag_0.setKey("refresh");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string173, 0, _jsp_string173.length);
      out.print((StrUtil.UrlEncode(boardcode)));
      out.write(_jsp_string174, 0, _jsp_string174.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.listtopic");
      _jsp_LabelTag_0.setKey("subscription");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string175, 0, _jsp_string175.length);
      
ThreadTypeDb ttd = new ThreadTypeDb();
Vector ttv = ttd.getThreadTypesOfBoard(boardcode);
if (ttv.size()>0) {

      out.write(_jsp_string176, 0, _jsp_string176.length);
      
Iterator ir = ttv.iterator();
String className = "";
while (ir.hasNext()) {
	ttd = (ThreadTypeDb)ir.next();
	if (ttd.getId()==threadType)
		className = "td_hover";
	else
		className = "";
	String ttName = ttd.getName();
	if (!ttd.getColor().equals(""))
		ttName = "<font color='" + ttd.getColor() + "'>" + ttName + "</font>";

      out.write(_jsp_string177, 0, _jsp_string177.length);
      out.print((className));
      out.write(_jsp_string178, 0, _jsp_string178.length);
      out.print((className));
      out.write(_jsp_string179, 0, _jsp_string179.length);
      out.print((ForumPage.getListTopicPage(request, boardcode, 0, 1, ttd.getId())));
      out.write(_jsp_string38, 0, _jsp_string38.length);
      out.print((ttName));
      out.write(_jsp_string180, 0, _jsp_string180.length);
      }
	if (threadType==ThreadTypeDb.THREAD_TYPE_NONE)
		className = "td_hover";
	else
		className = "";

      out.write(_jsp_string177, 0, _jsp_string177.length);
      out.print((className));
      out.write(_jsp_string178, 0, _jsp_string178.length);
      out.print((className));
      out.write(_jsp_string179, 0, _jsp_string179.length);
      out.print((ForumPage.getListTopicPage(request, boardcode)));
      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.listtopic");
      _jsp_LabelTag_0.setKey("topic_all");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string181, 0, _jsp_string181.length);
      }
      out.write(_jsp_string1, 0, _jsp_string1.length);
      
String sql = SQLBuilder.getListtopicSql(request, response, out, boardcode, op, timelimit, threadType);
MsgDb msgdb = new MsgDb();
int total = msgdb.getThreadsCount(sql, boardcode);

com.redmoon.forum.Config cfg1 = com.redmoon.forum.Config.getInstance();
int pagesize = cfg1.getIntProperty("forum.listTopicPageSize");
int showPageSize = cfg1.getIntProperty("forum.showTopicPageSize");
		
ForumPaginator paginator = new ForumPaginator(request, total, pagesize);
int curpage = paginator.getCPage(request);
int totalpages = paginator.getTotalPages();
if (totalpages==0) {
	curpage = 1;
	totalpages = 1;
}
		
long start = (curpage-1)*pagesize;
long end = curpage*pagesize;
		
ThreadBlockIterator irmsg = msgdb.getThreads(sql, boardcode, start, end);

      out.write(_jsp_string182, 0, _jsp_string182.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.listtopic");
      _jsp_LabelTag_0.setKey("topis_list");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string183, 0, _jsp_string183.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.listtopic");
      _jsp_LabelTag_0.setKey("author");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string184, 0, _jsp_string184.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.listtopic");
      _jsp_LabelTag_0.setKey("reply");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string184, 0, _jsp_string184.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.listtopic");
      _jsp_LabelTag_0.setKey("hit");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string185, 0, _jsp_string185.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.listtopic");
      _jsp_LabelTag_0.setKey("reply_date");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string186, 0, _jsp_string186.length);
      		
String id="",name="",lydate="",rename="",redate="";
int level=0,iselite=0,islocked=0,expression=0;
int i = 0,recount=0,hit=0,type=0;
// \u53d6\u51fa\u8bba\u575b\u7f6e\u9876\u7684\u8d34\u5b50
ForumDb forum = new ForumDb();
long[] topmsgs = forum.getTopMsgs();
int tlen = topmsgs.length;
UserDb ud = null;
UserDb reUserDb = null;
int hotReplyCount = cfg1.getIntProperty("forum.hotReplyCount");
ThreadTypeMgr ttm = new ThreadTypeMgr();
boolean isTopTopicFirstPage = cfg1.getBooleanProperty("forum.isTopTopicFirstPage");
if (isTopTopicFirstPage && curpage!=1)
	tlen = 0; // \u4ec5\u9996\u9875\u663e\u793a\u603b\u7f6e\u9876\u8d34
	
Iterator irBeforeTopic = null;
while (i<tlen) {
	 	  msgdb = msgdb.getMsgDb((int)topmsgs[i]);
		  i++;
		  id = ""+msgdb.getId();
		  name = msgdb.getName();
		  ud = um.getUser(name);
		  lydate = com.redmoon.forum.ForumSkin.formatDateTimeShort(request, msgdb.getAddDate());
		  recount = msgdb.getRecount();
		  hit = msgdb.getHit();
		  expression = msgdb.getExpression();
		  type = msgdb.getType();
		  iselite = msgdb.getIsElite();
		  islocked = msgdb.getIsLocked();
		  level = msgdb.getLevel();
		  rename = StrUtil.getNullString(msgdb.getRename());
		  if (!rename.equals(""))
			  reUserDb = um.getUser(rename);
		  redate = com.redmoon.forum.ForumSkin.formatDateTimeShort(request, msgdb.getRedate());
	  
      out.write(_jsp_string187, 0, _jsp_string187.length);
      out.print((skin.getTableBorderClr()));
      out.write(_jsp_string188, 0, _jsp_string188.length);
      if (recount>=hotReplyCount){ 
      out.write(_jsp_string189, 0, _jsp_string189.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.listtopic");
      _jsp_LabelTag_0.setKey("open_topic_hot");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string87, 0, _jsp_string87.length);
      out.print((skinPath));
      out.write(_jsp_string190, 0, _jsp_string190.length);
      }
	  			else if (recount>0) {
      out.write(_jsp_string189, 0, _jsp_string189.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.listtopic");
      _jsp_LabelTag_0.setKey("open_topic_reply");
      _jsp_LabelTag_0.doEndTag();
      out.write(_jsp_string87, 0, _jsp_string87.length);
      out.print((skinPath));
      out.write(_jsp_string191, 0, _jsp_string191.length);
      }
	  			else {
      out.write(_jsp_string189, 0, _jsp_string189.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.listtopic");
      _jsp_LabelTag_0.setKey("open_topic_no_reply");
      _jsp_Label

⌨️ 快捷键说明

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