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


PHP PMA_getContinueInsertionForm函数代码示例

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


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

示例1: testGetContinueInsertionForm

 /**
  * Test for PMA_getContinueInsertionForm
  *
  * @return void
  */
 public function testGetContinueInsertionForm()
 {
     $where_clause_array = array("a<b");
     $GLOBALS['cfg']['InsertRows'] = 1;
     $GLOBALS['cfg']['ServerDefault'] = 1;
     $GLOBALS['goto'] = "index.php";
     $_REQUEST['where_clause'] = true;
     $_REQUEST['sql_query'] = "SELECT 1";
     $result = PMA_getContinueInsertionForm("tbl", "db", $where_clause_array, "localhost");
     $this->assertTag(PMA_getTagArray('<form id="continueForm" method="post" action="tbl_replace.php" ' . 'name="continueForm">'), $result);
     $this->assertTag(PMA_getTagArray('<input type="hidden" name="db" value="db" />'), $result);
     $this->assertTag(PMA_getTagArray('<input type="hidden" name="table" value="tbl" />'), $result);
     $this->assertTag(PMA_getTagArray('<input type="hidden" name="goto" value="index.php" />'), $result);
     $this->assertTag(PMA_getTagArray('<input type="hidden" name="err_url" value="localhost" />'), $result);
     $this->assertTag(PMA_getTagArray('<input type="hidden" name="sql_query" value="SELECT 1" />'), $result);
     $this->assertTag(PMA_getTagArray('<input type="hidden" name="where_clause[0]" value="a<b" />'), $result);
     $this->assertTag(PMA_getTagArray('<option value="1" selected="selected">', array('content' => '1')), $result);
 }
开发者ID:kfjihailong,项目名称:phpMyAdmin,代码行数:23,代码来源:PMA_insert_edit_test.php

示例2: isset

    $current_result = isset($result) && is_array($result) && isset($result[$row_id]) ? $result[$row_id] : $result;
    $repopulate = array();
    $checked = true;
    if (isset($unsaved_values[$row_id])) {
        $repopulate = $unsaved_values[$row_id];
        $checked = false;
    }
    if ($insert_mode && $row_id > 0) {
        $html_output .= PMA_getHtmlForIgnoreOption($row_id, $checked);
    }
    $html_output .= PMA_getHtmlForInsertEditRow($url_params, $table_columns, $comments_map, $timestamp_seen, $current_result, $chg_evt_handler, $jsvkey, $vkey, $insert_mode, $current_row, $o_rows, $tabindex, $columns_cnt, $is_upload, $tabindex_for_function, $foreigners, $tabindex_for_null, $tabindex_for_value, $table, $db, $row_id, $titles, $biggest_max_file_size, $text_dir, $repopulate, $where_clause_array);
}
// end foreach on multi-edit
$scripts->addFiles($GLOBALS['plugin_scripts']);
unset($unsaved_values, $checked, $repopulate, $GLOBALS['plugin_scripts']);
if (!isset($after_insert)) {
    $after_insert = 'back';
}
//action panel
$html_output .= PMA_getActionsPanel($where_clause, $after_insert, $tabindex, $tabindex_for_value, $found_unique_key);
if ($biggest_max_file_size > 0) {
    $html_output .= '        ' . Util::generateHiddenMaxFileSize($biggest_max_file_size) . "\n";
}
$html_output .= '</form>';
$html_output .= PMA_getHtmlForGisEditor();
// end Insert/Edit form
if ($insert_mode) {
    //Continue insertion form
    $html_output .= PMA_getContinueInsertionForm($table, $db, $where_clause_array, $err_url);
}
$response->addHTML($html_output);
开发者ID:poush,项目名称:phpmyadmin,代码行数:31,代码来源:tbl_change.php


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