<%@ page errorPage="/misc/error.jsp" import="org.rvs.web.user.User, org.rvs.web.servlets.ServletConstants, org.rvs.web.misc.ProcessingException, org.rvs.web.user.Field, org.rvs.web.user.Preferences, org.rvs.web.user.Protection"%> <% boolean isAdd= false; User user = (User) request.getAttribute(ServletConstants.USER_KEY); String editType = (String) request.getAttribute(ServletConstants.USER_EDIT_TYPE_KEY); if (editType != null) { if (editType.equalsIgnoreCase("update")) isAdd = false; else isAdd = true; } else { if (user == null) { isAdd = true; user = new User(); } } if (user == null) throw new ProcessingException("user edit jsp: user is null for editType: " + editType); String action = ""; String submitValue = ""; String title = ""; String p = ""; String pReqd = "*"; String pInst = ""; if (isAdd) { action = "addUser"; submitValue = "Register Data"; title = "Sign Up"; p = "Password"; pReqd = "*"; pInst = "A password is required."; } else { action = "updateUser"; submitValue = "Update Data"; title = "Update Your Data"; p = "New Password"; pReqd = ""; pInst = "You can leave this field empty if you want your old password to remain in effect."; } %>
<%=title%>
<% if (isAdd) { %>
Note: if you have previously registered your name in the old website, there is no need to register again. Your data has already been ported over to the new website.

Use this form to register information about yourself.

As part of registration, a login id and password will be created for you. This will allow you access to protected sections of this website. <% } else { %> Use this form to modify your registration details. <% } %>

Certain portions of your registered data will be viewable via the Directory Search page. You can control what is shown and what is not.

Please note:

~General instructions (move mouse here).

~Data privacy (move mouse here).

<% if (isAdd) { %> <% } else { %> <% } %>
~First Name:
type=text size=30 value="<%=user.firstName%>"> *
~Category:
*
~Last Name (RVS):
type=text size=30 value="<%=user.rvsLastName%>"> *
~Class Of:
type=int size=4 value="<%=user.gradYear%>"> * (important: read this)
~Last Name (Now):
type=text size=30 value="<%=user.currLastName%>">
~Start Year:
type=int size=4 value="<%=user.joinYear%>">
~Other Name(s):
type=text size=30 value="<%=user.nickName%>">
~Exit Year:
type=int size=4 value="<%=user.exitYear%>">
~Birth Day:
type=int size=4 value="<%=user.birthDate%>" onblur="return checkBirthDate(this);"> (format: ddmm; no year)
Address Line 1: type=text size=30 value="<%=user.addr1%>">
~Tel (Home):
type=text maxlength=25 size=30 value="<%=user.homeTel%>">
Address Line 2: type=text size=30 value="<%=user.addr2%>">
~Tel (Work):
type=text maxlength=25 size=30 value="<%=user.workTel%>">
City: type=text maxlength=30 size=30 value="<%=user.city%>">
~Tel (Mobile):
type=text maxlength=25 size=30 value="<%=user.mobileTel%>">
State: type=text size=30 value="<%=user.state%>">
~Email:
type=text size=30 value="<%=user.email%>">
Zip: type=text size=30 value="<%=user.zip%>"> Job Title: type=text size=30 value="<%=user.occTitle%>">
Country: type=text maxlength=25 size=30 value="<%=user.country%>"> Company Name: type=text size=30 value="<%=user.instName%>">
~Closest City:
type=TEXT maxlength=30 size=30 value="<%=user.nearCity%>">
~Work type:
type=text maxlength=30 size=30 value="<%=user.occType%>">

Comments :
(URL, etc)  

type=TEXT maxlength=80 size=80 value="<%=user.comments%>">
~Tel Privacy:
* suggested setting: <%=Protection.PUBLIC.getDesription()%>
~Email Privacy:
* suggested setting: <%=Protection.PROTECTED.getDesription()%>
~Job Privacy:
* suggested setting: <%=Protection.PROTECTED.getDesription()%>
~Auto-email:
* suggested setting: Yes
~Mangle-email:
* suggested setting: No
~Adm Num: value="<%=user.admNum%>">
Adm Num: <%=user.admNum%> value="<%=user.admNum%>">
~<%=p%>: type=PASSWORD size=20 value=""> <%=pReqd%>
~Confirm Password: <%=pReqd%>
   

Thank you.