| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <%@ include file="../common/header.jsp"%>
-
- <script type="text/javascript" language="javascript">
- <!--
- function doUpdateRole(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.epayRole.action.value = "edit_ok";
- document.forms.epayRole.post.value = "true";
- document.forms.epayRole.submit();
- }
- }
-
- function doEditSearch(){
- document.forms.epayRole.action.value="edit_search";
- document.forms.epayRole.submit();
- doDisable(document.forms.epayRole, "button");
- }
- function doBack(){
- document.forms.epayRole.action.value="edit";
- document.forms.epayRole.submit();
- doDisable(document.forms.epayRole, "button");
- }
-
- function doInactive(code,status){
- var x = window.confirm(" Are you sure inactivate this record?")
- if (x) {
- document.forms.epayRole.code.value=code;
- document.forms.epayRole.status.value=status;
- document.forms.epayRole.action.value="update_status";
- document.forms.epayRole.submit();
- }
- }
-
- function doActive(code,status){
- var x = window.confirm(" Are you sure activate this record?")
- if (x) {
- document.forms.epayRole.code.value=code;
- document.forms.epayRole.status.value=status;
- document.forms.epayRole.action.value="update_status";
- document.forms.epayRole.submit();
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="epayRole" method="post" action="epayRole.do">
- <input type="hidden" name="action" value =""/>
- <input type="hidden" name="clear" value =""/>
- <html:hidden name="nhrole" 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.role.key"/> - EDIT</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr><td colspan="7"><html:errors/></td></tr>
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <logic:empty name="nhrole" property="code">
- <tr align = "left">
- <td width="15%"><b><bean:message key="role.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="nhrole" property="code">
- <tr>
- <td width="30%"><b><bean:message key="role.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="5">:</td>
- <td width="60%">
- <bean:write name="nhrole" property="code"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="role.name.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="nhrole" property="name" size="30"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr align = "left">
- <td valign="top"><b><bean:message key="role.privilege.key"/></b></td>
- <td valign="top">:</td>
- <td align="left"><div style="overflow:auto;height: 200px; width: 200px;;border:1px solid #336699;padding-left:5px">
- <table border="0" width="100%" align="center" cellpadding="2" cellspacing="1">
- <logic:notEmpty name="nhprivilegesSetList">
- <logic:iterate id="nhprivileges" name="nhprivilegesSetList" >
- <tr>
- <td width="1%" align="right">
- <input type="checkbox" name="<bean:write name="nhprivileges" property="code"/>"
- <logic:notEmpty name="nhrole" property="nhprivileges">
- <logic:iterate id="element_privileges" name="nhrole" property="nhprivileges" >
- <logic:equal name="nhprivileges" property="code" value="${element_privileges.code}">
- checked
- </logic:equal>
- </logic:iterate>
- </logic:notEmpty>
- >
- </td>
- <td><bean:write name="nhprivileges" property="name"/></td>
- </tr>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </div>
- </td>
- </tr>
- <tr>
- <td width="30%"><b><bean:message key="role.status.key"/></b></td>
- <td width="5">:</td>
- <td width="60%">
- <bean:write name="nhrole" property="status"/>
- </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="doUpdateRole();"/>
- <logic:equal name="nhrole" property ="status" value="ACTIVE">
- <input type="button" value="<bean:message key="button.inactive"/>" onclick="doInactive('<bean:write name="nhrole" property="code"/>','INACTIVE');">
- </logic:equal>
- <logic:equal name="nhrole" property ="status" value="INACTIVE">
- <input type="button" value="<bean:message key="button.active"/>" onclick="doActive('<bean:write name="nhrole" property="code"/>','ACTIVE');">
- </logic:equal>
- </td>
- <td colspan="4"> </td>
- </tr>
- </logic:notEmpty>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|