tag * array $aAttribs Any extra attributes: an associative array, * where keys are attribute names, and values * (which are optional and might be null) * should be placed in double quotes as attribute * values (optional; may not be present) * string $trailing_text Any text given by the caller to be displayed * after the edit list input * * @copyright 1999-2021 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail * @subpackage templates */ // retrieve the template vars // extract($t); // Construct the add key/value inputs // echo '
'; if ($use_input_widget) { //FIXME implement poss_key_folders here? probably not worth the trouble, is there a use case? echo _("Add") . ' ' . $input_key_widget . ' '; // FIXME: shall we allow these "poss value folders" (folder list selection for edit list values) for NON-Associative EDIT_LIST widgets? if ($poss_value_folders) { echo ''; } else echo $input_value_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 ? '' : '') . '
'; // Construct the select input showing all current values in the list // 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"; } echo '
'; // Construct the delete input // if (!empty($possible_values) && $use_delete_widget) echo $checkbox_widget . ' '; echo '
';