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