Removing old documentation
[openemr.git] / phpmyadmin / libraries / index.lib.php
blob59b1303dcce18fc47cf30eeb0ce33c2acaab965c
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';
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 &nbsp;%s&nbsp;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>'
47 . '</fieldset>'
48 . '</div>'
49 . '</div>';
51 return $html_output;