diff --git a/js/db_qbe.js b/js/db_qbe.js index 4b6854912e..c3e8afdcc4 100644 --- a/js/db_qbe.js +++ b/js/db_qbe.js @@ -74,4 +74,7 @@ AJAX.registerOnload('db_qbe.js', function () { $('#action').val('delete'); }); + + var windowwidth = $(window).width(); + $('#responsivetable').css('max-width', (windowwidth - 35 ) + 'px'); }); \ No newline at end of file diff --git a/libraries/classes/DbQbe.php b/libraries/classes/DbQbe.php index 3e6f4fa530..b45fb7ee8d 100644 --- a/libraries/classes/DbQbe.php +++ b/libraries/classes/DbQbe.php @@ -836,7 +836,7 @@ class DbQbe */ private function _getTablesList() { - $html_output = '
'; + $html_output = '
'; $html_output .= '
'; $html_output .= '' . __('Use Tables') . ''; // Build the options list for each table name @@ -1809,12 +1809,14 @@ class DbQbe { $html_output = '
'; + $html_output .= '
'; $html_output .= '
'; if ($GLOBALS['cfgRelation']['savedsearcheswork']) { $html_output .= $this->_getSavedSearchesField(); } + $html_output .= '
'; $html_output .= ''; // Get table's elements $html_output .= $this->_getColumnNamesRow(); @@ -1832,7 +1834,9 @@ class DbQbe $url_params['criteriaColumnCount'] = $this->_new_column_count; $url_params['rows'] = $this->_new_row_count; $html_output .= Url::getHiddenInputs($url_params); + $html_output .= ''; $html_output .= ''; + $html_output .= ''; // get footers $html_output .= $this->_getTableFooters(); // get tables select list @@ -1841,7 +1845,7 @@ class DbQbe $html_output .= ''; $html_output .= Url::getHiddenInputs(array('db' => $this->_db)); // get SQL query - $html_output .= '
'; + $html_output .= '
'; $html_output .= '
'; $html_output .= '' . sprintf( diff --git a/themes/pmahomme/css/common.css.php b/themes/pmahomme/css/common.css.php index e945d2ae48..0c27c68d5b 100644 --- a/themes/pmahomme/css/common.css.php +++ b/themes/pmahomme/css/common.css.php @@ -45,6 +45,10 @@ body#loginform { margin: 0 .5em; } +.desktop50 { + width: 50%; +} + .all100 { width: 100%; } @@ -3558,7 +3562,7 @@ body .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { display: none; } - .width100 { + .width100, .desktop50 { width: 100%; }