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
This commit is contained in:
Eric J. Bowersox
2001-02-19 02:56:16 +00:00
parent 7b7e6be996
commit e23de5dae6
32 changed files with 1400 additions and 111 deletions

View File

@@ -0,0 +1,140 @@
<%--
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.*" %>
<%
ConferenceSequence data = ConferenceSequence.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- Manage conference list for SIG #<%= data.getSIGID() %> --><% } %>
<% rdat.writeContentHeader(out,"Manage Conference List",null); %>
<%= rdat.getStdFontTag(null,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?sig=" + data.getSIGID()) %>">Return to Conference List</A>
</FONT><P>
<% if (data.getNumConferences()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<data.getNumConferences(); i++) { %>
<%
ConferenceContext conf = data.getConference(i);
String partial = "confops?sig=" + data.getSIGID() + "&conf=" + conf.getConfID();
String tail, image, alt;
%>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<%
if (data.isConferenceHidden(conf))
{ // conference is hidden - this command will show it
tail = "&cmd=SH&flag=0";
image = "icn_off.gif";
alt = "Hidden (toggle)";
} // end if
else
{ // conference is non-hidden - this command will hide it
tail = "&cmd=SH&flag=1";
image = "icn_on.gif";
alt = "Displayed (toggle)";
} // end else
%>
<A HREF="<%= rdat.getEncodedServletPath(partial + tail) %>"><IMG
SRC="<%= rdat.getFullImagePath(image) %>" ALT="<%= alt %>" WIDTH=16 HEIGHT=16 BORDER=0></A>
</TD>
<TD ALIGN=CENTER WIDTH=16>
<% if (i==(data.getNumConferences()-1)) { %>&nbsp;<% } else { %>
<% tail = "&cmd=SS&oc=" + data.getNextConfID(conf); %>
<A HREF="<%= rdat.getEncodedServletPath(partial + tail) %>"><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 { %>
<% tail = "&cmd=SS&oc=" + data.getPrevConfID(conf); %>
<A HREF="<%= rdat.getEncodedServletPath(partial + tail) %>"><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=SDEL") %>"><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()) %>
</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_on.gif") %> ALT="Displayed (toggle)" BORDER=0 WIDTH=16
HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
This indicates that the conference is displayed in the SIG's conference list. Click the symbol
to hide it.
</FONT></TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_off.gif") %> ALT="Hidden (toggle)" BORDER=0 WIDTH=16
HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
This indicates that the conference is hidden in the SIG's conference list. Click the symbol
to display it.
</FONT></TD>
</TR>
<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 the SIG's conference list.
</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 the SIG's conference list.
</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 delete the specified conference. You will be prompted to confirm this
action.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(null,2) %><EM>There are no conferences in this SIG.</EM></FONT>
<% } // end if %>
<% rdat.writeFooter(out); %>

View File

@@ -55,11 +55,17 @@
<% } else { %>
<EM>No conferences found in this SIG.</EM><BR>
<% } // end if (conferences present) %>
<% if (data.canCreateConference()) { %>
<P>
<DIV ALIGN="LEFT">
<P>
<DIV ALIGN="LEFT">
<% if (data.canManageConferences()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?cmd=S&sig=" + data.getSIGID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% } // end if %>
<% if (data.canCreateConference()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?cmd=C&sig=" + data.getSIGID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_create_new.gif") %>" ALT="Create New" WIDTH=80 HEIGHT=24 BORDER=0></A>
</DIV>
<% } // end if %>
SRC="<%= rdat.getFullImagePath("bn_create_new.gif") %>" ALT="Create New" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
<% } // end if %>
</DIV>
<% rdat.writeFooter(out); %>

99
web/format/hotlist.jsp Normal file
View File

@@ -0,0 +1,99 @@
<%--
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); %>

65
web/format/siglist.jsp Normal file
View File

@@ -0,0 +1,65 @@
<%--
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.*" %>
<%
UserSIGList data = UserSIGList.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- User conference hotlist --><% } %>
<% rdat.writeContentHeader(out,"Your SIGs",null); %>
<%= rdat.getStdFontTag(null,2) %>
<A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A>
</FONT><P>
<% if (data.getNumSIGs()>0) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
<% for (int i=0; i<data.getNumSIGs(); i++) { %>
<% SIGContext sig = data.getSIG(i); %>
<TR>
<TD ALIGN=CENTER WIDTH=16>
<% if (sig.canUnjoin()) { %>
<A HREF="<%= rdat.getEncodedServletPath("settings?cmd=SX&sig=" + sig.getSIGID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("icn_x.gif") %> ALT="Unjoin" BORDER=0 WIDTH=16
HEIGHT=16></A>
<% } else { %>&nbsp;<% } %>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + sig.getAlias()) %>"><%= StringUtil.encodeHTML(sig.getName()) %></A>
</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_x.gif") %> ALT="Unjoin" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
Click this symbol to unjoin the specified SIG.
</FONT></TD>
</TR>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(null,2) %><EM>You are not a member of any SIGs.</EM></FONT>
<% } // end if %>
<% rdat.writeFooter(out); %>