Merge pull request #431 from xmujay/0609_monitor
[phpmyadmin/aamir.git] / libraries / server_common.lib.php
blobb686c65ef37a06f6871f0fddf6a9f7efab23aea2
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Shared code for server pages
6 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Returns the html for the sub-page heading
15 * @param string $type Sub page type
17 * @return string
19 function PMA_getSubPageHeader($type)
21 $res = array();
23 $res['plugins']['icon'] = 'b_engine.png';
24 $res['plugins']['text'] = __('Plugins');
26 $res['binlog']['icon'] = 's_tbl.png';
27 $res['binlog']['text'] = __('Binary log');
29 $res['collations']['icon'] = 's_asci.png';
30 $res['collations']['text'] = __('Character Sets and Collations');
32 $html = '<h2>' . "\n"
33 . PMA_Util::getImage($res[$type]['icon'])
34 . ' ' . $res[$type]['text'] . "\n"
35 . '</h2>' . "\n";
36 return $html;