2001-01-31 13:55:37 -07:00
|
|
|
<%--
|
|
|
|
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.
|
|
|
|
|
2001-02-10 00:20:27 -07:00
|
|
|
The Original Code is the Venice Web Communities System.
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
|
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
|
|
|
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
--%>
|
|
|
|
<%@ page import = "java.net.URLEncoder" %>
|
|
|
|
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.core.*" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
|
|
|
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
|
|
|
<%
|
2001-02-10 00:20:27 -07:00
|
|
|
BaseJSPData basedat = BaseJSPData.retrieve(request);
|
|
|
|
Variables.failIfNull(basedat);
|
2001-01-31 13:55:37 -07:00
|
|
|
UserContext user = Variables.getUserContext(application,request,session);
|
|
|
|
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
2001-10-22 16:11:58 -06:00
|
|
|
String header_font = rdat.getStdFontTag(ColorSelectors.TITLE_FOREGROUND,3);
|
2001-10-31 10:51:29 -07:00
|
|
|
String header_link_hilite = rdat.getStdFontTag(ColorSelectors.TITLE_LINK,3);
|
2001-10-22 16:11:58 -06:00
|
|
|
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
|
|
|
|
String leftfont = rdat.getStdFontTag(ColorSelectors.LEFT_FOREGROUND,2);
|
|
|
|
String smallfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1);
|
2001-04-10 23:42:12 -06:00
|
|
|
String partial_tgt, foo;
|
2001-01-31 13:55:37 -07:00
|
|
|
%>
|
|
|
|
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
2001-02-10 00:20:27 -07:00
|
|
|
<%= rdat.getTitleTag(basedat.getTitle(rdat)) %>
|
2001-03-25 01:10:07 -07:00
|
|
|
<%= rdat.getStdBaseFontTag(3) %>
|
2001-10-31 19:12:51 -07:00
|
|
|
<% if (rdat.useStyleSheet()) { %>
|
|
|
|
<LINK REL="stylesheet" HREF="<%= rdat.getEncodedServletPath("stylesheet") %>" TYPE="text/css">
|
|
|
|
<% } // end if %>
|
2001-06-19 22:08:34 -06:00
|
|
|
<% if (rdat.noSmartTags()) { %>
|
|
|
|
<META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE">
|
|
|
|
<% } // end if %>
|
2001-01-31 13:55:37 -07:00
|
|
|
</HEAD>
|
|
|
|
|
2001-10-22 16:11:58 -06:00
|
|
|
<BODY BGCOLOR="<%= rdat.getStdColor(ColorSelectors.FRAME_BACKGROUND) %>">
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE HEADER --><% } %>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TABLE CLASS="tbar" BORDER=0 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.TITLE_BACKGROUND) %>" WIDTH="100%"
|
2001-10-22 16:11:58 -06:00
|
|
|
CELLPADDING=2 CELLSPACING=0>
|
2001-04-10 23:42:12 -06:00
|
|
|
<TR VALIGN=MIDDLE>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2 CLASS="tbar">
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- Site logo --><% } %>
|
|
|
|
<%= rdat.getSiteImageTag(2,2) %>
|
|
|
|
</TD>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2 CLASS="tbar"><%= header_font %><B>
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- Links to Front Page, Help, Find --><% } %>
|
2001-10-31 10:51:29 -07:00
|
|
|
<A CLASS="tbar" HREF="<%= rdat.getEncodedServletPath("top") %>"><%= header_link_hilite %>Front Page</FONT></A><P>
|
|
|
|
<A CLASS="tbar" HREF="/TODO"><%= header_link_hilite %>Help</FONT></A> |
|
|
|
|
<A CLASS="tbar" HREF="<%= rdat.getEncodedServletPath("find") %>"><%= header_link_hilite %>Find</FONT></A>
|
2001-04-10 23:42:12 -06:00
|
|
|
</B></FONT></TD>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2 CLASS="tbar">
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- Banner Ad --><% } %>
|
2001-04-19 01:24:25 -06:00
|
|
|
<% basedat.renderBannerAd(out,rdat); %>
|
2001-04-10 23:42:12 -06:00
|
|
|
</TD>
|
|
|
|
</TR>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- Login reminders --><% } %>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TR VALIGN=MIDDLE><TD ALIGN=CENTER COLSPAN=3 CLASS="tbar"><%= header_font %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (user.isLoggedIn()) { %>
|
|
|
|
You are logged in as <B><%= StringUtil.encodeHTML(user.getUserName()) %></B>
|
|
|
|
<% if (basedat.displayLoginLinks()) { %>
|
2001-04-10 23:42:12 -06:00
|
|
|
<%
|
|
|
|
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
|
|
|
|
foo = rdat.getEncodedServletPath(partial_tgt + "L");
|
|
|
|
%>
|
2001-10-31 10:51:29 -07:00
|
|
|
- <A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Log Out</FONT></A>
|
2001-04-10 23:42:12 -06:00
|
|
|
<% foo = rdat.getEncodedServletPath(partial_tgt + "P"); %>
|
2001-10-31 10:51:29 -07:00
|
|
|
| <A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Profile</FONT></A>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<% } else { %>
|
|
|
|
You are not logged in
|
|
|
|
<% if (basedat.displayLoginLinks()) { %>
|
2001-04-10 23:42:12 -06:00
|
|
|
<%
|
|
|
|
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
|
|
|
|
foo = rdat.getEncodedServletPath(partial_tgt + "L");
|
|
|
|
%>
|
2001-10-31 10:51:29 -07:00
|
|
|
- <A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Log In</FONT></A>
|
2001-04-10 23:42:12 -06:00
|
|
|
<% foo = rdat.getEncodedServletPath(partial_tgt + "C"); %>
|
2001-10-31 10:51:29 -07:00
|
|
|
| <A CLASS="tbar" HREF="<%= foo %>"><%= header_link_hilite %>Create Account</FONT></A>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } // end if %>
|
|
|
|
<% } // end if %>
|
2001-04-10 23:42:12 -06:00
|
|
|
</FONT></TD></TR>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-04-10 23:42:12 -06:00
|
|
|
</TABLE>
|
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- END PAGE HEADER --><% } %>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-04-10 23:42:12 -06:00
|
|
|
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
|
|
|
|
<TR VALIGN=TOP>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">
|
2001-10-22 16:11:58 -06:00
|
|
|
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- BEGIN LEFT SIDEBAR --><% } %>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><%= leftfont %>
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- variable menu --><% } %>
|
|
|
|
<% basedat.renderMenu(session,out,rdat); %>
|
|
|
|
</FONT></TD></TR>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-04-10 23:42:12 -06:00
|
|
|
<TR VALIGN=TOP><TD VALIGN=LEFT> </TD></TR>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><%= leftfont %>
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- fixed menu --><% } %>
|
|
|
|
<% basedat.renderFixedMenu(out,rdat); %>
|
|
|
|
</FONT></TD></TR>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- END LEFT SIDEBAR --><% } %>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-04-10 23:42:12 -06:00
|
|
|
</TABLE>
|
|
|
|
</TD>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=LEFT WIDTH="100%" CLASS="content"
|
|
|
|
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE CONTENT --><% } %>
|
|
|
|
<% basedat.renderContent(application,out,rdat); %>
|
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- END PAGE CONTENT --><% } %>
|
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar"
|
|
|
|
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>"> </TD>
|
|
|
|
<TD ALIGN=LEFT WIDTH="100%" CLASS="footer"
|
|
|
|
BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
|
2001-04-10 23:42:12 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- PAGE FOOTER --><% } %>
|
|
|
|
<HR WIDTH="80%">
|
2001-10-23 15:42:29 -06:00
|
|
|
<% String qid = basedat.getPageQID(); %>
|
|
|
|
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
|
|
|
|
<TR VALIGN=TOP>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=RIGHT CLASS="footer">
|
|
|
|
<%= smallfont %><%= rdat.getStockMessage("footer-text") %></FONT>
|
|
|
|
</TD>
|
|
|
|
<TD <% if (qid!=null) { %>ROWSPAN=2<% } %> ALIGN=LEFT CLASS="footer">
|
2001-10-23 15:42:29 -06:00
|
|
|
<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
|
|
|
|
HSPACE=0 VSPACE=0></A>
|
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
<% if (qid!=null) { %>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TR VALIGN=TOP><TD ALIGN=RIGHT CLASS="footer">
|
2001-10-23 15:42:29 -06:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- HITCOUNTER FOR QID "<%= qid %>" --><% } %>
|
|
|
|
<%-- Reserved for future use --%>
|
|
|
|
</TD></TR>
|
|
|
|
<% } // end if %>
|
|
|
|
</TABLE>
|
2001-04-10 23:42:12 -06:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2001-01-31 13:55:37 -07:00
|
|
|
</TABLE>
|
2001-04-10 23:42:12 -06:00
|
|
|
|
2001-01-31 13:55:37 -07:00
|
|
|
</BODY>
|
|
|
|
</HTML>
|