venice-main-classic/web/format/conf/conferences.jsp
Eric J. Bowersox 681ec6a8a0 fixed up a few HTML generation issues in tag classes and JSP templates;
added the authenticatePrivileged method; added SQL date parameter method
to the XML-RPC Request object
2004-07-19 08:18:19 +00:00

95 lines
4.1 KiB
Plaintext

<%--
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@ricochet.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001-2004 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.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
List confs = (List)(view.getRequestAttribute("conferences.list"));
List hosts = (List)(view.getRequestAttribute("conferences.hosts.list"));
%>
<util:comment>Conference list for community "<comm:name/>"</util:comment>
<util:header title="Conference List:">
<util:subtitle><util:escape><comm:name/></util:escape></util:subtitle>
</util:header>
<% if (confs.size()>0) { %>
<table border="0" align="left">
<% for (int i=0; i<confs.size(); i++) { %>
<tr valign="top">
<td align="center" width="14"><util:stdbullet/></td>
<td align="left" class="content"><util:font color="content.fg" size="content">
<% ConferenceContext conf = (ConferenceContext)(confs.get(i)); %>
<util:xlink aclass="content">
<util:href type="servlet">conf/topics.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %></util:href>
<util:text><util:escape><%= conf.getName() %></util:escape></util:text>
</util:xlink> -
Latest activity: <%= view.getActivityString(conf.getLastUpdateDate()) %>
<% if (conf.anyUnread()) { %>
<util:xlink>
<util:href type="servlet">conf/read_new.js.vs?cc=<comm:ID/>&conf=<%= conf.getConfID() %></util:href>
<util:text><util:image src="tag_new.gif" fixup="true" alt="New!" width="40" height="20"/></util:text>
</util:xlink>
<% } // end if %>
<br />
<% List hosts1 = (List)(hosts.get(i)); %>
<% if (hosts1.size()>0) { %>
<% if (hosts1.size()>1) { %>Hosts:<% } else { %>Host:<% } %>
<% for (int j=0; j<hosts1.size(); j++) { %>
<% UserFound uf = (UserFound)(hosts1.get(j)); %>
<% if (j>0) { %>, <% } %>
<util:xlink aclass="content">
<util:href type="servlet">user/<%= uf.getName() %></util:href>
<util:text><%= uf.getName() %></util:text>
</util:xlink>
<% } // end for %>
<% } else { %>
Hosts: <i>(none)</i>
<% } // end if (hosts present in the conterence) %>
<br />
<i><util:escape><%= conf.getDescription() %></util:escape></i>
</util:font></td>
</tr>
<% } // end for %>
</table><br clear="left" />
<% } else { %>
<util:font color="content.fg" size="content"><i>No conferences found in this community.</i></util:font><br />
<% } // end if %>
<p />
<div align="left" class="content">
<util:xlink>
<util:href type="servlet">conf/find.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="find"/></util:text>
</util:xlink>&nbsp;
<conf:can_manage>
<util:xlink>
<util:href type="servlet">conf/manage.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="manage"/></util:text>
</util:xlink>&nbsp;
</conf:can_manage>
<conf:can_create>
<util:xlink>
<util:href type="servlet">conf/create.js.vs?cc=<comm:ID/></util:href>
<util:text><util:button id="createnew"/></util:text>
</util:xlink>&nbsp;
</conf:can_create>
</div>
<%-- EOF --%>