added japanese language
[openemr.git] / phpmyadmin / libraries / server_common.lib.php
blob16c43c93af35f295faaa38fb08e4f54e44b0032f
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
16 * @param string $link Link to the official MySQL documentation
17 * @param bool $is_image Display image or icon, true: image, false: icon
19 * @return string
21 function PMA_getHtmlForSubPageHeader($type, $link='', $is_image=true)
23 //array contains Sub page icon and text
24 $header = array();
26 $header['variables']['image'] = 's_vars.png';
27 $header['variables']['text'] = __('Server variables and settings');
29 $header['engines']['image'] = 'b_engine.png';
30 $header['engines']['text'] = __('Storage Engines');
32 $header['plugins']['image'] = 'b_engine.png';
33 $header['plugins']['text'] = __('Plugins');
35 $header['binlog']['image'] = 's_tbl.png';
36 $header['binlog']['text'] = __('Binary log');
38 $header['collations']['image'] = 's_asci.png';
39 $header['collations']['text'] = __('Character Sets and Collations');
41 $header['replication']['image'] = 's_replication.png';
42 $header['replication']['text'] = __('Replication');
44 $header['database_statistics']['image'] = 's_db.png';
45 $header['database_statistics']['text'] = __('Databases statistics');
47 $header['databases']['image'] = 's_db.png';
48 $header['databases']['text'] = __('Databases');
50 $header['privileges']['image'] = 'b_usrlist.png';
51 $header['privileges']['text'] = __('Privileges');
53 if ($is_image) {
54 $html = '<h2>' . "\n"
55 . PMA_Util::getImage($header[$type]['image'])
56 . ' ' . $header[$type]['text'] . "\n"
57 . $link . '</h2>' . "\n";
58 } else {
59 $html = '<h2>' . "\n"
60 . PMA_Util::getIcon($header[$type]['image'])
61 . ' ' . $header[$type]['text'] . "\n"
62 . $link . '</h2>' . "\n";
64 return $html;