Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Foellmann <foellmann@foe-services.de>2015-01-17 12:49:39 +0300
committerChristian Foellmann <foellmann@foe-services.de>2015-01-17 12:49:39 +0300
commit315c33fef0fc20fbfa948446b728c0b9db34ab7c (patch)
treebdc18a0e2e87b62e37f8168fd0f1e199ad25df05 /libraries/DisplayResults.class.php
parent72f864ff50d01b8bc18904db7a6ba4fa32c44783 (diff)
UPDATE to 4.3.74.3.7
Diffstat (limited to 'libraries/DisplayResults.class.php')
-rw-r--r--libraries/DisplayResults.class.php32
1 files changed, 21 insertions, 11 deletions
diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php
index 0ffdf52be5..7f1d7d8326 100644
--- a/libraries/DisplayResults.class.php
+++ b/libraries/DisplayResults.class.php
@@ -580,6 +580,7 @@ class PMA_DisplayResults
* @param string $title text for button
* @param integer $pos position for next query
* @param string $html_sql_query query ready for display
+ * @param boolean $back whether 'begin' or 'previous'
* @param string $onsubmit optional onsubmit clause
* @param string $input_for_real_end optional hidden field for special treatment
* @param string $onclick optional onclick clause
@@ -592,17 +593,25 @@ class PMA_DisplayResults
* _getMoveForwardButtonsForTableNavigation()
*/
private function _getTableNavigationButton(
- $caption, $title, $pos, $html_sql_query, $onsubmit = '',
+ $caption, $title, $pos, $html_sql_query, $back, $onsubmit = '',
$input_for_real_end = '', $onclick = ''
) {
$caption_output = '';
- if (PMA_Util::showIcons('TableNavigationLinksMode')) {
- $caption_output .= $caption;
- }
-
- if (PMA_Util::showText('TableNavigationLinksMode')) {
- $caption_output .= '&nbsp;' . $title;
+ if ($back) {
+ if (PMA_Util::showIcons('TableNavigationLinksMode')) {
+ $caption_output .= $caption;
+ }
+ if (PMA_Util::showText('TableNavigationLinksMode')) {
+ $caption_output .= '&nbsp;' . $title;
+ }
+ } else {
+ if (PMA_Util::showText('TableNavigationLinksMode')) {
+ $caption_output .= $title;
+ }
+ if (PMA_Util::showIcons('TableNavigationLinksMode')) {
+ $caption_output .= '&nbsp;' . $caption;
+ }
}
$title_output = ' title="' . $title . '"';
@@ -833,11 +842,11 @@ class PMA_DisplayResults
$html_sql_query, $pos_prev
) {
return $this->_getTableNavigationButton(
- '&lt;&lt;', _pgettext('First page', 'Begin'), 0, $html_sql_query
+ '&lt;&lt;', _pgettext('First page', 'Begin'), 0, $html_sql_query, true
)
. $this->_getTableNavigationButton(
'&lt;', _pgettext('Previous page', 'Previous'), $pos_prev,
- $html_sql_query
+ $html_sql_query, true
);
} // end of the '_getMoveBackwardButtonsForTableNavigation()' function
@@ -900,7 +909,8 @@ class PMA_DisplayResults
'&gt;',
_pgettext('Next page', 'Next'),
$pos_next,
- $html_sql_query
+ $html_sql_query,
+ false
);
// prepare some options for the End button
@@ -932,7 +942,7 @@ class PMA_DisplayResults
$this->__get('unlim_num_rows')
/ $_SESSION['tmpval']['max_rows']
)- 1) * $maxRows),
- $html_sql_query, $onsubmit, $input_for_real_end, $onclick
+ $html_sql_query, false, $onsubmit, $input_for_real_end, $onclick
);
return $buttons_html;