Venice now groks Cascading StyleSheets; the stylesheet is generated by a

special servlet and cached at runtime; various JSP pages and formatter classes
have been updated to respect the stylesheet settings
This commit is contained in:
Eric J. Bowersox 2001-10-31 02:13:02 +00:00
parent 6397f4212c
commit ec878e9dfc
50 changed files with 954 additions and 317 deletions

View File

@ -27,7 +27,6 @@
<property name="dist.war" value="${app.name}.war"/>
<property name="javadoc.home" value="${deploy.home}/javadoc"/>
<!-- Prepare directory for build -->
<target name="prepare">
<mkdir dir="${deploy.home}"/>
@ -36,10 +35,7 @@
</copy>
<mkdir dir="${deploy.home}/WEB-INF"/>
<copy todir="${deploy.home}/WEB-INF">
<fileset dir="etc">
<include name="*.xml"/>
<include name="*.dict"/>
</fileset>
<fileset dir="etc"/>
</copy>
<mkdir dir="${deploy.home}/WEB-INF/classes"/>
<mkdir dir="${deploy.home}/WEB-INF/lib"/>

View File

@ -41,6 +41,9 @@
<!-- Specifies the default <FONT FACE=""> to use for all text. -->
<font>Arial, Helvetica</font>
<!-- Specifies the location of the stylesheet template file. -->
<stylesheet>WEB-INF/template.css</stylesheet>
<!-- 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>
@ -50,6 +53,7 @@
<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 -->
<left-link>blue</left-link> <!-- left menu bar links -->
<content-bg>white</content-bg> <!-- content background -->
<content-fg>black</content-fg> <!-- content text -->
<content-hdr>#3333AA</content-hdr> <!-- content header text -->
@ -59,6 +63,7 @@
<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) -->
<sidebox-content-link>blue</sidebox-content-link> <!-- links in 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 -->

53
etc/template.css Normal file
View File

@ -0,0 +1,53 @@
<STYLE TYPE="text/css">
<!--
BODY { font-family: ${font}, sans-serif; background: ${color.frame};
}
.tbar { font-family: ${font}, sans-serif; background: ${color.top.background};
color: ${color.top.foreground}; font-size: 14pt;
}
A.tbar { color: ${color.top.link};
}
A.tbar:link { color: ${color.top.link};
}
A.tbar:visited { color: ${color.top.link};
}
.lbar { font-family: ${font}, sans-serif; background: ${color.left.background};
color: ${color.left.foreground}; font-size: 12pt;
}
A.lbar { color: ${color.left.link};
}
A.lbar:link { color: ${color.left.link};
}
A.lbar:visited { color: ${color.left.link};
}
.content { font-family: ${font}, sans-serif; background: ${color.content.background};
color: ${color.content.foreground}; font-size: 12pt;
}
.chead1 { font-family: ${font}, sans-serif; font-size: 18pt; color: ${color.content.header};
}
.chead2 { font-family: ${font}, sans-serif; font-size: 14pt; color: ${color.content.header};
}
.cinput { font-family: Courier New, Courier, monospace; font-size: 10pt;
}
.c2 { font-family: ${font}, sans-serif; background: ${color.content.background};
color: ${color.content.foreground}; font-size: 10pt;
}
.post { font-family: Courier New, Courier, monospace; font-size: 10pt;
}
.footer { font-family: ${font}, sans-serif; background: ${color.content.background};
color: ${color.content.foreground}; font-size: 8pt;
}
.sideboxtop { font-family: ${font}, sans-serif; background: ${color.sidebox.top.background};
color: ${color.sidebox.top.foreground}; font-size: 14pt;
}
.sidebox { font-family: ${font}, sans-serif; background: ${color.sidebox.background};
color: ${color.sidebox.foreground}; font-size: 12pt;
}
A.sidebox { color: ${color.sidebox.link};
}
A.sidebox:link { color: ${color.sidebox.link};
}
A.sidebox:visited { color: ${color.sidebox.link};
}
-->
</STYLE>

View File

@ -32,16 +32,16 @@
Modify as needed to suit your system. -->
<context-param>
<param-name>logging.config</param-name>
<param-value>/home/erbo/venice/WEB-INF/logging-config.xml</param-value>
<param-value>WEB-INF/logging-config.xml</param-value>
<description>
The full path and file name of the LOG4J configuration file, which needs
to be loaded into LOG4J's DOMConfigurator at start-up.
The path and file name, relative to the application root directory, of the LOG4J configuration file,
which needs to be loaded into LOG4J's DOMConfigurator at start-up.
</description>
</context-param>
<context-param>
<param-name>venice.config</param-name>
<param-value>/home/erbo/venice/WEB-INF/venice-config.xml</param-value>
<param-value>WEB-INF/venice-config.xml</param-value>
<description>
The full path and file name of the Venice engine configuration file, which
needs to be loaded into the Venice engine at start-up.
@ -50,10 +50,10 @@
<context-param>
<param-name>render.config</param-name>
<param-value>/home/erbo/venice/WEB-INF/render-config.xml</param-value>
<param-value>WEB-INF/render-config.xml</param-value>
<description>
The full path and file name of the Venice rendering configuration file, which
needs to be loaded into the Venice rendering system at start-up.
The path and file name, relative to the application root directory, of the Venice rendering
configuration file, which needs to be loaded into the Venice rendering system at start-up.
</description>
</context-param>
@ -222,6 +222,14 @@
<servlet-class>com.silverwrist.venice.servlets.UserPhoto</servlet-class>
</servlet>
<servlet>
<servlet-name>stylesheet</servlet-name>
<description>
Generates the stylesheet included by the top-level JSP file).
</description>
<servlet-class>com.silverwrist.venice.servlets.StyleSheet</servlet-class>
</servlet>
<!-- the following are test servlets, they should go away -->
<servlet>
@ -335,6 +343,11 @@
<url-pattern>/userphoto</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>stylesheet</servlet-name>
<url-pattern>/stylesheet</url-pattern>
</servlet-mapping>
<!-- the following are test servlets, they should go away -->
<servlet-mapping>
<servlet-name>testformdata</servlet-name>

View File

@ -0,0 +1,86 @@
/*
* 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.util;
public final class AnyCharMatcher
{
/*--------------------------------------------------------------------------------
* Attributes
*--------------------------------------------------------------------------------
*/
private char[] charset;
private int[] locs;
/*--------------------------------------------------------------------------------
* Constructors
*--------------------------------------------------------------------------------
*/
public AnyCharMatcher(char[] charset)
{
this.charset = charset;
this.locs = new int[charset.length];
} // end constructor
public AnyCharMatcher(String charset)
{
this.charset = charset.toCharArray();
this.locs = new int[charset.length()];
} // end constructor
/*--------------------------------------------------------------------------------
* External operations
*--------------------------------------------------------------------------------
*/
public final int get(String str)
{
int numindexes = 0;
int i;
for (i=0; i<charset.length; i++)
{ // locate the index of the first HTML character
int tmp = str.indexOf(charset[i]);
if (tmp>=0)
locs[numindexes++] = tmp;
} // end for
if (numindexes==0)
return -1; // no characters found
else if (numindexes==1)
return locs[0]; // only one found
int rc = locs[0];
for (i=1; i<numindexes; i++)
{ // this loop determines the lowest possible return value
if (rc==0)
return 0; // can't get any lower!
if (locs[i]<rc)
rc = locs[i]; // this is now the lowest
} // end for
return rc;
} // end get
} // end class AnyCharMatcher

View File

@ -0,0 +1,175 @@
/*
* 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.util;
import java.io.*;
/* Some concepts in here borrowed from Apache Jakarta Avalon Excalibur 4.0 */
public class IOUtil
{
/*--------------------------------------------------------------------------------
* Static data members
*--------------------------------------------------------------------------------
*/
public static int DEFAULT_BUFSIZE = 4096;
/*--------------------------------------------------------------------------------
* External static operations
*--------------------------------------------------------------------------------
*/
public static void shutdown(InputStream stm)
{
try
{ // close the stream
stm.close();
} // end try
catch (IOException e)
{ // throw away the exception
} // end catch
} // end shutdown
public static void shutdown(OutputStream stm)
{
try
{ // close the stream
stm.close();
} // end try
catch (IOException e)
{ // throw away the exception
} // end catch
} // end shutdown
public static void shutdown(Reader rdr)
{
try
{ // close the stream
rdr.close();
} // end try
catch (IOException e)
{ // throw away the exception
} // end catch
} // end shutdown
public static void shutdown(Writer wr)
{
try
{ // close the stream
wr.close();
} // end try
catch (IOException e)
{ // throw away the exception
} // end catch
} // end shutdown
public static void copy(InputStream input, OutputStream output, int bufsize) throws IOException
{
byte[] buffer = new byte[bufsize];
int rd = input.read(buffer);
while (rd>=0)
{ // simple read-write loop to shove data out the door
if (rd>0)
output.write(buffer,0,rd);
rd = input.read(buffer);
} // end while
} // end copy
public static void copy(InputStream input, OutputStream output) throws IOException
{
copy(input,output,DEFAULT_BUFSIZE);
} // end copy
public static void copy(Reader input, Writer output, int bufsize) throws IOException
{
char[] buffer = new char[bufsize];
int rd = input.read(buffer);
while (rd>=0)
{ // simple read-write loop to shove data out the door
if (rd>0)
output.write(buffer,0,rd);
rd = input.read(buffer);
} // end while
} // end copy
public static void copy(Reader input, Writer output) throws IOException
{
copy(input,output,DEFAULT_BUFSIZE);
} // end copy
public static StringBuffer load(Reader input, int bufsize) throws IOException
{
StringWriter wr = new StringWriter();
try
{ // copy from reader to StringWriter
copy(input,wr,bufsize);
return wr.getBuffer();
} // end try
finally
{ // make sure and close the StringWriter before we go
shutdown(wr);
} // end finally
} // end load
public static StringBuffer load(Reader input) throws IOException
{
return load(input,DEFAULT_BUFSIZE);
} // end load
public static StringBuffer load(File file, int bufsize) throws IOException
{
FileReader rdr = new FileReader(file);
try
{ // load from the string reader
return load(rdr,bufsize);
} // end try
finally
{ // make sure and close the reader before we go
shutdown(rdr);
} // end finally
} // end load
public static StringBuffer load(File file) throws IOException
{
return load(file,DEFAULT_BUFSIZE);
} // end load
} // end class IOUtil

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
@ -17,8 +17,24 @@
*/
package com.silverwrist.util;
import java.util.*;
public class StringUtil
{
/*--------------------------------------------------------------------------------
* Static data members
*--------------------------------------------------------------------------------
*/
private static final String VAR_START = "${";
private static final String VAR_END = "}";
private static final char[] HTML_ENCODE_CHARS = { '"', '&', '<', '>' };
/*--------------------------------------------------------------------------------
* External static operations
*--------------------------------------------------------------------------------
*/
public static String encodeStringSQL(String str)
{
if (str==null)
@ -46,10 +62,16 @@ public class StringUtil
{
if (str==null)
return null;
AnyCharMatcher nhc = new AnyCharMatcher(HTML_ENCODE_CHARS);
int ndx = nhc.get(str);
if (ndx<0)
return str; // trivial short-circuit case
StringBuffer buf = new StringBuffer();
for (int i=0; i<str.length(); i++)
{ // loop through the string encoding each character in turn
switch (str.charAt(i))
while (ndx>=0)
{ // append the matched "head" and then the encoded character
if (ndx>0)
buf.append(str.substring(0,ndx));
switch (str.charAt(ndx++))
{
case '"':
buf.append("&quot;");
@ -67,14 +89,16 @@ public class StringUtil
buf.append("&gt;");
break;
default:
buf.append(str.charAt(i));
break;
} // end switch
} // end for
if (ndx==str.length())
return buf.toString(); // munched the entire string - all done!
str = str.substring(ndx);
ndx = nhc.get(str);
} // end while
buf.append(str); // append the unmatched tail
return buf.toString();
} // end encodeHTML
@ -101,22 +125,55 @@ public class StringUtil
// break off the tail end
ndx += find.length();
if (ndx==work.length())
work = null;
else
return b.toString(); // entire string munched - we're done!
work = work.substring(ndx);
// do the next find
if (work!=null)
ndx = work.indexOf(find);
else
ndx = -1;
} // end while
if (work!=null)
// append the unmatched "tail" of the work string and then return result
b.append(work);
return b.toString();
} // end replaceAllInstances
public static String replaceAllVariables(String base, Map vars)
{
String work = base;
boolean did_replace, retest;
retest = true;
do
{ // main loop for replacing all variables
did_replace = false;
Iterator it = vars.keySet().iterator();
while (it.hasNext())
{ // variable start is there...
if (retest)
{ // only perform this test on the first iteration and after we know we've replaced a variable
if (work.indexOf(VAR_START)<0)
return work; // no more variables in text - all done!
retest = false;
} // end if
// get variable name and see if it's present
String vname = it.next().toString();
if (work.indexOf(VAR_START + vname + VAR_END)>=0)
{ // OK, this variable is in place
work = replaceAllInstances(work,VAR_START + vname + VAR_END,vars.get(vname).toString());
did_replace = true;
retest = true;
} // end if
} // end while
} while (did_replace); // end do
return work; // all done!
} // end replaceAllVariables
} // end class StringUtil

View File

@ -0,0 +1,56 @@
/*
* 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;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.silverwrist.venice.servlets.format.RenderConfig;
import com.silverwrist.venice.servlets.format.RenderData;
public class StyleSheet extends HttpServlet
{
/*--------------------------------------------------------------------------------
* Overrides from class HttpServlet
*--------------------------------------------------------------------------------
*/
public String getServletInfo()
{
String rc = "StyleSheet applet - Generates a Cascading Stylesheet for Venice's use\n"
+ "Part of the Venice Web Communities System\n";
return rc;
} // end getServletInfo
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
ServletContext ctxt = getServletContext();
RenderData rdat = RenderConfig.createRenderData(ctxt,request,response);
String stylesheet = Variables.getStyleSheetData(ctxt,rdat);
response.setContentType("text/css");
response.setContentLength(stylesheet.length());
PrintWriter out = response.getWriter();
out.write(stylesheet);
out.flush();
response.flushBuffer();
} // end doGet
} // end class StyleSheet

View File

@ -36,9 +36,15 @@ public class Top extends VeniceServlet
{
super.init(config); // required before we do anything else
ServletContext ctxt = config.getServletContext();
String root_file_path = ctxt.getRealPath("/");
if (!(root_file_path.endsWith("/")))
root_file_path += "/";
// Initialize LOG4J logging.
DOMConfigurator.configure(ctxt.getInitParameter("logging.config"));
String lconf = ctxt.getInitParameter("logging.config");
if (!(lconf.startsWith("/")))
lconf = root_file_path + lconf;
DOMConfigurator.configure(lconf);
// Initialize the Venice engine.
VeniceEngine engine = Variables.getVeniceEngine(ctxt);

View File

@ -17,6 +17,8 @@
*/
package com.silverwrist.venice.servlets;
import java.io.*;
import java.lang.ref.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
@ -36,6 +38,7 @@ public class Variables
protected static final String ENGINE_ATTRIBUTE = "com.silverwrist.venice.core.Engine";
protected static final String COUNTRYLIST_ATTRIBUTE = "com.silverwrist.venice.db.CountryList";
protected static final String LANGUAGELIST_ATTRIBUTE = "com.silverwrist.venice.db.LanguageList";
protected static final String STYLESHEET_ATTRIBUTE = "com.silverwrist.venice.rendering.StyleSheet";
// HttpSession ("session") attributes
protected static final String USERCTXT_ATTRIBUTE = "user.context";
@ -60,13 +63,19 @@ public class Variables
public static VeniceEngine getVeniceEngine(ServletContext ctxt) throws ServletException
{
synchronized(engine_gate)
synchronized (engine_gate)
{ // we must synchronize efforts to access the engine
Object foo = ctxt.getAttribute(ENGINE_ATTRIBUTE);
if (foo!=null)
return (VeniceEngine)foo;
String root_file_path = ctxt.getRealPath("/");
if (!(root_file_path.endsWith("/")))
root_file_path += "/";
String cfgfile = ctxt.getInitParameter(ENGINE_INIT_PARAM); // get the config file name
if (!(cfgfile.startsWith("/")))
cfgfile = root_file_path + cfgfile;
logger.info("Initializing Venice engine using config file: " + cfgfile);
try
@ -318,4 +327,22 @@ public class Variables
} // end flushCookies
public static String getStyleSheetData(ServletContext ctxt, RenderData rdat) throws IOException
{
String data = null;
SoftReference r = (SoftReference)(ctxt.getAttribute(STYLESHEET_ATTRIBUTE));
if (r!=null)
data = (String)(r.get());
if ((data==null) || rdat.hasStyleSheetChanged())
{ // construct or reconstruct the stylesheet data, save a soft reference to it
data = rdat.loadStyleSheetData();
r = new SoftReference(data);
ctxt.setAttribute(STYLESHEET_ATTRIBUTE,r);
} // end if
return data;
} // end getStyleSheetData
} // end class Variables

View File

@ -91,7 +91,7 @@ public class AuditDataViewer implements ContentRender, ColorSelectors
rdat.writeContentHeader(out,title,null);
// Write the informational and navigational table
out.write("<TABLE WIDTH=\"100%\" BORDER=0><TR VALIGN=MIDDLE><TD ALIGN=LEFT>"
out.write("<TABLE WIDTH=\"100%\" BORDER=0><TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS=\"content\">"
+ 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");
@ -114,30 +114,30 @@ public class AuditDataViewer implements ContentRender, ColorSelectors
// Start writing the table containing the actual audit records.
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");
out.write("<TH ALIGN=LEFT NOWRAP>" + tb_font + "<B>User</B></FONT></TH>\n");
out.write("<TH ALIGN=LEFT NOWRAP>" + tb_font + "<B>SIG</B></FONT></TH>\n");
out.write("<TH ALIGN=LEFT NOWRAP>" + tb_font + "<B>IP Address</B></FONT></TH>\n");
out.write("<TH ALIGN=LEFT COLSPAN=4 NOWRAP>" + tb_font + "<B>Additional Data</B></FONT></TH>\n</TR>\n");
out.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=3>\n<TR>\n<TH ALIGN=LEFT CLASS=\"content\" NOWRAP>"
+ tb_font + "<B>Date/Time</B></FONT></TH>\n<TH ALIGN=LEFT CLASS=\"content\" NOWRAP>"
+ tb_font + "<B>Description</B></FONT></TH>\n<TH ALIGN=LEFT CLASS=\"content\" NOWRAP>"
+ tb_font + "<B>User</B></FONT></TH>\n<TH ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ "<B>SIG</B></FONT></TH>\n<TH ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ "<B>IP Address</B></FONT></TH>\n<TH ALIGN=LEFT CLASS=\"content\" COLSPAN=4 NOWRAP>"
+ tb_font + "<B>Additional Data</B></FONT></TH>\n</TR>\n");
Iterator it = audit_list.iterator();
while (it.hasNext())
{ // display each record in turn
AuditData dat = (AuditData)(it.next());
out.write("<TR>\n<TD ALIGN=LEFT NOWRAP>" + tb_font
+ rdat.formatDateForDisplay(dat.getDateTime()) + "</FONT></TD>\n");
out.write("<TD ALIGN=LEFT NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getDescription()) + "</FONT></TD>\n");
out.write("<TD ALIGN=LEFT NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getUserName()) + "</FONT></TD>\n");
out.write("<TD ALIGN=LEFT NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getSIGName()) + "</FONT></TD>\n");
out.write("<TD ALIGN=LEFT NOWRAP>" + tb_font
out.write("<TR>\n<TD ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ rdat.formatDateForDisplay(dat.getDateTime())
+ "</FONT></TD>\n<TD ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getDescription())
+ "</FONT></TD>\n<TD ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getUserName())
+ "</FONT></TD>\n<TD ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getSIGName())
+ "</FONT></TD>\n<TD ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font
+ StringUtil.encodeHTML(dat.getIPAddress()) + "</FONT></TD>\n");
for (int i=0; i<AuditData.DATA_COUNT; i++)
{ // write the data values
out.write("<TD ALIGN=LEFT NOWRAP>" + tb_font);
out.write("<TD ALIGN=LEFT CLASS=\"content\" NOWRAP>" + tb_font);
if (dat.getData(i)!=null)
out.write(StringUtil.encodeHTML(dat.getData(i)));
else

View File

@ -67,7 +67,7 @@ public abstract class CDBaseFormField implements CDFormField, ColorSelectors
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT><FONT COLOR=\""
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT CLASS=\"content\"><FONT COLOR=\""
+ rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\">"
+ StringUtil.encodeHTML(caption));
if (caption2!=null)
@ -75,7 +75,7 @@ public abstract class CDBaseFormField implements CDFormField, ColorSelectors
out.write(":</FONT>");
if (required)
out.write(rdat.getRequiredBullet());
out.write("</TD>\n<TD ALIGN=LEFT>");
out.write("</TD>\n<TD ALIGN=LEFT CLASS=\"content\">");
renderActualField(out,rdat);
out.write("</TD>\n</TR>\n");

View File

@ -67,9 +67,9 @@ public abstract class CDBaseFormFieldReverse implements CDFormField, ColorSelect
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT>");
out.write("<TR VALIGN=MIDDLE>\n<TD ALIGN=RIGHT CLASS=\"content\">");
renderActualField(out,rdat);
out.write("</TD>\n<TD ALIGN=LEFT><FONT COLOR=\""
out.write("</TD>\n<TD ALIGN=LEFT CLASS=\"content\"><FONT COLOR=\""
+ rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\">"
+ StringUtil.encodeHTML(caption));
if (caption2!=null)

View File

@ -55,9 +55,9 @@ public class CDFormCategoryHeader implements CDFormField, ColorSelectors
public void renderHere(Writer out, RenderData rdat) throws IOException
{
out.write("<TR VALIGN=MIDDLE><TD ALIGN=RIGHT><FONT COLOR=\""
out.write("<TR VALIGN=MIDDLE><TD ALIGN=RIGHT CLASS=\"content\"><FONT COLOR=\""
+ rdat.getStdColor(enabled ? CONTENT_FOREGROUND : CONTENT_DISABLED) + "\"><B>"
+ StringUtil.encodeHTML(caption) + ":</B></FONT></TD><TD ALIGN=LEFT>");
+ StringUtil.encodeHTML(caption) + ":</B></FONT></TD><TD ALIGN=LEFT CLASS=\"content\">");
if (rtext==null)
out.write("&nbsp;");
else // display in the correct state

View File

@ -45,14 +45,15 @@ public class CDPasswordFormField extends CDBaseFormField
protected void renderActualField(Writer out, RenderData rdat) throws IOException
{
out.write("<INPUT TYPE=PASSWORD NAME=\"" + getName() + "\" SIZE=" + String.valueOf(size));
out.write("<SPAN CLASS=\"cinput\"><INPUT TYPE=PASSWORD CLASS=\"cinput\" NAME=\"" + getName() + "\" SIZE="
+ String.valueOf(size));
out.write(" MAXLENGTH=" + String.valueOf(maxlength));
if (!isEnabled())
out.write(" DISABLED");
out.write(" VALUE=\"");
if (getValue()!=null)
out.write(getValue());
out.write("\">");
out.write("\"></SPAN>");
} // end renderActualField

View File

@ -67,7 +67,7 @@ public abstract class CDPickListFormField extends CDBaseFormField
protected void renderActualField(Writer out, RenderData rdat) throws IOException
{
out.write("<SELECT NAME=\"" + getName() + "\" SIZE=1");
out.write("<SELECT CLASS=\"content\" NAME=\"" + getName() + "\" SIZE=1");
if (!isEnabled())
out.write(" DISABLED");
out.write(">\n");

View File

@ -45,14 +45,15 @@ public class CDTextFormField extends CDBaseFormField
protected void renderActualField(Writer out, RenderData rdat) throws IOException
{
out.write("<INPUT TYPE=TEXT NAME=\"" + getName() + "\" SIZE=" + String.valueOf(size));
out.write("<SPAN CLASS=\"cinput\"><INPUT TYPE=TEXT CLASS=\"cinput\" NAME=\"" + getName() + "\" SIZE="
+ String.valueOf(size));
out.write(" MAXLENGTH=" + String.valueOf(maxlength));
if (!isEnabled())
out.write(" DISABLED");
out.write(" VALUE=\"");
if (getValue()!=null)
out.write(getValue());
out.write("\">");
out.write("\"></SPAN>");
} // end renderActualField

View File

@ -31,30 +31,34 @@ public interface ColorSelectors
public static final int LEFT_FOREGROUND = 5;
public static final int CONTENT_BACKGROUND = 6;
public static final int LEFT_LINK = 6;
public static final int CONTENT_FOREGROUND = 7;
public static final int CONTENT_BACKGROUND = 7;
public static final int CONTENT_HEADER = 8;
public static final int CONTENT_FOREGROUND = 8;
public static final int CONTENT_DISABLED = 9;
public static final int CONTENT_HEADER = 9;
public static final int CONTENT_ERROR = 10;
public static final int CONTENT_DISABLED = 10;
public static final int SIDEBOX_TITLE_BACKGROUND = 11;
public static final int CONTENT_ERROR = 11;
public static final int SIDEBOX_TITLE_FOREGROUND = 12;
public static final int SIDEBOX_TITLE_BACKGROUND = 12;
public static final int SIDEBOX_CONTENT_BACKGROUND = 13;
public static final int SIDEBOX_TITLE_FOREGROUND = 13;
public static final int SIDEBOX_CONTENT_FOREGROUND = 14;
public static final int SIDEBOX_CONTENT_BACKGROUND = 14;
public static final int CONFIRM_TITLE_BACKGROUND = 15;
public static final int SIDEBOX_CONTENT_FOREGROUND = 15;
public static final int CONFIRM_TITLE_FOREGROUND = 16;
public static final int SIDEBOX_CONTENT_LINK = 16;
public static final int ERROR_TITLE_BACKGROUND = 17;
public static final int CONFIRM_TITLE_BACKGROUND = 17;
public static final int ERROR_TITLE_FOREGROUND = 18;
public static final int CONFIRM_TITLE_FOREGROUND = 18;
public static final int ERROR_TITLE_BACKGROUND = 19;
public static final int ERROR_TITLE_FOREGROUND = 20;
} // end class ColorSelectors

View File

@ -154,15 +154,15 @@ public class ContentDialog implements Cloneable, ContentRender, ColorSelectors
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(CONTENT_ERROR,3) + "<B>");
+ "<TD ALIGN=CENTER CLASS=\"content\">\n" + rdat.getStdFontTag(CONTENT_ERROR,3) + "<B>");
out.write(StringUtil.encodeHTML(error_message));
out.write("</B></FONT>\n</TD></TR></TABLE>\n");
} // end if
// Output the start of the form
out.write("<FORM NAME=\"" + formname + "\" METHOD=POST ACTION=\"");
out.write(rdat.getEncodedServletPath(action) + "\">" + rdat.getStdFontTag(CONTENT_FOREGROUND,2) + "\n");
out.write("<FORM NAME=\"" + formname + "\" METHOD=POST ACTION=\"" + rdat.getEncodedServletPath(action)
+ "\"><DIV CLASS=\"content\">" + rdat.getStdFontTag(CONTENT_FOREGROUND,2) + "\n");
enum = hidden_fields.keys();
while (enum.hasMoreElements())
@ -204,7 +204,7 @@ public class ContentDialog implements Cloneable, ContentRender, ColorSelectors
if (command_order.size()>0)
{ // render the command buttons at the bottom
boolean is_first = true;
out.write("<DIV ALIGN=CENTER>");
out.write("<DIV ALIGN=CENTER CLASS=\"content\">");
enum = command_order.elements();
while (enum.hasMoreElements())
{ // render each of the command buttons in the list
@ -221,7 +221,7 @@ public class ContentDialog implements Cloneable, ContentRender, ColorSelectors
} // end if
out.write("</FONT></FORM>\n");
out.write("</FONT></DIV></FORM>\n");
} // end renderHere

View File

@ -23,7 +23,7 @@ import java.util.*;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.core.*;
public class MenuSIG implements ComponentRender
public class MenuSIG implements ComponentRender, ColorSelectors
{
private String image_url;
private boolean image_url_needs_fixup = false;
@ -67,6 +67,7 @@ public class MenuSIG implements ComponentRender
public void renderHere(Writer out, RenderData rdat) throws IOException
{
String hilite = "<FONT COLOR=\"" + rdat.getStdColor(LEFT_LINK) + "\">";
if (image_url!=null)
{ // display the image by URL
if (image_url_needs_fixup)
@ -90,13 +91,13 @@ public class MenuSIG implements ComponentRender
SIGFeature ftr = (SIGFeature)(it.next());
out.write("<BR>\n<A HREF=\"" + rdat.getEncodedServletPath(ftr.getApplet() + "?sig="
+ String.valueOf(sigid)));
out.write("\">" + StringUtil.encodeHTML(ftr.getName()) + "</A>\n");
out.write("\">" + hilite + StringUtil.encodeHTML(ftr.getName()) + "</FONT></A>\n");
} // end while
if (show_unjoin)
out.write("<P>\n<A HREF=\"" + rdat.getEncodedServletPath("sigops?cmd=U&sig=" + String.valueOf(sigid))
+ "\">Unjoin</A>\n");
+ "\">" + hilite + "Unjoin</FONT></A>\n");
out.write("\n"); // all done...

View File

@ -27,6 +27,7 @@ import org.w3c.dom.*;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import com.silverwrist.util.DOMElementHelper;
import com.silverwrist.util.IOUtil;
import com.silverwrist.util.StringUtil;
import com.silverwrist.venice.core.ConfigException;
import com.silverwrist.venice.core.UserContext;
@ -58,6 +59,8 @@ public class RenderConfig implements ColorSelectors
private boolean allow_gzip;
private boolean no_smart_tags;
private String font_face;
private File stylesheet;
private long stylesheet_time = 0;
private String image_url;
private String static_url;
private String site_logo;
@ -74,7 +77,7 @@ public class RenderConfig implements ColorSelectors
*--------------------------------------------------------------------------------
*/
protected RenderConfig(String config_file) throws ConfigException
protected RenderConfig(String config_file, String root_file_path) throws ConfigException
{
config = loadConfiguration(config_file);
@ -132,6 +135,28 @@ public class RenderConfig implements ColorSelectors
if (logger.isDebugEnabled())
logger.debug("Font face: " + font_face);
String stylesheet_loc = render_sect_h.getSubElementText("stylesheet");
if (stylesheet_loc==null)
{ // no <stylesheet/> tag - bail out now!
logger.fatal("<rendering/> section has no <stylesheet/> element");
throw new ConfigException("no <stylesheet/> found in <rendering/> section",render_sect);
} // end if
if (!(stylesheet_loc.startsWith("/")))
stylesheet_loc = root_file_path + stylesheet_loc;
if (logger.isDebugEnabled())
logger.debug("Stylesheet location: " + stylesheet_loc);
// Test to make sure the stylesheet is actually present.
stylesheet = new File(stylesheet_loc);
if (!(stylesheet.exists() && stylesheet.canRead()))
{ // it's not there - bail out!
logger.fatal("unable to read stylesheet file: " + stylesheet_loc);
throw new ConfigException("stylesheet " + stylesheet_loc + " cannot be read",render_sect);
} // end if
Element colors_sect = render_sect_h.getSubElement("colors");
if (colors_sect==null)
{ // no <colors/> tag - bail out now!
@ -485,11 +510,11 @@ public class RenderConfig implements ColorSelectors
void writeContentHeader(Writer out, String primary, String secondary) throws IOException
{
out.write(getStdFontTag(colors_array[CONTENT_HEADER],5) + "<B>" + StringUtil.encodeHTML(primary)
+ "</B></FONT>");
out.write("<SPAN CLASS=\"chead1\">" + getStdFontTag(colors_array[CONTENT_HEADER],5) + "<B>"
+ StringUtil.encodeHTML(primary) + "</B></FONT></SPAN>");
if (secondary!=null)
out.write("&nbsp;&nbsp;" + getStdFontTag(colors_array[CONTENT_HEADER],3) + "<B>"
+ StringUtil.encodeHTML(secondary) + "</B></FONT>");
out.write("&nbsp;&nbsp;<SPAN CLASS=\"chead2\">" + getStdFontTag(colors_array[CONTENT_HEADER],3) + "<B>"
+ StringUtil.encodeHTML(secondary) + "</B></FONT></SPAN>");
out.write("<HR ALIGN=LEFT SIZE=2 WIDTH=\"90%\" NOSHADE>\n");
} // end writeContentHeader
@ -527,6 +552,46 @@ public class RenderConfig implements ColorSelectors
} // end getLeftMenu
synchronized String loadStyleSheetData() throws IOException
{
// Load the stylesheet data.
StringBuffer raw_data = IOUtil.load(stylesheet);
stylesheet_time = stylesheet.lastModified();
// Set up the replacements map to replace the various parameters.
HashMap vars = new HashMap();
vars.put("font",font_face);
vars.put("color.frame",colors_array[FRAME_BACKGROUND]);
vars.put("color.top.background",colors_array[TITLE_BACKGROUND]);
vars.put("color.top.foreground",colors_array[TITLE_FOREGROUND]);
vars.put("color.top.link",colors_array[TITLE_LINK]);
vars.put("color.left.background",colors_array[LEFT_BACKGROUND]);
vars.put("color.left.foreground",colors_array[LEFT_FOREGROUND]);
vars.put("color.left.link",colors_array[LEFT_LINK]);
vars.put("color.content.background",colors_array[CONTENT_BACKGROUND]);
vars.put("color.content.foreground",colors_array[CONTENT_FOREGROUND]);
vars.put("color.content.header",colors_array[CONTENT_HEADER]);
vars.put("color.disabled",colors_array[CONTENT_DISABLED]);
vars.put("color.error",colors_array[CONTENT_ERROR]);
vars.put("color.sidebox.top.background",colors_array[SIDEBOX_TITLE_BACKGROUND]);
vars.put("color.sidebox.top.foreground",colors_array[SIDEBOX_TITLE_FOREGROUND]);
vars.put("color.sidebox.background",colors_array[SIDEBOX_CONTENT_BACKGROUND]);
vars.put("color.sidebox.foreground",colors_array[SIDEBOX_CONTENT_FOREGROUND]);
vars.put("color.sidebox.link",colors_array[SIDEBOX_CONTENT_LINK]);
vars.put("color.dlg.confirm.title.background",colors_array[CONFIRM_TITLE_BACKGROUND]);
vars.put("color.dlg.confirm.title.foreground",colors_array[CONFIRM_TITLE_FOREGROUND]);
vars.put("color.dlg.error.title.background",colors_array[ERROR_TITLE_BACKGROUND]);
vars.put("color.dlg.error.title.foreground",colors_array[ERROR_TITLE_FOREGROUND]);
return StringUtil.replaceAllVariables(raw_data.toString(),vars);
} // end loadStyleSheet
boolean hasStyleSheetChanged()
{
return (stylesheet_time!=stylesheet.lastModified());
} // end hasStyleSheetChanged
/*--------------------------------------------------------------------------------
* Static operations for use by VeniceServlet
*--------------------------------------------------------------------------------
@ -539,13 +604,20 @@ public class RenderConfig implements ColorSelectors
if (obj!=null)
return (RenderConfig)obj;
// Get the root file path.
String root_file_path = ctxt.getRealPath("/");
if (!(root_file_path.endsWith("/")))
root_file_path += "/";
// Get the parameter for the renderer's config file.
String cfgfile = ctxt.getInitParameter(CONFIG_FILE_PARAM);
if (!(cfgfile.startsWith("/")))
cfgfile = root_file_path + cfgfile;
logger.info("Initializing Venice rendering using config file: " + cfgfile);
try
{ // create the RenderConfig object and save it to attributes.
RenderConfig rconf = new RenderConfig(cfgfile);
RenderConfig rconf = new RenderConfig(cfgfile,root_file_path);
ctxt.setAttribute(ATTR_NAME,rconf);
return rconf;
@ -588,6 +660,7 @@ public class RenderConfig implements ColorSelectors
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("left-link",new Integer(LEFT_LINK));
m.put("content-bg",new Integer(CONTENT_BACKGROUND));
m.put("content-fg",new Integer(CONTENT_FOREGROUND));
m.put("content-hdr",new Integer(CONTENT_HEADER));
@ -597,6 +670,7 @@ public class RenderConfig implements ColorSelectors
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("sidebox-content-link",new Integer(SIDEBOX_CONTENT_LINK));
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));

View File

@ -31,7 +31,7 @@ import com.silverwrist.venice.db.PostLinkRewriter;
import com.silverwrist.venice.db.UserNameRewriter;
import com.silverwrist.venice.servlets.format.menus.LeftMenu;
public class RenderData
public class RenderData implements ColorSelectors
{
/*--------------------------------------------------------------------------------
* Static data values
@ -248,8 +248,9 @@ public class RenderData
if (urls.size()<nchoice)
nchoice = urls.size();
out.write(rconf.getStdFontTag("#3333AA",5) + "<B>" + StringUtil.encodeHTML(caption)
+ "</B></FONT>&nbsp;&nbsp;" + rconf.getStdFontTag("#3333AA",3));
out.write("<SPAN CLASS=\"chead1\">" + rconf.getStdFontTag(CONTENT_HEADER,5) + "<B>"
+ StringUtil.encodeHTML(caption) + "</B></FONT></SPAN>&nbsp;&nbsp;<SPAN CLASS=\"chead2\">"
+ rconf.getStdFontTag(CONTENT_HEADER,3));
for (int i=0; i<nchoice; i++)
{ // loop through all the choices
if (i==0)
@ -270,7 +271,7 @@ public class RenderData
} // end for
out.write("]</FONT><HR ALIGN=LEFT SIZE=2 WIDTH=\"90%\" NOSHADE>\n");
out.write("]</FONT></SPAN><HR ALIGN=LEFT SIZE=2 WIDTH=\"90%\" NOSHADE>\n");
} // end writeContentSelectorHeader
@ -304,6 +305,18 @@ public class RenderData
} // end getLeftMenu
public String loadStyleSheetData() throws IOException
{
return rconf.loadStyleSheetData();
} // end loadStyleSheetData
public boolean hasStyleSheetChanged()
{
return rconf.hasStyleSheetChanged();
} // end hasStyleSheetChanged
public String formatDateForDisplay(Date date)
{
if (display_date==null)

View File

@ -71,6 +71,7 @@ public class SideBoxConferences implements ContentRender, ColorSelectors
public void renderHere(Writer out, RenderData rdat) throws IOException
{
String hilite = rdat.getStdColor(SIDEBOX_CONTENT_LINK);
if (hotlist.size()>0)
{ // display the list of conferences
out.write("<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=2>\n");
@ -82,10 +83,11 @@ public class SideBoxConferences implements ContentRender, ColorSelectors
String href = "confdisp?sig=" + conf.getEnclosingSIG().getSIGID() + "&conf=" + conf.getConfID();
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(SIDEBOX_CONTENT_FOREGROUND,2) + "<B><A HREF=\""
+ rdat.getEncodedServletPath(href) + "\">" + StringUtil.encodeHTML(conf.getName())
+ "</A></B> (" + StringUtil.encodeHTML(conf.getEnclosingSIG().getName()) + ")</FONT>\n");
+ "\" ALT=\"*\" WIDTH=14 HEIGHT=14 BORDER=0></TD>\n<TD ALIGN=LEFT CLASS=\"sidebox\">\n"
+ rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,2) + "<B><A HREF=\""
+ rdat.getEncodedServletPath(href) + "\"><FONT COLOR=\"" + hilite + "\">"
+ StringUtil.encodeHTML(conf.getName()) + "</FONT></A></B> ("
+ StringUtil.encodeHTML(conf.getEnclosingSIG().getName()) + ")</FONT>\n");
if (conf.anyUnread())
out.write("&nbsp;<A HREF=\"" + rdat.getEncodedServletPath(href + "&rnm=1") + "\"><IMG SRC=\""
+ rdat.getFullImagePath("tag_new.gif")
@ -104,7 +106,8 @@ public class SideBoxConferences implements ContentRender, ColorSelectors
if (uc.isLoggedIn())
{ // write the link at the end
out.write("<P>" + rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,1) + "<B>[ <A HREF=\""
+ rdat.getEncodedServletPath("settings?cmd=H") + "\">Manage</A> ]</B></FONT>");
+ rdat.getEncodedServletPath("settings?cmd=H") + "\"><FONT COLOR=\"" + hilite
+ "\">Manage</FONT></A> ]</B></FONT>");
} // end if

View File

@ -80,10 +80,10 @@ public class SideBoxSIGs implements ContentRender, ColorSelectors
SIGContext sig = (SIGContext)(it.next());
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(SIDEBOX_CONTENT_FOREGROUND,2) + "<B><A HREF=\""
+ rdat.getEncodedServletPath("sig/" + sig.getAlias()) + "\">"
+ StringUtil.encodeHTML(sig.getName()) + "</A></B></FONT>\n");
+ "\" ALT=\"*\" WIDTH=14 HEIGHT=14 BORDER=0></TD>\n<TD ALIGN=LEFT CLASS=\"sidebox\">\n"
+ "<A HREF=\"" + rdat.getEncodedServletPath("sig/" + sig.getAlias()) + "\">"
+ rdat.getStdFontTag(SIDEBOX_CONTENT_LINK,2) + "<B>" + StringUtil.encodeHTML(sig.getName())
+ "</B></FONT></A>\n");
if (sig.isAdmin())
out.write("&nbsp;<IMG SRC=\"" + rdat.getFullImagePath("tag_host.gif")
+ "\" ALT=\"Host!\" BORDER=0 WIDTH=40 HEIGHT=20>\n");
@ -100,9 +100,12 @@ public class SideBoxSIGs implements ContentRender, ColorSelectors
if (uc.isLoggedIn())
{ // write the two links at the end
String hilite = rdat.getStdColor(SIDEBOX_CONTENT_LINK);
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>");
+ rdat.getEncodedServletPath("settings?cmd=S") + "\"><FONT COLOR=\"" + hilite
+ "\">Manage</FONT></A> | <A HREF=\""
+ rdat.getEncodedServletPath("sigops?cmd=C") + "\"><FONT COLOR=\"" + hilite
+ "\">Create New</FONT></A> ]</B></FONT>");
} // end if

View File

@ -195,11 +195,11 @@ public class TopDisplay implements ContentRender, ColorSelectors
{ // 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=\"" + 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");
+ "\"><TD ALIGN=LEFT CLASS=\"sideboxtop\">\n"
+ rdat.getStdFontTag(SIDEBOX_TITLE_FOREGROUND,3) + "<B>"
+ StringUtil.encodeHTML(sideboxes[i].getPageTitle(rdat))
+ "</B></FONT>\n</TD></TR><TR VALIGN=TOP BGCOLOR=\""
+ rdat.getStdColor(SIDEBOX_CONTENT_BACKGROUND) + "\"><TD ALIGN=LEFT CLASS=\"sidebox\">\n");
// Fill in the sidebox by calling down to the base.
if (sideboxes[i] instanceof ContentRender)

View File

@ -21,10 +21,11 @@ import java.io.Writer;
import java.io.IOException;
import org.w3c.dom.*;
import com.silverwrist.util.*;
import com.silverwrist.venice.servlets.format.ColorSelectors;
import com.silverwrist.venice.servlets.format.ComponentRender;
import com.silverwrist.venice.servlets.format.RenderData;
abstract class LeftMenuItem implements ComponentRender
abstract class LeftMenuItem implements ComponentRender, ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
@ -68,7 +69,7 @@ abstract class LeftMenuItem implements ComponentRender
StringBuffer buf = new StringBuffer();
if (disabled)
buf.append("<FONT COLOR=\"#CCCCCC\">");
buf.append("<FONT COLOR=\"").append(rdat.getStdColor(CONTENT_DISABLED)).append("\">");
else
{ // write the <A> tag
buf.append("<A HREF=\"");
@ -76,14 +77,12 @@ abstract class LeftMenuItem implements ComponentRender
buf.append('"');
if (new_window)
buf.append(" TARGET=\"_blank\"");
buf.append('>');
buf.append("><FONT COLOR=\"").append(rdat.getStdColor(LEFT_LINK)).append("\">");
} // end else (writing <A> tag)
buf.append(text);
if (disabled)
buf.append("</FONT>");
else
buf.append(text).append("</FONT>");
if (!disabled)
buf.append("</A>");
buf.append("<BR>\n");
out.write(buf.toString());

View File

@ -32,7 +32,7 @@ System Administration Menu</A></FONT><P>
<%-- Display the search form --%>
<% if (rdat.useHTMLComments()) { %><!-- User Search Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="UF">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Users:</B></FONT><BR>
@ -59,11 +59,12 @@ System Administration Menu</A></FONT><P>
expression</OPTION>
</SELECT>
&nbsp;&nbsp;
<INPUT TYPE=TEXT NAME="term" SIZE=32 MAXLENGTH=255 VALUE="<%= data.getSearchTerm() %>"><BR>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</FORM>
</DIV></FORM>
<% List results = data.getResultsList(); %>
<% if (results!=null) { %>
@ -81,7 +82,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(ColorSelectors.CONTENT_FOREGROUND,3) %>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B>Search Results</B>
<% if (data.getFindCount()>0) { %>
@ -90,11 +91,11 @@ System Administration Menu</A></FONT><P>
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sysadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="UF">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
@ -115,7 +116,7 @@ System Administration Menu</A></FONT><P>
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</FORM>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
@ -127,7 +128,7 @@ System Administration Menu</A></FONT><P>
<TD ALIGN=CENTER WIDTH=14>
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
</TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<% UserFound uf = (UserFound)(results.get(i)); %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A><BR>
<%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,

View File

@ -29,6 +29,7 @@
<%= 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") %>">
<DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE=HIDDEN NAME="msg" VALUE="<%= data.getPostID() %>">
@ -36,5 +37,13 @@
File to attach: <INPUT TYPE="FILE" NAME="thefile"><BR>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_upload.gif") %>" NAME="upload" ALT="Upload"
WIDTH=80 HEIGHT=24 BORDER=0>
</DIV>
</FORM><P>
</FONT>

View File

@ -37,6 +37,7 @@
<HEAD>
<%= rdat.getTitleTag(basedat.getTitle(rdat)) %>
<%= rdat.getStdBaseFontTag(3) %>
<LINK REL="stylesheet" HREF="<%= rdat.getEncodedServletPath("stylesheet") %>" TYPE="text/css">
<% if (rdat.noSmartTags()) { %>
<META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE">
<% } // end if %>
@ -44,29 +45,29 @@
<BODY BGCOLOR="<%= rdat.getStdColor(ColorSelectors.FRAME_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE HEADER --><% } %>
<TABLE BORDER=0 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.TITLE_BACKGROUND) %>" WIDTH="100%"
<TABLE CLASS="tbar" BORDER=0 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.TITLE_BACKGROUND) %>" WIDTH="100%"
CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2>
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2 CLASS="tbar">
<% if (rdat.useHTMLComments()) { %><!-- Site logo --><% } %>
<%= rdat.getSiteImageTag(2,2) %>
</TD>
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2><%= header_font %><B>
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2 CLASS="tbar"><%= header_font %><B>
<% if (rdat.useHTMLComments()) { %><!-- Links to Front Page, Help, Find --><% } %>
<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=50% CELLPADDING=2>
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2 CLASS="tbar">
<% if (rdat.useHTMLComments()) { %><!-- Banner Ad --><% } %>
<% basedat.renderBannerAd(out,rdat); %>
</TD>
</TR>
<% if (rdat.useHTMLComments()) { %><!-- Login reminders --><% } %>
<TR VALIGN=MIDDLE><TD ALIGN=CENTER COLSPAN=3><%= header_font %>
<TR VALIGN=MIDDLE><TD ALIGN=CENTER COLSPAN=3 CLASS="tbar"><%= header_font %>
<% if (user.isLoggedIn()) { %>
You are logged in as <B><%= StringUtil.encodeHTML(user.getUserName()) %></B>
<% if (basedat.displayLoginLinks()) { %>
@ -97,16 +98,16 @@
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" 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><%= leftfont %>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><%= 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><%= leftfont %>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><%= leftfont %>
<% if (rdat.useHTMLComments()) { %><!-- fixed menu --><% } %>
<% basedat.renderFixedMenu(out,rdat); %>
</FONT></TD></TR>
@ -116,7 +117,8 @@
</TABLE>
</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<TD ALIGN=LEFT WIDTH="100%" CLASS="content"
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE CONTENT --><% } %>
<% basedat.renderContent(application,out,rdat); %>
<% if (rdat.useHTMLComments()) { %><!-- END PAGE CONTENT --><% } %>
@ -124,15 +126,19 @@
</TR>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar"
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" CLASS="footer"
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- PAGE FOOTER --><% } %>
<HR WIDTH="80%">
<% String qid = basedat.getPageQID(); %>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><%= smallfont %><%= rdat.getStockMessage("footer-text") %></FONT></TD>
<TD <% if (qid!=null) { %>ROWSPAN=2<% } %> ALIGN=LEFT>
<TD ALIGN=RIGHT CLASS="footer">
<%= smallfont %><%= rdat.getStockMessage("footer-text") %></FONT>
</TD>
<TD <% if (qid!=null) { %>ROWSPAN=2<% } %> ALIGN=LEFT CLASS="footer">
<A HREF="http://venice.sourceforge.net" TARGET="_blank"><IMG
SRC="<%= rdat.getFullImagePath("powered-by-venice.gif") %>" ALT="Powered by Venice"
WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0
@ -140,7 +146,7 @@
</TD>
</TR>
<% if (qid!=null) { %>
<TR VALIGN=TOP><TD ALIGN=RIGHT>
<TR VALIGN=TOP><TD ALIGN=RIGHT CLASS="footer">
<% if (rdat.useHTMLComments()) { %><!-- HITCOUNTER FOR QID "<%= qid %>" --><% } %>
<%-- Reserved for future use --%>
</TD></TR>

View File

@ -42,27 +42,37 @@
<% if (data.anyElements()) { %>
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TH ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B><U>User Name</U></B></FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>User Name</U></B>
</FONT></TH>
<% if (data.isPosterReport()) { %>
<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>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Posted</U></B>
</FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Read</U></B>
</FONT></TH>
<% } else { %>
<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>
<TH ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><U>Last Read</U></B>
</FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastWrite())) %>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (usr.getLastRead()==null) { %>
Never
<% } else { %>
@ -70,10 +80,10 @@
<% } // end if %>
</FONT></TD>
<% } else { %>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(usr.getLastRead())) %>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (usr.getLastWrite()==null) { %>
Never
<% } else { %>

View File

@ -33,7 +33,7 @@
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find users in SIG
"<%= data.getSIGName() %>":</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
@ -60,11 +60,12 @@
<% if (data.searchModeIs(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
<INPUT TYPE=TEXT NAME="term" SIZE=32 MAXLENGTH=255 VALUE="<%= data.getSearchTerm() %>"><BR>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</FORM>
</DIV></FORM>
<% if (data.displayList()) { %>
<% int dcount = data.getSize(); %>
@ -86,7 +87,7 @@
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The search results header --%>
<FONT SIZE=+1><B>Search Results:</B></FONT>
<% if (data.getFindCount()>0) { %>
@ -94,11 +95,11 @@
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
@ -121,14 +122,14 @@
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</FORM>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<% } // end if %>
<%-- Display the results of the search --%>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE=HIDDEN NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
@ -139,10 +140,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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% data.outputDropDown(out,uf.getUID(),uf.getLevel()); %>
</FONT></TD>
</TR>
@ -150,5 +151,5 @@
</TABLE><BR CLEAR=LEFT>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_update.gif") %>" NAME="update" ALT="Update"
WIDTH=80 HEIGHT=24 BORDER=0>
</FORM><BR>
</DIV></FORM><BR>
<% } // end if %>

View File

@ -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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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,7 +128,7 @@
<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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to delete the specified conference. You will be prompted to confirm this
action.
</FONT></TD>

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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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)) %>
@ -61,7 +61,7 @@
<EM>No conferences found in this SIG.</EM><BR>
<% } // end if (conferences present) %>
<P>
<DIV ALIGN="LEFT">
<DIV ALIGN="LEFT" CLASS="content">
<% 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

View File

@ -68,7 +68,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<%-- Display the search form --%>
<% if (rdat.useHTMLComments()) { %><!-- Find Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayOption() %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
@ -117,11 +117,12 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
expression</OPTION>
</SELECT>
<% if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %><BR><% } else { %>&nbsp;&nbsp;<% } %>
<INPUT TYPE=TEXT NAME="term" SIZE=32 MAXLENGTH=255 VALUE="<%= data.getSearchTerm() %>"><BR>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</FORM>
</DIV></FORM>
<%-- Display the current category --%>
<% String a_head, a_tail; // used for formatting category display %>
@ -169,7 +170,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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%
CategoryDescriptor c = (CategoryDescriptor)(it.next());
a_head = "<A HREF=\"" + data.getCatJumpLink(rdat,c.getLinkedCategoryID()) + "\">";
@ -200,7 +201,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(ColorSelectors.CONTENT_FOREGROUND,3) %>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= 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) { %>
@ -209,11 +210,11 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayOption() %>">
<% if (cat!=null) { %><INPUT TYPE=HIDDEN NAME="cat" VALUE="<%= cat.getCategoryID() %>"><% } %>
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
@ -235,7 +236,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</FORM>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
@ -247,7 +248,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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% Object item = results.get(i); %>
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
<%

View File

@ -56,7 +56,7 @@
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="[Remove]" BORDER=0 WIDTH=16
HEIGHT=16></A>
</TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<B><%= StringUtil.encodeHTML(conf.getName()) %></B>
(<%= StringUtil.encodeHTML(conf.getEnclosingSIG().getName()) %>)
</FONT></TD>
@ -68,7 +68,7 @@
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_down.gif") %>" ALT="[Down]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to move the specified conference down in your hotlist.
</FONT></TD>
</TR>
@ -76,7 +76,7 @@
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_up.gif") %>" ALT="[Up]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to move the specified conference up in your hotlist.
</FONT></TD>
</TR>
@ -84,7 +84,7 @@
<TD ALIGN=CENTER WIDTH=16>
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="[Remove]" BORDER=0 WIDTH=16 HEIGHT=16>
</TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
Click this symbol to remove the specified conference from your hotlist.
</FONT></TD>
</TR>

View File

@ -27,26 +27,31 @@
%>
<% if (rdat.useHTMLComments()) { %><!-- Send invitation to SIG #<%= data.getSIGID() %> --><% } %>
<% rdat.writeContentHeader(out,"Send SIG Invitation:",data.getSIGName()); %>
<FORM METHOD=POST ACTION="<%= rdat.getEncodedServletPath("sigops") %>">
<FORM METHOD=POST ACTION="<%= rdat.getEncodedServletPath("sigops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="I">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE>
<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>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Send to:&nbsp;</FONT>
</TD>
<TD ALIGN=LEFT CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="addr" SIZE=65
MAXLENGTH=255 VALUE=""></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>
<TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= 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>
<TD ALIGN=LEFT COLSPAN=2 CLASS="cinput"><TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA></TD>
</TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel"
ALT="Cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</FORM>
</FORM></DIV>

View File

@ -44,9 +44,11 @@
<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(ColorSelectors.CONTENT_FOREGROUND,2) %><%= StringUtil.encodeHTML(name) %></FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%= StringUtil.encodeHTML(name) %>
</FONT></TD>
<TD ALIGN=LEFT>&nbsp;&nbsp;&nbsp;&nbsp;</TD>
<TD ALIGN=LEFT>
<TD ALIGN=LEFT CLASS="content">
<% if (data.canRemoveAliases()) { %>
<A HREF="<%= rdat.getEncodedServletPath("confops?" + data.getLocator() + "&cmd=A&rem="
+ URLEncoder.encode(name)) %>"><IMG SRC="<%= rdat.getFullImagePath("bn_remove.gif") %>"
@ -58,13 +60,14 @@
</TABLE><P>
<FONT SIZE=+1><B>Add New Alias:</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="A">
<INPUT TYPE="TEXT" NAME="alias" SIZE=32 MAXLENGTH=64 VALUE="">&nbsp;
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="alias" SIZE=32 MAXLENGTH=64
VALUE=""></SPAN>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_add.gif") %>" NAME="add" ALT="Add"
WIDTH=80 HEIGHT=24 BORDER=0>
</FORM>
</DIV></FORM>
</FONT>

View File

@ -33,17 +33,18 @@
</FONT><P>
<% if (rdat.useHTMLComments()) { %><!-- Set Default Pseud Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<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(ColorSelectors.CONTENT_FOREGROUND,2) %>
Set default pseud for conference:
<INPUT TYPE="TEXT" NAME="pseud" VALUE="<%= data.getDefaultPseud() %>" SIZE=37 MAXLENGTH=255>&nbsp;
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" VALUE="<%= data.getDefaultPseud() %>"
SIZE=37 MAXLENGTH=255></SPAN>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_set.gif") %>" NAME="set" ALT="Set"
WIDTH=80 ALIGN=BOTTOM HEIGHT=24 BORDER=0>
</FONT>
</FORM><P>
</DIV></FORM><P>
<% if (rdat.useHTMLComments()) { %><!-- Fixseen Link --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>

View File

@ -41,31 +41,35 @@
<P><PRE><%= rdat.rewritePostData(data.getPreviewData()) %></PRE><HR>
<% } // end if %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("confops") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="T">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>New topic name:</FONT><BR>
<INPUT TYPE="TEXT" NAME="title" SIZE=37 MAXLENGTH=128 VALUE="<%= data.getTopicName() %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="title" SIZE=37 MAXLENGTH=128
VALUE="<%= data.getTopicName() %>"></SPAN>
</TD></TR>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getPseud() %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getPseud() %>"></SPAN>
<%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51><%= data.getPostBoxData() %></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
@ -76,4 +80,4 @@
WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</FORM>
</DIV></FORM>

View File

@ -26,16 +26,20 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% if (rdat.useHTMLComments()) { %><!-- <%= data.getIdentifyingData() %> --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,5) %><B><%= data.getTopicName() %></B></FONT>&nbsp;&nbsp;
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,3) %><B>
<SPAN CLASS="chead1"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_HEADER,5) %><B>
<%= data.getTopicName() %>
</B></FONT></SPAN>
&nbsp;&nbsp;
<SPAN CLASS="chead2"><%= 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()) %>
</B></FONT>
</B></FONT></SPAN>
<HR ALIGN=LEFT SIZE=2 WIDTH="90%" NOSHADE>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>
<TD NOWRAP ALIGN=LEFT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Topic user controls section --><% } %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getConfLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_topic_list.gif") %>" ALT="Topic List" WIDTH=80 HEIGHT=24
@ -65,7 +69,7 @@
<% } // end if %>
<% } // end if %>
</TD>
<TD NOWRAP ALIGN=RIGHT>
<TD NOWRAP ALIGN=RIGHT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Topic admin controls section --><% } %>
<% if (data.canFreezeTopic()) { %>
&nbsp;
@ -101,18 +105,19 @@
</TR>
<TR><TD COLSPAN=2>&nbsp;</TD></TR>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>
<TD NOWRAP ALIGN=LEFT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Go box --><% } %>
<FORM METHOD="GET" ACTION="<%= rdat.getEncodedServletPath("confdisp") %>">
<FORM METHOD="GET" ACTION="<%= rdat.getEncodedServletPath("confdisp") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
<INPUT TYPE="TEXT" NAME="pxg" VALUE="" SIZE=6 MAXLENGTH=13>&nbsp;
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pxg" VALUE="" SIZE=6
MAXLENGTH=13></SPAN>&nbsp;
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_go.gif") %>" NAME="Go" ALT="Go"
ALIGN=BOTTOM WIDTH=80 HEIGHT=24 BORDER=0>
</FORM>
</DIV></FORM>
</TD>
<TD NOWRAP ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD NOWRAP ALIGN=RIGHT CLASS="content"><%= 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>
@ -153,7 +158,7 @@
<% if (can_line && data.emitBreakLinePoint(msg.getPostNumber())) { %><HR WIDTH="70%"><% } %>
<% if (data.showAdvanced()) { %>
<BR>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=TOP><TD NOWRAP ALIGN=LEFT>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=TOP><TD NOWRAP ALIGN=LEFT CLASS="content">
<% } // end if %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
@ -179,23 +184,23 @@
<% } // end if %>
</FONT><P><FONT COLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_FOREGROUND) %>">
<% if (msg.isScribbled()) { %>
<TT><EM><B>
<SPAN CLASS="post"><TT><EM><B>
(Scribbled by <%= data.getMessageBodyText(msg) %> on
<%= rdat.formatDateForDisplay(msg.getScribbleDate()) %>)
</B></EM></TT><P>
</B></EM></TT></SPAN><P>
<% } else if (msg.isHidden() && !(data.showAdvanced())) { %>
<TT><EM><B>
<SPAN CLASS="post"><TT><EM><B>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
+ msg.getPostNumber()) %>">(Hidden
Message: <%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)</A>
</B></EM></TT><P>
</B></EM></TT></SPAN><P>
<% } else { %>
<PRE><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<PRE CLASS="post"><%= 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>
</TD><TD NOWRAP ALIGN=RIGHT CLASS="content">
<% if (!(msg.isScribbled())) { %>
<% if (msg.canHide()) { %>
<% if (msg.isHidden()) { %>
@ -231,8 +236,8 @@
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>&nbsp;</TD>
<TD NOWRAP ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (rdat.useHTMLComments()) { %><!-- Upper navigation linkset --><% } %>
<TD NOWRAP ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% if (rdat.useHTMLComments()) { %><!-- Lower navigation linkset --><% } %>
<A NAME="bottom">[</A>&nbsp;
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&p1=0&p2=-1") %>">View All</A>
<% if (data.canScrollUp()) { %>
@ -256,7 +261,7 @@
</FONT></TD>
</TR>
<TR VALIGN=BOTTOM>
<TD NOWRAP ALIGN=LEFT>
<TD NOWRAP ALIGN=LEFT CLASS="content">
<% if (rdat.useHTMLComments()) { %><!-- Topic user controls section --><% } %>
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getConfLocator()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_topic_list.gif") %>" ALT="Topic List" WIDTH=80 HEIGHT=24
@ -291,10 +296,11 @@
</TABLE>
<% if (data.displayPostBox()) { %>
<HR><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Post Message in
&quot;<%= data.getTopicName() %>&quot;:</B></FONT>
<HR><SPAN STYLE="font-size: 14pt;"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<B>Post Message in &quot;<%= data.getTopicName() %>&quot;:</B>
</FONT></SPAN>
<BR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
@ -303,21 +309,24 @@
<% } // end if %>
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getDefaultPseud() %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getDefaultPseud() %>"></SPAN>
<%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
@ -333,11 +342,11 @@
NAME="posttopics" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</FORM>
</DIV></FORM>
<% } else if (data.isTopicArchived()) { %>
<DIV ALIGN=CENTER><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is an
<DIV ALIGN=CENTER CLASS="content"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is a
<DIV ALIGN=CENTER CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %><B>This is a
<EM>Frozen</EM> Topic</B></DIV>
<% } // end if %>

View File

@ -35,9 +35,9 @@
There were <%= data.getNumSpellingErrors() %> spelling errors in your post.
<% } // end if %>
</B></FONT>
<P><PRE><%= rdat.rewritePostData(data.getPreviewData()) %></PRE><HR>
<P><PRE CLASS="post"><%= rdat.rewritePostData(data.getPreviewData()) %></PRE><HR>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
@ -49,22 +49,25 @@
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<% } // end if %>
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getPseud() %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getPseud() %>"></SPAN>
<%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51><%= data.getBodyText() %></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
@ -83,4 +86,4 @@
NAME="cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</FORM>
</DIV></FORM>

View File

@ -37,18 +37,18 @@
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=MIDDLE>
<TH ALIGN=LEFT><%= stdfont %><B><U>#</U></B></FONT></TH>
<TH ALIGN=LEFT><%= stdfont %><B><U>Topic Name</U></B></FONT></TH>
<TH ALIGN=LEFT COLSPAN=2><%= stdfont %><B><U>Reports</U></B></FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= stdfont %><B><U>#</U></B></FONT></TH>
<TH ALIGN=LEFT CLASS="content"><%= stdfont %><B><U>Topic Name</U></B></FONT></TH>
<TH ALIGN=LEFT CLASS="content" COLSPAN=2><%= stdfont %><B><U>Reports</U></B></FONT></TH>
</TR>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT>&nbsp;</TD>
<TD ALIGN=LEFT><%= stdfont %>(Entire conference)</FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>(Entire conference)</FONT></TD>
<% partial = "confops?" + data.getLocator() + "&cmd="; %>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RP") %>">Posters</A>
</FONT></TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RR") %>">Readers/Lurkers</A>
</FONT></TD>
</TR>
@ -60,12 +60,12 @@
partial = "confops?" + data.getLocator() + "&top=" + topic.getTopicNumber() + "&cmd=";
%>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT><%= stdfont %><%= topic.getTopicNumber() %></FONT></TD>
<TD ALIGN=LEFT><%= stdfont %><%= topic.getName() %></FONT></TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %><%= topic.getTopicNumber() %></FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %><%= topic.getName() %></FONT></TD>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RP") %>">Posters</A>
</FONT></TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(partial + "RR") %>">Readers/Lurkers</A>
</FONT></TD>
</TR>

View File

@ -32,7 +32,7 @@
</FONT><P>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %><B>Find Users:</B></FONT><P>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="M">
<INPUT TYPE="HIDDEN" NAME="ofs" VALUE="0">
@ -58,11 +58,12 @@
<% if (data.searchModeIs(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
expression</OPTION>
</SELECT>
<INPUT TYPE=TEXT NAME="term" SIZE=32 MAXLENGTH=255 VALUE="<%= data.getSearchTerm() %>"><BR>
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
VALUE="<%= data.getSearchTerm() %>"></SPAN><BR>
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
</FONT>
</FORM>
</DIV></FORM>
<% if (data.displayList()) { %>
<% int dcount = data.getSize(); %>
@ -84,7 +85,7 @@
} // end if
%>
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<%-- The search results header --%>
<FONT SIZE=+1><B>Search Results:</B></FONT>
<% if (data.getFindCount()>0) { %>
@ -92,11 +93,11 @@
<%= data.getFindCount() %>)
<% } else { %>(None)<% } %>
</FONT></TD>
<TD WIDTH="50%" ALIGN=RIGHT>
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
<% if (go_next || (data.getOffset()>0)) { %>
<%-- The navigational form that allows us to page through the results --%>
<% if (rdat.useHTMLComments()) { %><!-- Navigational Form --><% } %>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
@ -118,14 +119,14 @@
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
<% } // end if %>
</FORM>
</DIV></FORM>
<% } else { %>&nbsp;<% } %>
</TD>
</TR></TABLE><BR>
<% } // end if %>
<%-- Display the results of the search --%>
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("sigadmin") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE=HIDDEN NAME="cmd" VALUE="M">
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
@ -135,10 +136,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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% data.outputDropDown(out,uf.getUID(),uf.getLevel()); %>
</FONT></TD>
</TR>
@ -146,5 +147,5 @@
</TABLE><BR CLEAR=LEFT>
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_update.gif") %>" NAME="update" ALT="Update"
WIDTH=80 HEIGHT=24 BORDER=0>
</FORM><BR>
</DIV></FORM><BR>
<% } // end if %>

View File

@ -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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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

@ -42,7 +42,7 @@
HEIGHT=16></A>
<% } else { %>&nbsp;<% } %>
</TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + sig.getAlias()) %>"><%= StringUtil.encodeHTML(sig.getName()) %></A>
</FONT></TD>
</TR>
@ -54,7 +54,7 @@
<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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Click this symbol to unjoin the specified SIG.
</FONT></TD>
</TR>

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(ColorSelectors.CONTENT_FOREGROUND,1) %>
<TD ALIGN=LEFT CLASS="c2"><%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= 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

@ -49,12 +49,12 @@
</EM>)
</FONT><P>
<% if (msg.isScribbled()) { %>
<TT><EM><B>
<SPAN CLASS="post"><TT><EM><B>
(Scribbled by <%= data.getMessageBodyText(msg) %> on
<%= rdat.formatDateForDisplay(msg.getScribbleDate()) %>)
</B></EM></TT>
</B></EM></TT></SPAN>
<% } else { %>
<PRE><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<PRE CLASS="post"><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
<% } // end if %>
<% } // end while %>
<% if (rdat.useHTMLComments()) { %><!-- End Slipped Messages --><% } %>
@ -62,7 +62,7 @@
<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") %>">
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("post") %>"><DIV CLASS="content">
<INPUT TYPE="HIDDEN" NAME="sig" VALUE="<%= data.getSIGID() %>">
<INPUT TYPE="HIDDEN" NAME="conf" VALUE="<%= data.getConfID() %>">
<INPUT TYPE="HIDDEN" NAME="top" VALUE="<%= data.getTopicNumber() %>">
@ -72,22 +72,25 @@
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Your name/header:</FONT><BR>
<INPUT TYPE="TEXT" NAME="pseud" SIZE=37 MAXLENGTH=255 VALUE="<%= data.getPseud() %>">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" AME="pseud" SIZE=37 MAXLENGTH=255
VALUE="<%= data.getPseud() %>"></SPAN>
<%= 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(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT></TD>
<TD ALIGN=RIGHT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Message:</FONT>
</TD>
<TD ALIGN=RIGHT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<A HREF="<%= rdat.getStaticFilePath("html-reference.html") %>" TARGET="_blank">HTML Guide</A>
</FONT></TD>
</TR>
<TR><TD ALIGN=LEFT COLSPAN=2>
<TR><TD ALIGN=LEFT COLSPAN=2 CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=SOFT ROWS=7 COLS=51><%= data.getBodyText() %></TEXTAREA>
</TD></TR>
<TR><TD ALIGN=CENTER COLSPAN=2>
<TR><TD ALIGN=CENTER COLSPAN=2 CLASS="content">
<INPUT TYPE="IMAGE" SRC="<%= rdat.getFullImagePath("bn_preview.gif") %>" ALT="Preview" NAME="preview"
WIDTH=80 HEIGHT=24 BORDER=0>
&nbsp;
@ -106,4 +109,4 @@
NAME="cancel" WIDTH=80 HEIGHT=24 BORDER=0>
</TD></TR>
</TABLE>
</FORM>
</DIV></FORM>

View File

@ -31,7 +31,7 @@
<% if (rdat.useHTMLComments()) { %><!-- Topic list for conf #<%= data.getConfID() %> --><% } %>
<% rdat.writeContentHeader(out,"Topics in " + data.getConfName(),null); %>
<%= stdfont %>
<DIV ALIGN="LEFT">
<DIV ALIGN="LEFT" CLASS="content">
<A HREF="<%= rdat.getEncodedServletPath("confops?sig=" + data.getSIGID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_conference_list.gif") %>" ALT="Conference List" WIDTH=80 HEIGHT=24
BORDER=0></A>&nbsp;
@ -57,31 +57,31 @@
<% if (data.anyTopics()) { %>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=3>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH="1%" NOWRAP><%= stdfont %>
<TD ALIGN=LEFT WIDTH="1%" CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_NUMBER) ? -ConferenceContext.SORT_NUMBER
: ConferenceContext.SORT_NUMBER); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">#</A></B>
</FONT></TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_NAME) ? -ConferenceContext.SORT_NAME
: ConferenceContext.SORT_NAME); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Topic Name</A></B>
</FONT></TD>
<TD ALIGN=RIGHT NOWRAP><%= stdfont %>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_UNREAD) ? -ConferenceContext.SORT_UNREAD
: ConferenceContext.SORT_UNREAD); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">New</A></B>
</FONT></TD>
<TD ALIGN=RIGHT NOWRAP><%= stdfont %>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_TOTAL) ? -ConferenceContext.SORT_TOTAL
: ConferenceContext.SORT_TOTAL); %>
<B><A HREF="<%= rdat.getEncodedServletPath(tmp) %>">Total</A></B>
</FONT></TD>
<TD ALIGN=LEFT NOWRAP><%= stdfont %>
<TD ALIGN=LEFT CLASS="content" NOWRAP><%= stdfont %>
<% tmp = self + "&sort="
+ (data.isSort(ConferenceContext.SORT_DATE) ? -ConferenceContext.SORT_DATE
: ConferenceContext.SORT_DATE); %>
@ -96,10 +96,10 @@
tmp = self + "&top=" + topic.getTopicNumber() + "&rnm=1";
%>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH="1%" NOWRAP><%= stdfont %>
<TD ALIGN=LEFT WIDTH="1%" CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getTopicNumber() %></A>&nbsp;&nbsp;
</FONT></TD>
<TD ALIGN=LEFT><%= stdfont %>
<TD ALIGN=LEFT CLASS="content"><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getName() %></A>
<% if (topic.isArchived() && !(data.isView(ConferenceContext.DISPLAY_ARCHIVED))) { %>
<EM>(archived)</EM>
@ -107,14 +107,14 @@
<EM>(frozen)</EM>
<% } // end if %>
</FONT></TD>
<TD ALIGN=RIGHT NOWRAP><%= stdfont %>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= topic.getUnreadMessages() %></A>
</FONT></TD>
<TD ALIGN=RIGHT NOWRAP><%= stdfont %>
<TD ALIGN=RIGHT CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(self + "&top=" + topic.getTopicNumber()
+ "&p1=0&p2=-1") %>"><%= topic.getTotalMessages() %></A>
</FONT></TD>
<TD ALIGN=LEFT NOWRAP><%= stdfont %>
<TD ALIGN=LEFT CLASS="content" NOWRAP><%= stdfont %>
<A HREF="<%= rdat.getEncodedServletPath(tmp) %>"><%= rdat.formatDateForDisplay(topic.getLastUpdateDate()) %></A>
</FONT></TD>
</TR>
@ -154,7 +154,7 @@
%>
<P>
<% } // end if %>
<DIV ALIGN="CENTER">
<DIV ALIGN="CENTER" CLASS="content">
<B>[</B>
<% if (data.isView(ConferenceContext.DISPLAY_NEW)) { %>
<B>New</B>

View File

@ -26,8 +26,9 @@
RenderData rdat = RenderConfig.createRenderData(application,request,response);
%>
<% rdat.writeContentHeader(out,"Change User Photo",null); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("userphoto") %>">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<%= rdat.getEncodedServletPath("userphoto") %>">
<DIV CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<INPUT TYPE=HIDDEN NAME="tgt" VALUE="<%= data.getTarget() %>">
<%= data.getPhotoTag(rdat) %>
New user photo:<BR>
@ -36,7 +37,10 @@
WIDTH=80 HEIGHT=24 BORDER=0>&nbsp;
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>" NAME="cancel" ALT="Cancel"
WIDTH=80 HEIGHT=24 BORDER=0><BR CLEAR=LEFT>
</FORM>
</FONT>
</FONT></DIV>
</FORM>

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(ColorSelectors.CONTENT_FOREGROUND,1) %>
<TD ALIGN=LEFT CLASS="c2"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>
<%= data.getPhotoTag(rdat) %><BR CLEAR=LEFT><BR>
<% Date tmpd = prof.getCreateDate(); %>
@ -48,7 +48,7 @@
<% } // end if %>
</FONT></TD>
<TD ALIGN=LEFT><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<B><%= StringUtil.encodeHTML(data.getFullName()) %></B><BR>
<% tmp = prof.getEmail(); %>
@ -82,9 +82,11 @@
<% tmp = prof.getDescription(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
<TR VALIGN=TOP><TD ALIGN=CENTER COLSPAN=2><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<TR VALIGN=TOP><TD ALIGN=CENTER CLASS="content" COLSPAN=2>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<EM><%= StringUtil.encodeHTML(tmp) %></EM>
</FONT></TD></TR>
</FONT>
</TD></TR>
<% } // end if %>
</TABLE>
@ -95,14 +97,15 @@
<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>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content">
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>Subject: </FONT>
<INPUT TYPE="TEXT" NAME="subj" SIZE=65 MAXLENGTH=255 VALUE="">
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="subj" SIZE=65 MAXLENGTH=255
VALUE=""></SPAN>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content">
<INPUT TYPE=IMAGE SRC="<%= rdat.getFullImagePath("bn_send_email.gif") %>" NAME="send"
ALT="Send E-Mail" WIDTH=80 HEIGHT=24 BORDER=0>
</TR>