summaryrefslogtreecommitdiff
path: root/UI/payments/payment2.html
blob: 1b53d6da8653d5bf955f143dca0787419c9deb5b (plain)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title><?lsmb titlebar ?></title>
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Expires" content="-1" />
  8. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  9. <link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" />
  10. <meta http-equiv="content-type" content="text/html; charset=<?lsmb charset ?>" />
  11. <meta name="robots" content="noindex,nofollow" />
  12. </head>
  13. <body id="payment_2_body">
  14. <form name="pay_single_dues" method="post" action="payment.pl">
  15. <?lsmb PROCESS elements.html # Include form elements helper. ?>
  16. <table width=100%>
  17. <tr id="top_bar" class="listtop">
  18. <th id="top_bar_header" class="listtop"><?lsmb header.text ?></th>
  19. </tr>
  20. </table>
  21. <table width=100% id="info_table">
  22. <tr valign=top id="info_row">
  23. <td width=50% id="info_data">
  24. <table id="cv_info_table">
  25. <tr id="cv_row">
  26. <th class="label_left" id="cv_label_column"><?lsmb text('Vendor') ?></th>
  27. <td id="cv_column"><?lsmb vc.name ?></td>
  28. </tr>
  29. <tr id="cv_address_row">
  30. <th valign="top" align="right" id="cv_address_label_column"><?lsmb text('Address') ?></th>
  31. <td id="cv_address_column">
  32. <table id="cv_address_table">
  33. <?lsmb # this table will show the customer/vendor address, city, phone and others things that could help to reminds them?>
  34. <?lsmb FOREACH address IN vc.address # Loop through customer/vendor address info ?>
  35. <tr>
  36. <td><?lsmb address.text ?></td>
  37. </tr>
  38. <?lsmb END ?>
  39. </table>
  40. </td>
  41. </tr>
  42. <tr align="right" id="notes_row">
  43. <th valign="top" id="notes_column"><?lsmb text('Notes') ?></th>
  44. <td><textarea id="notes" name="notes" cols="35" rows="3"></textarea></td>
  45. </tr>
  46. </table>
  47. </td>
  48. <td align="right">
  49. <table>
  50. <?lsmb # the project will be shown if it was selected in the first step ?>
  51. <?lsmb IF project.value # Only process element if the value exists. ?>
  52. <tr id="project_row">
  53. <th align="right" nowrap id="project_label_column"><?lsmb text('Projects') ?>:</th>
  54. <td colspan="2" id="project_column">
  55. <?lsmb project.text ?>
  56. <?lsmb project.type="hidden"; PROCESS input element_data=project ?>
  57. </td>
  58. </tr>
  59. <?lsmb END ?>
  60. <?lsmb #the department will be shown if it was selected in the first step ?>
  61. <?lsmb IF department.value # Only process element if one exists. As in project above ?>
  62. <tr id="department-row">
  63. <th align="right" nowrap id="department_label_column"><?lsmb text('Department') ?>:</th>
  64. <td colspan="2" id="department_column">
  65. <?lsmb department.text ?>
  66. <?lsmb department.type="hidden"; PROCESS input element_data=department ?>
  67. </td>
  68. </tr>
  69. <?lsmb END ?>
  70. <tr id="account_row">
  71. <?lsmb #here goes all the posible accounts were the paid can be done ?>
  72. <th align="right" nowrap id="account_label_column"><?lsmb text('Account') ?></th>
  73. <td colspan="2" id="account_column"><?lsmb PROCESS select element_data=account ?></td>
  74. </tr>
  75. <tr id="date_row"><?lsmb # here goes an input where the date can be written, we can also use a java calendar :). We can use an ajax script to call the Exchange rate of the input date wich can be called with the onChange Method ?>
  76. <th align="right" nowrap id="date_label_column"><?lsmb text('Date') ?></th>
  77. <td colspan="2" id="date_column"> <?lsmb PROCESS input element_data=datepaid ?> </td>
  78. </tr>
  79. <tr id="source_row">
  80. <?lsmb # here goes all the posible sources wich we can use ?>
  81. <th align="right" nowrap id="source_label_column"><?lsmb text('Source')?></th>
  82. <td width="28%" id="source_column"><?lsmb PROCESS select element_data=source ?></td>
  83. <td id="source_text_column"><?lsmb PROCESS input element_data=source_text ?></td>
  84. </tr>
  85. <tr id="currency_row">
  86. <?lsmb # here goes the selected currency in step 1 ?>
  87. <th align="right" id="currency_label_column"><?lsmb text('Currency') ?>:</th>
  88. <td id="currency_column"><?lsmb PROCESS label element_data=curr ?></td>
  89. </tr>
  90. <?lsmb # here goes the exchange rate of the selected currency, it can be done by the ajax script or the update button ?>
  91. <?lsmb IF defaultcurrency.text != curr.text # Only process element if one exists. ?>
  92. <tr id="exrate_row">
  93. <th valig="top" align="right" id="exrate_label_column"><?lsmb text('Exchange Rate') ?>:</th>
  94. <td id="exrate_column">
  95. <?lsmb IF date_curr.value ?>
  96. <?lsmb date_curr.text ?>
  97. <?lsmb END ?>
  98. <?lsmb IF !date_curr.value ?>
  99. <?lsmb PROCESS input element_data=date_curr ?>
  100. <?lsmb END ?>
  101. </td>
  102. </tr>
  103. <?lsmb END ?>
  104. </table>
  105. </td>
  106. </tr>
  107. </table>
  108. <table width="100%" border="1">
  109. <tr class="listheading">
  110. <?lsmb FOREACH column IN column_headers # Loop through columns ?>
  111. <th class="listheading"><?lsmb column.text ?></th>
  112. <?lsmb END ?>
  113. </tr>
  114. <?lsmb # We have to clear i for later usage :) ?>
  115. <?lsmb i = '0' ?>
  116. <?lsmb FOREACH row IN rows ?>
  117. <?lsmb i = i + 1; j = i % 2; alterning_style = "listrow$j" ?>
  118. <tr class="<?lsmb alterning_style ?>"=>
  119. <td><a href="<?lsmb row.invoice.href ?>"><?lsmb row.invoice.number ?></a>
  120. <input type="hidden" value="<?lsmb row.invoice.id ?>" /> </td>
  121. <?lsmb # we can use an href to link this invoice number to the invoice ?>
  122. <td><?lsmb row.invoice_date ?></td>
  123. <td><?lsmb row.amount ?></td>
  124. <td><?lsmb row.paid ?></td>
  125. <td><?lsmb row.due ?></td>
  126. <?lsmb IF defaultcurrency.text != curr.text ?>
  127. <td><?lsmb row.exchange_rate ?></td>
  128. <td><?lsmb row.due_fx ?></td>
  129. <td><div id="<?lsmb "div_topay_invoice_$i" ?>"><?lsmb row.topay ?></div></td>
  130. <?lsmb END ?>
  131. <?lsmb #This should be computed and updated to the div using ?>
  132. <td><?lsmb PROCESS input element_data=row.topay_fx ?><div id="<?lsmb "div_topay_$i" ?>">
  133. <hr />
  134. <table>
  135. <tr id="<?lsmb "account-row$i"?>">
  136. <?lsmb # here goes all the posible accounts were the paid can be done ?>
  137. <th align="right" nowrap id="<?lsmb "account_label_column$i" ?>"><?lsmb text('Account') ?></th>
  138. <td colspan="2" id="<?lsmb "account_column$i" ?>"><?lsmb PROCESS select element_data=account ?></td>
  139. </tr>
  140. <tr id="<?lsmb "source_row$i" ?>">
  141. <?lsmb # here goes all the posible sources wich we can used ?>
  142. <th align="right" nowrap id="<?lsmb "source_label_column$i" ?>"><?lsmb text('Source') ?></th>
  143. <td width="28%" id="<?lsmb "source_column$i" ?>"><?lsmb PROCESS select element_data=source ?></td>
  144. <td><?lsmb PROCESS input element_data=source_text ?></td>
  145. <td nowrap align="left"><input name="<?lsmb "optionalpay_$i" ?>" type="checkbox" class="checkbox"></td>
  146. </tr>
  147. </table>
  148. </div>
  149. <?lsmb END ?>
  150. </table>
  151. <hr />
  152. <?lsmb PROCESS button element_data=post ?>
  153. <?lsmb PROCESS button element_data=post_and_print ?>
  154. <?lsmb PROCESS select element_data=format ?>
  155. <?lsmb PROCESS select element_data=media ?>
  156. </form>
  157. </body>
  158. </html>