getHeader(); $scripts = $header->getScripts(); $scripts->addFile('makegrid.js'); $scripts->addFile('sql.js'); $scripts->addFile('tbl_select.js'); $scripts->addFile('tbl_change.js'); $scripts->addFile('jquery/jquery-ui-timepicker-addon.js'); $scripts->addFile('gis_data_editor.js'); $post_params = array( 'ajax_request', 'session_max_rows' ); foreach ($post_params as $one_post_param) { if (isset($_POST[$one_post_param])) { $GLOBALS[$one_post_param] = $_POST[$one_post_param]; } } $table_search = new PMA_TableSearch($db, $table, "normal"); /** * Not selection yet required -> displays the selection form */ if (! isset($_POST['columnsToDisplay']) && ! isset($_POST['displayAllColumns'])) { // Gets some core libraries include_once 'libraries/tbl_common.inc.php'; //$err_url = 'tbl_select.php' . $err_url; $url_query .= '&goto=tbl_select.php&back=tbl_select.php'; /** * Gets table's information */ include_once 'libraries/tbl_info.inc.php'; if (! isset($goto)) { $goto = $GLOBALS['cfg']['DefaultTabTable']; } // Defines the url to return to in case of error in the next sql statement $err_url = $goto . '?' . PMA_generate_common_url($db, $table); // Displays the table search form $response->addHTML($table_search->getSelectionForm($goto)); } else { /** * Selection criteria have been submitted -> do the work */ $sql_query = $table_search->buildSqlQuery(); include 'sql.php'; } ?>