diff --git a/db_operations.php b/db_operations.php
index 5edeaa925..5566630ee 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -421,7 +421,7 @@ if (!$is_information_schema) {
'structure' => $strStrucOnly,
'data' => $strStrucData,
'dataonly' => $strDataOnly);
- PMA_generate_html_radio('what', $choices, 'data', true);
+ PMA_display_html_radio('what', $choices, 'data', true);
unset($choices);
?>
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index a4fd814cb..24cf54523 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -1289,7 +1289,7 @@ function PMA_profilingCheckbox($sql_query)
echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
echo ' ' . "\n";
echo ' ' . "\n";
- PMA_generate_html_checkbox('profiling', $GLOBALS['strProfiling'], isset($_SESSION['profiling']), true);
+ PMA_display_html_checkbox('profiling', $GLOBALS['strProfiling'], isset($_SESSION['profiling']), true);
echo ' ' . "\n";
echo '' . "\n";
}
@@ -1517,7 +1517,7 @@ function PMA_localisedDate($timestamp = -1, $format = '')
* @return string html code for one tab, a link if valid otherwise a span
* @access public
*/
-function PMA_getTab($tab, $url_params = array())
+function PMA_generate_html_tab($tab, $url_params = array())
{
// default values
$defaults = array(
@@ -1600,18 +1600,18 @@ function PMA_getTab($tab, $url_params = array())
$out .= '';
return $out;
-} // end of the 'PMA_getTab()' function
+} // end of the 'PMA_generate_html_tab()' function
/**
* returns html-code for a tab navigation
*
- * @uses PMA_getTab()
+ * @uses PMA_generate_html_tab()
* @uses htmlentities()
* @param array $tabs one element per tab
* @param string $url_params
* @return string html-code for tab-navigation
*/
-function PMA_getTabs($tabs, $url_params)
+function PMA_generate_html_tabs($tabs, $url_params)
{
$tag_id = 'topmenu';
$tab_navigation =
@@ -1619,7 +1619,7 @@ function PMA_getTabs($tabs, $url_params)
.'
' . "\n";
foreach ($tabs as $tab) {
- $tab_navigation .= PMA_getTab($tab, $url_params) . "\n";
+ $tab_navigation .= PMA_generate_html_tab($tab, $url_params) . "\n";
}
$tab_navigation .=
@@ -2330,7 +2330,7 @@ function PMA_externalBug($functionality, $component, $minimum_version, $bugref)
* @param boolean $checked is it initially checked?
* @param boolean $onclick should it submit the form on click?
*/
-function PMA_generate_html_checkbox($html_field_name, $label, $checked, $onclick) {
+function PMA_display_html_checkbox($html_field_name, $label, $checked, $onclick) {
echo '' . $label . ' ';
}
@@ -2346,7 +2346,7 @@ function PMA_generate_html_checkbox($html_field_name, $label, $checked, $onclick
* @param boolean $escape_label whether to use htmlspecialchars() on label
* @param string $class enclose each choice with a div of this class
*/
-function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true, $class='') {
+function PMA_display_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true, $class='') {
foreach ($choices as $choice_value => $choice_label) {
if (! empty($class)) {
echo '';
@@ -2377,7 +2377,7 @@ function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '
* @param string $active_choice the choice to select by default
* @todo support titles
*/
-function PMA_generate_html_dropdown($select_name, $choices, $active_choice)
+function PMA_display_html_dropdown($select_name, $choices, $active_choice)
{
$result = '"' . "\n";
foreach ($choices as $one_choice) {
diff --git a/libraries/db_links.inc.php b/libraries/db_links.inc.php
index dc6b8e305..3505dc963 100644
--- a/libraries/db_links.inc.php
+++ b/libraries/db_links.inc.php
@@ -131,7 +131,7 @@ if (! $db_is_information_schema) {
$url_params['db'] = $db;
-echo PMA_getTabs($tabs, $url_params);
+echo PMA_generate_html_tabs($tabs, $url_params);
unset($tabs);
/**
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 546d014eb..2ca578bcf 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -557,7 +557,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
'P' => $GLOBALS['strPartialText'],
'F' => $GLOBALS['strFullText']
);
- PMA_generate_html_radio('display_text', $choices, $_SESSION['userconf']['display_text']);
+ PMA_display_html_radio('display_text', $choices, $_SESSION['userconf']['display_text']);
echo '
';
// prepare full/partial text button or link
@@ -584,14 +584,14 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
'K' => $GLOBALS['strRelationalKey'],
'D' => $GLOBALS['strRelationalDisplayField']
);
- PMA_generate_html_radio('relational_display', $choices, $_SESSION['userconf']['relational_display']);
+ PMA_display_html_radio('relational_display', $choices, $_SESSION['userconf']['relational_display']);
echo '';
}
echo '';
- PMA_generate_html_checkbox('display_binary', $GLOBALS['strShowBinaryContents'], ! empty($_SESSION['userconf']['display_binary']), false);
+ PMA_display_html_checkbox('display_binary', $GLOBALS['strShowBinaryContents'], ! empty($_SESSION['userconf']['display_binary']), false);
echo ' ';
- PMA_generate_html_checkbox('display_blob', $GLOBALS['strShowBLOBContents'], ! empty($_SESSION['userconf']['display_blob']), false);
+ PMA_display_html_checkbox('display_blob', $GLOBALS['strShowBLOBContents'], ! empty($_SESSION['userconf']['display_blob']), false);
echo '
';
// I would have preferred to name this "display_transformation".
@@ -599,7 +599,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
// per SQL query, and at the same time have a default that displays
// the transformations.
echo '';
- PMA_generate_html_checkbox('hide_transformation', $GLOBALS['strHide'] . ' ' . $GLOBALS['strMIME_transformation'], ! empty($_SESSION['userconf']['hide_transformation']), false);
+ PMA_display_html_checkbox('hide_transformation', $GLOBALS['strHide'] . ' ' . $GLOBALS['strMIME_transformation'], ! empty($_SESSION['userconf']['hide_transformation']), false);
echo '
';
echo '
';
diff --git a/libraries/server_links.inc.php b/libraries/server_links.inc.php
index ac541a7f3..6edb5ce3e 100644
--- a/libraries/server_links.inc.php
+++ b/libraries/server_links.inc.php
@@ -83,7 +83,7 @@ $tabs['import']['icon'] = 'b_import.png';
$tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = $strImport;
-echo PMA_getTabs($tabs, array());
+echo PMA_generate_html_tabs($tabs, array());
unset($tabs);
diff --git a/libraries/tbl_links.inc.php b/libraries/tbl_links.inc.php
index 8a1694692..a5b71ad39 100644
--- a/libraries/tbl_links.inc.php
+++ b/libraries/tbl_links.inc.php
@@ -124,7 +124,7 @@ if ($table_info_num_rows == 0 && !$tbl_is_view) {
$tabs['search']['warning'] = $strTableIsEmpty;
}
-echo PMA_getTabs($tabs, $url_params);
+echo PMA_generate_html_tabs($tabs, $url_params);
unset($tabs);
/**
diff --git a/pdf_pages.php b/pdf_pages.php
index 3218932a3..3a0e36163 100644
--- a/pdf_pages.php
+++ b/pdf_pages.php
@@ -279,7 +279,7 @@ if ($cfgRelation['pdfwork']) {
$choices = array(
'0' => $strEdit,
'1' => $strDelete);
- PMA_generate_html_radio('action_choose', $choices, '0', false);
+ PMA_display_html_radio('action_choose', $choices, '0', false);
unset($choices);
?>
diff --git a/querywindow.php b/querywindow.php
index 2c678fa05..630529e58 100644
--- a/querywindow.php
+++ b/querywindow.php
@@ -31,7 +31,7 @@
* @uses PMA_generate_common_url()
* @uses PMA_generate_common_hidden_inputs()
* @uses PMA_escapeJsString()
- * @uses PMA_getTabs()
+ * @uses PMA_generate_html_tabs()
* @uses PMA_sqlQueryForm()
* @uses PMA_jsFormat()
* @uses in_array()
@@ -206,7 +206,7 @@ require_once './libraries/header_scripts.inc.php';
$GLOBALS['strChangeCopyModeJustDelete'],
'2' => $GLOBALS['strChangeCopyModeRevoke'],
'3' => $GLOBALS['strChangeCopyModeDeleteAndReload']);
- PMA_generate_html_radio('mode', $choices, '4', true);
+ PMA_display_html_radio('mode', $choices, '4', true);
unset($choices);
echo ' ' . "\n"
@@ -1986,7 +1986,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
// 4th parameter set to true to add line breaks
// 5th parameter set to false to avoid htmlspecialchars() escaping in the label
// since we have some HTML in some labels
- PMA_generate_html_radio('createdb', $choices, $default_choice, true, false);
+ PMA_display_html_radio('createdb', $choices, $default_choice, true, false);
unset($choices);
unset($default_choice);
diff --git a/tbl_operations.php b/tbl_operations.php
index ab61cc043..5ed599605 100644
--- a/tbl_operations.php
+++ b/tbl_operations.php
@@ -444,7 +444,7 @@ if (isset($possible_row_formats[$tbl_type])) {
$current_row_format = strtoupper($showtable['Row_format']);
echo 'ROW_FORMAT ';
echo '';
- PMA_generate_html_dropdown('new_row_format', $possible_row_formats[$tbl_type], $current_row_format);
+ PMA_display_html_dropdown('new_row_format', $possible_row_formats[$tbl_type], $current_row_format);
unset($possible_row_formats, $current_row_format);
echo ' ';
echo ' ';
@@ -485,7 +485,7 @@ if (isset($possible_row_formats[$tbl_type])) {
'structure' => $strStrucOnly,
'data' => $strStrucData,
'dataonly' => $strDataOnly);
- PMA_generate_html_radio('what', $choices, 'data', true);
+ PMA_display_html_radio('what', $choices, 'data', true);
unset($choices);
?>
@@ -621,7 +621,7 @@ $this_url_params = array_merge($url_params,
'OPTIMIZE' => $strOptimize,
'REBUILD' => $strRebuild,
'REPAIR' => $strRepair);
- PMA_generate_html_radio('partition_operation', $choices, '', false);
+ PMA_display_html_radio('partition_operation', $choices, '', false);
unset($choices);
echo PMA_showMySQLDocu('partitioning_maintenance', 'partitioning_maintenance');
// I'm not sure of the best way to display that; this link does
diff --git a/tbl_select.php b/tbl_select.php
index 80bb49455..59b075fd3 100644
--- a/tbl_select.php
+++ b/tbl_select.php
@@ -304,7 +304,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
'ASC' => $strAscending,
'DESC' => $strDescending
);
- PMA_generate_html_radio('order', $choices, 'ASC', false, true, "formelement");
+ PMA_display_html_radio('order', $choices, 'ASC', false, true, "formelement");
unset($choices);
?>
diff --git a/tbl_structure.php b/tbl_structure.php
index 66dc8e4ca..46a5e0d82 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -526,7 +526,7 @@ if (! $tbl_is_view && ! $db_is_information_schema) {
'first' => $strAtBeginningOfTable,
'after' => sprintf($strAfter, '')
);
- PMA_generate_html_radio('field_where', $choices, 'last', false);
+ PMA_display_html_radio('field_where', $choices, 'last', false);
echo $fieldOptions;
unset($fieldOptions, $choices);
?>
diff --git a/test/theme.php b/test/theme.php
index c4813d1f4..3b939aa1e 100644
--- a/test/theme.php
+++ b/test/theme.php
@@ -137,7 +137,7 @@ $tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = 'active';
$tabs['import']['class'] = 'active';
-echo PMA_getTabs($tabs, array());
+echo PMA_generate_html_tabs($tabs, array());
unset($tabs);
if (@file_exists($pmaThemeImage . 'logo_right.png')) {