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


PHP PMA_urlParamsInEditMode函数代码示例

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


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

示例1: testUrlParamsInEditMode

 /**
  * Test for PMA_urlParamsInEditMode
  *
  * @return void
  */
 public function testUrlParamsInEditMode()
 {
     $where_clause_array = array('foo=1', 'bar=2');
     $_REQUEST['sql_query'] = 'SELECT 1';
     $result = PMA_urlParamsInEditMode(array(1), $where_clause_array, true);
     $this->assertEquals(array('0' => 1, 'where_clause' => 'bar=2', 'sql_query' => 'SELECT 1'), $result);
 }
开发者ID:kfjihailong,项目名称:phpMyAdmin,代码行数:12,代码来源:PMA_insert_edit_test.php

示例2: count

$chg_evt_handler = 'onchange';
// Had to put the URI because when hosted on an https server,
// some browsers send wrongly this form to the http server.
$html_output = '';
// Set if we passed the first timestamp field
$timestamp_seen = false;
$columns_cnt = count($table_columns);
$tabindex = 0;
$tabindex_for_function = +3000;
$tabindex_for_null = +6000;
$tabindex_for_value = 0;
$o_rows = 0;
$biggest_max_file_size = 0;
$url_params['db'] = $db;
$url_params['table'] = $table;
$url_params = PMA_urlParamsInEditMode($url_params, $where_clause_array, $where_clause);
$has_blob_field = false;
foreach ($table_columns as $column) {
    if (PMA_isColumn($column, array('blob', 'tinyblob', 'mediumblob', 'longblob'))) {
        $has_blob_field = true;
        break;
    }
}
//Insert/Edit form
//If table has blob fields we have to disable ajax.
$html_output .= PMA_getHtmlForInsertEditFormHeader($has_blob_field, $is_upload);
$html_output .= URL::getHiddenInputs($_form_params);
$titles['Browse'] = Util::getIcon('b_browse.png', __('Browse foreign values'));
// user can toggle the display of Function column and column types
// (currently does not work for multi-edits)
if (!$cfg['ShowFunctionFields'] || !$cfg['ShowFieldTypesInDataEditView']) {
开发者ID:poush,项目名称:phpmyadmin,代码行数:31,代码来源:tbl_change.php


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