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