Example #1
0
/**
 * Create HTML to display select options in a dropdown list.  To be used inside
 * of a select statement in a form.   This method expects the option list to have keys and values.  The keys are the ids.
 * The values are the display strings.
 */
function get_select_options_array(&$option_list, $selected_key, $advsearch = 'false')
{
    global $log;
    $log->debug("Entering get_select_options_array () method ...");
    $log->debug("Exiting get_select_options_array  method ...");
    return get_options_array_seperate_key($option_list, $option_list, $selected_key, $advsearch);
}
Example #2
0
/**
 * Create HTML to display select options in a dropdown list.  To be used inside
 * of a select statement in a form.   This method expects the option list to have keys and values.  The keys are the ids.
 * The values are the display strings.
 */
function get_select_options_array(&$option_list, $selected_key, $advsearch = 'false')
{
    global $log;
    $log->debug("Entering and Exiting get_select_options_array (" . print_r($option_list, true) . "," . $selected_key . "," . $advsearch . ") method ...");
    return get_options_array_seperate_key($option_list, $option_list, $selected_key, $advsearch);
}