1
0

billerData_list.jsp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function page(start, count){
  5. document.forms.billerData.start.value=start;
  6. document.forms.billerData.count.value=count;
  7. document.forms.billerData.action.value="list";
  8. document.forms.billerData.submit();
  9. doDisable(document.forms.billerData, "button");
  10. }
  11. function doChangePage(count){
  12. document.forms.billerData.start.value= (document.forms.billerData.startx.value-1)*10;
  13. if(document.forms.billerData.start.value=="NaN") document.forms.billerData.start.value = 0;
  14. document.forms.billerData.count.value=count;
  15. document.forms.billerData.action.value="list";
  16. document.forms.billerData.submit();
  17. doDisable(document.forms.billerData, "button");
  18. }
  19. function fillIndex(val){
  20. document.forms.billerData.startx.value = val.value;
  21. }
  22. function doFilter(){
  23. document.forms.billerData.action.value="list";
  24. document.forms.billerData.submit();
  25. doDisable(document.forms.billerData, "button");
  26. }
  27. function doCreate(){
  28. document.forms.billerData.action.value="create";
  29. document.forms.billerData.submit();
  30. doDisable(document.forms.billerData, "button");
  31. }
  32. function doDetail(code){
  33. document.forms.billerData.code.value=code;
  34. document.forms.billerData.action.value="detail";
  35. document.forms.billerData.submit();
  36. }
  37. function doReset(){
  38. document.forms.billerData.biller_code_filter.value="";
  39. document.forms.billerData.biller_name_filter.value="";
  40. document.forms.billerData.biller_billerCategory_filter.value="";
  41. document.forms.billerData.clear.value="true";
  42. document.forms.billerData.action.value="list";
  43. document.forms.billerData.submit();
  44. doDisable(document.forms.billerData, "button");
  45. }
  46. function doOrder(field, type){
  47. document.forms.billerData.biller_fieldOrder.value=field;
  48. document.forms.billerData.biller_orderType.value=type;
  49. document.forms.billerData.action.value="list";
  50. document.forms.billerData.submit();
  51. doDisable(document.forms.billerData, "button");
  52. }
  53. -->
  54. </script>
  55. <form name="billerData" method="post" action="billerData.do">
  56. <input type="hidden" name="start" value="">
  57. <input type="hidden" name="startx" value="">
  58. <input type="hidden" name="action" value="">
  59. <input type="hidden" name="code" value="">
  60. <input type="hidden" name="count" value="">
  61. <input type="hidden" name="clear" value="">
  62. <input type="hidden" name="biller_fieldOrder" value="<bean:write name="biller_fieldOrder"/>">
  63. <input type="hidden" name="biller_orderType" value="<bean:write name="biller_orderType"/>">
  64. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  65. <tr>
  66. <td class="titleHeader"><bean:message key="project.biller.key"/> - LIST</td>
  67. </tr>
  68. <tr>
  69. <td><%@ include file="../common/paging.jsp"%></td>
  70. </tr>
  71. </table>
  72. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  73. <tr>
  74. <td width="5%" class="titleField"><div align="center">#</div></td>
  75. <td width="25%" align="left" height="10" valign="top" class="titleField">
  76. <bean:message key="billerData.code.key"/>
  77. <logic:equal name="biller_fieldOrder" value="biller.code">
  78. <logic:equal name="biller_orderType" value="ASC">
  79. <a href="#" onclick="doOrder('biller.code', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  80. </logic:equal>
  81. <logic:equal name="biller_orderType" value="DESC">
  82. <a href="#" onclick="doOrder('biller.code', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  83. </logic:equal>
  84. </logic:equal>
  85. <logic:notEqual name="biller_fieldOrder" value="biller.code">
  86. <a href="#" onclick="doOrder('biller.code', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  87. </logic:notEqual>
  88. </td>
  89. <td width="25%" align="left" height="10" valign="top" class="titleField">
  90. <bean:message key="billerData.name.key"/>
  91. <logic:equal name="biller_fieldOrder" value="biller.name">
  92. <logic:equal name="biller_orderType" value="ASC">
  93. <a href="#" onclick="doOrder('biller.name', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  94. </logic:equal>
  95. <logic:equal name="biller_orderType" value="DESC">
  96. <a href="#" onclick="doOrder('biller.name', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  97. </logic:equal>
  98. </logic:equal>
  99. <logic:notEqual name="biller_fieldOrder" value="biller.name">
  100. <a href="#" onclick="doOrder('biller.name', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  101. </logic:notEqual>
  102. </td>
  103. <td width="20%" align="left" height="10" valign="top" class="titleField">
  104. <bean:message key="billerData.category.key"/>
  105. <logic:equal name="biller_fieldOrder" value="biller.billerCategory">
  106. <logic:equal name="biller_orderType" value="ASC">
  107. <a href="#" onclick="doOrder('biller.billerCategory', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  108. </logic:equal>
  109. <logic:equal name="biller_orderType" value="DESC">
  110. <a href="#" onclick="doOrder('biller.billerCategory', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  111. </logic:equal>
  112. </logic:equal>
  113. <logic:notEqual name="biller_fieldOrder" value="biller.billerCategory">
  114. <a href="#" onclick="doOrder('biller.billerCategory', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  115. </logic:notEqual>
  116. </td>
  117. <td width="10%" class="titleField">&nbsp;</td>
  118. </tr>
  119. <logic:notEmpty name="billerList">
  120. <logic:iterate id="element" name="billerList" scope="request" indexId="index">
  121. <%
  122. sequence++;
  123. String bgcolor = "FFFFFF";
  124. if(sequence%2 == 0){
  125. bgcolor = "EDEDE8";
  126. }
  127. %>
  128. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  129. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  130. <td align="left" class="celBorder">&nbsp;
  131. <bean:write name="element" property="code"/>&nbsp;
  132. </td>
  133. <td align="left" class="celBorder">&nbsp;
  134. <bean:write name="element" property="name"/>&nbsp;
  135. </td>
  136. <td align="left" class="celBorder">&nbsp;
  137. <bean:write name="element" property="billerCategory.name"/>&nbsp;
  138. </td>
  139. <td align="center" class="celBorder">
  140. <a href="#" ><img src="./images/detail.gif" border="0" onclick="javascript:doDetail('<bean:write name="element" property="code"/>')"; alt="see detail"></a>
  141. </td>
  142. </tr>
  143. </logic:iterate>
  144. </logic:notEmpty>
  145. </table>
  146. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  147. <tr>
  148. <td class="search"><bean:message key="project.search.key" /></td>
  149. </tr>
  150. </table>
  151. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  152. <tr>
  153. <td width="20%" align="left"><b><bean:message key="billerData.code.key"/></b></td>
  154. <td width="1%" align="center">:</td>
  155. <td width="29%" align="left">
  156. <label>
  157. <input type="text" name="biller_code_filter" value="<logic:notEmpty name="biller_code_filter"><bean:write name="biller_code_filter"/></logic:notEmpty>"/>
  158. </label>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td width="20%" align="left"><b><bean:message key="billerData.name.key"/></b></td>
  163. <td width="1%" align="center">:</td>
  164. <td width="29%" align="left">
  165. <label>
  166. <input type="text" name="biller_name_filter" value="<logic:notEmpty name="biller_name_filter"><bean:write name="biller_name_filter"/></logic:notEmpty>"/>
  167. </label>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td width="20%" align="left"><b><bean:message key="billerData.category.key"/></b></td>
  172. <td width="1%" align="center">:</td>
  173. <td width="29%" align="left">
  174. <select name="biller_billerCategory_filter">
  175. <option value="">-- Pilih Salah Satu --</option>
  176. <logic:notEmpty name="billerCategoryList">
  177. <logic:iterate id="billerCategoryElement" name="billerCategoryList">
  178. <option value="<bean:write name="billerCategoryElement" property="code"/>"
  179. <logic:notEmpty name="biller_billerCategory_filter">
  180. <logic:equal name="billerCategoryElement" property="code" value="${biller_billerCategory_filter}">
  181. SELECTED
  182. </logic:equal>
  183. </logic:notEmpty>
  184. >
  185. <bean:write name="billerCategoryElement" property="name"/></option>
  186. </logic:iterate>
  187. </logic:notEmpty>
  188. </select>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td>&nbsp;</td>
  193. <td>&nbsp;</td>
  194. <td>&nbsp;</td>
  195. <td>&nbsp;</td>
  196. <td>&nbsp;</td>
  197. <td>&nbsp;</td>
  198. </tr>
  199. <tr>
  200. <td>&nbsp;</td>
  201. <td>&nbsp;</td>
  202. <td colspan="3" align="left">
  203. <input type="button" size="50" maxlength="25" value="<bean:message key="button.reset"/>" onclick="doReset();">
  204. &nbsp;&nbsp;
  205. <input type="button" value="<bean:message key="button.search"/>" onclick="doFilter();">
  206. </td>
  207. <td>&nbsp;</td>
  208. <td>&nbsp;</td>
  209. <td>&nbsp;</td>
  210. </tr>
  211. </table>
  212. </form>
  213. <%@ include file="../common/footer.jsp" %>