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 | * |
c4faef33 |
13 | * @copyright 1999-2020 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) { |
dd9c9e85 |
44 | echo '<option ' |
45 | . ($identity == $nr ? ' selected="selected" ' : '') |
46 | . 'value="' . $nr . '">' |
47 | . sm_encode_html_special_chars( |
8b7c37ed |
48 | $data['full_name'].' <'. |
49 | $data['email_address'] . '>') . |
50 | "</option>\n"; |
51 | } |
52 | |
53 | echo "</select>\n"; |
54 | |
55 | } else { |
56 | |
57 | echo _("From:"); |
3047e291 |
58 | echo sm_encode_html_special_chars($idents[0]['full_name'].' <'.$idents[0]['email_address'].'>'); |
8b7c37ed |
59 | } |
60 | ?> |
61 | <br /><br /> |
3047e291 |
62 | <input type="hidden" name="send_to" value="<?php echo sm_encode_html_special_chars($send_to); ?>" /> |
63 | <input type="hidden" name="subject" value="<?php echo sm_encode_html_special_chars($subject); ?>" /> |
64 | <input type="hidden" name="body" value="<?php echo sm_encode_html_special_chars($body); ?>" /> |
65 | <input type="hidden" name="mailbox" value="<?php echo sm_encode_html_special_chars($mailbox); ?>" /> |
3ba5c606 |
66 | <input type="submit" name="send1" value="<?php echo _("Send Mail"); ?>" /> |
8b7c37ed |
67 | <br /> |
68 | </form> |
69 | |
70 | </td></tr></table> |
71 | </div> |
72 | |