reduced a bit the size of the generated xhtml page
This commit is contained in:
@@ -21,6 +21,7 @@ else if ($action == 'tbl_addfield.php3') {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
$is_backup = ($action != 'tbl_create.php3' && $action != 'tbl_addfield.php3');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table border="<?php echo $cfgBorder; ?>">
|
<table border="<?php echo $cfgBorder; ?>">
|
||||||
@@ -33,7 +34,7 @@ echo "\n";
|
|||||||
<th><?php echo $strDefault; ?></th>
|
<th><?php echo $strDefault; ?></th>
|
||||||
<th><?php echo $strExtra; ?></th>
|
<th><?php echo $strExtra; ?></th>
|
||||||
<?php
|
<?php
|
||||||
if ($action == 'tbl_create.php3' || $action == 'tbl_addfield.php3') {
|
if (!$is_backup) {
|
||||||
if (empty($num_indexes)) {
|
if (empty($num_indexes)) {
|
||||||
echo " <th>$strPrimary</th>\n";
|
echo " <th>$strPrimary</th>\n";
|
||||||
echo " <th>$strIndex</th>\n";
|
echo " <th>$strIndex</th>\n";
|
||||||
@@ -57,8 +58,16 @@ for ($i = 0 ; $i < $num_fields; $i++) {
|
|||||||
?>
|
?>
|
||||||
<tr bgcolor="<?php echo $bgcolor;?>">
|
<tr bgcolor="<?php echo $bgcolor;?>">
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="field_name[]" size="10" value="<?php if (isset($row) && isset($row['Field'])) echo str_replace('"', '"', $row['Field']); ?>" />
|
<?php
|
||||||
|
if ($is_backup) {
|
||||||
|
echo "\n";
|
||||||
|
?>
|
||||||
<input type="hidden" name="field_orig[]" value="<?php if (isset($row) && isset($row['Field'])) echo urlencode($row['Field']); ?>" />
|
<input type="hidden" name="field_orig[]" value="<?php if (isset($row) && isset($row['Field'])) echo urlencode($row['Field']); ?>" />
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
echo "\n";
|
||||||
|
?>
|
||||||
|
<input type="text" name="field_name[]" size="10" value="<?php if (isset($row) && isset($row['Field'])) echo str_replace('"', '"', $row['Field']); ?>" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="field_type[]">
|
<select name="field_type[]">
|
||||||
@@ -99,7 +108,15 @@ for ($i = 0 ; $i < $num_fields; $i++) {
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
<?php
|
||||||
|
if ($is_backup) {
|
||||||
|
echo "\n";
|
||||||
|
?>
|
||||||
<input type="hidden" name="field_length_orig[]" value="<?php echo urlencode($length); ?>" />
|
<input type="hidden" name="field_length_orig[]" value="<?php echo urlencode($length); ?>" />
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
echo "\n";
|
||||||
|
?>
|
||||||
<input type="text" name="field_length[]" size="8" value="<?php echo str_replace('"', '"', $length); ?>" />
|
<input type="text" name="field_length[]" size="8" value="<?php echo str_replace('"', '"', $length); ?>" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -157,7 +174,15 @@ for ($i = 0 ; $i < $num_fields; $i++) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
|
<?php
|
||||||
|
if ($is_backup) {
|
||||||
|
echo "\n";
|
||||||
|
?>
|
||||||
<input type="hidden" name="field_default_orig[]" size="8" value="<?php if(isset($row) && isset($row['Default'])) echo urlencode($row['Default']); ?>" />
|
<input type="hidden" name="field_default_orig[]" size="8" value="<?php if(isset($row) && isset($row['Default'])) echo urlencode($row['Default']); ?>" />
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
echo "\n";
|
||||||
|
?>
|
||||||
<input type="text" name="field_default[]" size="8" value="<?php if(isset($row) && isset($row['Default'])) echo str_replace('"', '"', $row['Default']); ?>" />
|
<input type="text" name="field_default[]" size="8" value="<?php if(isset($row) && isset($row['Default'])) echo str_replace('"', '"', $row['Default']); ?>" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -181,7 +206,7 @@ for ($i = 0 ; $i < $num_fields; $i++) {
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<?php
|
<?php
|
||||||
if ($action == 'tbl_create.php3' || $action == 'tbl_addfield.php3') {
|
if (!$is_backup) {
|
||||||
if (empty($num_indexes)) {
|
if (empty($num_indexes)) {
|
||||||
if (isset($row) && isset($row['Key']) && $row['Key'] == 'PRI') {
|
if (isset($row) && isset($row['Key']) && $row['Key'] == 'PRI') {
|
||||||
$checked_primary = ' checked="checked"';
|
$checked_primary = ' checked="checked"';
|
||||||
|
Reference in New Issue
Block a user