' . "\n"; } echo PMA_generate_common_hidden_inputs() . "\n"; echo PMA_getHiddenFields((array)$hidden_fields); } /** * Displays form tabs which are given by an array indexed by fieldset id * ({@link display_fieldset_top}), with values being tab titles. * * @param array $tabs */ function display_tabs_top($tabs) { ?>
'optbox'), $attributes); foreach ($attributes as $k => &$attr) { $attr = $k . '="' . htmlspecialchars($attr) . '"'; } echo '
'; echo '' . $title . ''; if (!empty($description)) { echo '

' . $description . '

'; } // this must match with displayErrors() in scripts.js if (is_array($errors) && count($errors) > 0) { echo '
'; foreach ($errors as $error) { echo '
' . $error . '
'; } echo '
'; } ?> fields * o values_escaped - (boolean) tells whether values array is already escaped (defaults to false) * o values_disabled - (array)list of disabled values (keys from values) * o wiki - (string) wiki link * * @param string $path * @param string $name * @param string $description * @param string $type * @param mixed $value * @param bool $value_is_default * @param array $opts */ function display_input($path, $name, $description = '', $type, $value, $value_is_default = true, $opts = null) { static $base_dir, $img_path; $is_setup_script = defined('PMA_SETUP') && PMA_SETUP; if ($base_dir === null) { $base_dir = $is_setup_script ? '../' : ''; $img_path = $is_setup_script ? '../' . ltrim($GLOBALS['cfg']['ThemePath'], './') . '/original/img/' : $_SESSION['PMA_Theme']->img_path; } $has_errors = isset($opts['errors']) && !empty($opts['errors']); $field_class = $type == 'checkbox' ? 'checkbox' : ''; if (!$value_is_default) { $field_class .= ($field_class == '' ? '' : ' ') . ($has_errors ? 'custom field-error' : 'custom'); } $field_class = $field_class ? ' class="' . $field_class . '"' : ''; $name_id = 'name="' . $path . '" id="' . $path . '"'; ?>  '; } ?>
Doc Wiki '; break; case 'checkbox': echo ''; break; case 'select': echo ''; break; case 'list': echo ''; break; } if (isset($opts['setvalue']) && $opts['setvalue']) { ?> " title="" style="display:none">set-value "; foreach ($opts['errors'] as $error) { echo '
' . htmlspecialchars($error) . '
'; } echo ''; } ?>
/>
\n"; } /** * Displays bottom part of the form */ function display_form_bottom() { echo "\n"; } /** * Appends JS validation code to $js_array * * @param string $field_id * @param string $validator * @param array $js_array */ function js_validate($field_id, $validator, &$js_array) { $js_array[] = "validateField('$field_id', '$validator', true)"; } /** * Displays JavaScript code * * @param array $js_array */ function display_js($js_array) { if (empty($js_array)) { return; } ?> '; echo '
' . htmlspecialchars($name) . '
'; foreach ($error_list as $error) { echo '
' . htmlspecialchars($error) . '
'; } echo ''; } ?>