當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。