9829e1d8 |
1 | <?php |
2 | /** |
3 | * folder_manip_dialog.tpl |
4 | * |
5 | * Template for folder management dialogs (rename, delete) |
6 | * |
301d1912 |
7 | * The following variables are available in this template: |
8 | * + $dialog_type - string containing 'rename' or 'delete' to determine |
9 | * the desired action |
10 | * |
11 | * Depending on $dialog_type, other variables will be available. If |
12 | * $dialog_type is 'rename', the following variables will be available: |
13 | * + $current_folder_name - the current name of the element being renamed |
14 | * + $parent_folder - the name of the parent of the element being renamed |
15 | * + $current_full_name - the current full mailbox name |
16 | * + $is_folder - boolean TRUE if the element being renamed is a folder |
17 | * |
18 | * If $dialog_type is 'delete', the following variables will be available: |
19 | * + $folder_name - the name of the element being deleted |
20 | * + $visible_folder_name - scrubbed string of the element begin deleted |
21 | * |
9829e1d8 |
22 | * @copyright © 1999-2006 The SquirrelMail Project Team |
23 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
24 | * @version $Id$ |
25 | * @package squirrelmail |
26 | * @subpackage templates |
27 | */ |
28 | |
29 | /* retrieve the template vars */ |
30 | extract($t); |
31 | ?> |
46489d06 |
32 | <div class="dialogbox"> |
9829e1d8 |
33 | <form action="folders.php" method="post"> |
301d1912 |
34 | <table cellspacing="0" class="wrapper"> |
35 | <?php |
36 | if ( $dialog_type == 'rename' ) { |
37 | ?> |
38 | <tr> |
39 | <td class="header1"> |
40 | <?php echo _("Rename a folder") ?> |
41 | </td> |
42 | </tr> |
43 | <tr> |
44 | <td> |
45 | <label for="new_name"><?php echo _("New name:") ?></label> |
46 | <br /> |
47 | <b><?php echo $parent_folder ?></b> |
48 | <input type="text" name="new_name" id="new_name" value="<?php echo $current_folder_name ?>" size="25" /> |
49 | <br /><br /> |
50 | <?php |
51 | if ( $is_folder ) { |
52 | echo '<input type="hidden" name="isfolder" value="true" />'; |
53 | } |
54 | ?> |
55 | <input type="hidden" name="smaction" value="rename" /> |
56 | <input type="hidden" name="orig" value="<?php echo $current_full_name ?>" /> |
57 | <input type="hidden" name="old_name" value="<?php echo $current_folder_name ?>" /> |
58 | <input type="submit" value="<?php echo _("Rename") ?>" /> |
59 | <input type="submit" name="cancelbutton" value="<?php echo _("Cancel") ?>" /> |
60 | <?php |
61 | } elseif ( $dialog_type == 'delete' ) { |
62 | ?> |
63 | <tr> |
64 | <td class="header1"> |
65 | <?php echo _("Delete Folder") ?> |
66 | </td> |
67 | </tr> |
68 | <tr> |
69 | <td> |
70 | <?php echo sprintf(_("Are you sure you want to delete %s?"), $visible_folder_name); ?> |
71 | <br /><br /> |
b116fd78 |
72 | <input type="hidden" name="smaction" value="delete" /> |
301d1912 |
73 | <input type="hidden" name="folder_name" value="<?php echo $folder_name ?>" /> |
74 | <input type="submit" name="confirmed" value="<?php echo _("Yes") ?>" /> |
75 | <input type="submit" name="cancelbutton" value="<?php echo _("No") ?>" /> |
76 | <?php |
77 | } |
78 | ?> |
79 | </td> |
80 | </tr> |
81 | </table> |
9829e1d8 |
82 | </form> |
46489d06 |
83 | </div> |