summaryrefslogtreecommitdiff
path: root/UI/rp-payments.html
blob: 6ff7c44264db803fc5705b011de711f377d0f910 (plain)
  1. <?lsmb INCLUDE 'ui-header.html' ?>
  2. <?lsmb PROCESS elements.html ?>
  3. <body>
  4. <form method="post" action="<?lsmb form.script ?>">
  5. <table width="100%">
  6. <tr>
  7. <th class="listtop" colspan="<?lsmb columns.size ?>"><?lsmb form.title ?></th>
  8. </tr>
  9. <tr>
  10. <?lsmb IF options.defined ?>
  11. <td colspan="<?lsmb columns.size ?>"><?lsmb FOREACH option IN options; option ?><br /><?lsmb END ?></td>
  12. <?lsmb ELSE ?>
  13. <td colspan="<?lsmb columns.size ?>"></td></tr>
  14. <?lsmb END ?>
  15. </tr>
  16. <tr class="listheading">
  17. <?lsmb FOREACH column IN columns ?>
  18. <th class="listtop"
  19. <?lsmb IF heading.$column.href ?><a class="listtop" href="<?lsmb heading.$column.href ?>"><?lsmb heading.$column.text ?></a>
  20. <?lsmb ELSE; heading.$column; END ?>
  21. </th>
  22. <?lsmb END ?>
  23. </tr>
  24. <?lsmb FOREACH account IN accounts ?>
  25. <tr><th colspan="<?lsmb columns.size ?>"><?lsmb account.header ?></th></tr>
  26. <?lsmb FOREACH row IN account.rows ?>
  27. <?lsmb IF row.class == 'heading'; s = 'th'; c = 'listheading';
  28. ELSIF row.class == 'subtotal'; s = 'th'; c = 'listsubtotal';
  29. ELSE; s = 'td'; c = "listrow${row.i}"; END ?>
  30. <tr class="<?lsmb c ?>">
  31. <?lsmb FOREACH column IN columns ?>
  32. <<?lsmb s ?> class="<?lsmb c ?>" <?lsmb IF (!row.class.defined || row.class != 'heading') && row_alignment.$column ?>align="<?lsmb row_alignment.$column ?>"<?lsmb END ?>>
  33. <?lsmb IF row.$column.href ?>
  34. <a href="<?lsmb row.$column.href?>"><?lsmb row.$column.text ?></a>
  35. <?lsmb ELSIF row.$column.delimiter;
  36. FOREACH l IN row.$column.text.split(row.$column.delimiter); l ?><br /><?lsmb END;
  37. ELSIF row.$column.options; PROCESS select element_data=row.$column;
  38. ELSIF column == 'statement' AND row.$column.type.defined;
  39. PROCESS input element_data=row.$column;
  40. ELSE; row.$column; END ?>
  41. </<?lsmb s ?>>
  42. <?lsmb END ?>
  43. </tr>
  44. <?lsmb END ?>
  45. <?lsmb IF account.totals ?>
  46. <tr class="listtotal">
  47. <?lsmb FOREACH column IN columns ?>
  48. <th class="listtotal" align="right"><?lsmb account.totals.$column ?></th>
  49. <?lsmb END ?>
  50. </tr>
  51. <?lsmb END ?>
  52. <?lsmb END ?>
  53. <tr class="listtotal">
  54. <?lsmb FOREACH column IN columns ?>
  55. <th class="listtotal" align="right"><?lsmb account.totals.$column ?></th>
  56. <?lsmb END ?>
  57. </tr>
  58. <tr><td colspan="<?lsmb columns.size ?>"><hr size="3" /></td></tr>
  59. </table>
  60. <br />
  61. <?lsmb FOREACH hidden IN hiddens.keys;
  62. PROCESS input element_data={
  63. type => 'hidden',
  64. name => hidden,
  65. value => hiddens.item(hidden)
  66. }; END ?>
  67. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  68. </form>
  69. </body>
  70. </html>