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>2015-02-09 09:37:43 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-02-09 09:37:43 +0300
commit8403bd6c7e67bcdfd5c8cc824d5473eaa3ac5b18 (patch)
tree53c7af818c57b22096b75d215d6c69ce1f3aab56 /tbl_structure.php
parent6f9367b1652e6b5cee652ab4729bb0253ac74b95 (diff)
rfe #1235 Relation view: move to main "Structure" page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'tbl_structure.php')
-rw-r--r--tbl_structure.php49
1 files changed, 29 insertions, 20 deletions
diff --git a/tbl_structure.php b/tbl_structure.php
index 1cea292eec..d1f0092337 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -76,26 +76,6 @@ if (isset($_REQUEST['change_column'])) {
PMA_displayHtmlForColumnChange($db, $table, null, 'tbl_structure.php');
exit;
}
-/**
- * Modifications have been submitted -> updates the table
- */
-if (isset($_REQUEST['do_save_data'])) {
- $regenerate = PMA_updateColumns($db, $table);
- if ($regenerate) {
- // This happens when updating failed
- // @todo: do something appropriate
- } else {
- // continue to show the table's structure
- unset($_REQUEST['selected']);
- }
-}
-/**
- * Adding indexes
- */
-if (isset($_REQUEST['add_key'])) {
- include 'sql.php';
- $GLOBALS['reload'] = true;
-}
/**
* handle multiple field commands if required
@@ -132,6 +112,33 @@ if (! empty($submit_mult)) {
}
}
+// display secondary level tabs if necessary
+$engine = PMA_Table::sGetStatusInfo($db, $table, 'ENGINE');
+$response->addHTML(PMA_getStructureSecondaryTabs($engine));
+$response->addHTML('<div id="structure_content">');
+
+/**
+ * Modifications have been submitted -> updates the table
+ */
+if (isset($_REQUEST['do_save_data'])) {
+ $regenerate = PMA_updateColumns($db, $table);
+ if ($regenerate) {
+ // This happens when updating failed
+ // @todo: do something appropriate
+ } else {
+ // continue to show the table's structure
+ unset($_REQUEST['selected']);
+ }
+}
+
+/**
+ * Adding indexes
+ */
+if (isset($_REQUEST['add_key'])) {
+ include 'sql.php';
+ $GLOBALS['reload'] = true;
+}
+
/**
* Gets the relation settings
*/
@@ -195,4 +202,6 @@ $hidden_titles = PMA_getHiddenTitlesArray();
//display table structure
require_once 'libraries/display_structure.inc.php';
+
+$response->addHTML('</div>');
?>