Translated using Weblate (Estonian)
[phpmyadmin.git] / libraries / index.lib.php
blobde1d76da310ba260903aafd0e49e2fff91dd8ea6
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * set of functions for structure section in pma
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\URL;
10 /**
11 * Get HTML for display indexes
13 * @return string $html_output
15 function PMA_getHtmlForDisplayIndexes()
17 $html_output = '<div id="index_div" class="ajax" >';
18 $html_output .= PMA\libraries\Index::getHtmlForIndexes(
19 $GLOBALS['table'],
20 $GLOBALS['db']
22 $html_output .= '<fieldset class="tblFooters print_ignore" style="text-align: '
23 . 'left;"><form action="tbl_indexes.php" method="post">';
24 $html_output .= URL::getHiddenInputs(
25 $GLOBALS['db'], $GLOBALS['table']
27 $html_output .= sprintf(
28 __('Create an index on &nbsp;%s&nbsp;columns'),
29 '<input type="number" name="added_fields" value="1" '
30 . 'min="1" required="required" />'
32 $html_output .= '<input type="hidden" name="create_index" value="1" />'
33 . '<input class="add_index ajax"'
34 . ' type="submit" value="' . __('Go') . '" />';
36 $html_output .= '</form>'
37 . '</fieldset>'
38 . '</div>';
40 return $html_output;