Merge remote-tracking branch 'origin/master'

This commit is contained in:
Michal Čihař 2012-06-17 14:43:29 +02:00
commit f382c604de
6 changed files with 10 additions and 10 deletions

View File

@ -103,7 +103,7 @@ class PMA_Menu
} else {
$tabs = $this->_getServerTabs();
}
return PMA_generateHtmlTabs($tabs, $url_params);
return PMA_getHtmlTabs($tabs, $url_params);
}
/**

View File

@ -1068,7 +1068,7 @@ EOT;
$url_params['db'] = $this->_db;
$url_params['table'] = $this->_table;
$html_output .= PMA_generateHtmlTabs(
$html_output .= PMA_getHtmlTabs(
$this->_getSubTabs(), $url_params, 'topmenu2'
);
$html_output .= $this->_getFormTag($goto);

View File

@ -1684,7 +1684,7 @@ function PMA_localisedDate($timestamp = -1, $format = '')
*
* @access public
*/
function PMA_generateHtmlTab($tab, $url_params = array())
function PMA_getHtmlTab($tab, $url_params = array())
{
// default values
$defaults = array(
@ -1775,7 +1775,7 @@ function PMA_generateHtmlTab($tab, $url_params = array())
$out .= '</li>';
return $out;
} // end of the 'PMA_generateHtmlTab()' function
} // end of the 'PMA_getHtmlTab()' function
/**
* returns html-code for a tab navigation
@ -1786,14 +1786,14 @@ function PMA_generateHtmlTab($tab, $url_params = array())
*
* @return string html-code for tab-navigation
*/
function PMA_generateHtmlTabs($tabs, $url_params, $menu_id = 'topmenu')
function PMA_getHtmlTabs($tabs, $url_params, $menu_id = 'topmenu')
{
$tab_navigation = '<div id="' . htmlentities($menu_id)
. 'container" class="menucontainer">'
.'<ul id="' . htmlentities($menu_id) . '">';
foreach ($tabs as $tab) {
$tab_navigation .= PMA_generateHtmlTab($tab, $url_params);
$tab_navigation .= PMA_getHtmlTab($tab, $url_params);
}
$tab_navigation .=

View File

@ -23,7 +23,7 @@ $tabs_icons = array(
'Import' => 'b_import.png',
'Export' => 'b_export.png');
echo '<ul id="topmenu2">';
echo PMA_generateHtmlTab(
echo PMA_getHtmlTab(
array(
'link' => 'prefs_manage.php',
'text' => __('Manage your settings')
@ -37,7 +37,7 @@ foreach (array_keys($forms) as $formset) {
'text' => PMA_lang('Form_' . $formset),
'icon' => $tabs_icons[$formset],
'active' => ($script_name == 'prefs_forms.php' && $formset == $form_param));
echo PMA_generateHtmlTab($tab, array('form' => $formset)) . "\n";
echo PMA_getHtmlTab($tab, array('form' => $formset)) . "\n";
}
echo '</ul><div class="clearfloat"></div>';

View File

@ -135,7 +135,7 @@ if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') {
echo '<div id="querywindowcontainer">';
if ($tabs) {
echo PMA_generateHtmlTabs($tabs, array());
echo PMA_getHtmlTabs($tabs, array());
unset($tabs);
}

View File

@ -143,7 +143,7 @@ $tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = 'active';
$tabs['import']['class'] = 'active';
echo PMA_generateHtmlTabs($tabs, array());
echo PMA_getHtmlTabs($tabs, array());
unset($tabs);
if (@file_exists($pmaThemeImage . 'logo_right.png')) {