Merge pull request #431 from xmujay/0609_monitor
[phpmyadmin/aamir.git] / libraries / index.lib.php
blob02596a6c1602217b7c71adc2471d8e7fd0349256
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 = PMA_Util::getDivForSliderEffect(
23 'indexes', __('Indexes')
25 $html_output .= PMA_Index::getView($GLOBALS['table'], $GLOBALS['db']);
26 $html_output .= '<fieldset class="tblFooters" style="text-align: left;">'
27 . '<form action="tbl_indexes.php" method="post">';
28 $html_output .= PMA_generate_common_hidden_inputs(
29 $GLOBALS['db'], $GLOBALS['table']
31 $html_output .= sprintf(
32 __('Create an index on &nbsp;%s&nbsp;columns'),
33 '<input type="text" size="2" name="added_fields" value="1" />'
35 $html_output .= '<input type="hidden" name="create_index" value="1" />'
36 . '<input class="add_index ajax"'
37 . ' type="submit" value="' . __('Go') . '" />';
39 $html_output .= '</form>'
40 . '</fieldset>'
41 . '</div>'
42 . '</div>';
44 return $html_output;