Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilina Buddika <thilinaabeyrathna@gmail.com>2012-05-10 10:26:04 +0400
committerThilina Buddika <thilinaabeyrathna@gmail.com>2012-05-10 10:26:04 +0400
commitb2338b7154fbcab47678970c3b3118b1bd9412d9 (patch)
treee70bedca1e22e49b8d04e02ab9a96dbcb21ffc84 /tbl_change.php
parent1d7f48b966c66b06f9a9ef6e5c78178d645d4bdf (diff)
code improvement in tbl_change and libraries-insert_edit_lib
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/tbl_change.php b/tbl_change.php
index 220ecc4e88..1cbe34f442 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -154,12 +154,10 @@ unset($show_create_table);
*/
PMA_DBI_select_db($db);
$table_fields = array_values(PMA_DBI_get_columns($db, $table));
-$rows = array();
-$found_unique_key = false;
-$paramArray = array($rows, $table, $db);
+$paramArray = array($table, $db);
list($insert_mode, $where_clauses, $result, $rows, $where_clause_array, $found_unique_key)
- = PMA_getValuesForEditMode($paramArray, $found_unique_key);
+ = PMA_getValuesForEditMode($paramArray);
// Copying a row - fetched data will be inserted as a new row, therefore the where clause is needless.
if (isset($default_action) && $default_action === 'insert') {
@@ -241,11 +239,11 @@ if (! $cfg['ShowFunctionFields'] || ! $cfg['ShowFieldTypesInDataEditView']) {
}
if (! $cfg['ShowFunctionFields']) {
- echo PMA_showFunctionFieldsInEditMode($url_params, true);
+ echo PMA_showFunctionFieldsInEditMode($url_params, false);
}
if (! $cfg['ShowFieldTypesInDataEditView']) {
- echo PMA_showFieldTypesInDataEditView($url_params, true);
+ echo PMA_showColumnTypesInDataEditView($url_params, false);
}
foreach ($rows as $row_id => $vrow) {
@@ -270,10 +268,10 @@ foreach ($rows as $row_id => $vrow) {
<?php
if ($cfg['ShowFieldTypesInDataEditView']) {
- echo PMA_showFieldTypesInDataEditView($url_params, false);
+ echo PMA_showColumnTypesInDataEditView($url_params, true);
}
if ($cfg['ShowFunctionFields']) {
- echo PMA_showFunctionFieldsInEditMode($url_params, false);
+ echo PMA_showFunctionFieldsInEditMode($url_params, true);
}
?>
<th><?php echo __('Null'); ?></th>