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

📄 showtopictree.jsp

📁 这是论坛原代码,希望大家能好好看看,说明需要的太多了吧
💻 JSP
📖 第 1 页 / 共 3 页
字号:
%>
      </TD>
    </TR>
  </TBODY>
</TABLE>
<%}%>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center border=0>
  <TBODY>
  <TR>
    <TD width="49%" height=35>
		<%
		String addpage = "addtopic_new.jsp";
		String replypage = "addreply_new.jsp";
		if (msgLeaf.getWebeditAllowType()==Leaf.WEBEDIT_ALLOW_TYPE_REDMOON_FIRST) {
			addpage = "addtopic_we.jsp";
			replypage = "addreply_we.jsp";
		}
		%>	  
		<a href="<%=addpage%>?boardcode=<%=StrUtil.UrlEncode(boardcode)%>&privurl=<%=privurl%>"><img src="<%=skinPath%>/images/post_<%=SkinUtil.getLocale(request)%>.gif" border=0 width=99 height=25 alt="<lt:Label res="res.label.forum.showtopic" key="addtopic"/>"></a>
		<a href="<%=replypage%>?boardcode=<%=StrUtil.UrlEncode(boardcode)%>&replyid=<%=rootid%>&privurl=<%=privurl%>"> <img height=25 src="<%=skinPath%>/images/newreply_<%=SkinUtil.getLocale(request)%>.gif" width=99 border=0 alt="<lt:Label res="res.label.forum.showtopic" key="addreply"/>"></a>
        <%
		if (vplugin.size()>0) {
			Iterator irplugin = vplugin.iterator();
			while (irplugin.hasNext()) {
				PluginUnit pu = (PluginUnit)irplugin.next();
				IPluginUI ipu = pu.getUI(request);
				IPluginViewListThread pv = ipu.getViewListThread(boardcode);
				if (pv.IsPluginBoard() && pu.getType().equals(pu.TYPE_TOPIC)) {%>
        <a href="<%=addpage%>?pluginCode=<%=pu.getCode()%>&boardcode=<%=StrUtil.UrlEncode(boardcode)%>&privurl=<%=privurl%>"><img src="<%=skinPath + "/" + pu.getButton()%>_<%=SkinUtil.getLocale(request)%>.gif" border="0"></a>
        <%}
			}
		}
		%>
        <%
			if (msgLeaf!=null) {
				Vector vplugin2 = msgLeaf.getAllPlugin2();
				Iterator irplugin2 = vplugin2.iterator();
				while (irplugin2.hasNext()) {
					com.redmoon.forum.plugin2.Plugin2Unit p2u = (com.redmoon.forum.plugin2.Plugin2Unit)irplugin2.next();
				%>
      <a href="<%=addpage%>?plugin2Code=<%=p2u.getCode()%>&boardcode=<%=StrUtil.UrlEncode(boardcode)%>&privurl=<%=privurl%>"><img src="<%=skinPath + "/images/" + p2u.getButton()%>_<%=SkinUtil.getLocale(request)%>.gif" border="0"></a>
      <%}
			}
		  %>	</TD>
    <TD width="51%" height=35 align="right">
	<FONT color=#333333><lt:Label res="res.label.forum.showtopic" key="hit_begin"/> <B><span id="spanhit" name="spanhit"></span></B> <lt:Label res="res.label.forum.showtopic" key="hit_end"/></FONT>&nbsp;&nbsp;
	  <a href="showtopic.jsp?rootid=<%=rootid%>&CPages=<%=CPages%>#<%=showid%>" title="<lt:Label res="res.label.forum.showtopic" key="flat_view"/>"><img border=0 src="images/flatview.gif"></a>&nbsp;&nbsp;
<%  if (irthread.hasPrevious()) {
        MsgDb prevMsg = (MsgDb)irthread.previous();
        // advance the iterator pointer back to the original index
        irthread.next();
%>
	  <A href="showtopictree.jsp?rootid=<%=prevMsg.getRootid()%>"><IMG alt=<lt:Label res="res.label.forum.showtopic" key="show_pre"/> src="images/prethread.gif" border=0></A>
	  <%}%>
	  &nbsp;&nbsp;<A href="javascript:location.reload()"><IMG alt=<lt:Label res="res.label.forum.showtopic" key="refresh"/> src="images/refresh.gif" border=0></A> 
<%  if (irthread.hasNext()) {
        MsgDb nextMsg = (MsgDb)irthread.next();
%>
	  <A href="showtopictree.jsp?rootid=<%=nextMsg.getId()%>"><IMG alt=<lt:Label res="res.label.forum.showtopic" key="show_after"/> src="images/nextthread.gif" 
      border=0></A>
<%  } else { %>
    &nbsp;
<%  } %>	  </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center bgColor=#d3d3d3 
border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=1 cellPadding=6 width="100%" border=0>
        <TBODY></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE borderColor=#d3d3d3 cellSpacing=0 cellPadding=0 width="98%" align=center 
border=1>
  <TBODY>
  <TR >
    <TD height=26>
      <TABLE width="100%" height="26" background="<%=skinPath%>/images/bg1.gif">
        <TBODY>
        <TR>
          <TD class="text_title"><lt:Label res="res.label.forum.showtopic" key="topic"/><%=StrUtil.toHtml(topic)%></TD>
              <TD align=right><A href="javascript:window.print()"><FONT 
            color=#ffffff>[<lt:Label res="res.label.forum.showtopic" key="print"/>]</FONT></A> <A 
            href="javascript:window.external.AddFavorite(location.href,document.title)"><FONT 
            color=#ffffff>[<lt:Label res="res.label.forum.showtopic" key="favoriate"/>]</FONT></A> <A 
            onclick=document.all.WebBrowser.ExecWB(4,1) 
            href="http://bbs.downlove.com/showtopic.asp?id=23111&amp;forumid=16&amp;page=1#"></A> 
              </TD>
            </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<table bordercolor=#d3d3d3 cellspacing=0 cellpadding=0 width="98%" align=center 
border=1>
  <tbody> 
  <tr> 
    <td valign=top align=left height=78> 
      <table cellspacing=0 cellpadding=3 width="100%" border=0>
        <tbody> 
        <tr bgcolor=#ffffff> 
          <td valign=top width=150 height=106> 
            <table cellspacing=0 cellpadding=0 width="80%" align=center 
border=0>
                  <tbody>
                    <tr> 
                      <td align=left> <table style="FILTER: glow(color=a4b6d7)">
                          <caption>
                          <b><font style="FONT-SIZE: 10pt" 
                    color=#ffffff><%=name%></font></b> 
                          </caption>
                        </table>
                        <%
						  if (!user.getGroupCode().equals("")) {
						  	UserGroupDb ugd = ugm.getUserGroupDb(user.getGroupCode());
							if (ugd.isLoaded())
								out.print("<table><tr><td>" + ugd.getDesc() + "</td></tr></table>");
						  }
						  %></td>
                    </tr>
                    <tr> 
                      <td align=left height=42> <%if (myface.equals("")) {%> <img src="images/face/face<%=RealPic%>.gif"> 
                        <%}else{%> <img src="../images/myface/<%=myface%>" width=<%=myfacewidth%> height=<%=myfaceheight%>> 
                        <%}%> </td>
                    </tr>
                    <tr> 
                      <td align=left height=17> 
						<img src="images/level<%=user.getLevel()%>.gif"> 
                        <%=Gender%></td>
                    </tr>
                    <tr> 
                      <td align=left height=54>
					    <lt:Label res="res.label.forum.showtopic" key="rank"/><%=user.getLevelDesc()%><br>
                        <lt:Label res="res.label.forum.showtopic" key="experience"/><%=experience%><br>
                        <lt:Label res="res.label.forum.showtopic" key="credit"/><%=credit%><br>
						<%
						ScoreMgr sm = new ScoreMgr();
						ScoreUnit su = sm.getScoreUnit("gold");
						// out.print(StrUtil.toHtml(su.getName()));
						out.print(su.getName(request));
						%>:<%=user.getGold()%><br>
                        <lt:Label res="res.label.forum.showtopic" key="topic_count"/><%=addcount%> <br>
                        <lt:Label res="res.label.forum.showtopic" key="topic_elite"/><%=user.getEliteCount()%><br>
                        <lt:Label res="res.label.forum.showtopic" key="reg_date"/><%=RegDate%>	<br>
                        <lt:Label res="res.label.forum.showtopic" key="online_status"/><%
						OnlineUserDb ou = new OnlineUserDb();
						ou = ou.getOnlineUserDb(user.getName());
						if (ou.isLoaded())
							out.print(SkinUtil.LoadString(request, "res.label.forum.showtopic", "online_status_yes")); // "在线");
						else
							out.print(SkinUtil.LoadString(request, "res.label.forum.showtopic", "online_status_no")); // "离线");
						%></td>
                    </tr>
                  </tbody>
                </table>
            <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center"><br>
                  <%
				  	if (rootid==id) {
						// 当为根贴时可置为被锁定
						String toptitle="",locktitle="",elitetitle="",guidetitle="";
						int dotop = (lylevel==MsgDb.LEVEL_TOP_BOARD)?0:MsgDb.LEVEL_TOP_BOARD;
						if (dotop==MsgDb.LEVEL_TOP_BOARD)
							toptitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "top_board"); // "版块置顶";
						else
							toptitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "top_none"); // "取消置顶";
						
						int dolock = (islocked==1)?0:1;
						if (dolock==1)
							locktitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "lock"); // "锁定";
						else
							locktitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "unlock"); // "解锁";
						int doelite = (iselite==1)?0:1;
						if (doelite==1)
							elitetitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "elite"); // "置为精华";
						else
							elitetitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "elite_not"); // "取消精华";
						
						if (privilege.isMasterLogin(request)) {
							// 全局置顶
							String alltoptitle="";
							int doalltop = (lylevel==MsgDb.LEVEL_TOP_FORUM)?MsgDb.LEVEL_TOP_BOARD:MsgDb.LEVEL_TOP_FORUM;
							if (doalltop==MsgDb.LEVEL_TOP_FORUM)
								alltoptitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "top_forum"); // "论坛置顶";
							else
								alltoptitle = SkinUtil.LoadString(request, "res.label.forum.showtopic", "top_board"); // "版块置顶";
						%>
                      <a title="<%=toptitle%>" href="manager/manage.jsp?privurl=<%=privurl%>&boardcode=<%=boardcode%>&boardname=<%=StrUtil.UrlEncode(boardname,"utf-8")%>&action=setOnTop&id=<%=id%>&value=<%=doalltop%>"><img height=15 alt="<%=alltoptitle%>" src="images/top_forum.gif" width=15 border=0></a>&nbsp;
                      <%}%>
                      <a title="<%=toptitle%>" href="manager/manage.jsp?privurl=<%=privurl%>&boardcode=<%=boardcode%>&boardname=<%=StrUtil.UrlEncode(boardname,"utf-8")%>&action=setOnTop&id=<%=id%>&value=<%=dotop%>"><img height=15 alt="<%=toptitle%>" src="images/f_top.gif" width=15 border=0></a>&nbsp;
					  <a href="manager/manage.jsp?privurl=<%=privurl%>&boardcode=<%=boardcode%>&boardname=<%=StrUtil.UrlEncode(boardname,"utf-8")%>&action=setLocked&id=<%=id%>&value=<%=dolock%>"><img height=15 alt="<%=locktitle%>" src="images/f_locked.gif" width=17 border=0></a>&nbsp;
					  <a title="<%=elitetitle%>" href="manager/manage.jsp?privurl=<%=privurl%>&boardcode=<%=boardcode%>&boardname=<%=StrUtil.UrlEncode(boardname,"utf-8")%>&action=setElite&id=<%=id%>&value=<%=doelite%>"><img alt="<%=elitetitle%>" src="images/topicgood.gif" border=0></a>&nbsp;
					  <a href="manager/changecolor.jsp?id=<%=id%>"><img src="images/color.gif" alt="<lt:Label res="res.label.forum.showtopic" key="change_color"/>" width="18" height="18" border="0"></a>&nbsp;
					  <a title="<lt:Label res="res.label.forum.showtopic" key="change_board"/>" href="manager/changeboard.jsp?privurl=<%=privurl%>&title=<%=StrUtil.UrlEncode(topic,"utf-8")%>&boardcode=<%=StrUtil.UrlEncode(boardcode)%>&boardname=<%=StrUtil.UrlEncode(boardname,"utf-8")%>&id=<%=id%>"><img src="images/zhuan.gif" width="16" height="16" border="0"></a>
                      <%}%>
					  </td>
              </tr>
            </table></td>
          <td width=9 height=126 rowspan="2" align=middle valign=bottom> 
            <table height="100%" cellspacing=0 cellpadding=0 width=1 
            bgcolor=#edeced>
              <tbody> 
              <tr> 
                <td width=1></td>
              </tr>
              </tbody>
            </table>          </td>
          <td valign=top align=left height=106> 
            <table style="TABLE-LAYOUT: fixed;WORD-BREAK: break-all" 
            height="100%" cellspacing=0 cellpadding=0 width="99%" border=0>
                  <tbody>
                    <tr height=20> 
                      <td> <a name=#content<%=id%>></a> <a href="../userinfo.jsp?username=<%=StrUtil.UrlEncode(name,"utf-8")%>"> 
                        <img src="images/profile.gif" alt="<%=StrUtil.toHtml(name)%><lt:Label res="res.label.forum.showtopic" key="user_info"/>" 
                  border=0 align="absmiddle"></a>&nbsp;&nbsp;&nbsp;<a 
                  href="#" onClick="hopenWin('../message/send.jsp?receiver=<%=StrUtil.UrlEncode(name,"utf-8")%>',320,260)"><img src="images/pm.gif" alt="<lt:Label res="res.label.forum.showtopic" key="send_short_msg"/><%=StrUtil.toHtml(name)%>" 
                  border=0 align="absmiddle"></a>&nbsp;&nbsp;&nbsp;<a href="mailto:<%=StrUtil.toHtml(email)%>"><img src="images/email.gif" 
                  alt=<lt:Label res="res.label.forum.showtopic" key="send_email"/><%=user.getName()%> border=0 align="absmiddle"></a>&nbsp;&nbsp; <a 
                  href="javascript:copyText(document.all.topiccontent);"><img 
                  src="images/copy.gif" alt=<lt:Label res="res.label.forum.showtopic" key="topic_copy"/> border=0 align="absmiddle"></a>&nbsp;&nbsp; 
                        <a href="addreply_new.jsp?boardcode=<%=StrUtil.UrlEncode(boardcode)%>&hit=<%=hit%>&replyid=<%=id%>&quote=1&privurl=<%=privurl%>" class="normal"><IMG src="images/reply.gif" alt=<lt:Label res="res.label.forum.showtopic" key="topic_quote"/> 
                  border=0 align="absmiddle"></A>&nbsp;&nbsp; 
                        <% if (islocked==0) { %>
                        <a href="addreply_new.jsp?boardcode=<%=StrUtil.UrlEncode(boardcode)%>&hit=<%=hit%>&replyid=<%=id%>&privurl=<%=privurl%>"><img src="images/replynow.gif" 
                  alt=<lt:Label res="res.label.forum.showtopic" key="topic_reply"/> 
                  border=0 align="absmiddle"></a> 
                        <% } %>
				<%if (!user.getHome().equals("")) {%>		
				&nbsp;&nbsp;<a href="<%=user.getHome()%>" target="_blank"><img alt="<lt:Label res="res.label.forum.showtopic" key="home"/>" src="images/home.gif" width="16" height="16" border="0" align="absmiddle"></a>
				<%}%>						
				<%if (Global.hasBlog) {%>&nbsp;&nbsp;<a title="<lt:Label res="res.label.forum.showtopic" key="blog"/>" href="../blog/myblog.jsp?userName=<%=StrUtil.UrlEncode(name)%>"><img src="images/favorite.gif" border="0" align="absmiddle"></a>
                    <%if (cfg1.getBooleanProperty("forum.isShowQQ") && !user.getOicq().equals("")) {%>
                    &nbsp;&nbsp;<a title="<lt:Label res="res.label.forum.showtopic" key="send_qq_msg"/><%=user.getName()%>" href="http://wpa.qq.com/msgrd?V=1&amp;Uin=<%=user.getOicq()%>&amp;Site=By CWBBS&amp;Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:<%=user.getOicq()%>:4" align="absmiddle" border="0"></a>
                    <%}%>
&nbsp;                    <a href="#<%=id%>"><lt:Label res="res.label.forum.showtopic" key="position"/></a>
					<%}%>					</td>
                    </tr>
                    <tr height=8> 
                      <td> <hr width="100%" color=#777777 size=1>                      </td>
                    </tr>
                    <tr>
                      <td height="30">
						<%=render.RenderTitle(request, msgdb)%>
					  </td>
                    </tr>
                    <tr valign=top> 
                      <td>                        <%
if (vplugin.size()>0) {
	Iterator irplugin = vplugin.iterator();
	while (irplugin.hasNext()) {
		PluginUnit pu = (PluginUnit)irplugin.next();
		IPluginUI ipu = pu.getUI(request);
		IPluginViewShowMsg pv = ipu.getViewShowMsg(boardcode, msgdb);
		if (pv.IsPluginBoard()) {
			boolean isShow = false;
			if (pu.getType().equals(pu.TYPE_BOARD))
				isShow = true;
			else if (pu.getType().equals(pu.TYPE_TOPIC)) {
				if (pu.getUnit().isPluginMsg(msgdb.getId()))
					isShow = true;
			}
			if (isShow)
				out.print(pu.getName(request) + "&nbsp;" + pv.render(UIShowMsg.POS_BEFORE_MSG) + "<BR>");
		}
	}
}
%>
                        <table width="99%" height="120"  border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td valign="top"><span id="topiccontent" name="topiccontent">
                            <%
				String[] voptions = null;
				if (type==1)
				{	
					voptions = voteoption.split("\\|");
					int len = voptions.length; %>
                            <br>
                            <form action="vote.jsp?privurl=<%=privurl%>" name=formvote method="post">
                              <input type=hidden name=boardcode value="<%=boardcode%>">
                              <input type=hidden name=boardname value="<%=boardname%>">
                              <input type=hidden name=hit value="<%=hit%>">
                              <input type=hidden name=voteid value="<%=id%>">
                              <%

⌨️ 快捷键说明

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