*** empty log message ***
This commit is contained in:
130
web/format/base.jsp
Normal file
130
web/format/base.jsp
Normal file
@@ -0,0 +1,130 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.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.*" %>
|
||||
<%!
|
||||
|
||||
private static void renderMenu(HttpSession session, java.io.Writer out, RenderData rdat) throws java.io.IOException
|
||||
{
|
||||
ContentRender menu = Variables.getMenu(session);
|
||||
if (menu==null)
|
||||
menu = new MenuTop();
|
||||
menu.renderHere(out,rdat);
|
||||
|
||||
} // end renderMenu
|
||||
|
||||
%>
|
||||
<%
|
||||
UserContext user = Variables.getUserContext(application,request,session);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
BaseJSPData basedat = BaseJSPData.retrieve(request);
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<%= rdat.getTitleTag(basedat.getTitle()) %>
|
||||
</HEAD>
|
||||
|
||||
<BODY BGCOLOR="#9999FF">
|
||||
<TABLE ALIGN=LEFT BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE HEADER --><% } %>
|
||||
<TR VALIGN=TOP BGCOLOR="#6666CC"><TD ALIGN=CENTER>
|
||||
<TABLE ALIGN=CENTER WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=MIDDLE>
|
||||
<TD ALIGN=LEFT WIDTH=150>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Site logo --><% } %>
|
||||
<%= rdat.getSiteImageTag(2,2) %>
|
||||
</TD>
|
||||
|
||||
<TD ALIGN=LEFT WIDTH=150><%= rdat.getStdFontTag("white",3) %><B>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Links to Front Page, Help, Find --><% } %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("top") %>">Front Page</A><P>
|
||||
<A HREF="/TODO">Help</A> |
|
||||
<A HREF="<%= rdat.getEncodedServletPath("find") %>">Find</A>
|
||||
</B></FONT></TD>
|
||||
|
||||
<TD ALIGN=RIGHT WIDTH=150>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Banner Ad --><% } %>
|
||||
<%-- BEGIN TEMP - Banner Ad code --%>
|
||||
<IMG SRC="/venice/images/sample-banner.gif" ALT="Banner Ad - 468x60" ALIGN=RIGHT
|
||||
WIDTH=468 HEIGHT=60 HSPACE=2 VSPACE=2>
|
||||
<%-- END TEMP - Banner Ad Code --%>
|
||||
</TD>
|
||||
</TR></TABLE>
|
||||
</TD></TR>
|
||||
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Login reminders --><% } %>
|
||||
<TR VALIGN=MIDDLE BGCOLOR="#6666CC"><TD ALIGN=CENTER>
|
||||
<%= rdat.getStdFontTag("white",3) %>
|
||||
<% if (user.isLoggedIn()) { %>
|
||||
You are logged in as <B><%= StringUtil.encodeHTML(user.getUserName()) %></B>
|
||||
<% if (basedat.displayLoginLinks()) { %>
|
||||
<% String partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd="; %>
|
||||
- <A HREF="<%= rdat.getEncodedServletPath(partial_tgt + "L") %>">Log Out</A>
|
||||
| <A HREF="<%= rdat.getEncodedServletPath(partial_tgt + "P") %>">Profile</A>
|
||||
<% } // end if %>
|
||||
<% } else { %>
|
||||
You are not logged in
|
||||
<% if (basedat.displayLoginLinks()) { %>
|
||||
<% String partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd="; %>
|
||||
- <A HREF="<%= rdat.getEncodedServletPath(partial_tgt + "L") %>">Log In</A>
|
||||
| <A HREF="<%= rdat.getEncodedServletPath(partial_tgt + "C") %>">Create Account</A>
|
||||
<% } // end if %>
|
||||
<% } // end if %>
|
||||
</FONT>
|
||||
</TR></TD>
|
||||
|
||||
<% if (rdat.useHTMLComments()) { %><!-- END PAGE HEADER --><% } %>
|
||||
|
||||
<TR VALIGN=TOP><TD ALIGN=CENTER>
|
||||
<TABLE ALIGN=CENTER WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=0><TR VALIGN=TOP>
|
||||
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="#9999FF">
|
||||
<TABLE ALIGN=LEFT WIDTH=120 CELPADDING=0 CELLSPACING=0>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- BEGIN LEFT SIDEBAR --><% } %>
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- variable menu --><% } %>
|
||||
<% renderMenu(session,out,rdat); %>
|
||||
</FONT></TD></TR>
|
||||
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT> </TD></TR>
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- fixed menu --><% } %>
|
||||
<B>About This Site</B><BR>
|
||||
<A HREF="/TODO">Documentation</A><BR>
|
||||
<A HREF="/TODO">About Venice</A>
|
||||
</FONT></TD></TR>
|
||||
|
||||
<% if (rdat.useHTMLComments()) { %><!-- END LEFT SIDEBAR --><% } %>
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
|
||||
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="white">
|
||||
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=0><TR VALIGN=TOP><TD ALIGN=LEFT>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE CONTENT --><% } %>
|
||||
<% basedat.renderContent(application,out,rdat); %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- END PAGE CONTENT --><% } %>
|
||||
</TD></TR></TABLE>
|
||||
</TD>
|
||||
</TR></TABLE>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
67
web/format/conferences.jsp
Normal file
67
web/format/conferences.jsp
Normal file
@@ -0,0 +1,67 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
ConferenceListing data = ConferenceListing.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Conference list for SIG #<%= data.getSIGID() %> --><% } %>
|
||||
<% rdat.writeContentHeader(out,"Conference List:",data.getSIGName()); %>
|
||||
<%-- TODO: controls go here for creating new conferences and such --%>
|
||||
<% if (data.getNumConferences()>0) { %>
|
||||
<TABLE BORDER=0 ALIGN=LEFT>
|
||||
<% for (int i=0; i<data.getNumConferences(); i++) { %>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=CENTER WIDTH=14>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
<% String path = "TODO?sig=" + String.valueOf(data.getSIGID()) + "&conf="
|
||||
+ String.valueOf(data.getConferenceID(i)); %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath(path) %>"><%= StringUtil.encodeHTML(data.getConferenceName(i)) %></A> -
|
||||
Latest activity: <%= rdat.getActivityString(data.getLastUpdateDate(i)) %><BR>
|
||||
<% int count = data.getNumHosts(i); %>
|
||||
<% if (count>0) { %>
|
||||
<% if (count>1) { %>Hosts<% } else { %>Host<% } %>:
|
||||
<% for (int j=0; j<count; j++) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("user/" + data.getHostName(i,j)) %>"><%= data.getHostName(i,j) %></A><% if (j<(count-1)) { %>,<% } %>
|
||||
<% } // end for (each hostname) %>
|
||||
<% } else { %>
|
||||
Hosts: <EM>(none)</EM>
|
||||
<% } // end if (hosts present in the conference) %><BR>
|
||||
<EM><%= StringUtil.encodeHTML(data.getDescription(i)) %></EM>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<% } // end for (each conference) %>
|
||||
</TABLE><BR CLEAR=LEFT>
|
||||
<% } else { %>
|
||||
<EM>No conferences found in this SIG.</EM><BR>
|
||||
<% } // end if (conferences present) %>
|
||||
<% if (data.canCreateConference()) { %>
|
||||
<P>
|
||||
<DIV ALIGN="LEFT">
|
||||
<A HREF="<%= rdat.getEncodedServletPath("confops?cmd=C&sig=" + String.valueOf(data.getSIGID())) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_create_new.gif") %>" ALT="Create New" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
</DIV>
|
||||
<% } // end if %>
|
||||
<% rdat.writeFooter(out); %>
|
||||
290
web/format/find.jsp
Normal file
290
web/format/find.jsp
Normal file
@@ -0,0 +1,290 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%!
|
||||
private static String getSIGHostName(SIGContext sig)
|
||||
{
|
||||
try
|
||||
{ // get the host name for the specified SIG
|
||||
UserProfile prof = sig.getHostProfile();
|
||||
return prof.getUserName();
|
||||
|
||||
} // end try
|
||||
catch (DataException e)
|
||||
{ // just return NULL if an exception strikes
|
||||
return null;
|
||||
|
||||
} // end catch
|
||||
|
||||
} // end getSIGHostName
|
||||
|
||||
private static int getSIGMemberCount(SIGContext sig)
|
||||
{
|
||||
try
|
||||
{ // get the member count for the specified SIG
|
||||
return sig.getMemberCount();
|
||||
|
||||
} // end try
|
||||
catch (DataException e)
|
||||
{ // just return -1 if an exception strikes
|
||||
return -1;
|
||||
|
||||
} // end catch
|
||||
|
||||
} // end getSIGMemberCount
|
||||
|
||||
private static String getActivityString(SIGContext sig, RenderData rdat)
|
||||
{
|
||||
return rdat.getActivityString(sig.getLastAccessDate());
|
||||
|
||||
} // end getActivityString
|
||||
|
||||
%>
|
||||
<%
|
||||
FindData data = FindData.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
%>
|
||||
<% data.writeHeader(rdat,out); %>
|
||||
|
||||
<%-- Display the search form --%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Find Form --><% } %>
|
||||
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>">
|
||||
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayOption() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
|
||||
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Find SIGs Form --><% } %>
|
||||
<%= rdat.getStdFontTag(null,4) %><B>Find SIGs:</B></FONT><BR>
|
||||
<%= rdat.getStdFontTag(null,2) %>
|
||||
Display all SIGs whose
|
||||
<SELECT NAME="field" SIZE=1>
|
||||
<OPTION VALUE="<%= SearchMode.FIELD_SIG_NAME %>"
|
||||
<% if (data.searchFieldIs(SearchMode.FIELD_SIG_NAME)) { %>SELECTED<% } %> >name</OPTION>
|
||||
<OPTION VALUE="<%= SearchMode.FIELD_SIG_SYNOPSIS %>"
|
||||
<% if (data.searchFieldIs(SearchMode.FIELD_SIG_SYNOPSIS)) { %>SELECTED<% } %> >synopsis</OPTION>
|
||||
</SELECT><BR>
|
||||
|
||||
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Find Users Form --><% } %>
|
||||
<%= rdat.getStdFontTag(null,4) %><B>Find Users:</B></FONT><BR>
|
||||
<%= rdat.getStdFontTag(null,2) %>
|
||||
Display all users whose
|
||||
<SELECT NAME="field" SIZE=1>
|
||||
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
|
||||
<% if (data.searchFieldIs(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
|
||||
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
|
||||
<% if (data.searchFieldIs(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
|
||||
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
|
||||
<% if (data.searchFieldIs(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
|
||||
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
|
||||
<% if (data.searchFieldIs(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
|
||||
</SELECT><BR>
|
||||
|
||||
<% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Find Categories Form --><% } %>
|
||||
<%= rdat.getStdFontTag(null,4) %><B>Find Categories:</B></FONT><BR>
|
||||
<%= rdat.getStdFontTag(null,2) %>
|
||||
Display all categories whose name
|
||||
|
||||
<% } else throw new InternalStateError("display parameter " + String.valueOf(data.getDisplayOption())
|
||||
+ " invalid"); %>
|
||||
|
||||
<SELECT NAME="mode" SIZE=1>
|
||||
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
|
||||
<% if (data.searchModeIs(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
|
||||
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
|
||||
<% if (data.searchModeIs(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
|
||||
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
|
||||
<% if (data.searchModeIs(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
|
||||
expression</OPTION>
|
||||
</SELECT>
|
||||
<% if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %><BR><% } else { %> <% } %>
|
||||
<INPUT TYPE=TEXT NAME="term" SIZE=32 MAXLENGTH=255 VALUE="<%= data.getSearchTerm() %>"><BR>
|
||||
<INPUT TYPE=IMAGE NAME="search" SRC="<%= rdat.getFullImagePath("bn_search.gif") %>"
|
||||
ALT="Search" WIDTH=80 HEIGHT=24 BORDER=0><BR>
|
||||
</FONT>
|
||||
</FORM>
|
||||
|
||||
<%-- Display the current category --%>
|
||||
<% String a_head, a_tail; // used for formatting category display %>
|
||||
<% CategoryDescriptor cat = data.getCategory(); %>
|
||||
<% if (cat!=null) { %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Display Category Name --><% } %>
|
||||
<HR><%= rdat.getStdFontTag(null,3) %><B>Category:
|
||||
<%
|
||||
a_head = "";
|
||||
a_tail = "";
|
||||
if (cat.getCategoryID()>=0)
|
||||
{ // assign the anchor tags
|
||||
a_head = "<A HREF=\"" + data.getCatJumpLink(rdat,-1) + "\">";
|
||||
a_tail = "</A>";
|
||||
|
||||
} // end if
|
||||
%>
|
||||
<%= a_head %>Top<%= a_tail %>
|
||||
<% if (cat.getCategoryID()>=0) { %>
|
||||
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
|
||||
<%
|
||||
a_head = ": ";
|
||||
a_tail = "";
|
||||
if (i<(cat.getNumLevels()-1))
|
||||
{ // assign the anchor tags
|
||||
a_head = ": <A HREF=\"" + data.getCatJumpLink(rdat,cat.getIDAtLevel(i)) + "\">";
|
||||
a_tail = "</A>";
|
||||
|
||||
} // end if
|
||||
%>
|
||||
<%= a_head %><%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %><%= a_tail %>
|
||||
<% } // end for %>
|
||||
<% } // end if (displaying the entire subcategory tree) %>
|
||||
</B><P>
|
||||
|
||||
<%-- Display the subcategory list --%>
|
||||
<% List subcats = data.getSubCategoryList(); %>
|
||||
<% if ((subcats!=null) && (subcats.size()>0)) { %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Display SubCategory List --><% } %>
|
||||
<B>Subcategories:</B><BR>
|
||||
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2>
|
||||
<% Iterator it = subcats.iterator(); %>
|
||||
<% while (it.hasNext()) { %>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=CENTER WIDTH=14>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
<%
|
||||
CategoryDescriptor c = (CategoryDescriptor)(it.next());
|
||||
a_head = "<A HREF=\"" + data.getCatJumpLink(rdat,c.getLinkedCategoryID()) + "\">";
|
||||
%>
|
||||
<B><%= a_head %><%= StringUtil.encodeHTML(c.getTitleAtLevel(c.getNumLevels()-1)) %></A></B>
|
||||
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<% } // end while %>
|
||||
</TABLE>
|
||||
<% } // end if (displaying subcategory list) %>
|
||||
</FONT>
|
||||
<% } // end if (category specified) %>
|
||||
|
||||
<% List results = data.getResultsList(); %>
|
||||
<% if (results!=null) { %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Display Search Results --><% } %>
|
||||
<%
|
||||
// Determine the number of results to display and whether to display a "next" button
|
||||
int dcount = results.size();
|
||||
boolean go_next = false;
|
||||
if (dcount>data.getNumResultsDisplayed())
|
||||
{ // there's a "next"
|
||||
dcount = data.getNumResultsDisplayed();
|
||||
go_next = true;
|
||||
|
||||
} // end if
|
||||
%>
|
||||
<HR>
|
||||
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
|
||||
<TD WIDTH="50%" ALIGN=LEFT><%= rdat.getStdFontTag(null,3) %>
|
||||
<%-- The initial search results --%>
|
||||
<B><% if (cat!=null) { %>SIGs in Category<% } else { %>Search Results<% } %></B>
|
||||
<% if (data.getFindCount()>0) { %>
|
||||
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
|
||||
<%= data.getFindCount() %>)
|
||||
<% } else { %>(None)<% } %>
|
||||
</FONT></TD>
|
||||
|
||||
<TD WIDTH="50%" ALIGN=RIGHT>
|
||||
<% 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") %>">
|
||||
<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() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getSearchField() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getSearchMode() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getSearchTerm() %>">
|
||||
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
|
||||
<% if (data.getOffset()>0) { %>
|
||||
<INPUT TYPE=IMAGE NAME="previous" SRC="<%= rdat.getFullImagePath("bn_ar_previous.gif") %>"
|
||||
ALT="Previous" WIDTH=80 HEIGHT=24 BORDER=0>
|
||||
<% } else { %>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
|
||||
<% } // end if %>
|
||||
|
||||
<% if (go_next) { %>
|
||||
<INPUT TYPE=IMAGE NAME="next" SRC="<%= rdat.getFullImagePath("bn_ar_next.gif") %>"
|
||||
ALT="Next" WIDTH=80 HEIGHT=24 BORDER=0>
|
||||
<% } else { %>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("bn_transparent.gif") %>" WIDTH=80 HEIGHT=24 BORDER=0>
|
||||
<% } // end if %>
|
||||
|
||||
</FORM>
|
||||
<% } else { %> <% } %>
|
||||
</TD>
|
||||
</TR></TABLE><BR>
|
||||
|
||||
<%-- Display the results of the search --%>
|
||||
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
|
||||
<% for (int i=0; i<dcount; i++) { %>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=CENTER WIDTH=14>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
<% Object item = results.get(i); %>
|
||||
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
|
||||
<%
|
||||
SIGContext sig = (SIGContext)item;
|
||||
String host_name = getSIGHostName(sig);
|
||||
int members = getSIGMemberCount(sig);
|
||||
%>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("sig/" + sig.getAlias()) %>"><%= StringUtil.encodeHTML(sig.getName()) %></A><BR>
|
||||
<% if (host_name!=null) { %>
|
||||
Host: <A HREF="<%= rdat.getEncodedServletPath("user/" + host_name) %>"><%= host_name %></A>
|
||||
<% } // end if (got host name) %>
|
||||
<% if (members>=0) { %>
|
||||
<% if (host_name!=null) { %> - <% } %>
|
||||
<%= members %> members
|
||||
<% } // end if (got member count) %>
|
||||
<% if ((host_name!=null) || (members>=0)) { %><BR><% } %>
|
||||
Latest activity: <%= getActivityString(sig,rdat) %><BR>
|
||||
<EM><%= StringUtil.encodeHTML(sig.getSynopsis()) %></EM>
|
||||
|
||||
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
|
||||
<% UserFound uf = (UserFound)item; %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("user/" + uf.getName()) %>"><%= uf.getName() %></A><BR>
|
||||
<%= StringUtil.encodeHTML(uf.getGivenName()) %> <%= StringUtil.encodeHTML(uf.getFamilyName()) %>,
|
||||
from <%= StringUtil.encodeHTML(uf.getLocality()) %>, <%= StringUtil.encodeHTML(uf.getRegion()) %>
|
||||
<%= uf.getCountry() %>
|
||||
<% if (uf.getDescription()!=null) { %><BR><EM><%= StringUtil.encodeHTML(uf.getDescription()) %></EM><% } %>
|
||||
|
||||
<% } else if (data.getDisplayOption()==FindData.FD_CATEGORIES) { %>
|
||||
<% CategoryDescriptor cd = (CategoryDescriptor)item; %>
|
||||
<A HREF="<%= data.getCatJumpLink(rdat,cd.getLinkedCategoryID()) %>"><%= StringUtil.encodeHTML(cd.toString()) %></A>
|
||||
|
||||
<% } %>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<% } // end for %>
|
||||
|
||||
</TABLE><BR CLEAR=LEFT>
|
||||
<% } // end if (results found) %>
|
||||
<% rdat.writeFooter(out); %>
|
||||
44
web/format/newsigwelcome.jsp
Normal file
44
web/format/newsigwelcome.jsp
Normal file
@@ -0,0 +1,44 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
NewSIGWelcome data = NewSIGWelcome.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Welcome to new SIG <%= data.getSIGName() %> --><% } %>
|
||||
<% rdat.writeContentHeader(out,"Welcome!",null); %>
|
||||
<%= rdat.getStdFontTag(null,2) %>
|
||||
Your new SIG <B>"<%= StringUtil.encodeHTML(data.getSIGName()) %>"</B> has been created, and
|
||||
you are its host. You may now wish to send out invitations to other people to join your new SIG.
|
||||
You will also want to enter your SIG's administration page and set its category and/or additional
|
||||
security options, if desired.<P>
|
||||
Your new SIG's URL is:
|
||||
<DIV ALIGN=CENTER><B><%= StringUtil.encodeHTML(data.getDisplayURL(rdat)) %></B></DIV>
|
||||
Enjoy your new SIG on our system!
|
||||
<DIV ALIGN=CENTER>
|
||||
<A HREF="<%= data.getEntryURL(rdat) %>">Enter SIG</A> |
|
||||
<A HREF="/TODO">Invite Users</A>
|
||||
</DIV>
|
||||
</FONT>
|
||||
<% rdat.writeFooter(out); %>
|
||||
|
||||
72
web/format/sigcatbrowser.jsp
Normal file
72
web/format/sigcatbrowser.jsp
Normal file
@@ -0,0 +1,72 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
SIGCategoryBrowseData data = SIGCategoryBrowseData.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
CategoryDescriptor cat = data.getCurrentCategory();
|
||||
int catid = cat.getCategoryID();
|
||||
%>
|
||||
<% rdat.writeContentHeader(out,"Set SIG Category:",data.getSIGName()); %>
|
||||
<DIV ALIGN="LEFT">
|
||||
<A HREF="<%= data.getCancelURL(rdat) %>"><IMG SRC="<%= rdat.getFullImagePath("bn_cancel.gif") %>"
|
||||
ALT=\"Cancel\" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
</DIV>
|
||||
<%= rdat.getStdFontTag(null,2) %>
|
||||
<B>Previous SIG Category:</B> <%= StringUtil.encodeHTML(data.getPreviousCategory()) %><P>
|
||||
<B>Current category:</B><BR>
|
||||
<% if (catid>=0) { %><A HREF="<%= data.getGoLink(rdat,-1) %>"><% } %>Top<% if (catid>=0) { %></A><% } %>:
|
||||
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
|
||||
<% int tmpid = cat.getIDAtLevel(i); %>
|
||||
<% if (catid!=tmpid) { %><A HREF="<%= data.getGoLink(rdat,tmpid) %>"><% } %><%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %><% if (catid!=tmpid) { %></A>: <% } %>
|
||||
<% } // end for %>
|
||||
|
||||
<% if (catid>=0) { %> [<A HREF="<%= data.getSetLink(rdat,catid) %>">set</A>]<% } %>
|
||||
|
||||
<P><B>Subcategories:</B><BR>
|
||||
<% if (data.hasSubcategories()) { %>
|
||||
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2>
|
||||
<% Iterator it = data.getSubcategoryIterator(); %>
|
||||
<% while (it.hasNext()) { %>
|
||||
<% CategoryDescriptor c = (CategoryDescriptor)(it.next()); %>
|
||||
<% int subid = c.getLinkedCategoryID(); %>
|
||||
<TR VALIGN=MIDDLE>
|
||||
<TD ALIGN=CENTER WIDTH=14>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("purple-ball.gif") %>" ALT="*" WIDTH=14 HEIGHT=14 BORDER=0>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
<A HREF="<%= data.getGoLink(rdat,subid) %>"><%= StringUtil.encodeHTML(c.getTitleAtLevel(c.getNumLevels()-1)) %></A>
|
||||
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
|
||||
[<A HREF="<%= data.getSetLink(rdat,subid) %>">set</A>]
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<% } // end while %>
|
||||
</TABLE>
|
||||
<% } else { %><EM>(None)</EM><% } // end if (subcategory display) %><P>
|
||||
|
||||
Click on a subcategory name to make that category the currently displayed one.<P>
|
||||
Click on a [set] link to set that category as the SIG's new category and return to the
|
||||
<B>SIG Administration</B> menu.<P>
|
||||
|
||||
</FONT>
|
||||
<% rdat.writeFooter(out); %>
|
||||
99
web/format/sigprofile.jsp
Normal file
99
web/format/sigprofile.jsp
Normal file
@@ -0,0 +1,99 @@
|
||||
<%--
|
||||
The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
(the "License"); you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
language governing rights and limitations under the License.
|
||||
|
||||
The Original Code is the Venice Web Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
SIGProfileData data = SIGProfileData.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
SIGContext sig = data.getSIGContext();
|
||||
ContactInfo ci = data.getSIGContactInfo();
|
||||
CategoryDescriptor cat = data.getCategory();
|
||||
String tmp;
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Profile for SIG #<%= sig.getSIGID() %> --><% } %>
|
||||
<% rdat.writeContentHeader(out,"SIG Profile:",sig.getName()); %>
|
||||
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,1) %>
|
||||
<IMG SRC="<%= data.getSIGLogoURL(rdat)%>" ALIGN=LEFT WIDTH=110 HEIGHT=65 BORDER=0><BR CLEAR=LEFT><BR>
|
||||
|
||||
<% Date tmpd = sig.getCreationDate(); %>
|
||||
<% if (tmpd!=null) { %>
|
||||
SIG created:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
||||
<% } // end if %>
|
||||
<% tmpd = sig.getLastAccessDate(); %>
|
||||
<% if (tmpd!=null) { %>
|
||||
Last accessed:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
||||
<% } // end if %>
|
||||
<% tmpd = sig.getLastUpdateDate(); %>
|
||||
<% if (tmpd!=null) { %>
|
||||
Profile last updated:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
||||
<% } // end if %>
|
||||
|
||||
<% if (data.isUserLoggedIn()) { %>
|
||||
<DIV ALIGN="CENTER">
|
||||
<% if (sig.isMember()) { %>
|
||||
<A HREF="/TODO"><IMG SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
<% } else if (sig.canJoin()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=J&sig=" + String.valueOf(sig.getSIGID())) %>"><IMG SRC="<%= rdat.getFullImagePath("bn_join_now.gif") %>" ALT="Join Now" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
<% } // end if %>
|
||||
</DIV>
|
||||
<% } // end if (user is logged in) %>
|
||||
|
||||
</FONT></TD>
|
||||
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,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++) { %>
|
||||
<% if (i>0) { %>: <% } %>
|
||||
<A HREF="<%= FindData.getCatJumpLink(rdat,cat.getIDAtLevel(i)) %>"><%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %></A>
|
||||
<% } // end for %><P>
|
||||
<EM><%= StringUtil.encodeHTML(sig.getSynopsis()) %></EM><P>
|
||||
|
||||
<% tmp = data.getHostUserName(); %>
|
||||
<B>Host:</B> <A HREF="<%= rdat.getEncodedServletPath("user/" + tmp) %>"><%= tmp %></A><BR>
|
||||
|
||||
<B>Location:</B><BR>
|
||||
<% tmp = ci.getCompany(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = ci.getAddressLine1(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = ci.getAddressLine2(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = data.getAddressLastLine(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = data.getFullCountry(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<BR>
|
||||
|
||||
<% tmp = sig.getLanguageFullName(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Primary Language:</B> <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = sig.getRules(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Standards of Conduct:</B> <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = ci.getURL(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
|
||||
<B>Homepage:</B> <A HREF="<%= tmp %>" TARGET="Wander"><%= StringUtil.encodeHTML(tmp) %></A><BR>
|
||||
<% } %>
|
||||
|
||||
</FONT></TD>
|
||||
</TR></TABLE>
|
||||
<% rdat.writeFooter(out); %>
|
||||
36
web/format/sigwelcome.jsp
Normal file
36
web/format/sigwelcome.jsp
Normal file
@@ -0,0 +1,36 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
SIGWelcome data = SIGWelcome.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Welcome to <%= data.getSIGName() %> --><% } %>
|
||||
<% rdat.writeContentHeader(out,"Welcome!",null); %>
|
||||
<%= rdat.getStdFontTag(null,2) %>
|
||||
Welcome to the <B>"<%= StringUtil.encodeHTML(data.getSIGName()) %>"</B> SIG!
|
||||
As a SIG member, you now have access to the various resources which your SIG's host
|
||||
has elected to provide. Enjoy your membership!<P>
|
||||
<DIV ALIGN=CENTER><A HREF="<%= data.getEntryURL(rdat) %>">Enter SIG</A></DIV>
|
||||
</FONT>
|
||||
<% rdat.writeFooter(out); %>
|
||||
92
web/format/userprofile.jsp
Normal file
92
web/format/userprofile.jsp
Normal file
@@ -0,0 +1,92 @@
|
||||
<%--
|
||||
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 Community System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
UserProfileData data = UserProfileData.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
UserProfile prof = data.getUserProfile();
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
String tmp;
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Profile for UID #<%= prof.getUID() %> --><% } %>
|
||||
<% rdat.writeContentHeader(out,"User Profile:",prof.getUserName()); %>
|
||||
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,1) %>
|
||||
<IMG SRC="<%= data.getPhotoURL(rdat) %>" ALT="" ALIGN=LEFT WIDTH=100
|
||||
HEIGHT=100 BORDER=0><BR CLEAR=LEFT><BR>
|
||||
|
||||
<% Date tmpd = prof.getCreateDate(); %>
|
||||
<% if (tmpd!=null) { %>
|
||||
Account created:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
||||
<% } // end if %>
|
||||
<% tmpd = prof.getLastLoginDate(); %>
|
||||
<% if (tmpd!=null) { %>
|
||||
Last login:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
||||
<% } // end if %>
|
||||
<% tmpd = prof.getLastUpdate(); %>
|
||||
<% if (tmpd!=null) { %>
|
||||
Profile last updated:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
||||
<% } // end if %>
|
||||
</FONT></TD>
|
||||
|
||||
<TD ALIGN=LEFT><%= rdat.getStdFontTag(null,2) %>
|
||||
|
||||
<B><%= StringUtil.encodeHTML(data.getFullName()) %></B><BR>
|
||||
<% tmp = prof.getEmail(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
|
||||
E-mail: <A HREF="mailto:<%= tmp %>"><%= StringUtil.encodeHTML(tmp) %></A><BR>
|
||||
<% } // end if %>
|
||||
<% tmp = prof.getURL(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
|
||||
URL: <A HREF="<%= tmp %>" TARGET="Wander"><%= StringUtil.encodeHTML(tmp) %></A><BR>
|
||||
<% } // end if %><BR>
|
||||
|
||||
<% tmp = prof.getCompany(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = prof.getAddressLine1(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = prof.getAddressLine2(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = data.getAddressLastLine(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = prof.getFullCountry(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
|
||||
<% tmp = prof.getPhone(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Phone: <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = prof.getFax(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Fax: <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
<% tmp = prof.getMobile(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Mobile: <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
|
||||
<% tmp = prof.getDescription(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
|
||||
<TR VALIGN=TOP><TD ALIGN=CENTER COLSPAN=2><%= rdat.getStdFontTag(null,2) %>
|
||||
<EM><%= StringUtil.encodeHTML(tmp) %></EM>
|
||||
</FONT></TD></TR>
|
||||
<% } // end if %>
|
||||
|
||||
</TABLE>
|
||||
<% rdat.writeFooter(out); %>
|
||||
Reference in New Issue
Block a user