| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <%@ include file="../common/header.jsp"%>
- <script type="text/javascript" language="javascript">
- <!--
- function doBack(){
- document.forms.billerCategory.action.value="edit";
- document.forms.billerCategory.clear.value="true";
- document.forms.billerCategory.submit();
- doDisable(document.forms.billerCategory, "button");
- }
-
- function doEditSearch(){
- document.forms.billerCategory.action.value="edit_search";
- document.forms.billerCategory.clear.value="true";
- document.forms.billerCategory.submit();
- doDisable(document.forms.billerCategory, "button");
- }
-
- function doEditOk(){
- var x = window.confirm("<bean:message key="confirm.edit" />");
- if(x){
- document.forms.billerCategory.action.value="edit_ok";
- document.forms.billerCategory.clear.value="true";
- document.forms.billerCategory.submit();
- doDisable(document.forms.billerCategory, "button");
- }
- }
-
- function doInactive(code,status){
- var x = window.confirm("Are you sure to inactivate this record?");
- if(x){
- document.forms.billerCategory.code.value=code;
- document.forms.billerCategory.status.value=status;
- document.forms.billerCategory.action.value="update_status";
- document.forms.billerCategory.submit();
- doDisable(document.forms.billerCategory, "button");
- }
- }
-
- function doActive(code,status){
- var x = window.confirm("Are you sure to inactivate this record?");
- if(x){
- document.forms.billerCategory.code.value=code;
- document.forms.billerCategory.status.value=status;
- document.forms.billerCategory.action.value="update_status";
- document.forms.billerCategory.submit();
- doDisable(document.forms.billerCategory, "button");
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="billerCategory" method="post" action="billerCategory.do">
- <input type="hidden" name="action" value =""/>
- <input type="hidden" name="clear" value =""/>
- <input type="hidden" name="status">
- <html:hidden name="billerCategory" property="code"/>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.billerCategory.key"/> - EDIT</td>
- </tr>
- <tr><td colspan="3"><html:errors/></td></tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td align="center">
- <logic:empty name="billerCategory" property="code">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr align = "left">
- <td width="15%"><b><bean:message key="billerCategory.category.key" /></b></td>
- <td width="1%">:</td>
- <td width="34%" valign="top">
- <select name="billerCode" style="width:300">
- <option value="">-- Select Biller Category --</option>
- <logic:notEmpty name="billerCategoryList">
- <logic:iterate id="element_billerCategory" name="billerCategoryList" >
- <option value="<bean:write name="element_billerCategory" property="code" />"
- <logic:notEmpty name="billerCategory" property="code">
- <logic:equal name="billerCategory" property="code" value="${element_billerCategory.code}">
- selected
- </logic:equal>
- </logic:notEmpty>
- ><bean:write name="element_billerCategory" 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>
- </table>
- </logic:empty>
-
- <logic:notEmpty name="billerCategory" property="code">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="billerCategory.code.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="34%">
- <bean:write name="billerCategory" property="code"/>
- </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="billerCategory.name.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="34%">
- <html:text name="billerCategory" property="name" maxlength="50"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- </table>
- </logic:notEmpty>
-
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%" valign="top"></td>
- <td width="1%" valign="top"></td>
- <td width="84%" valign="top">
- <logic:empty name="billerCategory" property="code">
- <input type="button" value="<bean:message key="button.edit" />" onclick="javascript:doEditSearch();">
- </logic:empty>
- <logic:notEmpty name="billerCategory" property="code">
- <input type="button" value="<bean:message key="button.cancel" />" onclick="javascript:doBack();">
-
- <input type="button" value="<bean:message key="button.submit" />" onclick="javascript:doEditOk();">
-
- <logic:equal name="billerCategory_status" value="ACTIVE">
- <input type="button" value=<bean:message key="button.inactive"/> onclick="doInactive('<str:replace replace="'" with="\'"><bean:write name="billerCategory" property="code"/></str:replace>','INACTIVE');">
- </logic:equal>
- <logic:equal name="billerCategory_status" value="INACTIVE">
- <input type="button" value=<bean:message key="button.active"/> onclick="doActive('<str:replace replace="'" with="\'"><bean:write name="billerCategory" property="code"/></str:replace>','ACTIVE');">
- </logic:equal>
- </logic:notEmpty>
- </td>
- <td colspan="4"> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
|