Change look of adding fields into table (bug #991095).
I again did some XHTML validation, so removed few of most obvious errors, but there are still many, mostly missing alt attributtes for images and wrongly nested tags.
This commit is contained in:
@@ -28,6 +28,9 @@ if (isset($submit_num_fields)) {
|
||||
if (isset($orig_after_field)) {
|
||||
$after_field = $orig_after_field;
|
||||
}
|
||||
if (isset($orig_field_where)) {
|
||||
$field_where = $orig_field_where;
|
||||
}
|
||||
$regenerate = TRUE;
|
||||
} else if (isset($submit)) {
|
||||
$query = '';
|
||||
@@ -88,10 +91,10 @@ if (isset($submit_num_fields)) {
|
||||
} // end if (auto_increment)
|
||||
}
|
||||
|
||||
if ($after_field != '--end--') {
|
||||
// Only the first field can be added somewhere else than at the end
|
||||
if ($field_where != 'last') {
|
||||
// Only the first field can be added somewhere other than at the end
|
||||
if ($i == 0) {
|
||||
if ($after_field == '--first--') {
|
||||
if ($field_where == 'first') {
|
||||
$query .= ' FIRST';
|
||||
} else {
|
||||
$query .= ' AFTER ' . PMA_backquote(urldecode($after_field));
|
||||
@@ -221,6 +224,9 @@ if (isset($submit_num_fields)) {
|
||||
if (isset($orig_after_field)) {
|
||||
$after_field = $orig_after_field;
|
||||
}
|
||||
if (isset($orig_field_where)) {
|
||||
$field_where = $orig_field_where;
|
||||
}
|
||||
$regenerate = true;
|
||||
}
|
||||
} // end do alter table
|
||||
|
Reference in New Issue
Block a user