Convert Excel column name correctly
[phpmyadmin/arisferyanto.git] / libraries / server_links.inc.php
blob40479d2c45369b1554aa3b992c0ca039ee6eace8
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Check parameters
15 require_once './libraries/common.inc.php';
16 require_once './libraries/server_common.inc.php';
18 PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);
20 /**
21 * Counts amount of navigation tabs
23 $server_links_count_tabs = 0;
26 /**
27 * Put something in $sub_part
29 if (!isset($sub_part)) {
30 $sub_part = '';
34 /**
35 * Displays tab links
37 $tabs = array();
39 $tabs['databases']['icon'] = 's_db.png';
40 $tabs['databases']['link'] = 'server_databases.php';
41 $tabs['databases']['text'] = $strDatabases;
43 $tabs['sql']['icon'] = 'b_sql.png';
44 $tabs['sql']['link'] = 'server_sql.php';
45 $tabs['sql']['text'] = $strSQL;
47 $tabs['status']['icon'] = 's_status.png';
48 $tabs['status']['link'] = 'server_status.php';
49 $tabs['status']['text'] = $strStatus;
51 $tabs['vars']['icon'] = 's_vars.png';
52 $tabs['vars']['link'] = 'server_variables.php';
53 $tabs['vars']['text'] = $strServerTabVariables;
55 $tabs['charset']['icon'] = 's_asci.png';
56 $tabs['charset']['link'] = 'server_collations.php';
57 $tabs['charset']['text'] = $strCharsets;
59 $tabs['engine']['icon'] = 'b_engine.png';
60 $tabs['engine']['link'] = 'server_engines.php';
61 $tabs['engine']['text'] = $strEngines;
63 if ($is_superuser) {
64 $tabs['rights']['icon'] = 's_rights.png';
65 $tabs['rights']['link'] = 'server_privileges.php';
66 $tabs['rights']['text'] = $strPrivileges;
68 $tabs['replication']['icon'] = 's_replication.png';
69 $tabs['replication']['link'] = 'server_replication.php';
70 $tabs['replication']['text'] = $strReplication;
73 if (! empty($binary_logs)) {
74 $tabs['binlog']['icon'] = 's_tbl.png';
75 $tabs['binlog']['link'] = 'server_binlog.php';
76 $tabs['binlog']['text'] = $strBinaryLog;
78 $tabs['process']['icon'] = 's_process.png';
79 $tabs['process']['link'] = 'server_processlist.php';
80 $tabs['process']['text'] = $strProcesses;
82 $tabs['export']['icon'] = 'b_export.png';
83 $tabs['export']['link'] = 'server_export.php';
84 $tabs['export']['text'] = $strExport;
86 $tabs['import']['icon'] = 'b_import.png';
87 $tabs['import']['link'] = 'server_import.php';
88 $tabs['import']['text'] = $strImport;
90 $tabs['synchronize']['icon'] = 's_sync.png';
91 $tabs['synchronize']['link'] = 'server_synchronize.php';
92 $tabs['synchronize']['text'] = $strSynchronize;
94 echo PMA_generate_html_tabs($tabs, array());
95 unset($tabs);
98 /**
99 * Displays a message
101 if (!empty($message)) {
102 PMA_showMessage($message);
103 unset($message);