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';
23 if ($GLOBALS['cfg']['InitialSlidersState'] != 'disabled') {
24 $html_output .= ' print_ignore';
26 $html_output .= '" >';
28 $html_output .= PMA_Util
::getDivForSliderEffect(
29 'indexes', __('Indexes')
31 $html_output .= PMA_Index
::getHtmlForIndexes($GLOBALS['table'], $GLOBALS['db']);
32 $html_output .= '<fieldset class="tblFooters print_ignore" style="text-align: '
33 . 'left;"><form action="tbl_indexes.php" method="post">';
34 $html_output .= PMA_URL_getHiddenInputs(
35 $GLOBALS['db'], $GLOBALS['table']
37 $html_output .= sprintf(
38 __('Create an index on %s columns'),
39 '<input type="number" name="added_fields" value="1" '
40 . 'min="1" required="required" />'
42 $html_output .= '<input type="hidden" name="create_index" value="1" />'
43 . '<input class="add_index ajax"'
44 . ' type="submit" value="' . __('Go') . '" />';
46 $html_output .= '</form>'