当前位置: 首页>>代码示例>>PHP>>正文


PHP PMA_generate_html_tabs函数代码示例

本文整理汇总了PHP中PMA_generate_html_tabs函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_generate_html_tabs函数的具体用法?PHP PMA_generate_html_tabs怎么用?PHP PMA_generate_html_tabs使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PMA_generate_html_tabs函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __

    $tabs['tracking']['icon'] = 'eye.png';
    $tabs['tracking']['text'] = __('Tracking');
    $tabs['tracking']['link'] = 'tbl_tracking.php';
}
if (!$tbl_is_view && !(isset($db_is_information_schema) && $db_is_information_schema)) {
}
/**
 * Views support a limited number of operations
 */
if ($tbl_is_view && !(isset($db_is_information_schema) && $db_is_information_schema)) {
    $tabs['operation']['icon'] = 'b_tblops.png';
    $tabs['operation']['link'] = 'view_operations.php';
    $tabs['operation']['text'] = __('Operations');
}
if ($table_info_num_rows == 0 && !$tbl_is_view) {
    $tabs['browse']['warning'] = __('Table seems to be empty!');
    $tabs['search']['warning'] = __('Table seems to be empty!');
}
echo PMA_generate_html_tabs($tabs, $url_params);
unset($tabs);
if (PMA_Tracker::isActive() and PMA_Tracker::isTracked($GLOBALS["db"], $GLOBALS["table"])) {
    $msg = PMA_Message::notice('<a href="tbl_tracking.php?' . $url_query . '">' . sprintf(__('Tracking of %s.%s is activated.'), htmlspecialchars($GLOBALS["db"]), htmlspecialchars($GLOBALS["table"])) . '</a>');
    $msg->display();
}
/**
 * Displays a message
 */
if (!empty($message)) {
    PMA_showMessage($message);
    unset($message);
}
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:31,代码来源:tbl_links.inc.php

示例2: __

$tabs['binlog']['link'] = 'server_binlog.php';
$tabs['binlog']['text'] = __('Binary log');
$tabs['process']['icon'] = 's_process.png';
$tabs['process']['link'] = 'server_processlist.php';
$tabs['process']['text'] = 'caution';
$tabs['process']['class'] = 'caution';
$tabs['export']['icon'] = 'b_export.png';
$tabs['export']['text'] = 'disabled';
$tabs['export2']['icon'] = 'b_export.png';
$tabs['export2']['text'] = 'disabled caution';
$tabs['export2']['class'] = 'caution';
$tabs['import']['icon'] = 'b_import.png';
$tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = 'active';
$tabs['import']['class'] = 'active';
echo PMA_generate_html_tabs($tabs, array(), '../../../../');
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(__('Welcome to %s'), '<bdo dir="ltr" lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
?>
开发者ID:rdeq08,项目名称:phpmyadmin,代码行数:31,代码来源:theme.php

示例3: PMA_getForeigners

// check also foreigners even if relwork is FALSE (to get
// foreign keys from innodb)
$foreigners = PMA_getForeigners($db, $table);
$flag = 1;
$tbl_fields_type = $tbl_fields_collation = $tbl_fields_null = array();
if (!isset($zoom_submit) && !isset($inputs)) {
    $dataLabel = PMA_getDisplayField($db, $table);
}
?>
<div id="sqlqueryresults"></div>
<fieldset id="fieldset_subtab">
<?php 
$url_params = array();
$url_params['db'] = $db;
$url_params['table'] = $table;
echo PMA_generate_html_tabs(PMA_tbl_getSubTabs(), $url_params, '', 'topmenu2');
/**
 *  Set the field name,type,collation and whether null on select of a coulmn
 */
if (isset($inputs) && ($inputs[0] != 'pma_null' || $inputs[1] != 'pma_null')) {
    $flag = 2;
    for ($i = 0; $i < 4; $i++) {
        if ($inputs[$i] != 'pma_null') {
            $key = array_search($inputs[$i], $fields_list);
            $tbl_fields_type[$i] = $fields_type[$key];
            $tbl_fields_collation[$i] = $fields_collation[$key];
            $tbl_fields_null[$i] = $fields_null[$key];
        }
    }
}
/*
开发者ID:kirhgoph,项目名称:VMWare-Workstation-web-interface,代码行数:31,代码来源:tbl_zoom_select.php

示例4: PMA_generate_html_tabs

    $tabs['rights']['text'] = $strPrivileges;
    $tabs['replication']['icon'] = 's_replication.png';
    $tabs['replication']['link'] = 'server_replication.php';
    $tabs['replication']['text'] = $strReplication;
}
if (!empty($binary_logs)) {
    $tabs['binlog']['icon'] = 's_tbl.png';
    $tabs['binlog']['link'] = 'server_binlog.php';
    $tabs['binlog']['text'] = $strBinaryLog;
}
$tabs['process']['icon'] = 's_process.png';
$tabs['process']['link'] = 'server_processlist.php';
$tabs['process']['text'] = $strProcesses;
$tabs['export']['icon'] = 'b_export.png';
$tabs['export']['link'] = 'server_export.php';
$tabs['export']['text'] = $strExport;
$tabs['import']['icon'] = 'b_import.png';
$tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = $strImport;
$tabs['import']['icon'] = 's_sync.png';
$tabs['import']['link'] = 'server_synchronize.php';
$tabs['import']['text'] = $strSynchronize;
echo PMA_generate_html_tabs($tabs, array());
unset($tabs);
/**
 * Displays a message
 */
if (!empty($message)) {
    PMA_showMessage($message);
    unset($message);
}
开发者ID:kolbermoorer,项目名称:edugame,代码行数:31,代码来源:server_links.inc.php

示例5: _getMenu

 /**
  * Returns the menu as HTML
  *
  * @return string HTML formatted menubar
  */
 private function _getMenu()
 {
     $tabs = '';
     $url_params = array('db' => $this->_db);
     if (strlen($this->_table)) {
         $tabs = $this->_getTableTabs();
         $url_params['table'] = $this->_table;
     } else {
         if (strlen($this->_db)) {
             $tabs = $this->_getDbTabs();
         } else {
             $tabs = $this->_getServerTabs();
         }
     }
     return PMA_generate_html_tabs($tabs, $url_params);
 }
开发者ID:nicokaiser,项目名称:phpmyadmin,代码行数:21,代码来源:Menu.class.php


注:本文中的PMA_generate_html_tabs函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。