function print_field_option_list($p_list, $p_item = '') { $t_mantis_bug_table = config_get('mantis_bug_table'); $t_category_string = get_enum_string($t_mantis_bug_table, $p_list); $t_arr = explode_enum_string($t_category_string); $entry_count = count($t_arr); for ($i = 0; $i < $entry_count; $i++) { $t_s = str_replace('\'', '', $t_arr[$i]); print "<option value=\"{$t_s}\""; check_selected($p_item, $t_s); print ">{$t_s}</option>"; } # end for }
function print_field_option_list($p_list, $p_item = "") { global $g_mantis_bug_table; $t_category_string = get_enum_string($g_mantis_bug_table, $p_list); $t_arr = explode_enum_string($t_category_string); $entry_count = count($t_arr); for ($i = 0; $i < $entry_count; $i++) { $t_s = str_replace("'", "", $t_arr[$i]); if ($p_item == $t_s) { print "<option value=\"{$t_s}\" SELECTED>{$t_s}</option>"; } else { print "<option value=\"{$t_s}\">{$t_s}</option>"; } } # end for }