summaryrefslogtreecommitdiff
path: root/UI/bp-search.html
blob: 5648e8532bd643da19ad71029c71c0b5c749897f (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><th class="listtop"><?lsmb form.title ?></th></tr>
  7. <tr><td> </td></tr>
  8. <tr>
  9. <td>
  10. <table>
  11. <tr>
  12. <th align="right"><?lsmb text(label.${form.type}.name) ?></th>
  13. <?lsmb IF name.type == 'input' ?>
  14. <td colspan="3"><?lsmb PROCESS input element_data=name.data ?></td>
  15. <?lsmb ELSE ?>
  16. <td colspan="3"><?lsmb PROCESS select element_data=name.data ?></td>
  17. <?lsmb END ?>
  18. </tr>
  19. <?lsmb FOREACH num IN ['invnumber', 'ordnumber', 'quonumber'];
  20. IF label.${form.type}.${num}.defined ?>
  21. <tr>
  22. <th align="right" nowrap="nowrap"><?lsmb label.${form.type}.${num}.label ?></th>
  23. <td colspan="3"><?lsmb PROCESS input element_data={size => 20, name => label.${form.type}.${num}.name} ?></td>
  24. </tr>
  25. <?lsmb END; END ?>
  26. <tr>
  27. <th align="right" nowrap="nowrap"><?lsmb text('From') ?></th>
  28. <td><?lsmb PROCESS input element_data={class="date", name => "transdatefrom", size => "11", title=> user.dateformat} ?></td>
  29. <th align="right" nowrap="nowrap"><?lsmb text('To') ?></th>
  30. <td><?lsmb PROCESS input element_data={class="date", name => "transdateto", size => "11", title=> user.dateformat} ?></td>
  31. </tr>
  32. <?lsmb IF form.all_years.defined ?>
  33. <tr>
  34. <th align="right"><?lsmb text('Period') ?></th>
  35. <td colspan="3">
  36. <?lsmb
  37. PROCESS select element_data=form.selectaccountingmonth;
  38. PROCESS select element_data=form.selectaccountingyear;
  39. PROCESS input element_data={
  40. name => 'interval', type => 'radio', value => '0', label => text('Current'),
  41. checked => 'checked',
  42. };
  43. PROCESS input element_data={
  44. name => 'interval', type => 'radio', value => '1', label => text('Month'),
  45. };
  46. PROCESS input element_data={
  47. name => 'interval', type => 'radio', value => '3', label => text('Quarter'),
  48. };
  49. PROCESS input element_data={
  50. name => 'interval', type => 'radio', value => '12', label => text('Year'),
  51. };
  52. ?>
  53. </td>
  54. </tr>
  55. <?lsmb END ?>
  56. </table>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td><hr size="3" noshade="noshade" /></td>
  61. </tr>
  62. </table>
  63. <br />
  64. <?lsmb FOREACH hidden IN hiddens.keys;
  65. PROCESS input element_data={
  66. type => 'hidden',
  67. name => hidden,
  68. value => hiddens.item(hidden)
  69. }; END ?>
  70. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  71. </form>
  72. </body>
  73. </html>