t12n of compose function. Paul, could you please check the plugin hook implementatio...
[squirrelmail.git] / templates / default / compose_attachments.tpl
1 <?php
2 /**
3  * compose_attachments.tpl
4  *
5  * Description
6  * 
7  * The following variables are available in this template:
8  *
9  * @copyright &copy; 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
16 /** add required includes **/
17 include_once(SM_PATH . 'templates/util_global.php');
18
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;">
28    <?php echo _("New") .' '. _("Attachment");?>:
29   </td>
30   <td class="fieldValue">
31    <input type="file" name="attachfile" size="48">
32    &nbsp;
33    <input type="submit" name="attach" value="<?php echo _("Attach"); ?>" />
34    &nbsp;
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
46     foreach ($attachments as $attach) {
47         ?>
48  <tr class="attachment">
49   <td class="fieldName" style="width: 1%">
50    <input type="checkbox" name="delete[]" value="<?php echo $attach['Key']; ?>" />
51   </td>
52   <td class="fieldValue">
53    <?php echo $attach['FileName']; ?> - <?php echo $attach['ContentType']; ?> (<?php echo humanReadableSize($attach['Size']); ?>)
54   </td>
55  </tr>
56         <?php
57     }
58     
59     if (count($attachments) > 0) {
60         ?>
61  <tr class="header">
62   <td colspan="2">
63    <input type="submit" name="do_delete" value="<?php echo _("Delete selected attachments"); ?>" />
64   </td>
65  </tr>
66         <?php
67     }
68  ?>
69 </table>
70 </div>