X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fedit_list_widget_list_style.tpl;h=db2329b23a5c65398bfe426b19b9df2c9f943168;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hp=d80ee55017ca095df2fe4eeb25736b5230a9733d;hpb=c0d968010e710870fdfee2f22d7cc9fad370c7a9;p=squirrelmail.git diff --git a/templates/default/edit_list_widget_list_style.tpl b/templates/default/edit_list_widget_list_style.tpl index d80ee550..db2329b2 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-2012 The SquirrelMail Project Team + * @copyright 1999-2018 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";