1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 06:33:22 +02:00

Language notice added. $frm->selectbox can now use option 'useValues' to use values from the array as keys.

This commit is contained in:
Cameron
2012-12-15 03:50:26 -08:00
parent 71cd2aca3c
commit e8c945c77a
2 changed files with 22 additions and 12 deletions

View File

@@ -1024,6 +1024,16 @@ class e_form
{
$text .= $this->option(' ', '');
}
if(varset($options['useValues'])) // use values as keys.
{
$new = array();
foreach($option_array as $v)
{
$new[$v] = $v;
}
$option_array = $new;
}
$text .= $this->option_multi($option_array, $selected)."\n".$this->select_close();
return $text;