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


PHP PMA_reloadNavigation函数代码示例

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


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

示例1: PMA_jsFormat

                                    $('#import_form_status').css('display', 'inline');
                                    $('#import_form_status').html('<img src="<?php 
    echo $GLOBALS['pmaThemeImage'];
    ?>
ajax_clock_small.gif" alt="ajax clock" /> <?php 
    echo PMA_jsFormat(__('The file is being processed, please be patient.'), false);
    ?>
 ');
                                    $('#import_form_status').load('import_status.php?message=true&<?php 
    echo PMA_generate_common_url();
    ?>
'); // loads the message, either success or mysql error
                                    <?php 
    // reload the left sidebar when the import is finished
    $GLOBALS['reload'] = true;
    PMA_reloadNavigation(true);
    ?>

                          } // if finished
                          else {
                                window.setTimeout(perform_upload, 1000);
                          }

                      }
                  );

              }
                window.setTimeout(perform_upload, 1000);

    <?php 
} else {
开发者ID:AmberWish,项目名称:laba_web,代码行数:31,代码来源:display_import.lib.php

示例2: array

        $selected_usr = array($old_username . '&amp;#27;' . $old_hostname);
    } else {
        $selected_usr = $_REQUEST['selected_usr'];
        $queries = array();
    }
    foreach ($selected_usr as $each_user) {
        list($this_user, $this_host) = explode('&amp;#27;', $each_user);
        $queries[] = '# ' . sprintf(__('Deleting %s'), '\'' . $this_user . '\'@\'' . $this_host . '\'') . ' ...';
        $queries[] = 'DROP USER \'' . PMA_sqlAddSlashes($this_user) . '\'@\'' . PMA_sqlAddSlashes($this_host) . '\';';

        if (isset($_REQUEST['drop_users_db'])) {
            $queries[] = 'DROP DATABASE IF EXISTS ' . PMA_backquote($this_user) . ';';
            $GLOBALS['reload'] = true;

            if ($GLOBALS['is_ajax_request'] != true) {
                PMA_reloadNavigation();
            }
        }
    }
    if (empty($_REQUEST['change_copy'])) {
        if (empty($queries)) {
            $message = PMA_Message::error(__('No users selected for deleting!'));
        } else {
            if ($_REQUEST['mode'] == 3) {
                $queries[] = '# ' . __('Reloading the privileges') . ' ...';
                $queries[] = 'FLUSH PRIVILEGES;';
            }
            $drop_user_error = '';
            foreach ($queries as $sql_query) {
                if ($sql_query{0} != '#') {
                    if (! PMA_DBI_try_query($sql_query, $GLOBALS['userlink'])) {
开发者ID:nicokaiser,项目名称:phpmyadmin,代码行数:31,代码来源:server_privileges.php

示例3: testWriteReloadNavigation

    /**
     * other output tests
     */

    public function testWriteReloadNavigation()
    {
        $GLOBALS['reload'] = true;
        $GLOBALS['db'] = 'test_db';

        $url = './navigation.php?'.PMA_generate_common_url($GLOBALS['db'], '', '&');
        $write = PHP_EOL . '<script type="text/javascript">' . PHP_EOL .
                    '//<![CDATA[' . PHP_EOL .
                    'if (typeof(window.parent) != \'undefined\'' . PHP_EOL .
                    '    && typeof(window.parent.frame_navigation) != \'undefined\'' . PHP_EOL .
                    '    && window.parent.goTo) {' . PHP_EOL .
                    '    window.parent.goTo(\'' . $url . '\');' . PHP_EOL .
                    '}' . PHP_EOL .
                    '//]]>' . PHP_EOL .
                    '</script>' . PHP_EOL;

        $this->expectOutputString($write);
        PMA_reloadNavigation();

        $this->assertFalse(isset($GLOBALS['reload']));
        unset($GLOBALS['db']);
    }
开发者ID:nicokaiser,项目名称:phpmyadmin,代码行数:26,代码来源:PMA_headerLocation_test_disabled.php


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