Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.50 KB | None | 0 0
  1. <div align="center">
  2. <c:if test="${mode==cons.GENERALIST}">
  3. <spring:message code="common.status"/>: <br/>
  4. <select name="statusId">
  5. <c:forEach items="${statusList}" var="status">
  6. <option value="${status.id}" <c:if
  7. test="${status.id==currentStatusId}"> selected="selected"</c:if> >
  8. <c:if test="${lang=='es'}">${status.statusSpanish}</c:if>
  9. <c:if test="${lang=='en'}">${status.statusEnglish}</c:if>
  10. </option>
  11. </c:forEach>
  12. </select>
  13. <br/>
  14. <br/>
  15.  
  16. <spring:message code="common.comments"/>:<br/>
  17. <textarea name="generalistComment" cols="50" rows="5">${currentGeneralistComment}</textarea>
  18. <br/>
  19. <br/>
  20. <spring:message code="common.committeeScore"/>:<br/>
  21. <input type="text" name="committeeScore" value="${nomination.commiteeScore}"/>
  22. </c:if>
  23. </div>
  24.  
  25. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  26. <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
  27. <jsp:useBean id="cons" class="com.project.lmu.util.NominationMode" scope="application"/>
  28. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  29.  
  30. <script type="text/javascript">
  31. $(function() {
  32. $('.datepicker').datepicker({
  33. changeMonth: true,
  34. changeYear: true,
  35. minDate: "-50Y",
  36. maxDate: new Date(),
  37. yearRange: "-50",
  38. showOn: "button",
  39. buttonImage: "images/prototipo/calendar1.png",
  40. buttonImageOnly: true
  41. });
  42. });
  43. </script>
  44.  
  45. <td id="content_inner">
  46. <div id="content">
  47.  
  48. <h1><spring:message code="successNomination.lable.title"/></h1>
  49. <br/>
  50.  
  51. <c:if test="${error==true}">
  52.  
  53. <div class="error">
  54. <ul>
  55. <c:forEach items="${nomination.errors}" var="message">
  56. <li><spring:message code="${message}"/></li>
  57. </c:forEach>
  58. </ul>
  59. </div>
  60. </c:if>
  61.  
  62. <form name="f" action="successSaveNomination" method="post">
  63.  
  64. <c:if test="${nomination.nominationId==null}">
  65. <input type="hidden" name="nominationId" value="0"/>
  66. </c:if>
  67. <c:if test="${nomination.nominationId!=null}">
  68. <input type="hidden" name="nominationId" value="${nomination.nominationId}"/>
  69. </c:if>
  70.  
  71. <input type="hidden" name="nomineeId" value="${nominee.id}"/>
  72. <input type="hidden" name="mode" value="${mode}"/>
  73.  
  74. <table border="0" cellpadding="0" cellspacing="5" width="100%">
  75. <tr>
  76. <td valign="top" width="150px"><b><spring:message code="successNomination.lable.subtitle1"/>: </b></td>
  77. <td>
  78. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  79. <tr>
  80. <td>${nominee.firstName} ${nominee.middleName} ${nominee.lastName}</td>
  81. </tr>
  82. <tr>
  83. <td><i>${nominee.jobTitle} - ${nominee.department.description} - ${nominee.id}</i></td>
  84. </tr>
  85. </table>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td><b><spring:message code="successNomination.lable.subtitle4"/>: </b></td>
  90. <td>
  91. <select name="periodId"
  92. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled" </c:if> >
  93. <c:forEach items="${periods}" var="period">
  94. <option value="${period.id}"
  95. <c:if test="${period.id==nomination.periodId}">selected="selected"</c:if>>&nbsp; &nbsp;
  96. &nbsp; &nbsp;${period.periodDescription}</option>
  97. </c:forEach>
  98. </select>
  99. </td>
  100. </tr>
  101. </table>
  102.  
  103. <br/>
  104.  
  105. <table width="100%">
  106. <tr>
  107. <th class="green"><spring:message code="successNomination.label.requirements.title1"/></th>
  108. <th width="50%" class="green"><spring:message code="successNomination.label.requirements.title2"/></th>
  109. </tr>
  110. <tr>
  111. <td class="gborder" valign="middle">
  112. <p><spring:message code="successNomination.label.requirements1"/></p>
  113.  
  114. <p>
  115. <spring:message code="successNomination.label.requirements2"/>:
  116. <input type="text" class="points" disabled="disabled"
  117. value="<fmt:formatDate type='date' pattern='MM/dd/yyyy' value='${nominee.hireDate}' />"/>
  118. </p>
  119. </td>
  120. <td class="gborder">
  121. <p class="centered">
  122. <textarea cols="40" rows="6" name="hireComments" <c:if
  123. test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if>>${nomination.hireComments}</textarea>
  124. </p>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td class="gborder"><p><spring:message code="successNomination.label.requirements3"/><br/>
  129. <a href="#footnote" class="required"><spring:message code="successNomination.lable.instructions1"/> </a></p>
  130.  
  131. <table>
  132. <tr style="padding:3em;">
  133. <td><spring:message code="successNomination.label.requirements4"/>:</td>
  134. <td><input type="text" class="points" name="evaluationPoints1"
  135. value="${nomination.evaluationPoints1}"
  136. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  137. </td>
  138. <td><spring:message code="successNomination.label.requirements5"/>:</td>
  139. <td><input type="text" class="points datepicker" name="evaluationYear1"
  140. value="${nomination.evaluationYear1}"
  141. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  142. readonly="readonly"/>
  143. </td>
  144.  
  145. </tr>
  146. <tr>
  147. <td><spring:message code="successNomination.label.requirements4"/>:</td>
  148. <td><input type="text" class="points" name="evaluationPoints2"
  149. value="${nomination.evaluationPoints2}"
  150. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  151. </td>
  152. <td><spring:message code="successNomination.label.requirements5"/>:</td>
  153. <td><input type="text" class="points datepicker" name="evaluationYear2"
  154. value="${nomination.evaluationYear2}"
  155. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  156. readonly="readonly"/>
  157. </td>
  158. </tr>
  159. </table>
  160. </td>
  161. <td class="gborder">
  162. <p class="centered">
  163. <textarea cols="40" rows="6" name="evaluationComments"
  164. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if>>${nomination.evaluationComments}</textarea>
  165. </p>
  166. </td>
  167. </tr>
  168. <tr>
  169. <td class="gborder"><p><spring:message code="successNomination.label.requirements6"/></p>
  170.  
  171. <table>
  172. <tr>
  173. <td><spring:message code="successNomination.label.requirements7"/>:</td>
  174. <td>
  175. <input type="text" class="points datepicker" name="promotionDate1"
  176. <c:if test="${nomination.promotionDate1 != null}">value="${nomination.promotionDate1}"</c:if>
  177. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  178. readonly="readonly"/>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td><spring:message code="successNomination.label.requirements7"/>:</td>
  183. <td>
  184. <input type="text" class="points datepicker" name="promotionDate2"
  185. <c:if test="${nomination.promotionDate2 != null}">value="${nomination.promotionDate2}"</c:if>
  186. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  187. readonly="readonly"/>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td><spring:message code="successNomination.label.requirements7"/>:</td>
  192. <td>
  193. <input type="text" class="points datepicker" name="promotionDate3"
  194. <c:if test="${nomination.promotionDate3 != null}">value="${nomination.promotionDate3}"</c:if>
  195. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  196. readonly="readonly"/>
  197. </td>
  198. </tr>
  199. <tr>
  200. <td><spring:message code="successNomination.label.requirements7"/>:</td>
  201. <td>
  202. <input type="text" class="points datepicker" name="promotionDate4"
  203. <c:if test="${nomination.promotionDate4 != null}">value="${nomination.promotionDate4}"</c:if>
  204. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  205. readonly="readonly"/>
  206. </td>
  207. </tr>
  208. </table>
  209. </td>
  210. <td class="gborder">
  211. <p class="centered">
  212. <textarea cols="40" rows="6" name="promotionComments"
  213. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if>>${nomination.promotionComments}</textarea>
  214. </p>
  215. </td>
  216. </tr>
  217. <tr>
  218. <td class="gborder">
  219. <p>
  220. <spring:message code="successNomination.label.requirements8"/><br/>
  221. <a href="#footnote" class="required"><spring:message code="successNomination.lable.instructions1"/></a>
  222. </p>
  223.  
  224. <p>
  225.  
  226. <input type="radio" name="extraContribution" value="1"
  227. <c:if test="${nomination.extraContribution == true}">checked="checked"</c:if>
  228. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  229. onclick="activateContributionsField(document.f)"/>
  230. <spring:message code="successNomination.label.requirements9"/> &nbsp;
  231. <input type="radio" name="extraContribution" value="0"
  232. <c:if test="${nomination.extraContribution == false}">checked="checked"</c:if>
  233. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if>
  234. onclick="activateContributionsField(document.f)"/>
  235. <spring:message code="successNomination.label.requirements10"/><br/>
  236. <spring:message code="successNomination.label.requirements11"/>:
  237. <input type="text" class="points" name="extraContributionPoints"
  238. value="${nomination.extraContributionPoints}"
  239. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST || nomination.extraContribution!=true}">disabled="disabled"</c:if> />
  240. </p>
  241. </td>
  242. <td class="gborder">
  243. <p class="centered">
  244. <textarea cols="40" rows="6" name="extraComments"
  245. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if>>${nomination.extraComments}</textarea>
  246. </p>
  247. </td>
  248. </tr>
  249. <tr>
  250. <td class="gborder">
  251. <p><spring:message code="successNomination.label.requirements12"/><br/>
  252. <a href="#footnote" class="required"><spring:message code="successNomination.lable.instructions1"/></a>
  253. </p>
  254.  
  255. <p>
  256. <input type="radio" name="companyPolicy" value="1"
  257. <c:if test="${nomination.companyPolicy == true}">checked="checked"</c:if>
  258. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  259. <spring:message code="successNomination.label.requirements9"/> &nbsp;
  260. <input type="radio" name="companyPolicy" value="0"
  261. <c:if test="${nomination.companyPolicy == false}">checked="checked"</c:if>
  262. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  263. <spring:message code="successNomination.label.requirements10"/>
  264. </p>
  265. </td>
  266. <td class="gborder">
  267. <p class="centered">
  268. <textarea cols="40" rows="6" name="companyPolicyComments"
  269. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if>>${nomination.companyPolicyComments}</textarea>
  270. </p>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="gborder">
  275. <p>
  276. <spring:message code="successNomination.label.requirements13"/><br/>
  277. <a href="#footnote" class="required"><spring:message code="successNomination.lable.instructions1"/></a>
  278. </p>
  279.  
  280. <p>
  281. <spring:message code="successNomination.label.requirements14"/>:
  282. <input type="radio" value="1" name="evaluationAttendancePolicy1"
  283. <c:if test="${nomination.evaluationAttendancePolicy1 == true}">checked="checked"</c:if>
  284. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  285. <spring:message code="successNomination.label.requirements9"/>
  286. <input type="radio" value="0" name="evaluationAttendancePolicy1"
  287. <c:if test="${nomination.evaluationAttendancePolicy1 == false}">checked="checked"</c:if>
  288. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  289. <spring:message code="successNomination.label.requirements10"/>
  290. </p>
  291.  
  292. <p>
  293. <spring:message code="successNomination.label.requirements15"/>:
  294. <input type="radio" value="1" name="evaluationAttendancePolicy2"
  295. <c:if test="${nomination.evaluationAttendancePolicy2 == true}">checked="checked"</c:if>
  296. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  297. <spring:message code="successNomination.label.requirements9"/>
  298. <input type="radio" value="0" name="evaluationAttendancePolicy2"
  299. <c:if test="${nomination.evaluationAttendancePolicy2 == false}">checked="checked"</c:if>
  300. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}">disabled="disabled"</c:if> />
  301. <spring:message code="successNomination.label.requirements10"/>
  302. </p>
  303. </td>
  304. <td class="gborder">
  305. <p class="centered">
  306. <textarea cols="40" rows="6" name="attendanceComments"
  307. <c:if test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if>>${nomination.attendanceComments}</textarea>
  308. </p>
  309. </td>
  310. </tr>
  311. </table>
  312.  
  313. <br/>
  314.  
  315. <p>
  316. <spring:message code="successNomination.label.requirements16"/>:
  317. </p>
  318.  
  319. <div align="center">
  320. <textarea cols="50" rows="7" name="reason" <c:if
  321. test="${mode==cons.READ_ONLY||mode==cons.GENERALIST}"> disabled="disabled" </c:if> >${nomination.reason}</textarea>
  322. </div>
  323. <br/>
  324.  
  325. <div align="center">
  326. <c:if test="${mode==cons.GENERALIST}">
  327. <spring:message code="common.status"/>: <br/>
  328. <select name="statusId">
  329. <c:forEach items="${statusList}" var="status">
  330. <option value="${status.id}" <c:if
  331. test="${status.id==currentStatusId}"> selected="selected"</c:if> >
  332. <c:if test="${lang=='es'}">${status.statusSpanish}</c:if>
  333. <c:if test="${lang=='en'}">${status.statusEnglish}</c:if>
  334. </option>
  335. </c:forEach>
  336. </select>
  337. <br/>
  338. <br/>
  339.  
  340. <spring:message code="common.comments"/>:<br/>
  341. <textarea name="generalistComment" cols="50" rows="5">${currentGeneralistComment}</textarea>
  342. <br/>
  343. <br/>
  344. <spring:message code="common.committeeScore"/>:<br/>
  345. <input type="text" name="committeeScore" value="${nomination.commiteeScore}"/>
  346. </c:if>
  347. </div>
  348.  
  349.  
  350. <div id="bottommenu">
  351. <c:if test="${(mode==cons.NEW||mode==cons.EDIT)}">
  352. <input type="submit" value="<spring:message code="common.send"/>"/>
  353. </c:if>
  354. <c:if test="${mode==cons.GENERALIST}">
  355. <input type="button" value="<spring:message code="common.save"/>" onclick="generalistSuccessUpdate()"/>
  356. </c:if>
  357. <c:if test="${mode==cons.NEW}">
  358. <input type="reset" value="<spring:message code="common.reset"/>">
  359. </c:if>
  360. <c:if test="${mode==cons.EDIT}">
  361. <script type="text/javascript">var msg = "<spring:message code='nominations.confirm' javaScriptEscape='true' />";</script>
  362. <input type="button" value="<spring:message code="common.delete"/>" onclick="delNomination()"/>
  363. </c:if>
  364. <c:if test="${mode==cons.READ_ONLY||mode==cons.EDIT||mode==cons.GENERALIST}">
  365. <input type="button" value="<spring:message code="common.print"/>" onclick="printNomination()"/>
  366. <input type="button" value="<spring:message code="common.back"/>" onclick="history.back();"/>
  367. </c:if>
  368. </div>
  369.  
  370. <div id="footnote">
  371. <p> * <spring:message code="successNomination.lable.instructions3"/>.<br/>
  372. **<spring:message code="successNomination.lable.instructions4"/>.</p>
  373. </div>
  374.  
  375. </form>
  376.  
  377. <form name="d" action="successDeleteNomination" method="post">
  378. <input type="hidden" name="nominationId" value="${nomination.nominationId}"/>
  379. </form>
  380.  
  381. <form name="p" action="successPrint" method="post">
  382. <input type="hidden" name="nominationId" value="${nomination.nominationId}"/>
  383. </form>
  384.  
  385. <form name="g" action="successGenUpdate" method="post">
  386. <input type="hidden" name="nominationId" value="${nomination.nominationId}"/>
  387. <input type="hidden" name="statusId" value="${statusId}"/>
  388. <input type="hidden" name="generalistComment" value="${generalistComment}"/>
  389. </form>
  390.  
  391. </div>
  392. </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement