venice-main-classic/web/format/hotlist.jsp
Eric J. Bowersox e23de5dae6 implemented conference hotlists and SIG list management from the Top page;
cleaned up remaining SQL statements using text columns instead of column
indexes with the ResultSet; fleshed out specifics in the TODO for
SIG administration
2001-02-19 02:56:16 +00:00

100 lines
4.3 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@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.util.StringUtil" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%
Hotlist data = Hotlist.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- User conference hotlist --><% } %>
<% rdat.writeContentHeader(out,"Your Conference Hotlist",null); %>
<%= rdat.getStdFontTag(null,2) %>
<A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A>
</FONT><P>
<% if (data.getHotlistSize()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<data.getHotlistSize(); i++) { %>
<%
ConferenceContext conf = data.getConference(i);
String partial = "settings?sig=" + conf.getEnclosingSIG().getSIGID() + "&conf=" + conf.getConfID();
%>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(data.getHotlistSize()-1)) { %>&nbsp;<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=HD") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_down.gif") %> ALT="Move Down" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==0) { %>&nbsp;<% } else { %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=HU") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_up.gif") %> ALT="Move Up" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } // end if %>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<A HREF="<%= rdat.getEncodedServletPath(partial + "&cmd=HX") %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %> ALT="Remove" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<%= StringUtil.encodeHTML(conf.getName()) %>
(<%= StringUtil.encodeHTML(conf.getEnclosingSIG().getName()) %>)
</FONT></TD>
</TR>
<% } // end for %>
</TABLE><P>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_down.gif") %> ALT="Move Down" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
Click this symbol to move the specified conference down in your hotlist.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_up.gif") %> ALT="Move Up" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
Click this symbol to move the specified conference up in your hotlist.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %> ALT="Remove" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
Click this symbol to remove the specified conference from your hotlist.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(null,2) %><EM>
You have no conferences in your conference hotlist. You can add conferences to your hotlist
by visiting the conferences and pressing the "Add to Hotlist" button.
</EM></FONT>
<% } // end if %>
<% rdat.writeFooter(out); %>