epay_privilege_create.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function isNumberKey(evt) {
  5. var charCode = (evt.which) ? evt.which : event.keyCode
  6. if (charCode > 31 && (charCode < 48 || charCode > 57))
  7. return false;
  8. return true;
  9. }
  10. function doCreatePrivilege(){
  11. var x = window.confirm("<bean:message key="confirm.create"/>")
  12. if (x) {
  13. document.forms.nhprivilege.action.value="create_ok";
  14. document.forms.nhprivilege.post.value = "true";
  15. document.forms.nhprivilege.submit();
  16. }
  17. }
  18. function doBack(){
  19. document.forms.nhprivilege.action.value="list";
  20. document.forms.nhprivilege.clear.value="true";
  21. document.forms.nhprivilege.submit();
  22. }
  23. -->
  24. </script>
  25. <!-- CONTENT -->
  26. <form name="nhprivilege" method="post" action="epayPrivilege.do">
  27. <input type="hidden" name="action"/>
  28. <input type="hidden" name="clear"/>
  29. <input type="hidden" name="sequence"/>
  30. <input type="hidden" name="post"/>
  31. <input type="hidden" name="redirect" value="create"/>
  32. <!--td width="80%" valign="top"-->
  33. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  34. <td class="titleHeader" align="left"><bean:message key="project.privilege.key"/> CREATE</td>
  35. </table>
  36. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  37. <tr>
  38. <td align="center">
  39. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  40. <tr><td colspan="6"><html:errors/></td></tr>
  41. <tr>
  42. <td width="10%"><b><bean:message key="privilege.id.key"/><font color="#FF0000">*</font></b></td>
  43. <td width="2">:</td>
  44. <td width="50%">
  45. <html:text name="nhprivilege" property="code"/>
  46. </td>
  47. <td width="8%">&nbsp;</td>
  48. <td width="10%">&nbsp;</td>
  49. <td width="10">&nbsp;</td>
  50. <td width="10%">&nbsp;</td>
  51. </tr>
  52. <tr>
  53. <td width="10%"><b><bean:message key="privilege.name.key"/><font color="#FF0000">*</font></b></td>
  54. <td width="2">:</td>
  55. <td width="50%">
  56. <html:text name="nhprivilege" property="name" size="30"/>
  57. </td>
  58. <td width="8%">&nbsp;</td>
  59. <td width="10%">&nbsp;</td>
  60. <td width="10">&nbsp;</td>
  61. <td width="10%">&nbsp;</td>
  62. </tr>
  63. <tr>
  64. <td width="10%"><b><bean:message key="privilege.type.key"/><font color="#FF0000">*</font></b></td>
  65. <td width="2">:</td>
  66. <td colspan="4" width="80%">
  67. <SELECT name="type">
  68. <option value="">Pilih Salah Satu</option>
  69. <option value="PRIV_TYPE_MENU">PRIV_TYPE_MENU</option>
  70. <option value="PRIV_TYPE_ACTION">PRIV_TYPE_ACTION</option>
  71. </SELECT>
  72. </td>
  73. <td width="8%">&nbsp;</td>
  74. </tr>
  75. <tr>
  76. <td width="10%"><b><bean:message key="privilege.path.key"/><font color="#FF0000">*</font></b></td>
  77. <td width="2">:</td>
  78. <td width="50%">
  79. <html:text name="nhprivilege" property="path"/>
  80. </td>
  81. <td width="8%">&nbsp;</td>
  82. <td width="10%">&nbsp;</td>
  83. <td width="10">&nbsp;</td>
  84. <td width="10%">&nbsp;</td>
  85. </tr>
  86. <tr>
  87. <td width="10%"><b><bean:message key="privilege.parent.key"/></b></td>
  88. <td width="2">:</td>
  89. <td width="50%">
  90. <select name="parent">
  91. <option value="">-- Pilih Salah Satu --</option>
  92. <logic:notEmpty name="nhprivilegeList">
  93. <logic:iterate id="nhprivilegeElement" name="nhprivilegeList">
  94. <option value="<bean:write name="nhprivilegeElement" property="code"/>"
  95. <logic:equal name="nhprivilegeElement" property="code" value="${nhprivilege.parent.code}">
  96. SELECTED
  97. </logic:equal>
  98. >
  99. <bean:write name="nhprivilegeElement" property="name"/></option>
  100. </logic:iterate>
  101. </logic:notEmpty>
  102. </select>
  103. </td>
  104. <td width="8%">&nbsp;</td>
  105. <td width="10%">&nbsp;</td>
  106. <td width="10">&nbsp;</td>
  107. <td width="10%">&nbsp;</td>
  108. </tr>
  109. <tr>
  110. <td width="10%"><b><bean:message key="privilege.priority.key" /> </td>
  111. <td width="2%">:</td>
  112. <td width="50%">
  113. <input type="text" name="priority" size="30" maxlength="25" onkeypress="return isNumberKey(event);" value="<bean:write name="nhprivilege" property="priority"/>" class="numeric">
  114. </td>
  115. <td width="8%">&nbsp;</td>
  116. <td width="10%">&nbsp;</td>
  117. <td width="10%">&nbsp;</td>
  118. <td width="10%">&nbsp;</td>
  119. </tr>
  120. <tr>
  121. <td width="15%"></td>
  122. <td width="10"></td>
  123. <td width="30%">
  124. <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
  125. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreatePrivilege();"/>
  126. </td>
  127. <td colspan="4">&nbsp;</td>
  128. </tr>
  129. </table>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>&nbsp;</td>
  134. </tr>
  135. </table>
  136. </td>
  137. </form>
  138. <!-- END CONTENT -->
  139. <logic:notEmpty name="focus"><bean:write name="focus" filter="false" /></logic:notEmpty>
  140. <%@ include file="../common/footer.jsp"%>