X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fedit_list_widget_list_style.tpl;h=adc9447802b5b597fee8710cf61e784109de7460;hb=306d15f3e16a7dbd9a51897b4335f357f9f62e27;hp=f81a7785f94b9e9ee3eca69bf4d87461ef54c046;hpb=ae5dddc065f9501f267c4edaf68a066835da915f;p=squirrelmail.git diff --git a/templates/default/edit_list_widget_list_style.tpl b/templates/default/edit_list_widget_list_style.tpl index f81a7785..adc94478 100644 --- a/templates/default/edit_list_widget_list_style.tpl +++ b/templates/default/edit_list_widget_list_style.tpl @@ -21,10 +21,11 @@ * array $possible_values The original list of options in the edit list, * for use constructing layouts alternative to * the select widget + * mixed $current_value The currently selected value(s) * - * @copyright 1999-2011 The SquirrelMail Project Team + * @copyright 1999-2022 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License - * @version $Id: select.tpl 12961 2008-02-24 22:35:08Z pdontthink $ + * @version $Id$ * @package squirrelmail * @subpackage templates */ @@ -39,19 +40,39 @@ echo '
'; if ($use_input_widget) echo _("Add") . ' ' . $input_widget . '
'; +if (!empty($trailing_text)) + echo ($trailing_text_small ? '' : '') . ($trailing_text_is_html ? $trailing_text : sm_encode_html_special_chars($trailing_text)) . ($trailing_text_small ? '' : '') . '
'; echo ''; $class = 'even'; $index = 0; +if (is_array($current_value)) + $selected = $current_value; +else + $selected = array($current_value); + foreach ($possible_values as $key => $value) { if ($class == 'even') $class = 'odd'; else $class = 'even'; echo '' - . '' + . '' . '' . "\n";