762853f4 |
1 | <?php |
2 | /** |
3 | * compose_attachments.tpl |
4 | * |
5 | * Description |
6 | * |
7 | * The following variables are available in this template: |
8 | * |
9 | * @copyright © 1999-2006 The SquirrelMail Project Team |
10 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
11 | * @version $Id$ |
12 | * @package squirrelmail |
13 | * @subpackage templates |
14 | */ |
15 | |
762853f4 |
16 | /** extract template variables **/ |
17 | extract($t); |
18 | |
19 | /** Begin template **/ |
20 | ?> |
21 | <div class="compose"> |
22 | <table cellspacing="0" class="table1"> |
23 | <tr class="header"> |
24 | <td class="fieldName" style="width: 1%; white-space: nowrap;"> |
a812d450 |
25 | <?php echo _("New attachment");?>: |
762853f4 |
26 | </td> |
27 | <td class="fieldValue"> |
b116fd78 |
28 | <input type="file" name="attachfile" size="48" /> |
762853f4 |
29 | |
30 | <input type="submit" name="attach" value="<?php echo _("Attach"); ?>" /> |
31 | |
32 | <?php |
33 | if($max_file_size != -1) { |
34 | ?> |
35 | <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size; ?>" /> |
36 | (<?php echo _("Max."); ?> <?php echo humanReadableSize($max_file_size); ?>) |
37 | <?php |
38 | } |
39 | ?> |
40 | </td> |
41 | </tr> |
42 | <?php |
43 | foreach ($attachments as $attach) { |
44 | ?> |
45 | <tr class="attachment"> |
46 | <td class="fieldName" style="width: 1%"> |
47 | <input type="checkbox" name="delete[]" value="<?php echo $attach['Key']; ?>" /> |
48 | </td> |
49 | <td class="fieldValue"> |
50 | <?php echo $attach['FileName']; ?> - <?php echo $attach['ContentType']; ?> (<?php echo humanReadableSize($attach['Size']); ?>) |
51 | </td> |
52 | </tr> |
53 | <?php |
54 | } |
55 | |
56 | if (count($attachments) > 0) { |
57 | ?> |
58 | <tr class="header"> |
59 | <td colspan="2"> |
60 | <input type="submit" name="do_delete" value="<?php echo _("Delete selected attachments"); ?>" /> |
61 | </td> |
62 | </tr> |
63 | <?php |
64 | } |
65 | ?> |
66 | </table> |
d281e128 |
67 | </div> |