Translated using Weblate (Danish)
[phpmyadmin.git] / libraries / index.lib.php
blobf5df69ebf47dc5a9ed4aa3ec545a7e0ee1d763a9
1 <?php
3 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 /**
5 * set of functions for structure section in pma
7 * @package PhpMyAdmin
8 */
9 if (!defined('PHPMYADMIN')) {
10 exit;
13 require_once 'libraries/Index.class.php';
15 /**
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 &nbsp;%s&nbsp;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>'
43 . '</fieldset>'
44 . '</div>'
45 . '</div>';
47 return $html_output;