X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fedit_list_widget_list_style.tpl;h=2cbd655f6704b8d2f5421725363928b1149466c8;hb=a564b9e3f94dcd52acd4133c84de9cac3da3cab6;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..2cbd655f 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-2017 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 */ @@ -45,13 +46,31 @@ 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";