Added the index form to the end of the page

This commit is contained in:
Mohamed Ashraf 2013-03-21 14:38:12 +02:00
parent d019381903
commit 0a00de92a0

View File

@ -20,12 +20,14 @@
* Gets some core libraries
*/
require_once 'libraries/common.inc.php';
require_once 'libraries/index.lib.php';
$response = PMA_Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('tbl_relation.js');
$scripts->addFile('indexes.js');
require_once 'libraries/tbl_common.inc.php';
$url_query .= '&goto=tbl_sql.php';
/**
@ -566,7 +568,9 @@ if (count($columns) > 0) {
);
$html_output .= '</span>' . "\n";
} else {
$html_output .= __('No index defined!');
$html_output .= __('No index defined! Create one below');
//$html_output .= "<a class='create_index' href='#'>".
//"create index</a>";
} // end if (a key exists)
$html_output .= '</td>';
} // end if (InnoDB)
@ -604,7 +608,7 @@ if (count($columns) > 0) {
. '</fieldset>'
. '</form>';
} // end if (we have columns in this table)
$html_output .= '<div id="index_div" class="ajax" >'. PMA_getHtmlForDisplayIndexes();
// Render HTML output
PMA_Response::getInstance()->addHTML($html_output);