summaryrefslogtreecommitdiff
path: root/UI/payments/payment2.html
blob: e1a5964e83cc44c9030fc2c764891133dd5f664a (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. <?lsmb accountclass.type = 'hidden';
  17. INCLUDE input element_data=accountclass ?>
  18. <?lsmb login.type = 'hidden' ; INCLUDE input element_data=login ?>
  19. <table width=100%>
  20. <tr id="top_bar" class="listtop">
  21. <th id="top_bar_header" class="listtop"><?lsmb header.text ?></th>
  22. </tr>
  23. </table>
  24. <table width=100% id="info_table">
  25. <tr valign=top id="info_row">
  26. <td width=50% id="info_data">
  27. <table id="cv_info_table">
  28. <tr id="cv_row">
  29. <th class="label_left" id="cv_label_column"><?lsmb text('Vendor') ?></th>
  30. <td id="cv_column">
  31. <?lsmb vc.name ?><?lsmb vendorcustomer.type = 'hidden'; INCLUDE input element_data=vendorcustomer?>
  32. </td>
  33. </tr>
  34. <tr id="cv_address_row">
  35. <th valign="top" align="right" id="cv_address_label_column"><?lsmb text('Address') ?></th>
  36. <td id="cv_address_column">
  37. <table id="cv_address_table">
  38. <?lsmb # this table will show the customer/vendor address, city, phone and others things that could help to reminds them?>
  39. <?lsmb FOREACH address IN vc.address # Loop through customer/vendor address info ?>
  40. <tr>
  41. <td><?lsmb address.text ?></td>
  42. </tr>
  43. <?lsmb END ?>
  44. </table>
  45. </td>
  46. </tr>
  47. <tr align="right" id="notes_row">
  48. <th valign="top" id="notes_column"><?lsmb text('Notes') ?></th>
  49. <td><textarea id="notes" name="notes" cols="35" rows="3"><?lsmb notes ?></textarea></td>
  50. </tr>
  51. </table>
  52. </td>
  53. <td align="right">
  54. <table>
  55. <?lsmb # the project will be shown if it was selected in the first step ?>
  56. <?lsmb IF project.value # Only process element if the value exists. ?>
  57. <tr id="project_row">
  58. <th align="right" nowrap id="project_label_column"><?lsmb text('Projects') ?>:</th>
  59. <td colspan="2" id="project_column">
  60. <?lsmb project.text ?>
  61. <?lsmb project.type="hidden"; INCLUDE input element_data=project ?>
  62. </td>
  63. </tr>
  64. <?lsmb END ?>
  65. <?lsmb #the department will be shown if it was selected in the first step ?>
  66. <?lsmb IF department.value # Only process element if one exists. As in project above ?>
  67. <tr id="department-row">
  68. <th align="right" nowrap id="department_label_column"><?lsmb text('Department') ?>:</th>
  69. <td colspan="2" id="department_column">
  70. <?lsmb department.text ?>
  71. <?lsmb department.type="hidden"; INCLUDE input element_data=department ?>
  72. </td>
  73. </tr>
  74. <?lsmb END ?>
  75. <tr id="account_row">
  76. <?lsmb #here goes all the posible accounts were the paid can be done ?>
  77. <th align="right" nowrap id="account_label_column"><?lsmb text('Account') ?></th>
  78. <td colspan="2" id="account_column">
  79. <select id="account" name="account">
  80. <?lsmb FOREACH item IN account -?>
  81. <option value="<?lsmb item.id -?>" <?lsmb IF item.id == selected_account -?> selected <?lsmb END ?>><?lsmb item.description -?></option>
  82. <?lsmb END -?>
  83. </select>
  84. </td>
  85. </tr>
  86. <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 ?>
  87. <th align="right" nowrap id="date_label_column"><?lsmb text('Date') ?></th>
  88. <td colspan="2" id="date_column"> <?lsmb INCLUDE input element_data=datepaid ?> </td>
  89. </tr>
  90. <tr id="source_row">
  91. <?lsmb # here goes all the posible sources wich we can use -?>
  92. <th align="right" nowrap id="source_label_column"><?lsmb text('Source')?></th>
  93. <td width="28%" id="source_column">
  94. <select id="source" name="source">
  95. <?lsmb FOREACH item IN source -?>
  96. <option value="<?lsmb item -?>"<?lsmb IF item == selected_source -?> selected <?lsmb END ?>><?lsmb item -?></option>
  97. <?lsmb END -?>
  98. </select>
  99. </td>
  100. <td id="source_text_column">
  101. <?lsmb INCLUDE input element_data={ name => 'source_value'
  102. id => 'source_value'
  103. value => source_value } -?>
  104. </td>
  105. </tr>
  106. <tr id="currency_row">
  107. <?lsmb # here goes the selected currency in step 1 ?>
  108. <th align="right" id="currency_label_column"><?lsmb text('Currency') -?>:</th>
  109. <td id="currency_column">
  110. <?lsmb curr.value -?><?lsmb curr.type='hidden'; INCLUDE input element_data=curr -?>
  111. </td>
  112. </tr>
  113. <?lsmb # here goes the exchange rate of the selected currency, it can be done by the ajax script or the update button ?>
  114. <?lsmb IF defaultcurrency.text != curr.text # Only process element if one exists. ?>
  115. <tr id="exrate_row">
  116. <th valig="top" align="right" id="exrate_label_column"><?lsmb text('Exchange Rate') ?>:</th>
  117. <td id="exrate_column">
  118. <?lsmb IF exrate.value -?>
  119. <?lsmb exrate.text -?>
  120. <?lsmb exrate.type='hidden'; INCLUDE input element_data=exrate -?>
  121. <?lsmb END -?>
  122. <?lsmb IF !exrate.value -?>
  123. <?lsmb INCLUDE input element_data=exrate -?>
  124. <?lsmb END -?>
  125. </td>
  126. </tr>
  127. <?lsmb END ?>
  128. </table>
  129. </td>
  130. </tr>
  131. </table>
  132. <table width="100%">
  133. <tr class="listheading">
  134. <?lsmb FOREACH column IN column_headers # Loop through columns ?>
  135. <th class="listheading"><?lsmb column.text ?></th>
  136. <?lsmb END ?>
  137. </tr>
  138. <?lsmb # We have to clear i for later usage :) ?>
  139. <?lsmb i = '0' ?>
  140. <?lsmb FOREACH row IN rows ?>
  141. <?lsmb i = i + 1; j = i % 2; alterning_style = "listrow$j" ?>
  142. <tr class="<?lsmb alterning_style ?>"=>
  143. <td><a href="<?lsmb row.invoice.href ?>"><?lsmb row.invoice.number ?></a>
  144. <input type="hidden" value="<?lsmb row.invoice.id ?>" /> </td>
  145. <?lsmb # we can use an href to link this invoice number to the invoice ?>
  146. <td><?lsmb row.invoice_date ?></td>
  147. <td><?lsmb row.amount ?></td>
  148. <td><?lsmb row.paid ?></td>
  149. <td><?lsmb row.due ?></td>
  150. <?lsmb IF defaultcurrency.text != curr.value ?>
  151. <td><?lsmb row.exchange_rate ?></td>
  152. <td><?lsmb row.due_fx ?></td>
  153. <td><div id="<?lsmb "div_topay_invoice_$i" ?>"><?lsmb row.topay ?></div></td>
  154. <?lsmb END ?>
  155. <?lsmb #This should be computed and updated to the div using ?>
  156. <td><?lsmb INCLUDE input element_data=row.topay_fx ?>
  157. <div id="<?lsmb "div_topay_$i" ?>">
  158. <hr />
  159. <table>
  160. <tr id="<?lsmb "account-row$i"?>">
  161. <?lsmb # here goes all the posible accounts were the paid can be done ?>
  162. <th align="right" nowrap id="<?lsmb "account_label_column$i" ?>"><?lsmb text('Account') ?></th>
  163. <td colspan="2" id="<?lsmb "account_column$i" ?>">
  164. <select id="account_<?lsmb row.invoice.id -?>" name="account_<?lsmb row.invoice.id -?>">
  165. <?lsmb FOREACH item IN account -?>
  166. <option value="<?lsmb item.id -?>" <?lsmb IF item.id == row.selected_account -?> selected <?lsmb END ?>><?lsmb item.description -?></option>
  167. <?lsmb END -?>
  168. </select>
  169. </td>
  170. </tr>
  171. <tr id="<?lsmb "source_row$i" ?>">
  172. <?lsmb # here goes all the posible sources wich we can used ?>
  173. <th align="right" nowrap id="<?lsmb "source_label_column$i" ?>"><?lsmb text('Source') ?></th>
  174. <td width="28%" id="<?lsmb "source_column$i" ?>">
  175. <select id="source_<?lsmb row.invoice.id -?>" name="source_<?lsmb row.invoice.id -?>">
  176. <?lsmb FOREACH item IN source -?>
  177. <option value="<?lsmb item -?>"<?lsmb IF item == row.selected_source -?> selected <?lsmb END ?>><?lsmb item -?></option>
  178. <?lsmb END -?>
  179. </select>
  180. </td>
  181. <td><?lsmb INCLUDE input element_data={
  182. name => "source_text_$row.invoice.id",
  183. id => "source_text_$row.invoice.id",
  184. value => row.source_text
  185. } -?></td>
  186. <td nowrap align="left"><input name="<?lsmb "optional_pay_$row.invoice.id" -?>" id="<?lsmb "optional_pay_$row.invoice.id" -?>" type="checkbox" class="checkbox"
  187. <?lsmb IF row.optional -?> checked <?lsmb END -?>></td>
  188. </tr>
  189. </table>
  190. </div>
  191. </td>
  192. <td valign="MIDDLE"><input type="checkbox" name="checkbox_<?lsmb
  193. row.invoice.id ?>"></td>
  194. <?lsmb END ?>
  195. </tr>
  196. </table>
  197. <hr />
  198. <?lsmb post.accesskey = 'U';
  199. INCLUDE button element_data=update ?>
  200. <?lsmb post.accesskey = 'P';
  201. INCLUDE button element_data=post ?>
  202. <?lsmb post_and_print.accesskey = 'R';
  203. INCLUDE button element_data=post_and_print ?>
  204. <?lsmb INCLUDE select element_data=format ?>
  205. <?lsmb INCLUDE select element_data=media ?>
  206. <?lsmb FOREACH element_data IN selectedcheckboxes ?>
  207. <?lsmb element_data.type ='hidden';
  208. element_data.value ='checked';
  209. INCLUDE input element_data?>
  210. <?lsmb END ?>
  211. </form>
  212. </body>
  213. </html>