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


PHP PMA_Util::getHtmlTab方法代码示例

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


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

示例1: getSecondaryTabs

 /**
  * Returns the HTML for secondary levels tabs of the table search page
  *
  * @return string HTML for secondary levels tabs
  */
 public function getSecondaryTabs()
 {
     $url_params = array();
     $url_params['db'] = $this->_db;
     $url_params['table'] = $this->_table;
     $html_output = '<ul id="topmenu2">';
     foreach ($this->_getSubTabs() as $tab) {
         $html_output .= PMA_Util::getHtmlTab($tab, $url_params);
     }
     $html_output .= '</ul>';
     $html_output .= '<div class="clearfloat"></div>';
     return $html_output;
 }
开发者ID:minggLu,项目名称:openemr,代码行数:18,代码来源:TableSearch.class.php

示例2: PMA_getStructureSecondaryTabs

/**
 * Returns the HTML for secondary levels tabs of the table structure page
 *
 * @return string HTML for secondary levels tabs
 */
function PMA_getStructureSecondaryTabs($tbl_storage_engine)
{
    $html_output = '';
    $cfgRelation = PMA_getRelationsParam();
    if ($cfgRelation['relwork'] || PMA_Util::isForeignKeySupported(strtoupper($tbl_storage_engine))) {
        $url_params = array();
        $url_params['db'] = $GLOBALS['db'];
        $url_params['table'] = $GLOBALS['table'];
        $html_output .= '<ul id="topmenu2">';
        foreach (PMA_getStructureSubTabs() as $tab) {
            $html_output .= PMA_Util::getHtmlTab($tab, $url_params);
        }
        $html_output .= '</ul>';
        $html_output .= '<div class="clearfloat"></div>';
    }
    return $html_output;
}
开发者ID:tecshuttle,项目名称:51qsk,代码行数:22,代码来源:structure.lib.php

示例3: getSelectionForm

 /**
  * Generates the table search form under table search tab
  *
  * @param string $goto      Goto URL
  * @param string $dataLabel Label for points in zoom plot
  *
  * @return string the generated HTML for table search form
  */
 public function getSelectionForm($goto, $dataLabel = null)
 {
     $url_params = array();
     $url_params['db'] = $this->_db;
     $url_params['table'] = $this->_table;
     $html_output = '<ul id="topmenu2">';
     foreach ($this->_getSubTabs() as $tab) {
         $html_output .= PMA_Util::getHtmlTab($tab, $url_params);
     }
     $html_output .= '</ul>';
     $html_output .= '<div class="clearfloat"></div>';
     $html_output .= $this->_getFormTag($goto);
     if ($this->_searchType == 'zoom') {
         $html_output .= '<fieldset id="fieldset_zoom_search">';
         $html_output .= '<fieldset id="inputSection">';
         $html_output .= '<legend>' . __('Do a "query by example" (wildcard: "%") for two different columns') . '</legend>';
         $html_output .= $this->_getFieldsTableHtml();
         $html_output .= $this->_getOptionsZoom($dataLabel);
         $html_output .= '</fieldset>';
         $html_output .= '</fieldset>';
     } else {
         $html_output .= '<fieldset id="fieldset_table_search">';
         $html_output .= '<fieldset id="fieldset_table_qbe">';
         $html_output .= '<legend>' . __('Do a "query by example" (wildcard: "%")') . '</legend>';
         $html_output .= $this->_getFieldsTableHtml();
         $html_output .= '<div id="gis_editor"></div>';
         $html_output .= '<div id="popup_background"></div>';
         $html_output .= '</fieldset>';
         $html_output .= $this->_getOptions();
         $html_output .= '</fieldset>';
     }
     /**
      * Displays selection form's footer elements
      */
     $html_output .= '<fieldset class="tblFooters">';
     $html_output .= '<input type="submit" name="' . ($this->_searchType == 'zoom' ? 'zoom_submit' : 'submit') . ($this->_searchType == 'zoom' ? '" id="inputFormSubmitId"' : '" ') . 'value="' . __('Go') . '" />';
     $html_output .= '</fieldset></form>';
     $html_output .= '<div id="sqlqueryresults"></div>';
     return $html_output;
 }
开发者ID:kirstynoble,项目名称:mCrabbTeachingMaterials,代码行数:48,代码来源:TableSearch.class.php

示例4: isset

    exit;
}
// build user preferences menu
$form_param = isset($_GET['form']) ? $_GET['form'] : null;
if (!isset($forms[$form_param])) {
    $forms_keys = array_keys($forms);
    $form_param = array_shift($forms_keys);
}
$tabs_icons = array('Features' => 'b_tblops.png', 'Sql_queries' => 'b_sql.png', 'Navi_panel' => 'b_select.png', 'Main_panel' => 'b_props.png', 'Import' => 'b_import.png', 'Export' => 'b_export.png');
echo '<ul id="topmenu2" class="user_prefs_tabs">';
echo PMA_Util::getHtmlTab(array('link' => 'prefs_manage.php', 'text' => __('Manage your settings'))) . "\n";
echo '<li>&nbsp; &nbsp;</li>' . "\n";
$script_name = basename($GLOBALS['PMA_PHP_SELF']);
foreach (array_keys($forms) as $formset) {
    $tab = array('link' => 'prefs_forms.php', 'text' => PMA_lang('Form_' . $formset), 'icon' => $tabs_icons[$formset], 'active' => $script_name == 'prefs_forms.php' && $formset == $form_param);
    echo PMA_Util::getHtmlTab($tab, array('form' => $formset)) . "\n";
}
echo '</ul><div class="clearfloat"></div>';
// show "configuration saved" message and reload navigation panel if needed
if (!empty($_GET['saved'])) {
    PMA_Message::rawSuccess(__('Configuration has been saved.'))->display();
}
/* debug code
$arr = $cf->getConfigArray();
$arr2 = array();
foreach ($arr as $k => $v) {
    $arr2[] = "<b>$k</b> " . var_export($v, true);
}
$arr2 = implode(', ', $arr2);
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
        ? '<i>empty</i>'
开发者ID:nobodypb,项目名称:phpmyadmin,代码行数:31,代码来源:user_preferences.inc.php

示例5: isset

if (!defined('PHPMYADMIN')) {
    exit;
}
// build user preferences menu
$form_param = isset($_GET['form']) ? $_GET['form'] : null;
if (!isset($forms[$form_param])) {
    $forms_keys = array_keys($forms);
    $form_param = array_shift($forms_keys);
}
$tabs_icons = array('Features' => 'b_tblops.png', 'Sql_queries' => 'b_sql.png', 'Navi_panel' => 'b_select.png', 'Main_panel' => 'b_props.png', 'Import' => 'b_import.png', 'Export' => 'b_export.png');
require_once './libraries/Template.class.php';
$content = PMA_Util::getHtmlTab(array('link' => 'prefs_manage.php', 'text' => __('Manage your settings'))) . "\n";
$script_name = basename($GLOBALS['PMA_PHP_SELF']);
foreach (array_keys($forms) as $formset) {
    $tab = array('link' => 'prefs_forms.php', 'text' => PMA_lang('Form_' . $formset), 'icon' => $tabs_icons[$formset], 'active' => $script_name == 'prefs_forms.php' && $formset == $form_param);
    $content .= PMA_Util::getHtmlTab($tab, array('form' => $formset)) . "\n";
}
echo PMA\Template::get('list/unordered')->render(array('id' => 'topmenu2', 'class' => 'user_prefs_tabs', 'content' => $content));
echo '<div class="clearfloat"></div>';
// show "configuration saved" message and reload navigation panel if needed
if (!empty($_GET['saved'])) {
    PMA_Message::rawSuccess(__('Configuration has been saved.'))->display();
}
/* debug code
$arr = $cf->getConfigArray();
$arr2 = array();
foreach ($arr as $k => $v) {
    $arr2[] = "<b>$k</b> " . var_export($v, true);
}
$arr2 = implode(', ', $arr2);
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
开发者ID:TheBlackBloodyUnicorn,项目名称:pico_wanderblog,代码行数:31,代码来源:user_preferences.inc.php


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