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