inquiry_balance.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doViewStatement(account){
  5. var form = document.forms.inquiry;
  6. form.account.value=account;
  7. form.action.value="view_statement";
  8. form.submit();
  9. }
  10. function doViewBalanceSearch(){
  11. var message = "";
  12. var focus = false;
  13. var form = document.forms.inquiry;
  14. if (trim(form.currency.value).length == 0) {
  15. message = message + ("<bean:message key="error.inquiry.currency"/>\n");
  16. if (!focus) form.currency.focus(); focus = true;
  17. }
  18. if(message == "") {
  19. document.forms.inquiry.action.value="view_balance_search";
  20. document.forms.inquiry.submit();
  21. doDisable(document.forms.inquiry, "button");
  22. } else {
  23. alert(message);
  24. }
  25. }
  26. -->
  27. </script>
  28. <form name="inquiry" action="inquiry.do" method="POST" >
  29. <input type="hidden" name="action"/>
  30. <input type="hidden" name="sequence"/>
  31. <input type="hidden" name="account">
  32. <input type="hidden" name="redirect" value="create"/>
  33. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  34. <td class="titleHeader" align="left"><bean:message key="project.inquiryBalance.key"/></td>
  35. </table>
  36. <table border="0" width="98%" align="center" cellpadding="2" cellspacing="1">
  37. <tr><td><html:errors/></td></tr>
  38. </table>
  39. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  40. <tr align = "left">
  41. <td width="15%"><b><bean:message key="inquiryBalance.biller.key" /></b></td>
  42. <td width="1%">:</td>
  43. <td width="84%">
  44. &nbsp;<bean:write name="billerName"/>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td width="15%" valign="top"><b><bean:message key="inquiryBalance.currency.key" /><font color="#FF0000">*</font></b></td>
  49. <td width="1%" valign="top">:</td>
  50. <td width="84%" valign="top">
  51. <select name="currency" style="width:300">
  52. <option value="">-- Select Currency --</option>
  53. <logic:notEmpty name="currencyList">
  54. <logic:iterate id="element_currency" name="currencyList" >
  55. <option value="<bean:write name="element_currency" property="currency"/>"
  56. <logic:equal name="currencyStr" value="${element_currency.currency}">
  57. selected
  58. </logic:equal>
  59. ><bean:write name="element_currency" property="currency" /></option>
  60. </logic:iterate>
  61. </logic:notEmpty>
  62. </select>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td width="15%"></td>
  67. <td width="1%"></td>
  68. <td><input type="button" value=<bean:message key="button.view"/> onclick="doViewBalanceSearch();" ></td>
  69. <td colspan="4">&nbsp;</td>
  70. </tr>
  71. </table>
  72. <logic:notEmpty name="balanceList">
  73. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  74. <tr align = "left">
  75. <td width="15%"><b><bean:message key="inquiryBalance.total.key" /></b></td>
  76. <td width="1%">:</td>
  77. <td width="84%">
  78. <logic:notEmpty name="totalBalance">
  79. <bean:write name="totalBalance" format="#,##0.00" />
  80. </logic:notEmpty>
  81. </td>
  82. </tr>
  83. </table>
  84. <br/>
  85. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  86. <tr>
  87. <td class="titleField" width="30%"><bean:message key="inquiryBalance.account.key"/></td>
  88. <td class="titleField" width="40%"><bean:message key="inquiryBalance.accountName.key"/></td>
  89. <td class="titleField" width="30%"><bean:message key="inquiryBalance.balance.key"/></td>
  90. </tr>
  91. <logic:notEmpty name="balanceList">
  92. <logic:iterate id="element" name="balanceList" scope="request" indexId="index">
  93. <tr>
  94. <td align="left" class="celBorder">&nbsp;
  95. <a href="#" onclick="doViewStatement('<bean:write name="element" property="accountNumb"/>');"><bean:write name="element" property="account"/>&nbsp;</a>
  96. </td>
  97. <td align="left" class="celBorder">&nbsp;
  98. <bean:write name="element" property="sname"/>&nbsp;
  99. </td>
  100. <td align="right" class="celBorder">&nbsp;
  101. <bean:write name="element" property="balance" format="#,##0.00" />&nbsp;
  102. </td>
  103. </tr>
  104. </logic:iterate>
  105. </logic:notEmpty>
  106. </table>
  107. <table border="1" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  108. <tr>
  109. <td align="right" width="70%">
  110. <b><bean:message key="inquiryBalance.total.key"/></b>
  111. </td>
  112. <td align="right" width="30%">
  113. <logic:notEmpty name="totalBalance">
  114. <b><bean:write name="totalBalance" format="#,##0.00" /></b>
  115. </logic:notEmpty>
  116. </td>
  117. </tr>
  118. </table>
  119. </logic:notEmpty>
  120. </FORM>
  121. <%@ include file="../common/footer.jsp" %>