6 * Template for constructing an edit list.
8 * The following variables are available in this template:
10 * string $name The name of the edit list
11 * string $input_widget A preconstructed input text box used
12 * for adding new elements to the edit list
13 * boolean $use_input_widget Whether or not to present the $input_widget
14 * boolean $use_delete_widget Whether or not to present the $checkbox_widget
15 * string $select_widget A preconstructed select widget containing
16 * all the elements in the list
17 * string $checkbox_widget A preconstructed checkbox used for deleting
18 * elements from the edit list
19 * string $trailing_text Any text given by the caller to be displayed
20 * after the edit list input
21 * array $possible_values The original list of options in the edit list,
22 * for use constructing layouts alternative to
24 * mixed $current_value The currently selected value(s)
26 * @copyright 1999-2016 The SquirrelMail Project Team
27 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
29 * @package squirrelmail
30 * @subpackage templates
34 // retrieve the template vars
39 if ($use_input_widget)
40 echo _("Add") . ' ' . $input_widget . '<br />';
44 if (!empty($possible_values) && $use_delete_widget)
45 echo '<br />' . $checkbox_widget . ' <label for="delete_' . $name . '">'
46 . _("Delete Selected") . '</label>';