| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
-
- function isNumberKey(evt) {
- var charCode = (evt.which) ? evt.which : event.keyCode
- if (charCode > 31 && (charCode < 48 || charCode > 57))
- return false;
-
- return true;
- }
-
-
- function doCreatePrivilege(){
- var x = window.confirm("<bean:message key="confirm.create"/>")
- if (x) {
- document.forms.nhprivilege.action.value="create_ok";
- document.forms.nhprivilege.post.value = "true";
- document.forms.nhprivilege.submit();
- }
- }
- function doBack(){
- document.forms.nhprivilege.action.value="list";
- document.forms.nhprivilege.clear.value="true";
- document.forms.nhprivilege.submit();
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="nhprivilege" method="post" action="epayPrivilege.do">
- <input type="hidden" name="action"/>
- <input type="hidden" name="clear"/>
- <input type="hidden" name="sequence"/>
- <input type="hidden" name="post"/>
- <input type="hidden" name="redirect" value="create"/>
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <td class="titleHeader" align="left"><bean:message key="project.privilege.key"/> CREATE</td>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr><td colspan="6"><html:errors/></td></tr>
- <tr>
- <td width="10%"><b><bean:message key="privilege.id.key"/><font color="#FF0000">*</font></b></td>
- <td width="2">:</td>
- <td width="50%">
- <html:text name="nhprivilege" property="code"/>
- </td>
- <td width="8%"> </td>
- <td width="10%"> </td>
- <td width="10"> </td>
- <td width="10%"> </td>
- </tr>
- <tr>
- <td width="10%"><b><bean:message key="privilege.name.key"/><font color="#FF0000">*</font></b></td>
- <td width="2">:</td>
- <td width="50%">
- <html:text name="nhprivilege" property="name" size="30"/>
- </td>
- <td width="8%"> </td>
- <td width="10%"> </td>
- <td width="10"> </td>
- <td width="10%"> </td>
- </tr>
- <tr>
- <td width="10%"><b><bean:message key="privilege.type.key"/><font color="#FF0000">*</font></b></td>
- <td width="2">:</td>
- <td colspan="4" width="80%">
- <SELECT name="type">
- <option value="">Pilih Salah Satu</option>
- <option value="PRIV_TYPE_MENU">PRIV_TYPE_MENU</option>
- <option value="PRIV_TYPE_ACTION">PRIV_TYPE_ACTION</option>
- </SELECT>
- </td>
- <td width="8%"> </td>
- </tr>
- <tr>
- <td width="10%"><b><bean:message key="privilege.path.key"/><font color="#FF0000">*</font></b></td>
- <td width="2">:</td>
- <td width="50%">
- <html:text name="nhprivilege" property="path"/>
- </td>
- <td width="8%"> </td>
- <td width="10%"> </td>
- <td width="10"> </td>
- <td width="10%"> </td>
- </tr>
- <tr>
- <td width="10%"><b><bean:message key="privilege.parent.key"/></b></td>
- <td width="2">:</td>
- <td width="50%">
- <select name="parent">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="nhprivilegeList">
- <logic:iterate id="nhprivilegeElement" name="nhprivilegeList">
- <option value="<bean:write name="nhprivilegeElement" property="code"/>"
- <logic:equal name="nhprivilegeElement" property="code" value="${nhprivilege.parent.code}">
- SELECTED
- </logic:equal>
- >
- <bean:write name="nhprivilegeElement" property="name"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- <td width="8%"> </td>
- <td width="10%"> </td>
- <td width="10"> </td>
- <td width="10%"> </td>
- </tr>
- <tr>
- <td width="10%"><b><bean:message key="privilege.priority.key" /> </td>
- <td width="2%">:</td>
- <td width="50%">
- <input type="text" name="priority" size="30" maxlength="25" onkeypress="return isNumberKey(event);" value="<bean:write name="nhprivilege" property="priority"/>" class="numeric">
- </td>
- <td width="8%"> </td>
- <td width="10%"> </td>
- <td width="10%"> </td>
- <td width="10%"> </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="10"></td>
- <td width="30%">
- <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
- <input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreatePrivilege();"/>
- </td>
- <td colspan="4"> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </form>
- <!-- END CONTENT -->
- <logic:notEmpty name="focus"><bean:write name="focus" filter="false" /></logic:notEmpty>
- <%@ include file="../common/footer.jsp"%>
-
|