fixed up a few HTML generation issues in tag classes and JSP templates;
added the authenticatePrivileged method; added SQL date parameter method to the XML-RPC Request object
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
|
||||
The Original Code is the Venice Web Communities System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
@@ -32,24 +32,24 @@
|
||||
<util:header title="Community Profile:">
|
||||
<util:subtitle><util:escape><%= comm.getName() %></util:escape></util:subtitle>
|
||||
</util:header>
|
||||
<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>
|
||||
<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>
|
||||
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>
|
||||
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>
|
||||
Profile last updated:<br /><util:escape><%= view.formatDate(tmpd) %></util:escape><br />
|
||||
<% } // end if %>
|
||||
|
||||
<user:is_logged_in>
|
||||
<DIV ALIGN="CENTER">
|
||||
<div align="center">
|
||||
<comm:can_join>
|
||||
<util:xlink>
|
||||
<util:href type="servlet">comm/join.js.vs?cc=<comm:ID/></util:href>
|
||||
@@ -64,20 +64,20 @@
|
||||
</util:xlink>
|
||||
</comm:can_send_invite>
|
||||
</comm:cannot_join>
|
||||
</DIV>
|
||||
</div>
|
||||
</user:is_logged_in>
|
||||
</util:font></TD>
|
||||
</util:font></td>
|
||||
|
||||
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
||||
<comm:is_public><B><U>Public Community</U></B></comm:is_public>
|
||||
<comm:is_private><B><U>Private Community</U></B></comm:is_private>
|
||||
<td align="left" class="content"><util:font color="content.fg" size="content">
|
||||
<comm:is_public><b><u>Public Community</u></b></comm:is_public>
|
||||
<comm:is_private><b><u>Private Community</u></b></comm:is_private>
|
||||
<global:categories_enabled>
|
||||
<BR>
|
||||
<B>Category:</B>
|
||||
<br />
|
||||
<b>Category:</b>
|
||||
<% CategoryDescriptor cat = (CategoryDescriptor)(view.getRequestAttribute("category")); %>
|
||||
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
|
||||
<% if (i>0) { %>: <% } %>
|
||||
<util:xlink>
|
||||
<util:xlink aclass="content">
|
||||
<util:href type="servlet">
|
||||
find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= cat.getIDAtLevel(i) %>
|
||||
</util:href>
|
||||
@@ -85,39 +85,40 @@
|
||||
</util:xlink>
|
||||
<% } // end for %>
|
||||
</global:categories_enabled>
|
||||
<P>
|
||||
<br />
|
||||
|
||||
<EM><util:escape><comm:synopsis/></util:escape></EM><P>
|
||||
<i><util:escape><comm:synopsis/></util:escape></i><p />
|
||||
<% UserProfile prof = (UserProfile)(view.getRequestAttribute("host.profile")); %>
|
||||
<B>Host:</B>
|
||||
<util:xlink>
|
||||
<b>Host:</b>
|
||||
<util:xlink aclass="content">
|
||||
<util:href type="servlet">user/<%= prof.getUserName() %></util:href>
|
||||
<util:text><%= prof.getUserName() %></util:text>
|
||||
</util:xlink><BR>
|
||||
</util:xlink><br />
|
||||
|
||||
<% ContactInfo ci = (ContactInfo)(view.getRequestAttribute("contact.info")); %>
|
||||
<B>Location:</B><BR>
|
||||
<b>Location:</b><br />
|
||||
<% tmp = ci.getCompany(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
|
||||
<% tmp = ci.getAddressLine1(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
|
||||
<% tmp = ci.getAddressLine2(); %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
|
||||
<% 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><% } %>
|
||||
<% 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>
|
||||
<% 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><% } %>
|
||||
<% 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><% } %>
|
||||
<% 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><% } %>
|
||||
<% if (!(StringUtil.isStringEmpty(tmp))) { %><b>Homepage:</b>
|
||||
<a href="<%= tmp %>" class="content"><util:escape><%= tmp %></util:escape></a><br /><% } %>
|
||||
|
||||
</util:font></TD>
|
||||
</TR></TABLE>
|
||||
</util:font></td>
|
||||
</tr></table>
|
||||
<%-- EOF --%>
|
||||
|
||||
Reference in New Issue
Block a user