3 /* vim: set expandtab sw=4 ts=4 sts=4: */
5 * set of functions for structure section in pma
9 if (!defined('PHPMYADMIN')) {
13 require_once 'libraries/Index.class.php';
16 * Get HTML for display indexes
18 * @return string $html_output
20 function PMA_getHtmlForDisplayIndexes()
22 $html_output = '<div id="index_div" class="ajax" >';
24 $html_output .= PMA_Util
::getDivForSliderEffect(
25 'indexes', __('Indexes')
27 $html_output .= PMA_Index
::getView($GLOBALS['table'], $GLOBALS['db']);
28 $html_output .= '<fieldset class="tblFooters" style="text-align: left;">'
29 . '<form action="tbl_indexes.php" method="post">';
30 $html_output .= PMA_URL_getHiddenInputs(
31 $GLOBALS['db'], $GLOBALS['table']
33 $html_output .= sprintf(
34 __('Create an index on %s columns'),
35 '<input type="number" size="2" name="added_fields" value="1" '
36 . 'min="1" required />'
38 $html_output .= '<input type="hidden" name="create_index" value="1" />'
39 . '<input class="add_index ajax"'
40 . ' type="submit" value="' . __('Go') . '" />';
42 $html_output .= '</form>'