summaryrefslogtreecommitdiff
path: root/UI/form-dynatable.html
blob: 706942a2b0813717056465b75d1518f0e4270ccb (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 form.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 form.stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" />
  10. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  11. <meta name="robots" content="noindex,nofollow" />
  12. </head>
  13. <?lsmb PROCESS elements.html ?>
  14. <body>
  15. <table width="100%">
  16. <tr>
  17. <th class="listtop" colspan="<?lsmb columns.size ?>"><?lsmb form.title ?></th>
  18. </tr>
  19. <tr>
  20. <?lsmb IF options.defined ?>
  21. <td><?lsmb FOREACH option IN options; option ?><br /><?lsmb END ?></td>
  22. <?lsmb ELSE ?>
  23. <td colspan="<?lsmb columns.size ?>"></td></tr>
  24. <?lsmb END ?>
  25. </tr>
  26. <tr class="listheading">
  27. <?lsmb FOREACH column IN columns ?>
  28. <th class="listtop">
  29. <?lsmb IF heading.$column.href ?><a class="listtop" href="<?lsmb heading.$column.href ?>"><?lsmb heading.$column.text ?></a>
  30. <?lsmb ELSE; heading.$column; END ?>
  31. </th>
  32. <?lsmb END ?>
  33. </tr>
  34. <?lsmb USE dumper(indent=2, pad="<br>") ?>
  35. <?lsmb FOREACH row IN rows ?>
  36. <?lsmb IF row.class == 'heading'; s = 'th'; c = 'listheading';
  37. ELSIF row.class == 'subtotal'; s = 'th'; c = 'listsubtotal';
  38. ELSE; s = 'td'; c = "listrow${row.i}"; END ?>
  39. <tr class="<?lsmb c ?>">
  40. <?lsmb FOREACH column IN columns ?>
  41. <<?lsmb s ?> class="<?lsmb c ?>" <?lsmb IF (!row.class.defined || row.class != 'heading') && row_alignment.$column ?>align="<?lsmb row_alignment.$column ?>"<?lsmb END ?>>
  42. <?lsmb IF row.$column.href ?>
  43. <a href="<?lsmb row.$column.href?>"><?lsmb row.$column.text ?></a>
  44. <?lsmb ELSIF row.$column.delimiter;
  45. FOREACH l IN row.$column.text.split(row.$column.delimiter); l ?><br /><?lsmb END ?>
  46. <?lsmb ELSE; row.$column; END ?>
  47. </<?lsmb s ?>>
  48. <?lsmb END ?>
  49. </tr>
  50. <?lsmb END ?>
  51. <?lsmb IF totals ?>
  52. <tr class="listtotal">
  53. <?lsmb FOREACH column IN columns ?>
  54. <th class="listtotal" align="right"><?lsmb totals.$column ?></th>
  55. <?lsmb END ?>
  56. </tr>
  57. <?lsmb END ?>
  58. <tr><td colspan="<?lsmb columns.size ?>"><hr size="3" /></td></tr>
  59. </table>
  60. <br />
  61. <form method="post" action="<?lsmb form.script ?>">
  62. <?lsmb FOREACH hidden IN hiddens.keys;
  63. PROCESS input element_data={
  64. type => 'hidden',
  65. name => hidden,
  66. value => hiddens.$hidden
  67. }; END ?>
  68. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  69. </form>
  70. </body>
  71. </html>