| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <%@ include file="../common/header.jsp"%>
-
- <script type="text/javascript" language="javascript">
- <!--
- function doUpdatePrivilege(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.epayPrivilege.action.value = "edit_ok";
- document.forms.epayPrivilege.post.value = "true";
- document.forms.epayPrivilege.submit();
- }
- }
- function doBack(){
- document.forms.epayPrivilege.action.value="detail";
- document.forms.epayPrivilege.submit();
- doDisable(document.forms.epayPrivilege, "button");
- }
-
- function doEditSearch(){
- document.forms.epayPrivilege.action.value="edit_search";
- document.forms.epayPrivilege.submit();
- doDisable(document.forms.epayPrivilege, "button");
- }
-
- function doInactive(code,status){
- var x = window.confirm(" Are you sure inactivate this record?")
- if (x) {
- document.forms.epayPrivilege.code.value=code;
- document.forms.epayPrivilege.status.value=status;
- document.forms.epayPrivilege.action.value="update_status";
- document.forms.epayPrivilege.submit();
- }
- }
-
- function doActive(code,status){
- var x = window.confirm(" Are you sure activate this record?")
- if (x) {
- document.forms.epayPrivilege.code.value=code;
- document.forms.epayPrivilege.status.value=status;
- document.forms.epayPrivilege.action.value="update_status";
- document.forms.epayPrivilege.submit();
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="epayPrivilege" method="post" action="epayPrivilege.do">
- <input type="hidden" name="action" value =""/>
- <input type="hidden" name="clear" value =""/>
- <html:hidden name="nhprivilege" property="code"/>
- <input type="hidden" name="post">
- <input type="hidden" name="status" value =""/>
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.privilege.key"/> - EDIT</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr><td><html:errors/></td></tr>
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <logic:empty name="nhprivilege" property="code">
- <tr align = "left">
- <td width="15%"><b><bean:message key="privilege.id.key" /></b></td>
- <td width="10">:</td>
- <td width="30%">
- <input type="text" name="codeSearch" value="">
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr align = "left">
- <td width="15%"></td>
- <td width="10"></td>
- <td width="30%">
- <input type="button" value="<bean:message key="button.edit" />" onclick="javascript:doEditSearch();">
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- </logic:empty>
- <logic:notEmpty name="nhprivilege" property="code">
- <tr>
- <td width="30%"><b><bean:message key="privilege.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="5">:</td>
- <td width="60%">
- <bean:write name="nhprivilege" property="code"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="privilege.name.key"/><font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="nhprivilege" property="name" size="30"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="privilege.type.key"/><font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <SELECT name="type">
- <option value="">Pilih Salah Satu</option>
- <option value="PRIV_TYPE_MENU"
- <logic:equal name="nhprivilege" property="type" value="PRIV_TYPE_MENU">
- SELECTED
- </logic:equal>
- >PRIV_TYPE_MENU</option>
- <option value="PRIV_TYPE_ACTION"
- <logic:equal name="nhprivilege" property="type" value="PRIV_TYPE_ACTION">
- SELECTED
- </logic:equal>
- >PRIV_TYPE_ACTION</option>
- </SELECT>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="privilege.path.key"/><font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="nhprivilege" property="path" size="30"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="privilege.parent.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <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="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="privilege.priority.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="nhprivilege" property="priority" size="30"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr align = "left">
- <td><b><bean:message key="privilege.status.key"/></b></td>
- <td>:</td>
- <td align="left"><bean:write name="nhprivilege" property="status"/></td>
- <td> </td>
- <td> </td>
- <td> </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="doUpdatePrivilege();"/>
-
- <logic:equal name="nhprivilege" property="status" value="ACTIVE">
-
- <input type="button" value="<bean:message key="button.inactive"/>" onclick="doInactive('<bean:write name="nhprivilege" property="code"/>','INACTIVE');">
- </logic:equal>
- <logic:equal name="nhprivilege" property="status" value="INACTIVE">
-
- <input type="button" value="<bean:message key="button.active"/>" onclick="doActive('<bean:write name="nhprivilege" property="code"/>','ACTIVE');">
- </logic:equal>
- </td>
- <td colspan="4"> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </logic:notEmpty>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|