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 | * |
22387c8d |
22 | * @copyright 1999-2017 The SquirrelMail Project Team |
9829e1d8 |
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"> |
199a9ab8 |
34 | <input type="hidden" name="smtoken" value="<?php echo sm_generate_security_token(); ?>" /> |
301d1912 |
35 | <table cellspacing="0" class="wrapper"> |
36 | <?php |
37 | if ( $dialog_type == 'rename' ) { |
38 | ?> |
39 | <tr> |
40 | <td class="header1"> |
41 | <?php echo _("Rename a folder") ?> |
42 | </td> |
43 | </tr> |
44 | <tr> |
45 | <td> |
46 | <label for="new_name"><?php echo _("New name:") ?></label> |
47 | <br /> |
48 | <b><?php echo $parent_folder ?></b> |
49 | <input type="text" name="new_name" id="new_name" value="<?php echo $current_folder_name ?>" size="25" /> |
50 | <br /><br /> |
51 | <?php |
52 | if ( $is_folder ) { |
53 | echo '<input type="hidden" name="isfolder" value="true" />'; |
54 | } |
55 | ?> |
56 | <input type="hidden" name="smaction" value="rename" /> |
57 | <input type="hidden" name="orig" value="<?php echo $current_full_name ?>" /> |
58 | <input type="hidden" name="old_name" value="<?php echo $current_folder_name ?>" /> |
59 | <input type="submit" value="<?php echo _("Rename") ?>" /> |
60 | <input type="submit" name="cancelbutton" value="<?php echo _("Cancel") ?>" /> |
61 | <?php |
62 | } elseif ( $dialog_type == 'delete' ) { |
63 | ?> |
64 | <tr> |
65 | <td class="header1"> |
66 | <?php echo _("Delete Folder") ?> |
67 | </td> |
68 | </tr> |
69 | <tr> |
70 | <td> |
71 | <?php echo sprintf(_("Are you sure you want to delete %s?"), $visible_folder_name); ?> |
72 | <br /><br /> |
b116fd78 |
73 | <input type="hidden" name="smaction" value="delete" /> |
301d1912 |
74 | <input type="hidden" name="folder_name" value="<?php echo $folder_name ?>" /> |
75 | <input type="submit" name="confirmed" value="<?php echo _("Yes") ?>" /> |
76 | <input type="submit" name="cancelbutton" value="<?php echo _("No") ?>" /> |
77 | <?php |
78 | } |
79 | ?> |
80 | </td> |
81 | </tr> |
82 | </table> |
9829e1d8 |
83 | </form> |
46489d06 |
84 | </div> |