115 lines
5.2 KiB
Plaintext
115 lines
5.2 KiB
Plaintext
<%--
|
|
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):
|
|
--%>
|
|
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
|
<%@ page import = "com.silverwrist.venice.core.*" %>
|
|
<%@ page import = "com.silverwrist.venice.ui.view.FindView" %>
|
|
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
|
|
<%@ taglib uri="/tlds/util" prefix="util" %>
|
|
<%@ taglib uri="/tlds/user" prefix="user" %>
|
|
<%@ taglib uri="/tlds/community" prefix="comm" %>
|
|
<%
|
|
JSPView view = JSPView.get(request);
|
|
CommunityContext comm = view.getCommunity();
|
|
String tmp;
|
|
%>
|
|
<util:comment>Profile for community #<comm:ID/></util:comment>
|
|
<util:header title="Community Profile:" subtitle="<%= comm.getName() %>"/>
|
|
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
|
|
<TD ALIGN=LEFT CLASS="c2"><util:font color="content.fg" size="profile-dates">
|
|
<%= view.getRequestAttribute("community.logo").toString() %><BR>
|
|
<% java.util.Date tmpd = comm.getCreationDate(); %>
|
|
<% if (tmpd!=null) { %>
|
|
Community created:<BR><util:escape><%= view.formatDate(tmpd) %></util:escape><BR>
|
|
<% } // end if %>
|
|
<% tmpd = comm.getLastAccessDate(); %>
|
|
<% if (tmpd!=null) { %>
|
|
Last accessed:<BR><util:escape><%= view.formatDate(tmpd) %></util:escape><BR>
|
|
<% } // end if %>
|
|
<% tmpd = comm.getLastUpdateDate(); %>
|
|
<% if (tmpd!=null) { %>
|
|
Profile last updated:<BR><util:escape><%= view.formatDate(tmpd) %></util:escape><BR>
|
|
<% } // end if %>
|
|
|
|
<user:is_logged_in>
|
|
<DIV ALIGN="CENTER">
|
|
<comm:can_join>
|
|
<util:xlink>
|
|
<util:href type="servlet">comm/join.js.vs?cc=<comm:ID/></util:href>
|
|
<util:text><util:button id="join_now"/></util:text>
|
|
</util:xlink>
|
|
</comm:can_join>
|
|
<comm:cannot_join>
|
|
<comm:can_send_invite>
|
|
<util:xlink>
|
|
<util:href type="servlet">comm/invite.js.vs?cc=<comm:ID/></util:href>
|
|
<util:text><util:button id="invite"/></util:text>
|
|
</util:xlink>
|
|
</comm:can_send_invite>
|
|
</comm:cannot_join>
|
|
</DIV>
|
|
</user:is_logged_in>
|
|
</util:font></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
|
<comm:is_public><B><U>Public Community</U></B><BR></comm:is_public>
|
|
<comm:is_private><B><U>Private Community</U></B><BR></comm:is_private>
|
|
<B>Category:</B>
|
|
<% CategoryDescriptor cat = (CategoryDescriptor)(view.getRequestAttribute("category")); %>
|
|
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
|
|
<% if (i>0) { %>: <% } %>
|
|
<util:xlink>
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= cat.getIDAtLevel(i) %></util:href>
|
|
<util:text><util:escape><%= cat.getTitleAtLevel(i) %></util:escape></util:text>
|
|
</util:xlink>
|
|
<% } // end for %><P>
|
|
|
|
<EM><util:escape><comm:synopsis/></util:escape></EM><P>
|
|
<% UserProfile prof = (UserProfile)(view.getRequestAttribute("host.profile")); %>
|
|
<B>Host:</B>
|
|
<util:xlink>
|
|
<util:href type="servlet">user/<%= prof.getUserName() %></util:href>
|
|
<util:text><%= prof.getUserName() %></util:text>
|
|
</util:xlink><BR>
|
|
|
|
<% ContactInfo ci = (ContactInfo)(view.getRequestAttribute("contact.info")); %>
|
|
<B>Location:</B><BR>
|
|
<% tmp = ci.getCompany(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<% tmp = ci.getAddressLine1(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<% tmp = ci.getAddressLine2(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<% tmp = view.getRequestAttribute("address.lastline").toString(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<% tmp = view.getRequestAttribute("address.country").toString(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<BR>
|
|
|
|
<% tmp = comm.getLanguageFullName(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Primary Language:</B>
|
|
<util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<% tmp = comm.getRules(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Standards of Conduct:</B>
|
|
<util:escape><%= tmp %></util:escape><BR><% } %>
|
|
<% tmp = ci.getURL(); %>
|
|
<% if (!(StringUtil.isStringEmpty(tmp))) { %><B>Homepage:</B>
|
|
<A HREF="<%= tmp %>"><util:escape><%= tmp %></util:escape></A><BR><% } %>
|
|
|
|
</util:font></TD>
|
|
</TR></TABLE>
|