mailout.tpl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * mailout.tpl
  4. *
  5. * Template for listcommands (un)subscribe/help mail sending interface
  6. *
  7. * The following variables are available in this template:
  8. * + $ - The lists that the user currently has
  9. * configured (an array of list addresses,
  10. * keyed by an ID number)
  11. *
  12. * @copyright 1999-2025 The SquirrelMail Project Team
  13. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  14. * @version $Id$
  15. * @package plugins
  16. * @subpackage listcommands
  17. */
  18. // retrieve the template vars
  19. //
  20. extract($t);
  21. ?>
  22. <div class="dialogbox">
  23. <table class="wrapper">
  24. <tr><td class="header1"><?php echo _("Mailinglist") . ': ' . $fielddescr; ?></td></tr>
  25. <tr><td>
  26. <?php echo $out_string; ?>
  27. <br /><br />
  28. <form action="../../src/compose.php" method="post">
  29. <?php if (count($idents) > 1) {
  30. echo '<label for="identity">' . _("From:") .'</label> ';
  31. echo '<select name="identity" id="identity">';
  32. foreach($idents as $nr=>$data) {
  33. echo '<option '
  34. . ($identity == $nr ? ' selected="selected" ' : '')
  35. . 'value="' . $nr . '">'
  36. . sm_encode_html_special_chars(
  37. $data['full_name'].' <'.
  38. $data['email_address'] . '>') .
  39. "</option>\n";
  40. }
  41. echo "</select>\n";
  42. } else {
  43. echo _("From:");
  44. echo sm_encode_html_special_chars($idents[0]['full_name'].' <'.$idents[0]['email_address'].'>');
  45. }
  46. ?>
  47. <br /><br />
  48. <input type="hidden" name="send_to" value="<?php echo sm_encode_html_special_chars($send_to); ?>" />
  49. <input type="hidden" name="subject" value="<?php echo sm_encode_html_special_chars($subject); ?>" />
  50. <input type="hidden" name="body" value="<?php echo sm_encode_html_special_chars($body); ?>" />
  51. <input type="hidden" name="mailbox" value="<?php echo sm_encode_html_special_chars($mailbox); ?>" />
  52. <input type="submit" name="send1" value="<?php echo _("Send Mail"); ?>" />
  53. <br />
  54. </form>
  55. </td></tr></table>
  56. </div>