|
From: Greg R. <gr...@us...> - 2004-04-30 21:14:00
|
Update of /cvsroot/jgatms/jgatms-core/src/webapp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8196/src/webapp Added Files: confirmmember.jsp editmember.jsp index.jsp memberdetail.jsp memberinfo.jsp memberlist.jsp memberlogin.jsp reviewmember.jsp skilllevel.jsp skillq.jsp skillqr.jsp skillquestions.jsp skillslist.jsp stepfooter.jsp stepheader.jsp wizard.jsp Log Message: Moving web application code from /web to /src/webapp. --- NEW FILE: skillslist.jsp --- <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-html.tld" prefix="html" %> <tiles:importAttribute/> <logic:iterate name="skillsList" id="skill" indexId="i"> <html:checkbox property="<%= "skills[" + i + "]" %>" value="<%= ((inklings.jgatms.skill.SkillInfo) skill).getSkillId().toString() %>"/> <bean:write name="skill" property="name"/><br/> </logic:iterate> --- NEW FILE: skillquestions.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h2>Step 4: Answer Skill Questions</h2> <p> For each skill you selected on the last screen, please answer the questions below. </p> <table cellspacing="1" cellpadding="1" width="60%"> <% int i = 0; %> <logic:iterate name="jgatms/memberInfo" property="skillProfiles" id="skillProfile"> <tr><td colspan="2"><h3> <bean:write name="skillProfile" property="skill.name"/></h3></td></tr> <logic:iterate name="skillProfile" property="skill.questions" id="question"> <tr> <td> <bean:write name="question" property="question"/> </td> <td> <bean:define name="question" property="possibleResponses" id="possibleResponses"/> <html:select property="<%= "question[" + i++ + "]" %>"> <html:options collection="possibleResponses" property="responseId" labelProperty="description"/> </html:select> </td> </tr> </logic:iterate> </logic:iterate> </table> --- NEW FILE: stepfooter.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <tiles:useAttribute name="submitvalue" classname="java.lang.String"/> <tiles:useAttribute name="backbutton" classname="java.lang.String"/> <tiles:useAttribute name="backvalue" classname="java.lang.String"/> <tiles:useAttribute name="backdest" classname="java.lang.String"/> <hr/> <logic:equal name="backbutton" value="true"> <input type="button" onclick="javascript:window.location='<%= backdest %>';" value="<%= backvalue %>"/> </logic:equal> <html:submit value="<%= submitvalue %>"/> <input type="button" onclick="javascript:window.location='index.jsp';" value="Cancel"/> --- NEW FILE: stepheader.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h2><tiles:getAsString name="stepname"/></h2> <p> <tiles:getAsString name="stepdesc"/> </p> --- NEW FILE: memberdetail.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <html:link action="/cancel">Home</html:link> | <html:link action="/viewmemberlist">View Member List</html:link> <br/> <tiles:insert page="/memberinfo.jsp"/> <hr/> <html:link action="/cancel">Home</html:link> | <html:link action="/viewmemberlist">View Member List</html:link> --- NEW FILE: memberlogin.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <html> <head> <title>JGATMS Member Login</title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1>Member Login</h1> <p> Please enter your system user name and to edit your information. </p> <html:errors/> <html:form action="/checklogin" focus="userName"> <table cellpadding="2" cellspacing="2"> <tr> <td>User Name</td> <td><html:text property="userName"/></td> </tr> <tr> <td>Password</td> <td><html:password property="password"/></td> </tr> <tr> <td><html:submit value="Login"/></td> <td><html:reset value="Cancel"/></td> </tr> </table> </html:form> </body> </html> --- NEW FILE: skillqr.jsp --- <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-html.tld" prefix="html" %> <tiles:importAttribute /> <table cellspacing="1" cellpadding="1" width="60%"> <logic:iterate name="skillQuestions" id="question" indexId="i"> <tr> <td width="50%"> <bean:write name="question" property="question"/></td> <td width="50%"> <bean:write name="<%= "responses" + ((inklings.jgatms.skill.QuestionInfo) question).getQuestionId() + "[0]"%>" property="description"/> </td> </tr> </logic:iterate> </table> --- NEW FILE: editmember.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <p> The next few pages will guide you through the process of registering. Required fields are marked with an asterisk (*). </p> <h2><bean:message key="step1.heading"/></h2> <table> <tr> <td colspan="2"><b><bean:message key="name.address.heading"/></b></td> </tr> <tr> <td><bean:message key="label.firstname"/> *</td> <td><html:text property="firstName"/></td> </tr> <tr> <td><bean:message key="label.lastname"/> *</td> <td><html:text property="lastName"/></td> </tr> <tr> <td><bean:message key="label.gender"/> *</td> <td> <html:select property="gender"> <html:option value="M">Male</html:option> <html:option value="F">Female</html:option> </html:select> </td> </tr> <tr> <td><bean:message key="label.address1"/> *</td> <td><html:text property="address1"/></td> </tr> <tr> <td><bean:message key="label.address2"/></td> <td><html:text property="address2"/></td> </tr> <tr> <td><bean:message key="label.city"/> *</td> <td><html:text property="city"/></td> </tr> <tr> <td><bean:message key="label.state"/> *</td> <td> <html:select property="stateId"> <html:option value="AR">Arkansas</html:option> </html:select> </td> </tr> <tr> <td><bean:message key="label.zipcode"/> *</td> <td><html:text property="zipCode"/></td> </tr> <tr> <td colspan="2"><b><br/>Phone Numbers (At least one is required.)</b></td> </tr> <tr> <td><bean:message key="label.homephone"/></td> <td> (<html:text property="homePhoneAC" maxlength="3" size="3"/>) <html:text property="homePhonePre" maxlength="3" size="3"/> - <html:text property="homePhoneSuff"maxlength="4" size="4"/> </td> </tr> <tr> <td><bean:message key="label.workphone"/></td> <td> (<html:text property="workPhoneAC" maxlength="3" size="3"/>) <html:text property="workPhonePre" maxlength="3" size="3"/> - <html:text property="workPhoneSuff"maxlength="4" size="4"/> </td> </tr> <tr> <td><bean:message key="label.mobilephone"/></td> <td> (<html:text property="mobilePhoneAC" maxlength="3" size="3"/>) <html:text property="mobilePhonePre" maxlength="3" size="3"/> - <html:text property="mobilePhoneSuff"maxlength="4" size="4"/> </td> </tr> <tr> <td><bean:message key="label.preferredphone"/> *</td> <td> <html:select property="preferredPhone"> <html:option value="H">Home</html:option> <html:option value="W">Work</html:option> <html:option value="M">Mobile</html:option> </html:select> </td> </tr> <tr> <td colspan="2"><b><br/><bean:message key="label.email"/> </b></td> </tr> <tr> <td colspan="2"><html:text property="emailAddress"/></td> </tr> <tr> <td colspan="2"><b><br/><bean:message key="system.user.info.heading"/></b></td> </tr> <tr> <td colspan="2"> <p> Please create a unique user name and password for the system. Should you need to edit your member information, you will be required to enter this user name and password. Please take care to remember your password. The system does not currently email password reminders. </p> </td> </tr> <tr> <td><bean:message key="label.username"/> *</td> <td><html:text property="userName"/></td> </tr> <tr> <td><bean:message key="label.password"/> *</td> <td><html:password property="password"/></td> </tr> <tr> <td><bean:message key="label.password2"/> *</td> <td><html:password property="password2"/></td> </tr> </table> <h2><bean:message key="step2.heading"/></h2> <p> Please select from the following list anything you currently know how to do at any level or are interested in learning. The next few screens will give you the oppurtunity to further explain how well you know these skills. </p> <tiles:insert definition="skillsList"/> --- NEW FILE: skillq.jsp --- <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-html.tld" prefix="html" %> <tiles:importAttribute /> <% String questionId = (String) pageContext.findAttribute("questionId"); String selectProperty = (String) pageContext.findAttribute("selectProperty"); %> <html:select property="<%= selectProperty %>"> <html:options collection="<%= "responses" + questionId %>" property="responseId" labelProperty="description"/> </html:select> --- NEW FILE: skilllevel.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <h2>Step 3: Select Skill Levels </h2> <p> The skills you selected are listed below. For each one, please select your skill level according to the following legend: </p> <ul> <li> Select <b>Beginner</b> if the skill is something you would like to learn or have very little experience with. </li> <li> Select <b>Intermediate</b> if you have had some experience with the skill and are comfortable doing it as part of a group, but not playing a lead role. </li> <li> Select <b>Advanced</b> if you are comfortable enough with the skill to play a lead role. </li> <li> Select <b>Expert</b> if you have or feel you could perform the selected skill in a professional environment. </li> </ul> <table class-"box" cellpadding="3" cellspacing="0"> <tr> <th>Skill</th> <th>Skill Level</th> </tr> <logic:iterate name="jgatms/memberInfo" property="skillProfiles" id="skillProfile" indexId="i"> <tr> <td><bean:write name="skillProfile" property="skill.name"/></td> <td> <html:select property="<%= "skillLevel[" + i + "]" %>"> <html:option value="0">Beginner</html:option> <html:option value="1">Intermediate</html:option> <html:option value="2">Advanced</html:option> <html:option value="3">Expert</html:option> </html:select> </td> </tr> </logic:iterate> </table> --- NEW FILE: memberlist.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <html> <head> <title>JGATMS: Member List</title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1>Member List</h1> <a href="index.jsp">Home</a><br/><br/> <table class="box" cellspacing="0" cellpadding="3" width="60%"> <tr> <th align="left"> Member Name</th> <th align="left">Preferred Daytime Phone</th> <th align="left">Email Address</th> </tr> <logic:iterate name="members" indexId="i" id="member"> <% String styleClass = "oddRow"; if (i.intValue() % 2 == 0) { styleClass = "oddRow"; } else { styleClass = "evenRow"; } %> <tr class="<%= styleClass %>"> <td> <html:link action="viewmemberdetail" paramName="member" paramProperty="memberId" paramId="memberId"> <bean:write name="member" property="firstName"/> <bean:write name="member" property="lastName"/> </html:link> </td> <td> <logic:equal name="member" property="preferredPhone" value="H"> <bean:write name="member" property="homePhone"/> </logic:equal> <logic:equal name="member" property="preferredPhone" value="W"> <bean:write name="member" property="workPhone"/> </logic:equal> <logic:equal name="member" property="preferredPhone" value="M"> <bean:write name="member" property="mobilePhone"/> </logic:equal> </td> <td><bean:write name="member" property="emailAddress"/></td> </tr> </logic:iterate> </table> </body> </html> --- NEW FILE: wizard.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <tiles:useAttribute name="action" classname="java.lang.String"/> <tiles:useAttribute name="focus" ignore="true" classname="java.lang.String"/> <html> <head> <title><tiles:getAsString name="title"/></title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1><tiles:getAsString name="function"/></h1> <html:errors/> <html:form action="<%= action %>" > <tiles:insert name="content"/> <tiles:insert name="footer"/> </html:form> <script type="text/javascript" language="JavaScript"> <!-- var focusElement = "<%= focus %>"; var focusControl = document.forms[0].elements[focusElement]; if (focusControl != null) { if (focusControl.type != "hidden") { focusControl.focus(); } } // --> </script> </body> </html> --- NEW FILE: reviewmember.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h2>Step 5: Review Information</h2> <p> Please review the information you entered and make sure it is correct. To make changes use the "Back" button below. When you are satisfied that the information is correct click the "Finish" button to save your information. </p> <tiles:insert page="/memberinfo.jsp"/> --- NEW FILE: index.jsp --- <html> <head> <title>Java Group And Team Management System</title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1>Welcome to JGATMS: The Java Group And Team Management System.</h1> <b>Commands</b><br/> <ul> <li><a href="addmember.do">Register New Member</a></li> <li><a href="editmember.do">Edit Your Member Information</a></li> <li><a href="viewmemberlist.do">View Member List</a></li> </ul> </body> </html> --- NEW FILE: memberinfo.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h3>Personal Information</h3> <table> <tr> <td colspan="2"><b>Name and Address</b></td> </tr> <tr> <td>First Name </td> <td><bean:write name="jgatms/memberInfo" property="firstName"/></td> </tr> <tr> <td>Last Name </td> <td><bean:write name="jgatms/memberInfo" property="lastName"/></td> </tr> <tr> <td>Street Address </td> <td><bean:write name="jgatms/memberInfo" property="address1"/></td> </tr> <tr> <td>Address 2</td> <td><bean:write name="jgatms/memberInfo" property="address2"/></td> </tr> <tr> <td>City </td> <td><bean:write name="jgatms/memberInfo" property="city"/></td> </tr> <tr> <td>State </td> <td><bean:write name="jgatms/memberInfo" property="state.description"/></td> </tr> <tr> <td>Zip Code </td> <td><bean:write name="jgatms/memberInfo" property="zipCode"/></td> </tr> <tr> <td colspan="2"><b><br/>Phone Numbers </b></td> </tr> <tr> <td>Home Phone</td> <td><bean:write name="jgatms/memberInfo" property="homePhone"/></td> </tr> <tr> <td>Work Phone</td> <td><bean:write name="jgatms/memberInfo" property="workPhone"/></td> </tr> <tr> <td>Mobile Phone</td> <td><bean:write name="jgatms/memberInfo" property="mobilePhone"/></td> </tr> <tr> <td>Preferred Daytime Phone </td> <td><bean:write name="jgatms/memberInfo" property="preferredPhone"/></td> </tr> <tr> <td><b><br/>Email Address</b></td> <td><bean:write name="jgatms/memberInfo" property="emailAddress"/></td> </tr> <tr> <td colspan="2"><b><br/>System User Information</b></td> </tr> <tr> <td>User Name </td> <td><bean:write name="jgatms/memberInfo" property="userName"/></td> </tr> <tr> <td>Password </td> <td></td> </tr> </tr> </table> <h3>Skills Survey Responses</h3> <table class="box" cellspacing="0" cellpadding="3" width="60%"> <logic:iterate name="jgatms/memberInfo" property="skillProfiles" id="skillProfile" > <tr class="heading"><td colspan="2"> <b> <bean:write name="skillProfile" property="skill.name"/>: <bean:write name="skillProfile" property="level.description"/></b> </td></tr> <logic:iterate name="skillProfile" property="questionResponses" id="questionResponse" indexId="i"> <% String styleClass = "oddRow"; if (i.intValue() % 2 == 0) { styleClass = "oddRow"; } else { styleClass = "evenRow"; } %> <tr class="<%= styleClass %>"> <td> <bean:write name="questionResponse" property="questionResponse.question.question"/></td> <td><b><bean:write name="questionResponse" property="questionResponse.response.description"/></b></td> </tr> </logic:iterate> </logic:iterate> </table> --- NEW FILE: confirmmember.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <tiles:importAttribute/> <html> <head> <title> <bean:message key="register.new.member.title"/></title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1><bean:write name="heading"/></h1> <p> Your member information was successfully saved. </p> <a href="index.jsp"><bean:message key="link.continue"/></a> </body> </html> |