mailout.tpl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 &copy; 1999-2007 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 value="' . $nr . '">' .
  34. htmlspecialchars(
  35. $data['full_name'].' <'.
  36. $data['email_address'] . '>') .
  37. "</option>\n";
  38. }
  39. echo "</select>\n";
  40. } else {
  41. echo _("From:");
  42. echo htmlspecialchars($idents[0]['full_name'].' <'.$idents[0]['email_address'].'>');
  43. }
  44. ?>
  45. <br /><br />
  46. <input type="hidden" name="send_to" value="<?php echo htmlspecialchars($send_to); ?>" />
  47. <input type="hidden" name="subject" value="<?php echo htmlspecialchars($subject); ?>" />
  48. <input type="hidden" name="body" value="<?php echo htmlspecialchars($body); ?>" />
  49. <input type="hidden" name="mailbox" value="<?php echo htmlspecialchars($mailbox); ?>" />
  50. <input type="submit" name="send" value="<?php echo _("Send Mail"); ?>" />
  51. <br />
  52. </form>
  53. </td></tr></table>
  54. </div>