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.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.*" %>
|
|
|
|
<%
|
2001-11-07 01:43:09 -07:00
|
|
|
CommunityProfileData data = CommunityProfileData.retrieve(request);
|
2001-01-31 13:55:37 -07:00
|
|
|
Variables.failIfNull(data);
|
|
|
|
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
2001-11-07 01:43:09 -07:00
|
|
|
CommunityContext comm = data.getCommunityContext();
|
|
|
|
ContactInfo ci = data.getCommunityContactInfo();
|
2001-01-31 13:55:37 -07:00
|
|
|
CategoryDescriptor cat = data.getCategory();
|
|
|
|
String tmp;
|
|
|
|
%>
|
2001-11-07 01:43:09 -07:00
|
|
|
<% if (rdat.useHTMLComments()) { %><!-- Profile for community #<%= comm.getCommunityID() %> --><% } %>
|
|
|
|
<% rdat.writeContentHeader(out,"Community Profile:",comm.getName()); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=LEFT CLASS="c2"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>
|
2001-11-07 01:43:09 -07:00
|
|
|
<IMG SRC="<%= data.getCommunityLogoURL(rdat)%>" ALIGN=LEFT WIDTH=110 HEIGHT=65 BORDER=0><BR CLEAR=LEFT><BR>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-11-07 01:43:09 -07:00
|
|
|
<% Date tmpd = comm.getCreationDate(); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (tmpd!=null) { %>
|
2001-11-07 01:43:09 -07:00
|
|
|
Community created:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } // end if %>
|
2001-11-07 01:43:09 -07:00
|
|
|
<% tmpd = comm.getLastAccessDate(); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (tmpd!=null) { %>
|
|
|
|
Last accessed:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
|
|
|
<% } // end if %>
|
2001-11-07 01:43:09 -07:00
|
|
|
<% tmpd = comm.getLastUpdateDate(); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (tmpd!=null) { %>
|
|
|
|
Profile last updated:<BR><%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %><BR>
|
|
|
|
<% } // end if %>
|
|
|
|
|
|
|
|
<% if (data.isUserLoggedIn()) { %>
|
|
|
|
<DIV ALIGN="CENTER">
|
2001-04-04 23:40:13 -06:00
|
|
|
<%-- EJB 4/4/2001 - reverse these tests, put canJoin FIRST --%>
|
2001-11-07 01:43:09 -07:00
|
|
|
<% if (comm.canJoin()) { %>
|
|
|
|
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=J&sig=" + comm.getCommunityID()) %>"><IMG
|
2001-02-10 00:20:27 -07:00
|
|
|
SRC="<%= rdat.getFullImagePath("bn_join_now.gif") %>" ALT="Join Now"
|
|
|
|
WIDTH=80 HEIGHT=24 BORDER=0></A>
|
2001-11-07 01:43:09 -07:00
|
|
|
<% } else if (comm.canSendInvitation()) { %>
|
|
|
|
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&sig=" + comm.getCommunityID()) %>"><IMG
|
2001-04-04 23:40:13 -06:00
|
|
|
SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } // end if %>
|
|
|
|
</DIV>
|
|
|
|
<% } // end if (user is logged in) %>
|
|
|
|
|
|
|
|
</FONT></TD>
|
|
|
|
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
|
2001-11-07 01:43:09 -07:00
|
|
|
<B><U><% if (comm.isPublicCommunity()) { %>Public<% } else { %>Private<% } %> Community</U></B><BR>
|
2001-01-31 13:55:37 -07:00
|
|
|
<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>
|
2001-11-07 01:43:09 -07:00
|
|
|
<EM><%= StringUtil.encodeHTML(comm.getSynopsis()) %></EM><P>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
<% 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>
|
|
|
|
|
2001-11-07 01:43:09 -07:00
|
|
|
<% tmp = comm.getLanguageFullName(); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Primary Language:</B> <%= StringUtil.encodeHTML(tmp) %><BR><% } %>
|
2001-11-07 01:43:09 -07:00
|
|
|
<% tmp = comm.getRules(); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% 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>
|