1
0

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