3 * compose_attachments.tpl
7 * The following variables are available in this template:
9 * @copyright © 1999-2006 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @package squirrelmail
13 * @subpackage templates
16 /** add required includes **/
17 include_once(SM_PATH . 'templates/util_global.php');
19 /** extract template variables **/
22 /** Begin template **/
25 <table cellspacing="0" class="table1">
27 <td class="fieldName" style="width: 1%; white-space: nowrap;">
28 <?php echo _("New") .' '. _("Attachment");?>:
30 <td class="fieldValue">
31 <input type="file" name="attachfile" size="48">
33 <input type="submit" name="attach" value="<?php echo _("Attach"); ?>" />
36 if($max_file_size != -1) {
38 <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size; ?>" />
39 (<?php echo _("Max."); ?> <?php echo humanReadableSize($max_file_size); ?>)
46 foreach ($attachments as $attach) {
48 <tr class="attachment">
49 <td class="fieldName" style="width: 1%">
50 <input type="checkbox" name="delete[]" value="<?php echo $attach['Key']; ?>" />
52 <td class="fieldValue">
53 <?php echo $attach['FileName']; ?> - <?php echo $attach['ContentType']; ?> (<?php echo humanReadableSize($attach['Size']); ?>)
59 if (count($attachments) > 0) {
63 <input type="submit" name="do_delete" value="<?php echo _("Delete selected attachments"); ?>" />