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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user