2002-01-06 19:05:37 -07:00
|
|
|
<%--
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
|
|
(the "License"); you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
|
|
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
|
|
|
language governing rights and limitations under the License.
|
|
|
|
|
|
|
|
The Original Code is the Venice Web Communities System.
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
2002-01-06 19:05:37 -07:00
|
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
2004-07-11 02:08:27 -06:00
|
|
|
Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
2002-01-06 19:05:37 -07:00
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
--%>
|
|
|
|
<%@ page import = "java.util.*" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.core.*" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.ui.conf.CurrentConference" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.ui.conf.view.PostsView" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
|
|
|
|
<%@ taglib uri="/tlds/util" prefix="util" %>
|
|
|
|
<%@ taglib uri="/tlds/post" prefix="post" %>
|
|
|
|
<%
|
|
|
|
PostsView view = PostsView.get(request);
|
|
|
|
final CommunityContext my_comm = view.getCommunity();
|
|
|
|
final ConferenceContext my_conf = view.getConference();
|
|
|
|
final TopicContext my_topic = view.getTopic();
|
|
|
|
final short my_topicnum = my_topic.getTopicNumber();
|
|
|
|
final short my_next = view.getNextTopic();
|
|
|
|
final int my_total_msg = my_topic.getTotalMessages();
|
|
|
|
final int my_unread = view.getUnread();
|
|
|
|
final int my_first = view.getFirst();
|
|
|
|
final int my_last = view.getLast();
|
|
|
|
final int my_pagesize = view.getPageSize();
|
|
|
|
final String base_locator = "cc=" + my_comm.getCommunityID() + "&conf=" + my_conf.getConfID();
|
|
|
|
final String topic_locator = base_locator + "&top=" + my_topicnum;
|
|
|
|
final String next_locator = base_locator + "&top=" + my_next;
|
|
|
|
final String restorer = "rtop=" + my_topicnum + "&rct=" + my_unread;
|
|
|
|
%>
|
|
|
|
<util:comment>
|
|
|
|
Posts <%= my_first %> through <%= my_last %> in topic #<%= my_topic.getTopicID() %>
|
|
|
|
</util:comment>
|
|
|
|
<util:header>
|
|
|
|
<util:title><%= view.getTitle() %></util:title>
|
|
|
|
<util:subtitle>
|
2004-07-11 02:08:27 -06:00
|
|
|
<% if (my_topic.isSticky()) { %>
|
|
|
|
(Sticky)
|
|
|
|
<% } // end if %>
|
|
|
|
<% if (my_topic.isHidden()) { %>
|
|
|
|
(Hidden)
|
|
|
|
<% } // end if %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (my_topic.isArchived()) { %>
|
|
|
|
(Archived)
|
|
|
|
<% } else if (my_topic.isFrozen()) { %>
|
|
|
|
(Frozen)
|
|
|
|
<% } // end if %>
|
|
|
|
<%= view.getSubtitle() %>
|
|
|
|
</util:subtitle>
|
|
|
|
</util:header>
|
|
|
|
|
|
|
|
<%= view.getTopCustom() %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<table border="0" width="100%" cellpadding="0" cellspacing="0">
|
|
|
|
<tr valign="bottom">
|
|
|
|
<td nowrap="nowrap" align="left" colspan="2" class="content">
|
2002-02-02 00:16:28 -07:00
|
|
|
<util:call_jsp name="conf/posts_usercontrols.jsp"/>
|
2004-07-11 02:08:27 -06:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% out.flush(); response.flushBuffer(); %>
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
<tr valign="bottom">
|
|
|
|
<td> </td>
|
|
|
|
<td nowrap="nowrap" align="right" class="content">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Topic admin controls section</util:comment>
|
2004-07-11 02:08:27 -06:00
|
|
|
<% if (my_topic.canStick()) { %>
|
|
|
|
|
|
|
|
<% if (my_topic.isSticky()) { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/stick_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
|
|
|
|
<util:text><util:button id="unstick_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } else { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/stick_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
|
|
|
|
<util:text><util:button id="stick_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if
|
|
|
|
if (my_topic.canFreeze()) {
|
|
|
|
%>
|
2002-01-06 19:05:37 -07:00
|
|
|
|
|
|
|
<% if (my_topic.isFrozen()) { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/freeze_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
|
|
|
|
<util:text><util:button id="unfreeze_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } else { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/freeze_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
|
|
|
|
<util:text><util:button id="freeze_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if
|
|
|
|
if (my_topic.canArchive()) {
|
|
|
|
%>
|
|
|
|
|
|
|
|
<% if (my_topic.isArchived()) { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/archive_topic.js.vs?<%= topic_locator %>&flag=0</util:href>
|
|
|
|
<util:text><util:button id="unarchive_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } else { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/archive_topic.js.vs?<%= topic_locator %>&flag=1</util:href>
|
|
|
|
<util:text><util:button id="archive_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if
|
|
|
|
if (my_topic.canDelete()) {
|
|
|
|
%>
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/delete_topic.js.vs?<%= topic_locator %></util:href>
|
|
|
|
<util:text><util:button id="delete_topic"/></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } // end if %>
|
2004-07-11 02:08:27 -06:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% out.flush(); response.flushBuffer(); %>
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
<tr valign="bottom">
|
|
|
|
<td nowrap="nowrap" align="left" class="content">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Go box</util:comment>
|
2004-07-11 02:08:27 -06:00
|
|
|
<util:form verb="GET" action="conf/posts.js.vs" type="servlet"><div class="content">
|
|
|
|
<input type="hidden" name="cc" value="<%= my_comm.getCommunityID() %>" />
|
|
|
|
<input type="hidden" name="conf" value="<%= my_conf.getConfID() %>" />
|
|
|
|
<input type="hidden" name="top" value="<%= my_topicnum %>" />
|
|
|
|
<span class="cinput"><input type="text" class="cinput" name="pxg" value="" size="6"
|
|
|
|
maxlength="13"></span>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:button id="go" type="input"/>
|
2004-07-11 02:08:27 -06:00
|
|
|
</div></util:form>
|
|
|
|
</td>
|
|
|
|
<td nowrap="nowrap" align="right" class="content"><util:font color="content.fg" size="content">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Upper navigation linkset</util:comment>
|
2004-07-11 02:08:27 -06:00
|
|
|
<a name="top">[</a>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/posts.js.vs?<%= topic_locator %>&p1=0&p2=-1</util:href>
|
|
|
|
<util:text>View All</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% if (my_first>0) { %>
|
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&p1=<%= Math.max(my_first - my_pagesize,0) %>&p2=<%= my_first - 1 - Math.min(my_first - my_pagesize,0) %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>Scroll Up <%= my_pagesize %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
if ((my_total_msg - (my_last + 1))>0) {
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_last + my_pagesize,my_total_msg - 1) %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>Scroll Down <%= my_pagesize %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_total_msg - my_pagesize %>&p2=<%= my_total_msg - 1 %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>Scroll To End</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } // end if %>
|
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
<a href="#bottom">Bottom</a>
|
2002-01-06 19:05:37 -07:00
|
|
|
]
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:font></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="middle">
|
|
|
|
<td align="center" colspan="2"><util:font color="content.fg" size="post-reference">
|
2002-08-06 19:27:31 -06:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet"><%= view.getPageQID() %></util:href>
|
|
|
|
<util:text>[Permalink to this topic]</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet"><%= view.getPageQID() %>.<%= my_first %>-<%= my_last %></util:href>
|
|
|
|
<util:text>[Permalink to these posts]</util:text>
|
|
|
|
</util:xlink>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:font></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% out.flush(); response.flushBuffer(); %>
|
|
|
|
|
|
|
|
<util:comment>Begin Actual Messages</util:comment>
|
|
|
|
<%
|
|
|
|
String last_post = "shac=1&p1=" + String.valueOf(my_total_msg - 1);
|
|
|
|
boolean can_line = false;
|
2004-07-11 02:08:27 -06:00
|
|
|
for (Iterator it=view.getMessages().iterator(); it.hasNext(); ) {
|
2002-01-06 19:05:37 -07:00
|
|
|
TopicMessageContext msg = (TopicMessageContext)(it.next());
|
|
|
|
String poster = view.getPosterName(msg);
|
|
|
|
if (can_line && (msg.getPostNumber()==(my_total_msg-my_unread))) {
|
2004-07-11 02:08:27 -06:00
|
|
|
out.write("<hr width=\"70%\" />\n");
|
2002-01-06 19:05:37 -07:00
|
|
|
} // end if
|
|
|
|
|
|
|
|
if (view.getShowAdvanced() && (view.getMessages().size()==1)) {
|
|
|
|
%>
|
2004-07-11 02:08:27 -06:00
|
|
|
<br />
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
|
|
<tr valign="top"><td nowrap="nowrap" align="left" class="content">
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<util:font color="content.fg" size="content">
|
|
|
|
<%
|
|
|
|
if (!(view.bozoFilterUser(msg.getCreatorUID()))) {
|
|
|
|
out.write(view.getUserPhotoTag(JSPView.getRequestOutput(request),msg.getCreatorUID()));
|
|
|
|
} // end if
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&shac=1&p1=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><%= msg.getPostNumber() %></util:text>
|
|
|
|
</util:xlink> of
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/posts.js.vs?<%= topic_locator %>&<%= last_post %></util:href>
|
|
|
|
<util:text><%= my_total_msg - 1 %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<util:font color="content.fg" size="post-reference">
|
|
|
|
<<%= view.getTopicStem() %><%= msg.getPostNumber() %>>
|
2002-08-06 19:27:31 -06:00
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet"><%= view.getPageQID() %>.<%= msg.getPostNumber() %></util:href>
|
|
|
|
<util:text>[Permalink]</util:text>
|
|
|
|
</util:xlink>
|
2002-01-06 19:05:37 -07:00
|
|
|
</util:font>
|
|
|
|
|
|
|
|
<%
|
|
|
|
if (view.getShowAdvanced() && (view.getMessages().size()==1)) {
|
|
|
|
if (msg.isHidden()) {
|
2004-07-11 02:08:27 -06:00
|
|
|
out.write("<b><i>(Hidden)</i></b>\n");
|
2002-01-06 19:05:37 -07:00
|
|
|
} // end if
|
|
|
|
if (view.showBozoFilteredIndicator(msg.getCreatorUID())) {
|
|
|
|
%>
|
2004-07-11 02:08:27 -06:00
|
|
|
<b><i>(User filtered;
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/message_bozo.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=0
|
|
|
|
</util:href>
|
|
|
|
<util:text>remove filter</util:text>
|
|
|
|
</util:xlink>)
|
2004-07-11 02:08:27 -06:00
|
|
|
</i></b>
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if
|
|
|
|
if (!(view.bozoFilterUser(msg.getCreatorUID()))) {
|
|
|
|
%>
|
2004-07-11 02:08:27 -06:00
|
|
|
<br />
|
|
|
|
<b><%= msg.getPseud() %></b>
|
|
|
|
(<i>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink target="_blank">
|
|
|
|
<util:href type="servlet">user/<%= poster %></util:href>
|
|
|
|
<util:text><%= poster %></util:text>
|
|
|
|
</util:xlink>,
|
|
|
|
<%= view.formatDate(msg.getPostDate()) %>
|
2004-07-11 02:08:27 -06:00
|
|
|
</i>)
|
2002-01-07 00:30:26 -07:00
|
|
|
<% if (msg.hasAttachment()) { %>
|
2002-01-07 00:42:05 -07:00
|
|
|
<util:xlink>
|
2002-01-07 00:30:26 -07:00
|
|
|
<% if (view.displayAttachmentInNewWindow(msg)) { %>
|
|
|
|
<util:target>_blank</util:target>
|
|
|
|
<% } // end if %>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/view_attachment.js.vs?<%= base_locator %>&msg=<%= msg.getPostID() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>
|
|
|
|
<util:image src="attachment.gif" fixup="true" width="16" height="16">
|
|
|
|
<util:alt>
|
|
|
|
(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)
|
|
|
|
</util:alt>
|
|
|
|
</util:image>
|
|
|
|
</util:text>
|
|
|
|
<util:linktitle>
|
|
|
|
(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)
|
|
|
|
</util:linktitle>
|
|
|
|
</util:xlink>
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if
|
|
|
|
%>
|
|
|
|
</util:font>
|
2004-07-11 02:08:27 -06:00
|
|
|
<p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (msg.isScribbled()) { %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<span class="post"><tt><i><b>
|
2002-01-06 19:05:37 -07:00
|
|
|
(Scribbled by <%= view.getMessageBodyText(msg) %> on
|
|
|
|
<%= view.formatDate(msg.getScribbleDate()) %>)
|
2004-07-11 02:08:27 -06:00
|
|
|
</b></i></tt></SPAN>
|
|
|
|
<% if (view.getPhotoDims()!=null) { %><br clear="left" /><% } %><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } else if (view.bozoFilterUser(msg.getCreatorUID())) { %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<span class="post"><tt><i><b>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&shac=1&nbz=1&p1=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>
|
|
|
|
(Message from Filtered User:
|
|
|
|
<%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)
|
|
|
|
</util:text>
|
|
|
|
</util:xlink>
|
2004-07-11 02:08:27 -06:00
|
|
|
</b></i></tt></span><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } else if (msg.isHidden() && (!(view.getShowAdvanced()) || (view.getMessages().size()!=1))) { %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<span class="post"><tt><i><b>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&shac=1&p1=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>
|
|
|
|
(Hidden Message:
|
|
|
|
<%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)
|
|
|
|
</util:text>
|
|
|
|
</util:xlink>
|
2004-07-11 02:08:27 -06:00
|
|
|
</b></i></tt></span>
|
|
|
|
<% if (view.getPhotoDims()!=null) { %><br clear="left" /><% } %><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } else { %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<tt><pre class="post"><post:rewrite><%= view.getMessageBodyText(msg) %></post:rewrite></pre></tt>
|
|
|
|
<% if (view.getPhotoDims()!=null) { %><br clear="left" /><% } %><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
if (view.getShowAdvanced() && (view.getMessages().size()==1)) {
|
|
|
|
%>
|
2004-07-11 02:08:27 -06:00
|
|
|
</td><td nowrap="nowrap" align="right" class="content">
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
if (!(msg.isScribbled())) {
|
|
|
|
if (msg.canHide()) {
|
|
|
|
if (msg.isHidden()) {
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/hide_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=0
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="show"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } else { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/hide_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=1
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="hide"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if (can hide)
|
|
|
|
if (msg.canScribble()) {
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/scribble_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="scribble"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if (can scribble)
|
|
|
|
} // end if (not already scribbled)
|
|
|
|
if (view.showFilterButton(msg.getCreatorUID())) {
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/message_bozo.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>&flag=1
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="filter_user"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if (can bozo filter)
|
|
|
|
if (msg.canNuke()) {
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/nuke_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="nuke"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if (can nuke)
|
2002-02-02 00:16:28 -07:00
|
|
|
if (msg.canMove() && (my_topic.getTotalMessages()>1)) {
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/move_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="move"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-02-02 00:16:28 -07:00
|
|
|
<%
|
|
|
|
} // end if (can move)
|
2002-01-06 19:05:37 -07:00
|
|
|
if (msg.canPublish()) {
|
|
|
|
%>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/publish_message.js.vs?<%= topic_locator %>&msg=<%= msg.getPostNumber() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:button id="publish"/></util:text>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:xlink><p />
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } // end if (can publish) %>
|
2004-07-11 02:08:27 -06:00
|
|
|
</td></tr></table><br />
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if (showing advanced controls)
|
|
|
|
can_line = true;
|
|
|
|
out.flush();
|
|
|
|
response.flushBuffer();
|
2004-07-11 02:08:27 -06:00
|
|
|
} // end for
|
2002-01-06 19:05:37 -07:00
|
|
|
%>
|
|
|
|
<util:comment>End Actual Messages</util:comment>
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
<table border="0" width="100%" cellpadding="0" cellspacing="0">
|
|
|
|
<tr valign="middle">
|
|
|
|
<td align="center" colspan="2"><util:font color="content.fg" size="post-reference">
|
2002-08-06 19:27:31 -06:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet"><%= view.getPageQID() %></util:href>
|
|
|
|
<util:text>[Permalink to this topic]</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet"><%= view.getPageQID() %>.<%= my_first %>-<%= my_last %></util:href>
|
|
|
|
<util:text>[Permalink to these posts]</util:text>
|
|
|
|
</util:xlink>
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:font></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="bottom">
|
|
|
|
<td nowrap="nowrap" align="left"> </td>
|
|
|
|
<td nowrap="nowrap" align="right" class="content"><util:font color="content.fg" size="content">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Lower navigation linkset</util:comment>
|
2004-07-11 02:08:27 -06:00
|
|
|
<a name="bottom">[</a>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">conf/posts.js.vs?<%= topic_locator %>&p1=0&p2=-1</util:href>
|
|
|
|
<util:text>View All</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% if (my_first>0) { %>
|
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&p1=<%= Math.max(my_first - my_pagesize,0) %>&p2=<%= my_first - 1 - Math.min(my_first - my_pagesize,0) %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>Scroll Up <%= my_pagesize %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } // end if %>
|
|
|
|
<% if ((my_total_msg - (my_last + 1))>0) { %>
|
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_last + my_pagesize,my_total_msg - 1) %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>Scroll Down <%= my_pagesize %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
|
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_total_msg - my_pagesize %>&p2=<%= my_total_msg - 1 %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>Scroll To End</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% } // end if %>
|
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
<a href="#top">Top</a>
|
2002-01-06 19:05:37 -07:00
|
|
|
]
|
2004-07-11 02:08:27 -06:00
|
|
|
</util:font></td>
|
|
|
|
</tr>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% out.flush(); response.flushBuffer(); %>
|
|
|
|
|
2004-07-11 02:08:27 -06:00
|
|
|
<tr valign="bottom">
|
|
|
|
<td nowrap="nowrap" align="left" colspan="2" class="content">
|
2002-02-02 00:16:28 -07:00
|
|
|
<util:call_jsp name="conf/posts_usercontrols.jsp"/>
|
2004-07-11 02:08:27 -06:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% out.flush(); response.flushBuffer(); %>
|
|
|
|
|
|
|
|
<%
|
|
|
|
final boolean flag1 = my_conf.canPostToConference();
|
|
|
|
final boolean flag2 = (my_topic.isFrozen() ? my_topic.canFreeze() : true);
|
|
|
|
final boolean flag3 = (my_topic.isArchived() ? my_topic.canArchive() : true);
|
|
|
|
if (flag1 && flag2 && flag3) {
|
|
|
|
%>
|
2004-07-11 02:08:27 -06:00
|
|
|
<hr /><span style="font-size: 14pt;"><util:font color="content.fg" size="subhead">
|
|
|
|
<b>Post Message in "<%= my_topic.getName() %>":</b>
|
|
|
|
</util:font></span><br />
|
2002-01-06 19:05:37 -07:00
|
|
|
<post:box action="conf/post_message.js.vs" type="servlet">
|
|
|
|
<post:param name="cc"><%= my_comm.getCommunityID() %></post:param>
|
|
|
|
<post:param name="conf"><%= my_conf.getConfID() %></post:param>
|
|
|
|
<post:param name="top"><%= my_topicnum %></post:param>
|
|
|
|
<% if (view.canDoNextTopic()) { %>
|
|
|
|
<post:param name="next"><%= my_next %></post:param>
|
|
|
|
<% } // end if %>
|
|
|
|
<post:param name="sd"><%= my_total_msg %></post:param>
|
|
|
|
<post:pseud name="pseud"><%= my_conf.getDefaultPseud() %></post:pseud>
|
|
|
|
<post:attach name="attach"/>
|
|
|
|
<post:text name="pb"/>
|
|
|
|
<post:button id="preview"/><post:button id="post"/>
|
|
|
|
<% if (view.canDoNextTopic()) { %>
|
|
|
|
<post:button id="postnext"/>
|
|
|
|
<% } // end if %>
|
|
|
|
<post:button id="posttopics"/>
|
|
|
|
</post:box>
|
|
|
|
<%
|
|
|
|
} else if (my_conf.canPostToConference()) {
|
|
|
|
if (my_topic.isArchived()) {
|
|
|
|
%>
|
2004-07-11 02:08:27 -06:00
|
|
|
<div align="center" class="content"><util:font color="content.fg" size="content"><b>This is an
|
|
|
|
<i>Archived</i> Topic</b></util:font></div>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } else if (my_topic.isFrozen()) { %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<div align="center" class="content"><util:font color="content.fg" size="content"><b>This is a
|
|
|
|
<i>Frozen</i> Topic</b></util:font></div>
|
2002-01-06 19:05:37 -07:00
|
|
|
<%
|
|
|
|
} // end if
|
|
|
|
} // end if
|
|
|
|
%>
|
|
|
|
<%= view.getBottomCustom() %>
|
|
|
|
<% out.flush(); response.flushBuffer(); %>
|
2004-07-11 02:08:27 -06:00
|
|
|
<%-- EOF --%>
|