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


PHP PMA_getHtmlForReplacePrefixTable函数代码示例

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


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

示例1: testPMAGetHtmlForReplacePrefixTable

 /**
  * Test for PMA_getHtmlForReplacePrefixTable
  *
  * @return void
  */
 public function testPMAGetHtmlForReplacePrefixTable()
 {
     $action = 'delete_row';
     $_url_params = array('url_query' => 'PMA_original_url_query');
     //Call the test function
     $html = PMA_getHtmlForReplacePrefixTable($action, $_url_params);
     //form action
     $this->assertContains('<form id="ajax_form" action="delete_row" method="post">', $html);
     //$URL::getHiddenInputs
     $this->assertContains(URL::getHiddenInputs($_url_params), $html);
     //from_prefix
     $this->assertContains('<input type="text" name="from_prefix" id="initialPrefix" />', $html);
 }
开发者ID:rclakmal,项目名称:phpmyadmin,代码行数:18,代码来源:PMA_mult_submits_test.php

示例2: testPMAGetHtmlForReplacePrefixTable

 /**
  * Test for PMA_getHtmlForReplacePrefixTable
  *
  * @return void
  */
 public function testPMAGetHtmlForReplacePrefixTable()
 {
     $what = 'replace_prefix_tbl';
     $action = 'delete_row';
     $_url_params = array('url_query' => 'PMA_original_url_query');
     //Call the test function
     $html = PMA_getHtmlForReplacePrefixTable($what, $action, $_url_params);
     //validate 1: form action
     $this->assertContains('<form action="' . $action . '" method="post">', $html);
     //validate 2: $PMA_URL_getHiddenInputs
     $this->assertContains(PMA_URL_getHiddenInputs($_url_params), $html);
     //validate 3: title
     $this->assertContains(__('Replace table prefix:'), $html);
     //validate 4: from_prefix
     $this->assertContains('<input type="text" name="from_prefix" id="initialPrefix" />', $html);
     //validate 5: Submit button
     $this->assertContains(__('Submit'), $html);
 }
开发者ID:BrunoChauvet,项目名称:phpmyadmin,代码行数:23,代码来源:PMA_mult_submits_test.php

示例3: elseif

        include './libraries/tbl_common.inc.php';
        $url_query .= '&amp;goto=tbl_sql.php&amp;back=tbl_sql.php';
        include './libraries/tbl_info.inc.php';
    } elseif (mb_strlen($db)) {
        include './libraries/db_common.inc.php';
        include './libraries/db_info.inc.php';
    } else {
        include_once './libraries/server_common.inc.php';
    }
    // Builds the query
    list($full_query, $reload, $full_query_views) = PMA_getQueryFromSelected($what, $db, $table, $selected, $views);
    // Displays the confirmation form
    $_url_params = PMA_getUrlParams($what, $reload, $action, $db, $table, $selected, $views, isset($original_sql_query) ? $original_sql_query : null, isset($original_url_query) ? $original_url_query : null);
    $response = PMA_Response::getInstance();
    if ($what == 'replace_prefix_tbl' || $what == 'copy_tbl_change_prefix') {
        $response->addHTML(PMA_getHtmlForReplacePrefixTable($what, $action, $_url_params));
    } elseif ($what == 'add_prefix_tbl') {
        $response->addHTML(PMA_getHtmlForAddPrefixTable($action, $_url_params));
    } else {
        $response->addHTML(PMA_getHtmlForOtherActions($what, $action, $_url_params, $full_query));
    }
    exit;
} elseif (!empty($mult_btn) && $mult_btn == __('Yes')) {
    /**
     * Executes the query - dropping rows, columns/fields, tables or dbs
     */
    if ($query_type == 'drop_db' || $query_type == 'drop_tbl' || $query_type == 'drop_fld') {
        include_once './libraries/relation_cleanup.lib.php';
    }
    if ($query_type == 'primary_fld') {
        // Gets table primary key
开发者ID:BrunoChauvet,项目名称:phpmyadmin,代码行数:31,代码来源:mult_submits.inc.php

示例4: elseif

    if (mb_strlen($table)) {
        include './libraries/tbl_common.inc.php';
        $url_query .= '&amp;goto=tbl_sql.php&amp;back=tbl_sql.php';
        include './libraries/tbl_info.inc.php';
    } elseif (mb_strlen($db)) {
        include './libraries/db_common.inc.php';
        include './libraries/db_info.inc.php';
    } else {
        include_once './libraries/server_common.inc.php';
    }
    // Builds the query
    list($full_query, $reload, $full_query_views) = PMA_getQueryFromSelected($what, $db, $table, $selected, $views);
    // Displays the confirmation form
    $_url_params = PMA_getUrlParams($what, $reload, $action, $db, $table, $selected, $views, isset($original_sql_query) ? $original_sql_query : null, isset($original_url_query) ? $original_url_query : null);
    if ($what == 'replace_prefix_tbl' || $what == 'copy_tbl_change_prefix') {
        echo PMA_getHtmlForReplacePrefixTable($what, $action, $_url_params);
    } elseif ($what == 'add_prefix_tbl') {
        echo PMA_getHtmlForAddPrefixTable($action, $_url_params);
    } else {
        echo PMA_getHtmlForOtherActions($what, $action, $_url_params, $full_query);
    }
    exit;
} elseif (!empty($mult_btn) && $mult_btn == __('Yes')) {
    /**
     * Executes the query - dropping rows, columns/fields, tables or dbs
     */
    if ($query_type == 'drop_db' || $query_type == 'drop_tbl' || $query_type == 'drop_fld') {
        include_once './libraries/relation_cleanup.lib.php';
    }
    if ($query_type == 'primary_fld') {
        // Gets table primary key
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:31,代码来源:mult_submits.inc.php


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