summaryrefslogtreecommitdiff
path: root/UI/io-email.html
blob: 96b61e19b52cc3c6792783ec67b7596b9b6f9b32 (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 class="listtop">
  7. <th class="listtop"><?lsmb text('E-mail [_1]', form.${form.vc}.remove('--.*')) ?></th>
  8. </tr>
  9. <tr>
  10. <td> </td>
  11. </tr>
  12. <tr>
  13. <td>
  14. <table width="100%">
  15. <tr>
  16. <th align="right"><?lsmb text('E-mail') ?></th>
  17. <td><?lsmb PROCESS input element_data={name => 'email', size => 30, value => form.email} ?></td>
  18. <th align="right"><?lsmb text('Cc') ?></th>
  19. <td><?lsmb PROCESS input element_data={name => 'cc', size => 30, value => form.cc} ?></td>
  20. </tr>
  21. <tr>
  22. <th align="right"><?lsmb text('Subject') ?></th>
  23. <td><?lsmb PROCESS input element_data={name => 'subject', size => 30, value => form.subject} ?></td>
  24. <?lsmb IF user.role == 'admin' OR user.role == 'manager' ?>
  25. <th align="right"><?lsmb text('Bcc') ?></th>
  26. <td><?lsmb PROCESS input element_data={name => 'bcc', size => 30, value => form.bcc} ?></td>
  27. <?lsmb ELSE ?>
  28. <td colspan="2"> </td>
  29. <?lsmb END ?>
  30. </tr>
  31. </table>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. <table width="100%">
  37. <tr>
  38. <th align="left"><?lsmb text('Message') ?></th>
  39. </tr>
  40. <tr>
  41. <td><?lsmb PROCESS textarea element_data={name => 'message', rows => 15, cols => 60, text => form.message} ?></td>
  42. </tr>
  43. </table>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td>
  48. <table width="100%">
  49. <tr>
  50. <td><?lsmb PROCESS select element_data=print.formname ?></td>
  51. <td><?lsmb IF print.lang.defined;
  52. PROCESS select element_data=print.lang; END ?>
  53. </td>
  54. <td><?lsmb PROCESS select element_data=print.format ?></td>
  55. <td><?lsmb PROCESS select element_data=print.media ?></td>
  56. <?lsmb IF print.copies ?>
  57. <td>
  58. <?lsmb PROCESS input element_data={name => 'copies', size => '2', value => form.copies, label => text('Copies') } ?>
  59. </td>
  60. <?lsmb ELSE ?>
  61. <td> </td>
  62. <?lsmb END ?>
  63. <td><div style="width: 15em"><?lsmb
  64. PROCESS input element_data={
  65. name => 'read_receipt',
  66. type => 'checkbox',
  67. label => text('Request read receipt'),
  68. }
  69. ?></div></td>
  70. <td align="right" width="90%">
  71. <?lsmb FOREACH formname IN ['printed', 'emailed', 'queued', 'recurring'];
  72. IF form.$formname.match(form.formname);
  73. text(print.status.$formname); '<br />';
  74. END;
  75. END ?>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td colspan="7"><?lsmb text('Group by') ?> -&gt; <?lsmb
  80. PROCESS input element_data={name => 'groupprojectnumber',
  81. type => 'checkbox', label => text('Project'),
  82. value => 'groupprojectnumber',
  83. ${print.groupby.groupprojectnumber} = print.groupby.groupprojectnumber};
  84. PROCESS input element_data={name => 'grouppartsgroup',
  85. type => 'checkbox', label => text('Group'),
  86. value => 'grouppartsgroup',
  87. ${print.groupby.grouppartsgroup} = print.groupby.grouppartsgroup};
  88. ?>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td colspan="7"><?lsmb text('Sort by') ?> -&gt; <?lsmb
  93. PROCESS input element_data={name => 'sortby', type => 'radio',
  94. label => text('Item'), value => 'runningnumber',
  95. ${print.sortby.runningnumber} = print.sortby.runningnumber};
  96. PROCESS input element_data={name => 'sortby', type => 'radio',
  97. label => text('Number'), value => 'partnumber',
  98. ${print.sortby.partnumber} = print.sortby.partnumber};
  99. PROCESS input element_data={name => 'sortby', type => 'radio',
  100. label => text('Description'), value => 'description',
  101. ${print.sortby.description} = print.sortby.description};
  102. PROCESS input element_data={name => 'sortby', type => 'radio',
  103. label => text('Bin'), value => 'bin',
  104. ${print.sortby.bin} = print.sortby.bin};
  105. ?>
  106. </td>
  107. </tr>
  108. </table>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td><hr size="3" noshade="noshade" /></td>
  113. </tr>
  114. </table>
  115. <br />
  116. <?lsmb FOREACH hidden IN hiddens.keys;
  117. PROCESS input element_data={
  118. type => 'hidden',
  119. name => hidden,
  120. value => hiddens.item(hidden)
  121. }; END ?>
  122. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  123. </form>
  124. </body>
  125. </html>