3 * folder_manip_dialog.tpl
5 * Template for folder management dialogs (rename, delete)
7 * The following variables are available in this template:
8 * + $dialog_type - string containing 'rename' or 'delete' to determine
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
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
22 * @copyright © 1999-2009 The SquirrelMail Project Team
23 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
25 * @package squirrelmail
26 * @subpackage templates
29 /* retrieve the template vars */
32 <div class="dialogbox">
33 <form action="folders.php" method="post">
34 <table cellspacing="0" class="wrapper">
36 if ( $dialog_type == 'rename' ) {
40 <?php echo _("Rename a folder") ?>
45 <label for="new_name"><?php echo _("New name:") ?></label>
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" />
52 echo '<input type="hidden" name="isfolder" value="true" />';
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") ?>" />
61 } elseif ( $dialog_type == 'delete' ) {
65 <?php echo _("Delete Folder") ?>
70 <?php echo sprintf(_("Are you sure you want to delete %s?"), $visible_folder_name); ?>
72 <input type="hidden" name="smaction" value="delete" />
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") ?>" />