本文整理汇总了PHP中PMA_getTabs函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_getTabs函数的具体用法?PHP PMA_getTabs怎么用?PHP PMA_getTabs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PMA_getTabs函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PMA_getTabs
/**
* start HTTP/HTML output
*/
require_once './libraries/header_http.inc.php';
require_once './libraries/header_meta_style.inc.php';
require_once './libraries/header_scripts.inc.php';
?>
</head>
<body id="bodyquerywindow">
<div id="querywindowcontainer">
<?php
if ($tabs) {
echo PMA_getTabs($tabs, array());
unset($tabs);
}
PMA_sqlQueryForm($query_to_display, $querydisplay_tab);
// Hidden forms and query frame interaction stuff
$_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']);
if (! empty($_sql_history)
&& ($querydisplay_tab == 'history' || $querydisplay_tab == 'full')) {
$tab = $querydisplay_tab != 'full' ? 'sql' : 'full';
echo $GLOBALS['strQuerySQLHistory'] . ':<br />' . "\n"
.'<ul>';
foreach ($_sql_history as $query) {
echo '<li>' . "\n";
示例2: PMA_getTabs
$tabs['binlog']['link'] = 'server_binlog.php';
$tabs['binlog']['text'] = $strBinaryLog;
$tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png';
$tabs['process']['link'] = 'server_processlist.php';
$tabs['process']['text'] = 'caution';
$tabs['process']['class'] = 'caution';
$tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
$tabs['export']['text'] = 'disabled';
$tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
$tabs['export2']['text'] = 'disabled caution';
$tabs['export2']['class'] = 'caution';
$tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png';
$tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = 'active';
$tabs['import']['class'] = 'active';
echo PMA_getTabs($tabs);
unset($tabs);
if (@file_exists($pmaThemeImage . 'logo_right.png')) {
?>
<img id="pmalogoright" src="../<?php
echo $pmaThemeImage;
?>
logo_right.png"
alt="phpMyAdmin" />
<?php
}
?>
<h1>
<?php
echo sprintf($strWelcome, '<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
?>
示例3: array
* Displays tab links
*/
$tabs = array();
$tabs[] =& $tab_structure;
$tabs[] =& $tab_sql;
$tabs[] =& $tab_search;
$tabs[] =& $tab_qbe;
$tabs[] =& $tab_export;
if (!$db_is_information_schema) {
$tabs[] =& $tab_import;
if ($cfgRelation['designerwork']) {
$tabs[] =& $tab_designer;
}
$tabs[] =& $tab_operation;
if ($is_superuser) {
$tabs[] =& $tab_privileges;
}
if ($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) {
$tabs[] =& $tab_drop;
}
}
$url_params['db'] = $db;
echo PMA_getTabs($tabs, $url_params);
unset($tabs);
/**
* Displays a message
*/
if (!empty($message)) {
PMA_showMessage($message);
unset($message);
}