Suppress the printing of the serverlinks and topmenucontainer divs when

in an ajax request
This commit is contained in:
ninadsp
2010-06-28 01:24:05 +05:30
parent a5ae31a220
commit e2cef4bc23

24
sql.php
View File

@@ -576,17 +576,19 @@ else {
} else { } else {
$GLOBALS['js_include'][] = 'functions.js'; $GLOBALS['js_include'][] = 'functions.js';
unset($message); unset($message);
if (strlen($table)) { if( $GLOBALS['is_ajax_request'] != true) {
require './libraries/tbl_common.php'; if (strlen($table)) {
$url_query .= '&goto=tbl_sql.php&back=tbl_sql.php'; require './libraries/tbl_common.php';
require './libraries/tbl_info.inc.php'; $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php';
require './libraries/tbl_links.inc.php'; require './libraries/tbl_info.inc.php';
} elseif (strlen($db)) { require './libraries/tbl_links.inc.php';
require './libraries/db_common.inc.php'; } elseif (strlen($db)) {
require './libraries/db_info.inc.php'; require './libraries/db_common.inc.php';
} else { require './libraries/db_info.inc.php';
require './libraries/server_common.inc.php'; } else {
require './libraries/server_links.inc.php'; require './libraries/server_common.inc.php';
require './libraries/server_links.inc.php';
}
} }
} }