<%-- 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 . 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 , 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.*" %> <% CommunityProfileData data = CommunityProfileData.retrieve(request); Variables.failIfNull(data); RenderData rdat = RenderConfig.createRenderData(application,request,response); CommunityContext comm = data.getCommunityContext(); ContactInfo ci = data.getCommunityContactInfo(); CategoryDescriptor cat = data.getCategory(); String tmp; %> <% if (rdat.useHTMLComments()) { %><% } %> <% rdat.writeContentHeader(out,"Community Profile:",comm.getName()); %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1) %>

<% Date tmpd = comm.getCreationDate(); %> <% if (tmpd!=null) { %> Community created:
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %>
<% } // end if %> <% tmpd = comm.getLastAccessDate(); %> <% if (tmpd!=null) { %> Last accessed:
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %>
<% } // end if %> <% tmpd = comm.getLastUpdateDate(); %> <% if (tmpd!=null) { %> Profile last updated:
<%= StringUtil.encodeHTML(rdat.formatDateForDisplay(tmpd)) %>
<% } // end if %> <% if (data.isUserLoggedIn()) { %>
<%-- EJB 4/4/2001 - reverse these tests, put canJoin FIRST --%> <% if (comm.canJoin()) { %> ">" ALT="Join Now" WIDTH=80 HEIGHT=24 BORDER=0> <% } else if (comm.canSendInvitation()) { %> ">" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0> <% } // end if %>
<% } // end if (user is logged in) %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %> <% if (comm.isPublicCommunity()) { %>Public<% } else { %>Private<% } %> Community
Category: <% for (int i=0; i <% if (i>0) { %>: <% } %> <%= StringUtil.encodeHTML(cat.getTitleAtLevel(i)) %> <% } // end for %>

<%= StringUtil.encodeHTML(comm.getSynopsis()) %>

<% tmp = data.getHostUserName(); %> Host: "><%= tmp %>
Location:
<% tmp = ci.getCompany(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %>
<% } %> <% tmp = ci.getAddressLine1(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %>
<% } %> <% tmp = ci.getAddressLine2(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %>
<% } %> <% tmp = data.getAddressLastLine(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %>
<% } %> <% tmp = data.getFullCountry(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %><%= StringUtil.encodeHTML(tmp) %>
<% } %>
<% tmp = comm.getLanguageFullName(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %>Primary Language: <%= StringUtil.encodeHTML(tmp) %>
<% } %> <% tmp = comm.getRules(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %>Standards of Conduct: <%= StringUtil.encodeHTML(tmp) %>
<% } %> <% tmp = ci.getURL(); %> <% if (!(StringUtil.isStringEmpty(tmp))) { %> Homepage: <%= StringUtil.encodeHTML(tmp) %>
<% } %>