first round of NRPA changes:

- added color customization in render-config.xml
- added ability to scale size of Venice logo in footer
- added ability to customize size of site logo, as well as add a hyperlink
- moved to use of LOG4J 1.1.3, LOG4J now installed in Venice lib directory
  instead of in JRE extensions directory (only Java extensions should go in
  JRE extensions directory)
- close to requiring JAXP 1.1 (will still work with 1.0 though)
This commit is contained in:
Eric J. Bowersox 2001-10-22 22:11:58 +00:00
parent 2db3b44e7e
commit bdc6977680
48 changed files with 553 additions and 261 deletions

10
INSTALL
View File

@ -15,7 +15,7 @@ Software requirements:
* JavaMail API version 1.2, available from http://java.sun.com.
* JavaBeans Activation Framework (JAF) version 1.0.1, available from
http://java.sun.com. (Required by JavaMail.)
* Apache Jakarta LOG4J library 1.0.x, available from
* Apache Jakarta LOG4J library 1.1.x, available from
http://jakarta.apache.org.
* MySQL 3.23.x (get the most recent 3.23 version), available from
http://www.mysql.com.
@ -29,8 +29,8 @@ Software requirements:
otherwise there will be a problem with file uploads (Bug#526 in the Apache
Jakarta Bug Database).
It is recommended that you install JAXP, JSSE, JavaMail, JAF, and LOG4J
by copying or symbolically linking their JAR files to the <jdk>/jre/lib/ext
It is recommended that you install JAXP, JSSE, JavaMail, and JAF by copying
or symbolically linking their JAR files to the <jdk>/jre/lib/ext
directory, to avoid creating a huge CLASSPATH variable. The JDK /bin
subdirectory should be in your PATH, naturally.
@ -47,6 +47,10 @@ Setting Up:
deployment directory, and three parameters in web.xml point to them, so
those parameters will have to be modified.
The MySQL JDBC driver (mysql.jar) and the LOG4J JAR file (log4j.jar) need
to be copied to the "lib" subdirectory. The build process will copy them
to the "WEB-INF/lib" subdirectory of the deployment directory.
Also modify the three configuration files to suit your system layout.
Each file is reasonably commented, so you should be able to figure it out
based on your directory location and your Tomcat configuration.

View File

@ -56,8 +56,14 @@
<!-- Compile all the Java source -->
<target name="compile" depends="prepare">
<javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" classpath="${deploy.home}/WEB-INF/classes"
debug="on" optimize="off" deprecation="off"/>
<javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on">
<classpath>
<fileset dir="${deploy.home}/WEB-INF/lib">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${deploy.home}/WEB-INF/classes"/>
</classpath>
</javac>
<copy todir="${deploy.home}/WEB-INF/classes">
<fileset dir="src" includes="**/*.properties"/>
</copy>

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE configuration SYSTEM "log4j.dtd">
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!--
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.
@ -17,7 +17,7 @@
Contributor(s):
-->
<configuration>
<log4j:configuration>
<!-- Define the standard file appender. -->
<appender name="STDLOG" class="org.apache.log4j.RollingFileAppender">
@ -44,7 +44,7 @@
<priority value="fatal"/>
</category>
</configuration>
</log4j:configuration>

View File

@ -41,6 +41,33 @@
<!-- Specifies the default <FONT FACE=""> to use for all text. -->
<font>Arial, Helvetica</font>
<!-- Various HTML colors to render portions of the interface in. Note that these may either be
standard HTML color names or #RRGGBB color values. -->
<colors>
<frame-bg>#9999FF</frame-bg> <!-- outer frame background -->
<title-bg>#6666CC</title-bg> <!-- title background -->
<title-fg>white</title-fg> <!-- title foreground -->
<title-link>yellow</title-link> <!-- title links -->
<left-bg>#9999FF</left-bg> <!-- left menu bar background -->
<left-fg>black</left-fg> <!-- left menu bar foreground -->
<content-bg>white</content-bg> <!-- content background -->
<content-fg>black</content-fg> <!-- content text -->
<content-hdr>#3333AA</content-hdr> <!-- content header text -->
<content-disabled>silver</content-disabled> <!-- disabled text -->
<content-error>#660000</content-error> <!-- error message text -->
<sidebox-title-bg>#6666CC</sidebox-title-bg> <!-- background of sidebox title (front page) -->
<sidebox-title-fg>white</sidebox-title-fg> <!-- foreground of sidebox title (front page) -->
<sidebox-content-bg>#9999FF</sidebox-content-bg> <!-- background of sidebox content (front page) -->
<sidebox-content-fg>black</sidebox-content-fg> <!-- foreground of sidebox content (front page) -->
<confirm-title-bg>#006600</confirm-title-bg> <!-- background of confirm box title bar -->
<confirm-title-fg>white</confirm-title-fg> <!-- foreground of confirm box title bar -->
<error-title-bg>#660000</error-title-bg> <!-- background of error box title bar -->
<error-title-fg>white</error-title-fg> <!-- foreground of error box title bar -->
</colors>
<!-- Footer logo scaling expressed as a percentage of full size. -->
<footer-logo-scale>100</footer-logo-scale>
</rendering>
<!-- Used to configure URL paths to various global resources. -->
@ -51,8 +78,12 @@
<!-- Base URL for all static pages linked to by the engine. MUST include the trailing slash. -->
<static>/venice/static/</static>
<!-- The site-relative URL to the site logo. The image should be 140x80 pixels. -->
<site-logo>/venice/images/powered-by-venice.gif</site-logo>
<!-- The site-relative URL to the site logo. The image should be 140x80 pixels, unless overridden
by the "width" and "height" attributes. The optional "href" attribute is where clicking on
the site logo should link to. -->
<site-logo width="140" height="80"
href="http://venice.sourceforge.net">/venice/images/powered-by-venice.gif</site-logo>
</paths>
<!-- Contains standard messages displayed by front end -->

1
lib/.gitignore vendored
View File

@ -1 +1,2 @@
log4j.jar
mysql.jar

View File

@ -1,2 +1,2 @@
When you download the MySQL JDBC driver, put the "mysql.jar" file in this
directory.
directory. Also put the Apache Jakarta LOG4J "log4j.jar" file here.

View File

@ -7,7 +7,7 @@
* 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 Community System.
* 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
@ -21,19 +21,28 @@ import org.w3c.dom.*;
public class DOMElementHelper
{
/*--------------------------------------------------------------------------------
* Attributes
*--------------------------------------------------------------------------------
*/
private Element elt; // element housed by this helper class
/*--------------------------------------------------------------------------------
* Constructor
*--------------------------------------------------------------------------------
*/
public DOMElementHelper(Element elt)
{
this.elt = elt;
} // end constructor
protected void finalize()
{
elt = null;
} // end finalize
/*--------------------------------------------------------------------------------
* Internal static operations
*--------------------------------------------------------------------------------
*/
private static String getTextOfElement(Element e)
{
@ -64,6 +73,11 @@ public class DOMElementHelper
} // end getTextOfElement
/*--------------------------------------------------------------------------------
* External operations
*--------------------------------------------------------------------------------
*/
public Element getElement()
{
return elt;
@ -110,6 +124,24 @@ public class DOMElementHelper
} // end hasChildElement
public Integer getAttributeInt(String name)
{
String tmp = elt.getAttribute(name);
if (StringUtil.isStringEmpty(tmp))
return null;
try
{ // convert to an Integer
return new Integer(tmp);
} // end try
catch (NumberFormatException nfe)
{ // return a null value on error
return null;
} // end catch
} // end getAttributeInt
} // end DOMElementHelper

View File

@ -22,7 +22,7 @@ import java.util.*;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.core.*;
public class AuditDataViewer implements ContentRender
public class AuditDataViewer implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
@ -85,10 +85,10 @@ public class AuditDataViewer implements ContentRender
rdat.writeContentHeader(out,title,null);
// Write the informational and navigational table
out.write("<TABLE WIDTH=\"100%\" BORDER=0><TR VALIGN=MIDDLE><TD ALIGN=LEFT>" + rdat.getStdFontTag(null,2));
out.write("\nDisplaying records <B>" + (offset+1) + "</B> to <B>" + last_index + "</B> of <B>"
+ total_count + "</B>\n");
out.write("</FONT></TD><TD ALIGN=RIGHT>\n");
out.write("<TABLE WIDTH=\"100%\" BORDER=0><TR VALIGN=MIDDLE><TD ALIGN=LEFT>"
+ rdat.getStdFontTag(CONTENT_FOREGROUND,2) + "\nDisplaying records <B>" + (offset+1)
+ "</B> to <B>" + last_index + "</B> of <B>" + total_count + "</B>\n"
+ "</FONT></TD><TD ALIGN=RIGHT>\n");
if (prev_url==null)
out.write("<IMG SRC=\"" + rdat.getFullImagePath("bn_transparent.gif")
+ "\" ALT=\"\" WIDTH=80 HEIGHT=24 BORDER=0>\n");
@ -107,7 +107,7 @@ public class AuditDataViewer implements ContentRender
out.write("\n</TD></TR></TABLE>\n");
// Start writing the table containing the actual audit records.
String tb_font = rdat.getStdFontTag(null,2);
String tb_font = rdat.getStdFontTag(CONTENT_FOREGROUND,2);
out.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=3>\n");
out.write("<TR>\n<TH ALIGN=LEFT NOWRAP>" + tb_font + "<B>Date/Time</B></FONT></TH>\n");
out.write("<TH ALIGN=LEFT NOWRAP>" + tb_font + "<B>Description</B></FONT></TH>\n");

View File

@ -22,7 +22,7 @@ import java.io.IOException;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.ValidationException;
public abstract class CDBaseFormField implements CDFormField
public abstract class CDBaseFormField implements CDFormField, ColorSelectors
{
private String name;
private String caption;
@ -67,17 +67,15 @@ public abstract class CDBaseFormField implements CDFormField
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT>");
if (!enabled)
out.write("<FONT COLOR=\"silver\">");
out.write(StringUtil.encodeHTML(caption));
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT><FONT COLOR=\""
+ rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\">"
+ StringUtil.encodeHTML(caption));
if (caption2!=null)
out.write(" " + StringUtil.encodeHTML(caption2));
if (!enabled)
out.write("</FONT>");
out.write(":</FONT>");
if (required)
out.write(rdat.getRequiredBullet());
out.write(":</TD>\n<TD ALIGN=LEFT>");
out.write("</TD>\n<TD ALIGN=LEFT>");
renderActualField(out,rdat);
out.write("</TD>\n</TR>\n");

View File

@ -22,7 +22,7 @@ import java.io.IOException;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.ValidationException;
public abstract class CDBaseFormFieldReverse implements CDFormField
public abstract class CDBaseFormFieldReverse implements CDFormField, ColorSelectors
{
private String name;
private String caption;
@ -69,13 +69,11 @@ public abstract class CDBaseFormFieldReverse implements CDFormField
{
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT>");
renderActualField(out,rdat);
out.write("</TD>\n<TD ALIGN=LEFT>");
if (!enabled)
out.write("<FONT COLOR=\"silver\">");
out.write(StringUtil.encodeHTML(caption));
out.write("</TD>\n<TD ALIGN=LEFT><FONT COLOR=\""
+ rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\">"
+ StringUtil.encodeHTML(caption));
if (caption2!=null)
out.write(" " + StringUtil.encodeHTML(caption2));
if (!enabled)
out.write("</FONT>");
if (required)
out.write(rdat.getRequiredBullet());

View File

@ -23,7 +23,7 @@ import javax.servlet.ServletRequest;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.ValidationException;
public class CDFormCategoryHeader implements CDFormField
public class CDFormCategoryHeader implements CDFormField, ColorSelectors
{
private String caption;
private String rtext;
@ -55,25 +55,14 @@ public class CDFormCategoryHeader implements CDFormField
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<TR VALIGN=MIDDLE><TD ALIGN=RIGHT>");
if (!enabled)
out.write("<FONT COLOR=\"silver\">");
out.write("<B>" + StringUtil.encodeHTML(caption) + ":</B>");
if (!enabled)
out.write("</FONT>");
out.write("</TD><TD ALIGN=LEFT>");
out.write("<TR VALIGN=MIDDLE><TD ALIGN=RIGHT><FONT COLOR=\""
+ rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\"><B>"
+ StringUtil.encodeHTML(caption) + ":</B></FONT></TD><TD ALIGN=LEFT>");
if (rtext==null)
out.write("&nbsp;");
else
{ // display in the correct state
if (!enabled)
out.write("<FONT COLOR=\"silver\">");
out.write(StringUtil.encodeHTML(rtext));
if (!enabled)
out.write("</FONT>");
} // end else
else // display in the correct state
out.write("<FONT COLOR=\"" + rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\">"
+ StringUtil.encodeHTML(rtext) + "</FONT>");
out.write("</TD></TR>\n");
} // end renderHere

View File

@ -0,0 +1,60 @@
/*
* 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):
*/
package com.silverwrist.venice.servlets.format;
public interface ColorSelectors
{
public static final int FRAME_BACKGROUND = 0;
public static final int TITLE_BACKGROUND = 1;
public static final int TITLE_FOREGROUND = 2;
public static final int TITLE_LINK = 3;
public static final int LEFT_BACKGROUND = 4;
public static final int LEFT_FOREGROUND = 5;
public static final int CONTENT_BACKGROUND = 6;
public static final int CONTENT_FOREGROUND = 7;
public static final int CONTENT_HEADER = 8;
public static final int CONTENT_DISABLED = 9;
public static final int CONTENT_ERROR = 10;
public static final int SIDEBOX_TITLE_BACKGROUND = 11;
public static final int SIDEBOX_TITLE_FOREGROUND = 12;
public static final int SIDEBOX_CONTENT_BACKGROUND = 13;
public static final int SIDEBOX_CONTENT_FOREGROUND = 14;
public static final int CONFIRM_TITLE_BACKGROUND = 15;
public static final int CONFIRM_TITLE_FOREGROUND = 16;
public static final int ERROR_TITLE_BACKGROUND = 17;
public static final int ERROR_TITLE_FOREGROUND = 18;
} // end class ColorSelectors

View File

@ -24,7 +24,7 @@ import javax.servlet.*;
import javax.servlet.http.*;
import com.silverwrist.util.StringUtil;
public class ConfirmBox implements ContentRender
public class ConfirmBox implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Static data members
@ -111,10 +111,11 @@ public class ConfirmBox implements ContentRender
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<P><TABLE ALIGN=CENTER WIDTH=\"70%\" BORDER=1 CELLPADDING=2 CELLSPACING=1>");
out.write("<TR VALIGN=MIDDLE><TD ALIGN=CENTER BGCOLOR=\"#006600\">\n");
out.write(rdat.getStdFontTag("white",3) + StringUtil.encodeHTML(title) + "</FONT>\n");
out.write("<TR VALIGN=MIDDLE><TD ALIGN=CENTER BGCOLOR=\"" + rdat.getStdColor(CONFIRM_TITLE_BACKGROUND)
+ "\">\n");
out.write(rdat.getStdFontTag(CONFIRM_TITLE_FOREGROUND,3) + StringUtil.encodeHTML(title) + "</FONT>\n");
out.write("</TD></TR><TR VALIGN=MIDDLE><TD ALIGN=CENTER>\n");
out.write(rdat.getStdFontTag(null,3) + "<P>" + StringUtil.encodeHTML(message) + "<P>\n");
out.write(rdat.getStdFontTag(CONTENT_FOREGROUND,3) + "<P>" + StringUtil.encodeHTML(message) + "<P>\n");
out.write("<A HREF=\"" + rdat.getEncodedServletPath(confirm_url) + "\">");
out.write("<IMG SRC=\"" + rdat.getFullImagePath("bn_yes.gif")
+ "\" ALT=\"Yes\" WIDTH=80 HEIGHT=24 BORDER=0></A>&nbsp;&nbsp;\n");

View File

@ -24,7 +24,7 @@ import javax.servlet.ServletRequest;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.ValidationException;
public class ContentDialog implements Cloneable, ContentRender
public class ContentDialog implements Cloneable, ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
@ -148,7 +148,7 @@ public class ContentDialog implements Cloneable, ContentRender
if (error_message!=null)
{ // print the error message
out.write("<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>"
+ "<TD ALIGN=CENTER>\n" + rdat.getStdFontTag("#660000",3) + "<B>");
+ "<TD ALIGN=CENTER>\n" + rdat.getStdFontTag(CONTENT_ERROR,3) + "<B>");
out.write(StringUtil.encodeHTML(error_message));
out.write("</B></FONT>\n</TD></TR></TABLE>\n");
@ -156,7 +156,7 @@ public class ContentDialog implements Cloneable, ContentRender
// Output the start of the form
out.write("<FORM NAME=\"" + formname + "\" METHOD=POST ACTION=\"");
out.write(rdat.getEncodedServletPath(action) + "\">" + rdat.getStdFontTag(null,2) + "\n");
out.write(rdat.getEncodedServletPath(action) + "\">" + rdat.getStdFontTag(CONTENT_FOREGROUND,2) + "\n");
enum = hidden_fields.keys();
while (enum.hasMoreElements())

View File

@ -22,7 +22,7 @@ import java.io.Writer;
import java.io.IOException;
import com.silverwrist.util.StringUtil;
public class ContentMenuPanel implements Cloneable, ContentRender
public class ContentMenuPanel implements Cloneable, ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Internal class for storing content items
@ -127,7 +127,7 @@ public class ContentMenuPanel implements Cloneable, ContentRender
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=CENTER WIDTH=14><IMG SRC=\""
+ rdat.getFullImagePath("purple-ball.gif")
+ "\" ALT=\"*\" WIDTH=14 HEIGHT=14 BORDER=0></TD>\n<TD ALIGN=LEFT>");
out.write(rdat.getStdFontTag(null,2));
out.write(rdat.getStdFontTag(CONTENT_FOREGROUND,2));
ContentMenuPanelItem item = (ContentMenuPanelItem)(it.next());
item.renderHere(out,rdat,params);
out.write("</FONT></TD>\n</TR>\n");

View File

@ -22,7 +22,7 @@ import java.io.IOException;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.servlets.VeniceServletResult;
public class ErrorBox extends VeniceServletResult implements ContentRender
public class ErrorBox extends VeniceServletResult implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
@ -69,10 +69,11 @@ public class ErrorBox extends VeniceServletResult implements ContentRender
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<P><TABLE ALIGN=CENTER WIDTH=\"70%\" BORDER=1 CELLPADDING=2 CELLSPACING=1>");
out.write("<TR VALIGN=MIDDLE><TD ALIGN=CENTER BGCOLOR=\"#660000\">\n");
out.write(rdat.getStdFontTag("white",3) + StringUtil.encodeHTML(title) + "</FONT>\n");
out.write("<TR VALIGN=MIDDLE><TD ALIGN=CENTER BGCOLOR=\"" + rdat.getStdColor(ERROR_TITLE_BACKGROUND)
+ "\">\n");
out.write(rdat.getStdFontTag(ERROR_TITLE_FOREGROUND,3) + StringUtil.encodeHTML(title) + "</FONT>\n");
out.write("</TD></TR><TR VALIGN=MIDDLE><TD ALIGN=CENTER>\n");
out.write(rdat.getStdFontTag(null,3) + "<P>" + StringUtil.encodeHTML(message) + "<P>\n");
out.write(rdat.getStdFontTag(CONTENT_FOREGROUND,3) + "<P>" + StringUtil.encodeHTML(message) + "<P>\n");
if (back==null)
out.write("Use your browser's <B>Back</B> button to go back.\n");
else

View File

@ -33,7 +33,7 @@ import com.silverwrist.venice.core.UserContext;
import com.silverwrist.venice.servlets.Variables;
import com.silverwrist.venice.servlets.format.menus.LeftMenu;
public class RenderConfig
public class RenderConfig implements ColorSelectors
{
/*--------------------------------------------------------------------------------
* Static data values
@ -45,6 +45,8 @@ public class RenderConfig
private static Category logger = Category.getInstance(RenderConfig.class.getName());
private static Map colornames_map;
/*--------------------------------------------------------------------------------
* Attributes
*--------------------------------------------------------------------------------
@ -59,8 +61,13 @@ public class RenderConfig
private String image_url;
private String static_url;
private String site_logo;
private int site_logo_width = 140;
private int site_logo_height = 80;
private String site_logo_linkURL = null;
private HashMap stock_messages;
private HashMap menus;
private String[] colors_array;
private int footer_logo_scale;
/*--------------------------------------------------------------------------------
* Constructor
@ -125,6 +132,49 @@ public class RenderConfig
if (logger.isDebugEnabled())
logger.debug("Font face: " + font_face);
Element colors_sect = render_sect_h.getSubElement("colors");
if (colors_sect==null)
{ // no <colors/> tag - bail out now!
logger.fatal("<rendering/> section has no <colors/> element");
throw new ConfigException("no <colors/> found in <rendering/> section",render_sect);
} // end if
colors_array = new String[colornames_map.size()];
int i;
NodeList colors_nlist = colors_sect.getChildNodes();
for (i=0; i<colors_nlist.getLength(); i++)
{ // look at all subelements and map their names to color selectors
Node foo = colors_nlist.item(i);
if (foo.getNodeType()==Node.ELEMENT_NODE)
{ // map the element name to a color selector
Integer csel = (Integer)(colornames_map.get(foo.getNodeName()));
if (csel!=null)
{ // load the specified color into the colors array
DOMElementHelper foo_h = new DOMElementHelper((Element)foo);
colors_array[csel.intValue()] = foo_h.getElementText();
} // end if
} // end if
} // end for
try
{ // load in the footer logo scale
String tmp = render_sect_h.getSubElementText("footer-logo-scale");
if (tmp==null)
footer_logo_scale = 100;
else
footer_logo_scale = Integer.parseInt(tmp.trim());
} // end try
catch (NumberFormatException nfe)
{ // just default on serious error
footer_logo_scale = 100;
} // end catch
Element paths_sect = root_h.getSubElement("paths");
if (paths_sect==null)
{ // no <paths/> section - bail out now!
@ -156,16 +206,38 @@ public class RenderConfig
if (logger.isDebugEnabled())
logger.debug("Static files path: " + static_url);
site_logo = paths_sect_h.getSubElementText("site-logo");
if (site_logo==null)
{ // no <image/> tag - bail out now!
Element site_logo_elt = paths_sect_h.getSubElement("site-logo");
if (site_logo_elt==null)
{ // no <site-logo/> tag - bail out now!
logger.fatal("<paths/> section has no <site-logo/> element");
throw new ConfigException("no <site-logo/> found in <paths/> section",paths_sect);
} // end if
DOMElementHelper site_logo_h = new DOMElementHelper(site_logo_elt);
site_logo = site_logo_h.getElementText();
if (site_logo==null)
{ // no site logo specified - bail out now!
logger.fatal("<paths/> section has no site logo element");
throw new ConfigException("no site logo found in <paths/> section",paths_sect);
} // end if
// get logo width and height
Integer fooint = site_logo_h.getAttributeInt("width");
if (fooint!=null)
site_logo_width = fooint.intValue();
fooint = site_logo_h.getAttributeInt("height");
if (fooint!=null)
site_logo_height = fooint.intValue();
// get logo link URL
String tmp = site_logo_elt.getAttribute("href");
if (!(StringUtil.isStringEmpty(tmp)))
site_logo_linkURL = tmp;
if (logger.isDebugEnabled())
logger.debug("Site logo: " + image_url);
logger.debug("Site logo: " + site_logo);
Element msg_sect = root_h.getSubElement("messages");
if (msg_sect==null)
@ -178,7 +250,6 @@ public class RenderConfig
// Initialize the stock messages list.
stock_messages = new HashMap();
NodeList msg_nodes = msg_sect.getChildNodes();
int i;
for (i=0; i<msg_nodes.getLength(); i++)
{ // examine all subnodes to add them to the message text
Node msgn = msg_nodes.item(i);
@ -361,13 +432,18 @@ public class RenderConfig
String getSiteImageTag(int hspace, int vspace)
{
StringBuffer buf = new StringBuffer();
if (site_logo_linkURL!=null)
buf.append("<A HREF=\"").append(site_logo_linkURL).append("\">");
buf.append("<IMG SRC=\"").append(site_logo).append("\" ALT=\"").append(site_title);
buf.append("\" WIDTH=140 HEIGHT=80 BORDER=0");
buf.append("\" WIDTH=").append(site_logo_width).append(" HEIGHT=").append(site_logo_height);
buf.append(" BORDER=0");
if (hspace>0)
buf.append(" HSPACE=").append(hspace);
if (vspace>0)
buf.append(" VSPACE=").append(vspace);
buf.append('>');
if (site_logo_linkURL!=null)
buf.append("</A>");
return buf.toString();
} // end getSiteImageTag
@ -383,6 +459,14 @@ public class RenderConfig
} // end getStdFontTag
String getStdFontTag(int selector, int size)
{
if ((selector<0) || (selector>=colors_array.length))
throw new IndexOutOfBoundsException("getStdColor(): invalid color selector value");
return getStdFontTag(colors_array[selector],size);
} // end getStdFontTag
String getStdBaseFontTag(int size)
{
StringBuffer buf = new StringBuffer("<BASEFONT FACE=\"");
@ -401,10 +485,11 @@ public class RenderConfig
void writeContentHeader(Writer out, String primary, String secondary) throws IOException
{
out.write(getStdFontTag("#3333AA",5) + "<B>" + StringUtil.encodeHTML(primary) + "</B></FONT>");
if (secondary!=null)
out.write("&nbsp;&nbsp;" + getStdFontTag("#3333AA",3) + "<B>" + StringUtil.encodeHTML(secondary)
out.write(getStdFontTag(colors_array[CONTENT_HEADER],5) + "<B>" + StringUtil.encodeHTML(primary)
+ "</B></FONT>");
if (secondary!=null)
out.write("&nbsp;&nbsp;" + getStdFontTag(colors_array[CONTENT_HEADER],3) + "<B>"
+ StringUtil.encodeHTML(secondary) + "</B></FONT>");
out.write("<HR ALIGN=LEFT SIZE=2 WIDTH=\"90%\" NOSHADE>\n");
} // end writeContentHeader
@ -422,6 +507,20 @@ public class RenderConfig
} // end writeStockMessage
String getStdColor(int selector)
{
if ((selector<0) || (selector>=colors_array.length))
throw new IndexOutOfBoundsException("getStdColor(): invalid color selector value");
return colors_array[selector];
} // end getStdColor
int scaleFooterLogo(int param)
{
return (param * footer_logo_scale) / 100;
} // end scaleFooterLogo
public LeftMenu getLeftMenu(String identifier)
{
return (LeftMenu)(menus.get(identifier));
@ -475,4 +574,35 @@ public class RenderConfig
} // end createRenderData
/*--------------------------------------------------------------------------------
* Static initializer
*--------------------------------------------------------------------------------
*/
static
{ // Initialize the mapping of color names from render-config.xml to color selector IDs.
HashMap m = new HashMap();
m.put("frame-bg",new Integer(FRAME_BACKGROUND));
m.put("title-bg",new Integer(TITLE_BACKGROUND));
m.put("title-fg",new Integer(TITLE_FOREGROUND));
m.put("title-link",new Integer(TITLE_LINK));
m.put("left-bg",new Integer(LEFT_BACKGROUND));
m.put("left-fg",new Integer(LEFT_FOREGROUND));
m.put("content-bg",new Integer(CONTENT_BACKGROUND));
m.put("content-fg",new Integer(CONTENT_FOREGROUND));
m.put("content-hdr",new Integer(CONTENT_HEADER));
m.put("content-disabled",new Integer(CONTENT_DISABLED));
m.put("content-error",new Integer(CONTENT_ERROR));
m.put("sidebox-title-bg",new Integer(SIDEBOX_TITLE_BACKGROUND));
m.put("sidebox-title-fg",new Integer(SIDEBOX_TITLE_FOREGROUND));
m.put("sidebox-content-bg",new Integer(SIDEBOX_CONTENT_BACKGROUND));
m.put("sidebox-content-fg",new Integer(SIDEBOX_CONTENT_FOREGROUND));
m.put("confirm-title-bg",new Integer(CONFIRM_TITLE_BACKGROUND));
m.put("confirm-title-fg",new Integer(CONFIRM_TITLE_FOREGROUND));
m.put("error-title-bg",new Integer(ERROR_TITLE_BACKGROUND));
m.put("error-title-fg",new Integer(ERROR_TITLE_FOREGROUND));
colornames_map = Collections.unmodifiableMap(m);
} // end static initializer
} // end class RenderConfig

View File

@ -211,6 +211,12 @@ public class RenderData
} // end getStdFontTag
public String getStdFontTag(int selector, int size)
{
return rconf.getStdFontTag(selector,size);
} // end getStdFontTag
public String getStdBaseFontTag(int size)
{
return rconf.getStdBaseFontTag(size);
@ -280,6 +286,18 @@ public class RenderData
} // end writeStockMessage
public String getStdColor(int selector)
{
return rconf.getStdColor(selector);
} // end getStdColor
public int scaleFooterLogo(int param)
{
return rconf.scaleFooterLogo(param);
} // end scaleFooterLogo
public LeftMenu getLeftMenu(String identifier)
{
return rconf.getLeftMenu(identifier);

View File

@ -22,7 +22,7 @@ import java.util.*;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.core.*;
public class SideBoxConferences implements ContentRender
public class SideBoxConferences implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
@ -65,7 +65,6 @@ public class SideBoxConferences implements ContentRender
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write(rdat.getStdFontTag(null,2) + "\n");
if (hotlist.size()>0)
{ // display the list of conferences
out.write("<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=2>\n");
@ -78,7 +77,7 @@ public class SideBoxConferences implements ContentRender
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=CENTER WIDTH=14><IMG SRC=\""
+ rdat.getFullImagePath("purple-ball.gif")
+ "\" ALT=\"*\" WIDTH=14 HEIGHT=14 BORDER=0></TD>\n");
out.write("<TD ALIGN=LEFT>\n" + rdat.getStdFontTag(null,2) + "<B><A HREF=\""
out.write("<TD ALIGN=LEFT>\n" + rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2) + "<B><A HREF=\""
+ rdat.getEncodedServletPath(href) + "\">" + StringUtil.encodeHTML(conf.getName())
+ "</A></B> (" + StringUtil.encodeHTML(conf.getEnclosingSIG().getName()) + ")</FONT>\n");
if (conf.anyUnread())
@ -93,11 +92,12 @@ public class SideBoxConferences implements ContentRender
} // end if
else
out.write(rdat.getStdFontTag(null,2) + "<EM>You have no conferences in your hotlist.</EM></FONT>\n");
out.write(rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2)
+ "<EM>You have no conferences in your hotlist.</EM></FONT>\n");
if (uc.isLoggedIn())
{ // write the link at the end
out.write("<P>" + rdat.getStdFontTag(null,1) + "<B>[ <A HREF=\""
out.write("<P>" + rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,1) + "<B>[ <A HREF=\""
+ rdat.getEncodedServletPath("settings?cmd=H") + "\">Manage</A> ]</B></FONT>");
} // end if

View File

@ -22,7 +22,7 @@ import java.util.*;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.core.*;
public class SideBoxSIGs implements ContentRender
public class SideBoxSIGs implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
@ -65,7 +65,6 @@ public class SideBoxSIGs implements ContentRender
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write(rdat.getStdFontTag(null,2) + "\n");
if (sig_list.size()>0)
{ // display the list of available SIGs
out.write("<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=2>\n");
@ -76,7 +75,7 @@ public class SideBoxSIGs implements ContentRender
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=CENTER WIDTH=14><IMG SRC=\""
+ rdat.getFullImagePath("purple-ball.gif")
+ "\" ALT=\"*\" WIDTH=14 HEIGHT=14 BORDER=0></TD>\n");
out.write("<TD ALIGN=LEFT>\n" + rdat.getStdFontTag(null,2) + "<B><A HREF=\""
out.write("<TD ALIGN=LEFT>\n" + rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2) + "<B><A HREF=\""
+ rdat.getEncodedServletPath("sig/" + sig.getAlias()) + "\">"
+ StringUtil.encodeHTML(sig.getName()) + "</A></B></FONT>\n");
if (sig.isAdmin())
@ -90,13 +89,15 @@ public class SideBoxSIGs implements ContentRender
} // end if
else
out.write(rdat.getStdFontTag(null,2) + "<EM>You are not a member of any SIGs.</EM></FONT>\n");
out.write(rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2)
+ "<EM>You are not a member of any SIGs.</EM></FONT>\n");
if (uc.isLoggedIn())
{ // write the two links at the end
out.write("<P>" + rdat.getStdFontTag(null,1) + "<B>[ <A HREF=\""
out.write("<P>" + rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,1) + "<B>[ <A HREF=\""
+ rdat.getEncodedServletPath("settings?cmd=S") + "\">Manage</A> | <A HREF=\""
+ rdat.getEncodedServletPath("sigops?cmd=C") + "\">Create New</A> ]</B></FONT>");
} // end if
} // end renderHere

View File

@ -24,7 +24,7 @@ import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.htmlcheck.*;
import com.silverwrist.venice.core.*;
public class TextMessageDialog implements ContentRender
public class TextMessageDialog implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Static data members
@ -128,7 +128,7 @@ public class TextMessageDialog implements ContentRender
public void renderHere(Writer out, RenderData rdat) throws IOException
{
rdat.writeContentHeader(out,title,null);
out.write(rdat.getStdFontTag(null,2));
out.write(rdat.getStdFontTag(CONTENT_FOREGROUND,2));
out.write("\n");
out.write(text);
out.write("</FONT><P>\n<DIV ALIGN=\"center\">\n");

View File

@ -25,7 +25,7 @@ import javax.servlet.http.*;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.core.*;
public class TopDisplay implements ContentRender
public class TopDisplay implements ContentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Static data values
@ -188,10 +188,12 @@ public class TopDisplay implements ContentRender
for (int i=0; i<sideboxes.length; i++)
{ // draw in the outer framework of the sidebox
out.write("<TABLE ALIGN=CENTER WIDTH=200 BORDER=0 CELLPADDING=2 CELLSPACING=0>"
+ "<TR VALIGN=MIDDLE BGCOLOR=\"#6666CC\"><TD ALIGN=LEFT>\n");
out.write(rdat.getStdFontTag("white",3) + "<B>" + StringUtil.encodeHTML(sideboxes[i].getPageTitle(rdat))
+ "</B></FONT>\n");
out.write("</TD></TR><TR VALIGN=TOP BGCOLOR=\"#9999FF\"><TD ALIGN=LEFT>\n");
+ "<TR VALIGN=MIDDLE BGCOLOR=\"" + rdat.getStdColor(SIDEBOX_TITLE_BACKGROUND)
+ "\"><TD ALIGN=LEFT>\n");
out.write(rdat.getStdFontTag(SIDEBOX_TITLE_FOREGROUND,3) + "<B>"
+ StringUtil.encodeHTML(sideboxes[i].getPageTitle(rdat)) + "</B></FONT>\n");
out.write("</TD></TR><TR VALIGN=TOP BGCOLOR=\"" + rdat.getStdColor(SIDEBOX_CONTENT_BACKGROUND)
+ "\"><TD ALIGN=LEFT>\n");
// Fill in the sidebox by calling down to the base.
if (sideboxes[i] instanceof ContentRender)
@ -214,7 +216,7 @@ public class TopDisplay implements ContentRender
} // end try
catch (ServletException se)
{ // since we can't throw ServletException, we throw IOException
out.write(rdat.getStdFontTag(null,2) + "<EM>failure rendering class "
out.write(rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2) + "<EM>failure rendering class "
+ sideboxes[i].getClass().getName() + ": " + StringUtil.encodeHTML(se.getMessage())
+ "</EM></FONT>\n");
out.flush();
@ -225,7 +227,7 @@ public class TopDisplay implements ContentRender
} // end else if
else // this is bogus - just display a little error here
out.write(rdat.getStdFontTag(null,2) + "<EM>cannot display sidebox of class: "
out.write(rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2) + "<EM>cannot display sidebox of class: "
+ sideboxes[i].getClass().getName() + "</EM></FONT>\n");
// close up the framework of this sidebox

View File

@ -24,7 +24,7 @@
AdminFindUser data = AdminFindUser.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(null,2);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
%>
<% rdat.writeContentHeader(out,"User Account Management",null); %>
<%= stdfont %><A HREF="<%= rdat.getEncodedServletPath("sysadmin") %>">Return to
@ -35,7 +35,7 @@ System Administration Menu</A></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="UF">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(null,4) %><B>Find Users:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Users:</B></FONT><BR>
<%= stdfont %>
Display all users whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
@ -81,7 +81,7 @@ System Administration Menu</A></FONT><P>
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(null,3) %>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B>Search Results</B>
<% if (data.getFindCount()>0) { %>

View File

@ -26,7 +26,7 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Upload Your Attachment",null); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Your attachment may be no more than <B>1 megabyte</B> in size.<P>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("attachment") %>">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getSIGID() %>">

View File

@ -25,9 +25,11 @@
Variables.failIfNull(basedat);
UserContext user = Variables.getUserContext(application,request,session);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String header_font = rdat.getStdFontTag("white",3);
String stdfont = rdat.getStdFontTag(null,2);
String smallfont = rdat.getStdFontTag(null,1);
String header_font = rdat.getStdFontTag(ColorSelectors.TITLE_FOREGROUND,3);
String header_link_hilite = "<FONT COLOR=\"" + rdat.getStdColor(ColorSelectors.TITLE_LINK) + "\">";
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
String leftfont = rdat.getStdFontTag(ColorSelectors.LEFT_FOREGROUND,2);
String smallfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1);
String partial_tgt, foo;
%>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
@ -40,23 +42,24 @@
<% } // end if %>
</HEAD>
<BODY BGCOLOR="#9999FF">
<BODY BGCOLOR="<%= rdat.getStdColor(ColorSelectors.FRAME_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE HEADER --><% } %>
<TABLE BORDER=0 BGCOLOR="#6666CC" WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TABLE BORDER=0 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.TITLE_BACKGROUND) %>" WIDTH="100%"
CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT WIDTH=150>
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2>
<% if (rdat.useHTMLComments()) { %><!-- Site logo --><% } %>
<%= rdat.getSiteImageTag(2,2) %>
</TD>
<TD ALIGN=LEFT WIDTH=150><%= header_font %><B>
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2><%= header_font %><B>
<% if (rdat.useHTMLComments()) { %><!-- Links to Front Page, Help, Find --><% } %>
<A HREF="<%= rdat.getEncodedServletPath("top") %>"><FONT COLOR="yellow">Front Page</FONT></A><P>
<A HREF="/TODO"><FONT COLOR="yellow">Help</FONT></A>&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("find") %>"><FONT COLOR="yellow">Find</FONT></A>
<A HREF="<%= rdat.getEncodedServletPath("top") %>"><%= header_link_hilite %>Front Page</FONT></A><P>
<A HREF="/TODO"><%= header_link_hilite %>Help</FONT></A>&nbsp;|&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("find") %>"><%= header_link_hilite %>Find</FONT></A>
</B></FONT></TD>
<TD ALIGN=RIGHT WIDTH=150>
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2>
<% if (rdat.useHTMLComments()) { %><!-- Banner Ad --><% } %>
<% basedat.renderBannerAd(out,rdat); %>
</TD>
@ -71,9 +74,9 @@
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
foo = rdat.getEncodedServletPath(partial_tgt + "L");
%>
&nbsp;-&nbsp;<A HREF="<%= foo %>"><FONT COLOR="yellow">Log Out</FONT></A>
&nbsp;-&nbsp;<A HREF="<%= foo %>"><%= header_link_hilite %>Log Out</FONT></A>
<% foo = rdat.getEncodedServletPath(partial_tgt + "P"); %>
&nbsp;|&nbsp;<A HREF="<%= foo %>"><FONT COLOR="yellow">Profile</FONT></A>
&nbsp;|&nbsp;<A HREF="<%= foo %>"><%= header_link_hilite %>Profile</FONT></A>
<% } // end if %>
<% } else { %>
You are not logged in
@ -82,9 +85,9 @@
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
foo = rdat.getEncodedServletPath(partial_tgt + "L");
%>
&nbsp;-&nbsp;<A HREF="<%= foo %>"><FONT COLOR="yellow">Log In</FONT></A>
&nbsp;-&nbsp;<A HREF="<%= foo %>"><%= header_link_hilite %>Log In</FONT></A>
<% foo = rdat.getEncodedServletPath(partial_tgt + "C"); %>
&nbsp;|&nbsp;<A HREF="<%= foo %>"><FONT COLOR="yellow">Create Account</FONT></A>
&nbsp;|&nbsp;<A HREF="<%= foo %>"><%= header_link_hilite %>Create Account</FONT></A>
<% } // end if %>
<% } // end if %>
</FONT></TD></TR>
@ -94,16 +97,16 @@
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="#9999FF">
<TABLE ALIGN=LEFT WIDTH=120 CELPADDING=0 CELLSPACING=0>
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
<% if (rdat.useHTMLComments()) { %><!-- BEGIN LEFT SIDEBAR --><% } %>
<TR VALIGN=TOP><TD VALIGN=LEFT><%= stdfont %>
<TR VALIGN=TOP><TD VALIGN=LEFT><%= leftfont %>
<% if (rdat.useHTMLComments()) { %><!-- variable menu --><% } %>
<% basedat.renderMenu(session,out,rdat); %>
</FONT></TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT>&nbsp;</TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT><%= stdfont %>
<TR VALIGN=TOP><TD VALIGN=LEFT><%= leftfont %>
<% if (rdat.useHTMLComments()) { %><!-- fixed menu --><% } %>
<% basedat.renderFixedMenu(out,rdat); %>
</FONT></TD></TR>
@ -113,7 +116,7 @@
</TABLE>
</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="white">
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE CONTENT --><% } %>
<% basedat.renderContent(application,out,rdat); %>
<% if (rdat.useHTMLComments()) { %><!-- END PAGE CONTENT --><% } %>
@ -121,8 +124,8 @@
</TR>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="#9999FF">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="white">
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- PAGE FOOTER --><% } %>
<HR WIDTH="80%">
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6><TR VALIGN=TOP>
@ -130,7 +133,8 @@
<TD ALIGN=LEFT>
<A HREF="http://venice.sourceforge.net" TARGET="_blank"><IMG
SRC="<%= rdat.getFullImagePath("powered-by-venice.gif") %>" ALT="Powered by Venice"
WIDTH=129 HEIGHT=103 BORDER=0 HSPACE=0 VSPACE=0></A>
WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0
HSPACE=0 VSPACE=0></A>
</TD>
</TR></TABLE>
</TD>

View File

@ -34,7 +34,7 @@
rdat.writeContentHeader(out,(data.isPosterReport() ? "Posters in Conference:"
: "Readers in Conference:"),data.getConfName());
%>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=QR") %>">Return to
Conference Reports Menu</A>
</FONT><P>
@ -42,27 +42,27 @@
<% if (data.anyElements()) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %><B><U>User Name</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>User Name</U></B></FONT></TH>
<% if (data.isPosterReport()) { %>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %><B><U>Last Posted</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %><B><U>Last Read</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Last Posted</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Last Read</U></B></FONT></TH>
<% } else { %>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %><B><U>Last Read</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %><B><U>Last Posted</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Last Read</U></B></FONT></TH>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>Last Posted</U></B></FONT></TH>
<% } // end if %>
</TR>
<% Iterator it = data.getRecordsIterator(); %>
<% while (it.hasNext()) { %>
<% ActiveUser usr = (ActiveUser)(it.next()); %>
<TR VALIGN=TOP>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + usr.getName()) %>" TARGET="_blank"><%= usr.getName() %></A>
</FONT></TD>
<% if (data.isPosterReport()) { %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastWrite())) %>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (usr.getLastRead()==null) { %>
Never
<% } else { %>
@ -70,10 +70,10 @@
<% } // end if %>
</FONT></TD>
<% } else { %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastRead())) %>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (usr.getLastWrite()==null) { %>
Never
<% } else { %>
@ -85,7 +85,7 @@
<% } // end while %>
</TABLE>
<% } else { %>
<%= rdat.getStdFontTag(null,2) %><EM>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>
<% if (data.isTopicReport()) { %>
<% if (data.isPosterReport()) { %>
No posters to topic "<%= data.getTopicName() %>" found.

View File

@ -26,18 +26,19 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Set Conference Membership:",data.getConfName()); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>">Return to
Manage Conference Menu</A>
</FONT><P>
<%= rdat.getStdFontTag(null,3) %><B>Find users in SIG "<%= data.getSIGName() %>":</B></FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find users in SIG
"<%= data.getSIGName() %>":</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all SIG members whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
@ -70,7 +71,7 @@
<HR>
<% if (data.conferenceMemberList()) { %>
<%-- The conference list header --%>
<%= rdat.getStdFontTag(null,3) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
Members of Conference "<%= StringUtil.encodeHTML(data.getConfName()) %>":
</B></FONT><BR>
<% } else { %>
@ -85,7 +86,7 @@
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The search results header --%>
<FONT SIZE=+1><B>Search Results:</B></FONT>
<% if (data.getFindCount()>0) { %>
@ -138,10 +139,10 @@
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% data.outputDropDown(out,uf.getUID(),uf.getLevel()); %>
</FONT></TD>
</TR>

View File

@ -27,7 +27,7 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- Manage conference list for SIG #<%= data.getSIGID() %> --><% } %>
<% rdat.writeContentHeader(out,"Manage Conference List",null); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?sig=" + data.getSIGID()) %>">Return to Conference List</A>
</FONT><P>
<% if (data.getNumConferences()>0) { %>
@ -80,7 +80,7 @@
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(conf.getName()) %>
</FONT></TD>
</TR>
@ -93,7 +93,7 @@
<IMG SRC="<%= rdat.getFullImagePath("icn_on.gif") %>" ALT="Displayed (toggle)" BORDER=0 WIDTH=16
HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
This indicates that the conference is displayed in the SIG's conference list. Click the symbol
to hide it.
</FONT></TD>
@ -103,7 +103,7 @@
<IMG SRC="<%= rdat.getFullImagePath("icn_off.gif") %>" ALT="Hidden (toggle)" BORDER=0 WIDTH=16
HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
This indicates that the conference is hidden in the SIG's conference list. Click the symbol
to display it.
</FONT></TD>
@ -112,7 +112,7 @@
<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) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to move the specified conference down in the SIG's conference list.
</FONT></TD>
</TR>
@ -120,7 +120,7 @@
<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) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to move the specified conference up in the SIG's conference list.
</FONT></TD>
</TR>
@ -128,12 +128,13 @@
<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) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,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>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>There are no conferences in
this SIG.</EM></FONT>
<% } // end if %>

View File

@ -34,7 +34,7 @@
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% String path = "confdisp?sig=" + data.getSIGID() + "&conf=" + data.getConferenceID(i); %>
<A HREF="<%= rdat.getEncodedServletPath(path) %>"><%= StringUtil.encodeHTML(data.getConferenceName(i)) %></A> -
Latest activity: <%= rdat.getActivityString(data.getLastUpdateDate(i)) %>

View File

@ -73,8 +73,8 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find SIGs Form --><% } %>
<%= rdat.getStdFontTag(null,4) %><B>Find SIGs:</B></FONT><BR>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find SIGs:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all SIGs whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_SIG_NAME %>"
@ -85,8 +85,8 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Users Form --><% } %>
<%= rdat.getStdFontTag(null,4) %><B>Find Users:</B></FONT><BR>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Users:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all users whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
@ -101,8 +101,8 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Categories Form --><% } %>
<%= rdat.getStdFontTag(null,4) %><B>Find Categories:</B></FONT><BR>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Categories:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all categories whose name&nbsp;&nbsp;
<% } else throw new InternalStateError("display parameter " + data.getDisplayOption() + " invalid"); %>
@ -128,7 +128,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<% CategoryDescriptor cat = data.getCategory(); %>
<% if (cat!=null) { %>
<% if (rdat.useHTMLComments()) { %><!-- Display Category Name --><% } %>
<HR><%= rdat.getStdFontTag(null,3) %><B>Category:
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Category:
<%
a_head = "";
a_tail = "";
@ -169,7 +169,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%
CategoryDescriptor c = (CategoryDescriptor)(it.next());
a_head = "<A HREF=\"" + data.getCatJumpLink(rdat,c.getLinkedCategoryID()) + "\">";
@ -200,7 +200,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
%>
<HR>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(null,3) %>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B><% if (cat!=null) { %>SIGs in Category<% } else { %>Search Results<% } %></B>
<% if (data.getFindCount()>0) { %>
@ -247,7 +247,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% Object item = results.get(i); %>
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
<%

View File

@ -24,7 +24,7 @@
Hotlist data = Hotlist.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(null,2);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
%>
<% if (rdat.useHTMLComments()) { %><!-- User conference hotlist --><% } %>
<% rdat.writeContentHeader(out,"Your Conference Hotlist",null); %>

View File

@ -32,15 +32,16 @@
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="I">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>Send to:&nbsp;</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Send to:&nbsp;</FONT></TD>
<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME="addr" SIZE=65 MAXLENGTH=255 VALUE=""></TD>
</TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>Personal message to be added to invitation:</FONT></TD>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2>
<TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA>
</TD></TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Personal message
to be added to invitation:</FONT></TD>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT COLSPAN=2><TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA></TD>
</TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2>
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;

View File

@ -28,12 +28,12 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- Managing aliases for conference #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Managing Conference Aliases:",data.getConfName()); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=Q") %>">Return to
Manage Conference Menu</A><P>
<% if (data.getErrorMessage()!=null) { %>
<%= rdat.getStdFontTag("red",2) %><B><%= StringUtil.encodeHTML(data.getErrorMessage()) %></B></FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_ERROR,2) %><B><%= StringUtil.encodeHTML(data.getErrorMessage()) %></B></FONT><P>
<% } // end if %>
<FONT SIZE=+1><B>Current Aliases:</B></FONT><P>
@ -44,7 +44,7 @@
<TR VALIGN=MIDDLE>
<TD ALIGN=CENTER><IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*"
WIDTH=14 HEIGHT=14 BORDER=0></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %><%= StringUtil.encodeHTML(name) %></FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><%= StringUtil.encodeHTML(name) %></FONT></TD>
<TD ALIGN=LEFT>&nbsp;&nbsp;&nbsp;&nbsp;</TD>
<TD ALIGN=LEFT>
<% if (data.canRemoveAliases()) { %>

View File

@ -28,7 +28,7 @@
<% if (rdat.useHTMLComments()) { %><!-- Managing conference #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Manage Conference:",data.getConfName()); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator()) %>">Return to Topic List</A>
</FONT><P>
@ -37,7 +37,7 @@
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="P">
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Set default pseud for conference:
<INPUT TYPE="TEXT" NAME="pseud" VALUE="<%= data.getDefaultPseud() %>" SIZE=37 MAXLENGTH=255>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_set.gif") %>" NAME="set" ALT="Set"
@ -46,7 +46,7 @@
</FORM><P>
<% if (rdat.useHTMLComments()) { %><!-- Fixseen Link --><% } %>
<%= rdat.getStdFontTag(null,2) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=FX") %>">Mark
entire conference as read (fixseen)</A>
</B></FONT><P>
@ -54,7 +54,7 @@
<% if (data.displayAdminSection()) { %>
<% if (rdat.useHTMLComments()) { %><!-- Host Tools Section --><% } %>
<% rdat.writeContentHeader(out,"Host Tools",null); %>
<%= rdat.getStdFontTag(null,2) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=E") %>">Change
Conference Information</A><P>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=A") %>">Manage

View File

@ -27,7 +27,7 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- Welcome to new SIG <%= data.getSIGName() %> --><% } %>
<% rdat.writeContentHeader(out,"Welcome!",null); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Your new SIG <B>&quot;<%= StringUtil.encodeHTML(data.getSIGName()) %>&quot</B> has been created, and
you are its host. You may now wish to send out invitations to other people to join your new SIG.
You will also want to enter your SIG's administration page and set its category and/or additional

View File

@ -29,7 +29,7 @@
<% rdat.writeContentHeader(out,data.isPreview() ? "Preview New Topic" : "Create New Topic",
"in: " + data.getConfName()); %>
<% if (data.isPreview()) { %>
<%= rdat.getStdFontTag(null,3) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
<% if (data.getNumSpellingErrors()==0) { %>
Your post did not contain any spelling errors.
<% } else if (data.getNumSpellingErrors()==1) { %>
@ -47,18 +47,18 @@
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="T">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>New topic name:</FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>New topic name:</FONT><BR>
<INPUT TYPE="TEXT" NAME="title" SIZE=37 MAXLENGTH=128 VALUE="<%= data.getTopicName() %>">
</TD></TR>
<TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getPseud() %>">
<%= rdat.getStdFontTag(null,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
VALUE="Y" <% if (data.getAttachCheck()) { %>CHECKED<% } %> > Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>

View File

@ -26,8 +26,8 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- <%= data.getIdentifyingData() %> --><% } %>
<%= rdat.getStdFontTag("#3333AA",5) %><B><%= data.getTopicName() %></B></FONT>&nbsp;&nbsp;
<%= rdat.getStdFontTag("#3333AA",3) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,5) %><B><%= data.getTopicName() %></B></FONT>&nbsp;&nbsp;
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,3) %><B>
<% if (data.isTopicArchived()) { %>(Archived)<% } else if (data.isTopicFrozen()) { %>(Frozen)<% } %>
<%= data.getTotalMessages() %> Total; <%= data.getNewMessages() %> New;
Last: <%= rdat.formatDateForDisplay(data.getLastUpdate()) %>
@ -112,7 +112,7 @@
ALIGN=BOTTOM WIDTH=80 HEIGHT=24 BORDER=0>
</FORM>
</TD>
<TD NOWRAP ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
<TD NOWRAP ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (rdat.useHTMLComments()) { %><!-- Upper navigation linkset --><% } %>
<A NAME="top">[</A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&p1=0&p2=-1") %>">View All</A>
@ -155,11 +155,11 @@
<BR>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=TOP><TD NOWRAP ALIGN=LEFT>
<% } // end if %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
+ msg.getPostNumber()) %>"><%= msg.getPostNumber() %></A> of
<A HREF="<%= last_post %>"><%= data.getTotalMessages() - 1 %></A>
<%= rdat.getStdFontTag(null,1) %>&lt;<%= data.getMessageReference(msg) %>&gt;</FONT>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>&lt;<%= data.getMessageReference(msg) %>&gt;</FONT>
<% if (data.showAdvanced() && msg.isHidden()) { %>
<B><EM>(Hidden)</EM></B>
<% } // end if %>
@ -177,7 +177,7 @@
ALT="(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)"
WIDTH=16 HEIGHT=16 BORDER=0></A>
<% } // end if %>
</FONT><P>
</FONT><P><FONT COLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_FOREGROUND) %>">
<% if (msg.isScribbled()) { %>
<TT><EM><B>
(Scribbled by <%= data.getMessageBodyText(msg) %> on
@ -192,6 +192,7 @@
<% } else { %>
<PRE><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<% } // end if %>
</FONT>
<% if (data.showAdvanced()) { %>
<% String po_loc = data.getLocator() + "&msg=" + msg.getPostNumber(); %>
</TD><TD NOWRAP ALIGN=RIGHT>
@ -230,7 +231,7 @@
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>&nbsp;</TD>
<TD NOWRAP ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
<TD NOWRAP ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (rdat.useHTMLComments()) { %><!-- Upper navigation linkset --><% } %>
<A NAME="bottom">[</A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&p1=0&p2=-1") %>">View All</A>
@ -290,7 +291,8 @@
</TABLE>
<% if (data.displayPostBox()) { %>
<HR><%= rdat.getStdFontTag(null,3) %><B>Post Message in &quot;<%= data.getTopicName() %>&quot;:</B></FONT>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Post Message in
&quot;<%= data.getTopicName() %>&quot;:</B></FONT>
<BR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
@ -302,13 +304,13 @@
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getDefaultPseud() %>">
<%= rdat.getStdFontTag(null,2) %><INPUT TYPE="CHECKBOX" NAME="attach" VALUE="Y"> Attach a file</FONT>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach" VALUE="Y"> Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
@ -333,7 +335,9 @@
</TABLE>
</FORM>
<% } else if (data.isTopicArchived()) { %>
<DIV ALIGN=CENTER><%= rdat.getStdFontTag(null,2) %><B>This is an <EM>Archived</EM> Topic</B></DIV>
<DIV ALIGN=CENTER><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is an
<EM>Archived</EM> Topic</B></DIV>
<% } else if (data.isTopicFrozen()) { %>
<DIV ALIGN=CENTER><%= rdat.getStdFontTag(null,2) %><B>This is a <EM>Frozen</EM> Topic</B></DIV>
<DIV ALIGN=CENTER><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is a
<EM>Frozen</EM> Topic</B></DIV>
<% } // end if %>

View File

@ -26,7 +26,7 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Previewing Post",null); %>
<%= rdat.getStdFontTag(null,3) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
<% if (data.getNumSpellingErrors()==0) { %>
Your post did not contain any spelling errors.
<% } else if (data.getNumSpellingErrors()==1) { %>
@ -50,14 +50,14 @@
<% } // end if %>
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getPseud() %>">
<%= rdat.getStdFontTag(null,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
VALUE="Y" <% if (data.attachChecked()) { %>CHECKED<% } %> > Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>

View File

@ -24,7 +24,7 @@
ReportConferenceMenu data = ReportConferenceMenu.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(null,2);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
String partial;
%>
<% if (rdat.useHTMLComments()) { %><!-- Reports for conference #<%= data.getConfID() %> --><% } %>

View File

@ -26,17 +26,17 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Set SIG Membership:",data.getSIGName()); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sigadmin?sig=" + data.getSIGID()) %>">Return to SIG
Administration Menu</A>
</FONT><P>
<%= rdat.getStdFontTag(null,3) %><B>Find Users:</B></FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find Users:</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all users whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
@ -69,7 +69,7 @@
<HR>
<% if (data.isSIGMemberList()) { %>
<%-- The SIG list header --%>
<%= rdat.getStdFontTag(null,3) %><B>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>
Members of SIG "<%= StringUtil.encodeHTML(data.getSIGName()) %>":
</B></FONT><BR>
<% } else { %>
@ -84,7 +84,7 @@
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The search results header --%>
<FONT SIZE=+1><B>Search Results:</B></FONT>
<% if (data.getFindCount()>0) { %>
@ -135,10 +135,10 @@
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% data.outputDropDown(out,uf.getUID(),uf.getLevel()); %>
</FONT></TD>
</TR>

View File

@ -32,7 +32,7 @@
<A HREF="<%= data.getCancelURL(rdat) %>"><IMG SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>"
ALT=\"Cancel\" WIDTH=80 HEIGHT=24 BORDER=0></A>
</DIV>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B>Previous SIG Category:</B> <%= StringUtil.encodeHTML(data.getPreviousCategory()) %><P>
<B>Current category:</B><BR>
<% if (catid>=0) { %><A HREF="<%= data.getGoLink(rdat,-1) %>"><% } %>Top<% if (catid>=0) { %></A><% } %>:
@ -54,7 +54,7 @@
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= data.getGoLink(rdat,subid) %>"><%= StringUtil.encodeHTML(c.getTitleAtLevel(c.getNumLevels()-1)) %></A>
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
&nbsp;&nbsp;&nbsp;&nbsp;[<A HREF="<%= data.getSetLink(rdat,subid) %>">set</A>]

View File

@ -27,7 +27,7 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- User conference hotlist --><% } %>
<% rdat.writeContentHeader(out,"Your SIGs",null); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("top") %>">Return to Front Page</A>
</FONT><P>
<% if (data.getNumSIGs()>0) { %>
@ -42,7 +42,7 @@
HEIGHT=16></A>
<% } else { %>&nbsp;<% } %>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + sig.getAlias()) %>"><%= StringUtil.encodeHTML(sig.getName()) %></A>
</FONT></TD>
</TR>
@ -54,11 +54,12 @@
<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) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,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>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>You are not a member of
any SIGs.</EM></FONT>
<% } // end if %>

View File

@ -32,7 +32,7 @@
<% if (rdat.useHTMLComments()) { %><!-- Profile for SIG #<%= sig.getSIGID() %> --><% } %>
<% rdat.writeContentHeader(out,"SIG Profile:",sig.getName()); %>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,1) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>
<IMG SRC="<%= data.getSIGLogoURL(rdat)%>" ALIGN=LEFT WIDTH=110 HEIGHT=65 BORDER=0><BR CLEAR=LEFT><BR>
<% Date tmpd = sig.getCreationDate(); %>
@ -64,7 +64,7 @@
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U><% if (sig.isPublicSIG()) { %>Public<% } else { %>Private<% } %> Special Interest Group</U></B><BR>
<B>Category:</B>
<% for (int i=0; i<cat.getNumLevels(); i++) { %>

View File

@ -27,7 +27,7 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- Welcome to <%= data.getSIGName() %> --><% } %>
<% rdat.writeContentHeader(out,"Welcome!",null); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Welcome to the <B>&quot;<%= StringUtil.encodeHTML(data.getSIGName()) %>&quot;</B> SIG!
As a SIG member, you now have access to the various resources which your SIG's host
has elected to provide. Enjoy your membership!<P>

View File

@ -27,7 +27,7 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- <%= data.getIdentifyingData() %> --><% } %>
<% rdat.writeContentHeader(out,"Slippage or Double-Click Detected",null); %>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
The following posts slipped in while you were typing. You may choose to edit your message and
re-post, just post it as is, or cancel your posting altogether.
</FONT><P>
@ -39,9 +39,9 @@
TopicMessageContext msg = (TopicMessageContext)(it.next());
String poster = data.getPosterName(msg);
%>
<%= rdat.getStdFontTag(null,2) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><%= msg.getPostNumber() %></B> of <B><%= data.getTotalMessages() - 1 %></B>
<%= rdat.getStdFontTag(null,1) %>&lt;<%= data.getMessageReference(msg) %>&gt;</FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>&lt;<%= data.getMessageReference(msg) %>&gt;</FONT><BR>
<B><%= msg.getPseud() %></B>
(<EM>
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
@ -59,7 +59,8 @@
<% } // end while %>
<% if (rdat.useHTMLComments()) { %><!-- End Slipped Messages --><% } %>
<HR><%= rdat.getStdFontTag(null,3) %><B>Post Message in &quot;<%= data.getTopicName() %>&quot;:</B></FONT>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Post Message in
&quot;<%= data.getTopicName() %>&quot;:</B></FONT>
<BR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
@ -72,14 +73,14 @@
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getPseud() %>">
<%= rdat.getStdFontTag(null,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><INPUT TYPE="CHECKBOX" NAME="attach"
VALUE="Y" <% if (data.attachChecked()) { %>CHECKED<% } %> > Attach a file</FONT>
</TD></TR>
<TR>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>

View File

@ -28,18 +28,18 @@
<% if (rdat.useHTMLComments()) { %><!-- Top content panel --><% } %>
<% if (data.displayWelcome()) { %>
<% rdat.writeContentHeader(out,rdat.getStockMessage("welcome-top"),null); %>
<%= rdat.getStdFontTag(null,2) %><%= rdat.getStockMessage("welcome") %></FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><%= rdat.getStockMessage("welcome") %></FONT><P>
<% } // end if %>
<% rdat.writeContentHeader(out,rdat.getStockMessage("currents-top"),null); %>
<% int ntp = data.getNumTopPosts(); %>
<% if (ntp>0) { %>
<% for (int i=0; i<ntp; i++) { %>
<% if (i>0) { %><HR WIDTH="70%"><% } %>
<%
rdat.writeContentHeader(out,rdat.getStockMessage("currents-top"),null);
int ntp = data.getNumTopPosts();
if (ntp>0) {
for (int i=0; i<ntp; i++) {
TopicMessageContext msg = data.getTopPost(i);
String poster = data.getPosterName(msg);
%>
<%= rdat.getStdFontTag(null,2) %>
<% if (i>0) { %><HR WIDTH="70%"><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><%= msg.getPseud() %></B>
(<EM>
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
@ -48,7 +48,13 @@
<P>
<PRE><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
</FONT>
<% } // end for %>
<% } else { %>
<%= rdat.getStdFontTag(null,2) %><EM>No front page postings found.</EM></FONT>
<%
} // end for
} else {
%>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><EM>No front page postings found.</EM></FONT>
<% } // end if %>

View File

@ -24,7 +24,7 @@
TopicListing data = TopicListing.retrieve(request);
Variables.failIfNull(data);
RenderData rdat = RenderConfig.createRenderData(application,request,response);
String stdfont = rdat.getStdFontTag(null,2);
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
String self = "confdisp?" + data.getLocator();
String tmp;
%>

View File

@ -31,7 +31,7 @@
<% rdat.writeContentHeader(out,"User Profile:",prof.getUserName()); %>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,1) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>
<IMG SRC="<%= data.getPhotoURL(rdat) %>" ALT="" ALIGN=LEFT WIDTH=100
HEIGHT=100 BORDER=0><BR CLEAR=LEFT><BR>
@ -49,7 +49,7 @@
<% } // end if %>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><%= StringUtil.encodeHTML(data.getFullName()) %></B><BR>
<% tmp = prof.getEmail(); %>
@ -83,7 +83,7 @@
<% tmp = prof.getDescription(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
<TR VALIGN=TOP><TD ALIGN=CENTER COLSPAN=2><%= rdat.getStdFontTag(null,2) %>
<TR VALIGN=TOP><TD ALIGN=CENTER COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<EM><%= StringUtil.encodeHTML(tmp) %></EM>
</FONT></TD></TR>
<% } // end if %>
@ -91,12 +91,13 @@
</TABLE>
<% if (prof.canSendQuickEmail()) { %>
<HR><%= rdat.getStdFontTag(null,2) %><B>Send Quick E-Mail To <%= prof.getUserName() %>:</B></FONT><BR>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>Send Quick E-Mail To
<%= prof.getUserName() %>:</B></FONT><BR>
<FORM METHOD=POST ACTION="<%= rdat.getEncodedServletPath("user/" + prof.getUserName()) %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="E">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT>
<%= rdat.getStdFontTag(null,2) %>Subject: </FONT>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Subject: </FONT>
<INPUT TYPE="TEXT" NAME="subj" SIZE=65 MAXLENGTH=255 VALUE="">
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT>