modifications to ensure that Venice can operate without certain personal

information prompted for at registration time, if certain sites should elect
to omit that information
This commit is contained in:
Eric J. Bowersox
2004-07-10 22:54:15 +00:00
parent 5c0f841ab7
commit f0bf5e31ee
9 changed files with 431 additions and 348 deletions

View File

@@ -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 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
@@ -26,72 +26,76 @@
%>
<util:comment>Profile for UID #<%= prof.getUID() %></util:comment>
<util:header title="User Profile:" subtitle="<%= prof.getUserName() %>"/>
<TABLE BORDER=0 CELLPADDING=6 CELLSPACING=0><TR VALIGN=TOP>
<TD ALIGN=LEFT CLASS="c2"><util:font color="content.fg" size="profile-dates">
<%= data.getRequestAttribute("user.photo") %><BR CLEAR=LEFT><P>
<table border="0" cellpadding="6" cellspacing="0"><tr valign="top">
<td align="left" class="c2"><util:font color="content.fg" size="profile-dates">
<%= data.getRequestAttribute("user.photo") %><br clear="left" /><p />
<% java.util.Date tmpd = prof.getCreateDate(); %>
<% if (tmpd!=null) { %>
Account created:<BR><util:escape><%= data.formatDate(tmpd) %></util:escape><BR>
Account created:<br /><util:escape><%= data.formatDate(tmpd) %></util:escape><br />
<% } // end if %>
<% tmpd = prof.getLastLoginDate(); %>
<% if (tmpd!=null) { %>
Last login:<BR><util:escape><%= data.formatDate(tmpd) %></util:escape><BR>
Last login:<br /><util:escape><%= data.formatDate(tmpd) %></util:escape><br />
<% } // end if %>
<% tmpd = prof.getLastUpdate(); %>
<% if (tmpd!=null) { %>
Profile last updated:<BR><util:escape><%= data.formatDate(tmpd) %></util:escape><BR>
Profile last updated:<br /><util:escape><%= data.formatDate(tmpd) %></util:escape><br />
<% } // end if %>
</util:font></TD>
</util:font></td>
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
<B><util:escape><%= data.getRequestAttribute("fullname").toString() %></util:escape></B><BR>
<% tmp = prof.getEmail(); %>
<td align="left" class="content"><util:font color="content.fg" size="content">
<util:comment>fullname</util:comment><% tmp = data.getRequestAttribute("fullname").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
E-mail: <A HREF="mailto:<%= tmp %>"><util:escape><%= tmp %></util:escape></A><BR>
<b><util:escape><%= tmp %></util:escape></b><br />
<% } // end if %>
<% tmp = prof.getURL(); %>
<util:comment>e-mail</util:comment><% tmp = prof.getEmail(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
URL: <A HREF="<%= tmp %>" TARGET="Wander"><util:escape><%= tmp %></util:escape></A><BR>
<% } // end if %><BR>
<% tmp = prof.getCompany(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getAddressLine1(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getAddressLine2(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = data.getRequestAttribute("address.lastline").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getFullCountry(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getPhone(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Phone: <util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getFax(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Fax: <util:escape><%= tmp %></util:escape><BR><% } %>
<% tmp = prof.getMobile(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Mobile: <util:escape><%= tmp %></util:escape><BR><% } %>
</util:font></TD>
</TR></TABLE><BR>
E-mail: <a href="mailto:<%= tmp %>"><util:escape><%= tmp %></util:escape></a><br />
<% } // end if %>
<util:comment>url</util:comment><% tmp = prof.getURL(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
URL: <a href="<%= tmp %>" target="Wander"><util:escape><%= tmp %></util:escape></a><br />
<% } // end if %><br />
<util:comment>company</util:comment><% tmp = prof.getCompany(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>address 1</util:comment><% tmp = prof.getAddressLine1(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>address 2</util:comment><% tmp = prof.getAddressLine2(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>address lastline</util:comment><% tmp = data.getRequestAttribute("address.lastline").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>country</util:comment><% tmp = data.getRequestAttribute("country").toString(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %><util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>phone</util:comment><% tmp = prof.getPhone(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Phone: <util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>fax</util:comment><% tmp = prof.getFax(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Fax: <util:escape><%= tmp %></util:escape><br /><% } %>
<util:comment>mobile</util:comment><% tmp = prof.getMobile(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>Mobile: <util:escape><%= tmp %></util:escape><br /><% } %>
</util:font></td>
</tr></table><br />
<% tmp = prof.getDescription(); %>
<% if (!(StringUtil.isStringEmpty(tmp))) { %>
<util:font color="content.fg" size="content"><EM><util:escape><%= tmp %></util:escape></EM></util:font><BR>
<util:font color="content.fg" size="content"><i><util:escape><%= tmp %></util:escape></i></util:font><br />
<% } // end if %>
<% if (prof.canSendQuickEmail()) { %>
<HR><util:font color="content.fg" size="content"><B>Send Quick E-Mail To
<%= prof.getUserName() %>:</B></util:font><BR>
<hr /><util:font color="content.fg" size="content"><b>Send Quick E-Mail To
<%= prof.getUserName() %>:</b></util:font><br />
<util:form action="quick_email.js.vs" type="servlet">
<INPUT TYPE="HIDDEN" NAME="to_uid" VALUE="<%= prof.getUID() %>">
<TABLE BORDER=0 CELLPADDING=0>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content">
<input type="hidden" name="to_uid" value="<%= prof.getUID() %>" />
<table border="0" cellpadding="0">
<tr valign="middle"><td align="left" class="content">
<util:font color="content.fg" size="content">Subject: </util:font>
<SPAN CLASS="cinput"><INPUT TYPE="TEXT" CLASS="cinput" NAME="subj" SIZE=65 MAXLENGTH=255
VALUE=""></SPAN>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="cinput">
<TEXTAREA NAME="pb" WRAP=HARD ROWS=7 COLS=80></TEXTAREA>
</TD></TR>
<TR VALIGN=MIDDLE><TD ALIGN=LEFT CLASS="content"><util:button id="send" type="input"/></TR>
</TABLE>
<span class="cinput"><input type="text" class="cinput" name="subj"
size="65" maxlength="255" value="" /></span>
</td></tr>
<tr valign="middle"><td align="left" class="cinput">
<textarea name="pb" wrap="hard" rows="7" cols="80"></textarea>
</td></tr>
<tr valign="middle"><td align="left" class="content"><util:button id="send" type="input"/></td></tr>
</table>
</util:form>
<% } // end if %>
<%-- EOF --%>