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


PHP PMA_Util::getHtmlTabs方法代码示例

本文整理汇总了PHP中PMA_Util::getHtmlTabs方法的典型用法代码示例。如果您正苦于以下问题:PHP PMA_Util::getHtmlTabs方法的具体用法?PHP PMA_Util::getHtmlTabs怎么用?PHP PMA_Util::getHtmlTabs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PMA_Util的用法示例。


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

示例1: _getMenu

 /**
  * Returns the menu as HTML
  *
  * @return string HTML formatted menubar
  */
 private function _getMenu()
 {
     $url_params = array('db' => $this->_db);
     if (mb_strlen($this->_table)) {
         $tabs = $this->_getTableTabs();
         $url_params['table'] = $this->_table;
         $level = 'table';
     } else {
         if (mb_strlen($this->_db)) {
             $tabs = $this->_getDbTabs();
             $level = 'db';
         } else {
             $tabs = $this->_getServerTabs();
             $level = 'server';
         }
     }
     $allowedTabs = $this->_getAllowedTabs($level);
     foreach ($tabs as $key => $value) {
         if (!array_key_exists($key, $allowedTabs)) {
             unset($tabs[$key]);
         }
     }
     return PMA_Util::getHtmlTabs($tabs, $url_params, 'topmenu', true);
 }
开发者ID:Sorekk,项目名称:cvillecouncilus,代码行数:29,代码来源:Menu.class.php

示例2: array

$header = $response->getHeader();
$header->disableMenu();
$header->setBodyId('bodyquerywindow');
$scripts = $header->getScripts();
$scripts->addFile('common.js');
$scripts->addFile('querywindow.js');
if (PMA_isValid($_REQUEST['auto_commit'], 'identical', 'true')) {
    $scripts->addEvent('load', 'PMA_queryAutoCommit');
}
// always set focus to the textarea
if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') {
    $scripts->addEvent('load', 'PMA_querywindowSetFocus');
}
echo '<div id="querywindowcontainer">';
if ($tabs) {
    echo PMA_Util::getHtmlTabs($tabs, array(), 'topmenu', true);
    unset($tabs);
}
echo PMA_getHtmlForSqlQueryForm($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 __('SQL history:') . '<br />' . '<ul>';
    foreach ($_sql_history as $query) {
        echo '<li>' . "\n";
        // edit link
        $url_params = array('querydisplay_tab' => $tab, 'sql_query' => $query['sqlquery'], 'db' => $query['db'], 'table' => $query['table']);
        echo '<a href="querywindow.php' . PMA_URL_getCommon($url_params) . '">' . $titles['Change'] . '</a>';
        // execute link
        $url_params['auto_commit'] = 'true';
开发者ID:skduncan,项目名称:pizza-order,代码行数:31,代码来源:querywindow.php

示例3: _getMenu

 /**
  * Returns the menu as HTML
  *
  * @return string HTML formatted menubar
  */
 private function _getMenu()
 {
     $tabs = array();
     $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_Util::getHtmlTabs($tabs, $url_params, 'topmenu', true);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:21,代码来源:Menu.class.php

示例4: array

if (PMA_isValid($_REQUEST['auto_commit'], 'identical', 'true')) {
    $scripts->addEvent('load', 'PMA_queryAutoCommit');
}
if (PMA_isValid($_REQUEST['init'])) {
    $scripts->addEvent('load', 'PMA_querywindowResize');
}
// always set focus to the textarea
if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') {
    $scripts->addEvent('load', 'PMA_querywindowSetFocus');
}

echo '<div id="querywindowcontainer">';

if ($tabs) {
    echo PMA_Util::getHtmlTabs($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 __('SQL history') . ':<br />'
        . '<ul>';
    foreach ($_sql_history as $query) {
开发者ID:nhodges,项目名称:phpmyadmin,代码行数:30,代码来源:querywindow.php


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