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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2011-02-02 22:21:58 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2011-02-02 22:21:58 +0300
commit3e4e3fb4d62e111a43b9830a1150e27ff62a3f78 (patch)
tree21c2c63d28456bb64c8eebe2d7a5a0dca7763428 /tbl_create.php
parent3a3f6d5141c58a31924d915c43b1b7968792303b (diff)
Bug # 3170585 [AJAX] Adding more fields fails.
Diffstat (limited to 'tbl_create.php')
-rw-r--r--tbl_create.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/tbl_create.php b/tbl_create.php
index 4ba641e411..6d569b50d7 100644
--- a/tbl_create.php
+++ b/tbl_create.php
@@ -288,7 +288,7 @@ if (isset($_REQUEST['do_save_data'])) {
$new_table_string .= '<th>';
$new_table_string .= '<a href="sql.php' . PMA_generate_common_url($tbl_url_params) . '">'. $table . '</a>';
-
+
if (PMA_Tracker::isActive()) {
$truename = str_replace(' ', '&nbsp;', htmlspecialchars($table));
if (PMA_Tracker::isTracked($db, $truename)) {
@@ -313,7 +313,7 @@ if (isset($_REQUEST['do_save_data'])) {
$new_table_string .= '<td><a class="drop_table_anchor" href="sql.php' . PMA_generate_common_url($tbl_url_params) . '&amp;sql_query=';
$new_table_string .= urlencode('DROP TABLE ' . PMA_backquote($table));
$new_table_string .= '">';
- $new_table_string .= $titles['Drop'];
+ $new_table_string .= $titles['Drop'];
$new_table_string .= '</a></td>' . "\n";
$new_table_string .= '<td class="value">' . $tbl_stats['Rows'] . '</td>' . "\n";
@@ -362,7 +362,17 @@ if (isset($_REQUEST['do_save_data'])) {
/**
* Displays the form used to define the structure of the table
*/
+
+// This div is used to show the content(eg: create table form with more columns) fetched with AJAX subsequently.
+if($GLOBALS['is_ajax_request'] != true) {
+ echo('<div id="create_table_div">');
+}
+
require './libraries/tbl_properties.inc.php';
// Displays the footer
require './libraries/footer.inc.php';
+
+if($GLOBALS['is_ajax_request'] != true) {
+ echo('</div>');
+}
?>