venice-main-classic/web/format/conf/new_topic.jsp

68 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

<%--
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.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@users.sf.net>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
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.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%@ taglib uri="/tlds/post" prefix="post" %>
<%
JSPView view = JSPView.get(request);
CurrentConference currc = CurrentConference.get(request);
final String preview_text = (String)(view.getRequestAttribute("preview.text"));
%>
<util:comment>New topic in conference "<conf:name/>"</util:comment>
<util:header>
<% if (preview_text==null) { %>
<util:title>Create New Topic</util:title>
<% } else { %>
<util:title>Preview New Topic</util:title>
<% } // end if %>
<util:subtitle>in: <util:escape><conf:name/></util:escape></util:subtitle>
</util:header>
<% if (preview_text!=null) { %>
<util:font color="content.fg" size="subhead"><B>
<% final int num_errors = ((Integer)(view.getRequestAttribute("preview.num_errors"))).intValue(); %>
<% if (num_errors==0) { %>
Your post did not contain any spelling errors.
<% } else if (num_errors==1) { %>
There was 1 spelling error in your post.
<% } else { %>
There were <%= num_errors %> spelling errors in your post.
<% } // end if %>
</B></util:font>
<P><TT><PRE CLASS="post"><post:rewrite><%= preview_text %></post:rewrite></PRE></TT><HR>
<% } // end if %>
<post:box action="conf/new_topic.js.vs" type="servlet">
<post:param name="cc"><comm:ID/></post:param>
<post:param name="conf"><conf:ID/></post:param>
<post:newtopic name="title"><%= view.getRequestAttribute("postbox.newtopic") %></post:newtopic>
<post:pseud name="pseud"><%= view.getRequestAttribute("postbox.pseud") %></post:pseud>
<% if (view.getRequestAttribute("postbox.attach")!=null) { %>
<post:attach name="attach" value="true"/>
<% } else { %>
<post:attach name="attach"/>
<% } // end if %>
<post:text name="pb"><%= view.getRequestAttribute("postbox.data") %></post:text>
<post:button id="preview"/><post:button id="post1"/><post:button id="cancel"/>
</post:box>