📄 showtopic_tree.jsp
字号:
</TBODY>
</TABLE><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="5"></td></tr>
</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, response, out);
IPluginViewListThread pv = ipu.getViewListThread(boardcode);
if (pv.IsPluginBoard() && pu.getType().equals(pu.TYPE_TOPIC) && !pu.getButton().equals("")) {%>
<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>
<a href="<%=ForumPage.getShowTopicPage(request, rootid, CPages, "" + showid)%>" title="<lt:Label res="res.label.forum.showtopic" key="flat_view"/>"><img border=0 src="images/flatview.gif"></a>
<% if (irthread.hasPrevious()) {
MsgDb prevMsg = (MsgDb)irthread.previous();
// advance the iterator pointer back to the original index
irthread.next();
%>
<A href="<%=ForumPage.getShowTopicPage(request, 1, prevMsg.getRootid(), prevMsg.getRootid(), 1, "")%>"><IMG alt=<lt:Label res="res.label.forum.showtopic" key="show_pre"/> src="images/prethread.gif" border=0></A>
<%}%>
<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="<%=ForumPage.getShowTopicPage(request, 1, nextMsg.getRootid(), nextMsg.getRootid(), 1, "")%>"><IMG alt=<lt:Label res="res.label.forum.showtopic" key="show_after"/> src="images/nextthread.gif"
border=0></A>
<% } else { %>
<% } %> </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&forumid=16&page=1#"></A>
</TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<table bordercolor="<%=skin.getTableBorderClr()%>" 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><%=user.getNick()%></font></b>
</caption>
</table>
<%
UserGroupDb ugd = user.getUserGroupDb();
if (!ugd.getCode().equals(UserGroupDb.EVERYONE)) {
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/<%=RealPic%>">
<%}else{%> <img src="../images/myface/<%=myface%>" width=<%=myfacewidth%> height=<%=myfaceheight%>>
<%}%> </td>
</tr>
<tr>
<td align=left height=17>
<img src="images/<%=user.getLevelPic()%>">
<%=Gender%></td>
</tr>
<tr>
<td align=left height=54>
<%
ScoreMgr sm = new ScoreMgr();
Vector vscore = sm.getAllScore();
Iterator irscore = vscore.iterator();
String str = "";
while (irscore.hasNext()) {
ScoreUnit scoreUnit = (ScoreUnit) irscore.next();
if (scoreUnit.isDisplay()) {
out.print(scoreUnit.getName(request) + ":" + scoreUnit.getScore().getUserSum(user.getName()) + "<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")); // "离线");
%>
<%
if (cfg1.getBooleanProperty("forum.showFlowerEgg")) {
UserPropDb up = new UserPropDb();
up = up.getUserPropDb(user.getName());
%>
<BR>
<img src="../images/flower.gif"> (<%=up.getInt("flower_count")%>) <img src="../images/egg.gif"> (<%=up.getInt("egg_count")%>)
<%}
%></td>
</tr>
</tbody>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><br>
<%
if (rootid==id) { // 当为根贴时
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 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>
<%}%>
<%
if (privilege.canManage(request, 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"); // "取消精华";
%>
<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>
<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>
<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>
<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>
<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="<%=skin.getTableBorderClr()%>">
<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(user.getNick())%><lt:Label res="res.label.forum.showtopic" key="user_info"/>"
border=0 align="absmiddle"></a> <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(user.getNick())%>"
border=0 align="absmiddle"></a> <a href="mailto:<%=StrUtil.toHtml(email)%>"><img src="images/email.gif"
alt=<lt:Label res="res.label.forum.showtopic" key="send_email"/><%=user.getNick()%> border=0 align="absmiddle"></a> <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>
<a href="addreply_new.jsp?boardcode=<%=StrUtil.UrlEncode(boardcode)%>&hit=<%=hit%>&replyid=<%=id%>"e=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>
<% 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("")) {%>
<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) {%> <a title="<lt:Label res="res.label.forum.showtopic" key="blog"/>" href="../blog/myblog.jsp?blogUserName=<%=StrUtil.UrlEncode(name)%>"><img src="images/favorite.gif" border="0" align="absmiddle"></a>
<%if (cfg1.getBooleanProperty("forum.isShowQQ") && !user.getOicq().equals("")) {%>
<a title="<lt:Label res="res.label.forum.showtopic" key="send_qq_msg"/><%=user.getName()%>" href="http://wpa.qq.com/msgrd?V=1&Uin=<%=user.getOicq()%>&Site=By CWBBS&Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:<%=user.getOicq()%>:4" align="absmiddle" border="0"></a>
<%}%>
<a href="#<%=id%>"><lt:Label res="res.label.forum.showtopic" key="position"/></a>
<%}%> </td>
</tr>
<tr height=8>
<td> <hr width="100%" color="<%=skin.getTableBorderClr()%>" 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, response, out);
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) + " " + pv.render(UIShowMsg.POS_BEFORE_MSG) + "<BR>");
}
}
}
%>
<table width="99%" height="120" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<%
MsgPollDb mpd = null;
mpd = render.RenderVote(request, msgdb);
if (type==1 && mpd!=null) {%>
<table width="100%" border="1" cellpadding="4" cellspacing="0" borderColor="<%=skin.getTableBorderClr()%>">
<%
String ctlType = "radio";
if (mpd.getInt("max_choice")>1)
ctlType = "checkbox";
Vector options = mpd.getOptions(msgdb.getId());
int len = options.size();
String showVoteUser = ParamUtil.get(request, "showVoteUser");
int[] re = new int[len];
int[] bfb = new int[len];
int total = 0;
int k = 0;
for (k=0; k<len; k++) {
MsgPollOptionDb opt = (MsgPollOptionDb)options.elementAt(k);
re[k] = opt.getInt("vote_count");
total += re[k];
}
if (total!=0) {
for (k=0; k<len; k++) {
bfb[k] = (int)Math.round((double)re[k]/total*100);
}
}
%>
<form action="vote.jsp?privurl=<%=privurl%>" name=formvote method="post">
<tr>
<td colspan="2" bgcolor="#EBECED">
<b><lt:Label res="res.label.forum.showtopic" key="vote"/>
<%
java.util.Date epDate = mpd.getDate("expire_date");
if (epDate!=null) {%>
<lt:Label res="res.label.forum.showtopic" key="vote_expire_date"/>
<%=ForumSkin.formatDate(request, epDate)%>
<%}%>
<%if (mpd.getInt("max_choice")==1) {%>
<lt:Label res="res.label.forum.showtopic" key="vote_type_single"/>
<%}else{%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -