coding standards

This commit is contained in:
Michal Čihař
2002-09-19 10:19:37 +00:00
parent d316c0a0f8
commit 394b24930a
2 changed files with 13 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ $Source$
libraries/config_import.lib.php3: fix for #581494 - problems with \n in
CHAR/VARCHAR, added new configs $cfg['CharEditing'] and
$cfg['CharTextarea{Cols,Rows}']
* tbl_change.php3: revised by Lo<4C>c to fit coding standards
2002-09-18 Mike Beck <mikebeck@users.sourceforge.net>
* db_details_qbe.php3: complete rewrite of the code

View File

@@ -601,18 +601,21 @@ for ($i = 0; $i < $fields_cnt; $i++) {
?>
<td bgcolor="<?php echo $bgcolor; ?>">
<?php echo $backup_field . "\n"; ?>
<?php
if ($is_char && isset($cfg['CharEditing']) && ($cfg['CharEditing'] == 'textarea')) {
?>
<?php
if ($is_char && isset($cfg['CharEditing']) && ($cfg['CharEditing'] == 'textarea')) {
echo "\n";
?>
<textarea name="fields[<?php echo urlencode($field); ?>]" rows="<?php echo $cfg['CharTextareaRows']; ?>" cols="<?php echo $cfg['CharTextareaCols']; ?>" wrap="virtual" dir="<?php echo $text_dir; ?>"
<?php echo $chg_evt_handler; ?>="return unNullify('<?php echo urlencode($field); ?>')" tabindex="<?php echo $i+1; ?>" ><?php echo $special_chars; ?></textarea>
<?php
} else {
?>
<?php
} else {
echo "\n";
?>
<input type="text" name="fields[<?php echo urlencode($field); ?>]" value="<?php echo $special_chars; ?>" size="<?php echo $fieldsize; ?>" maxlength="<?php echo $maxlength; ?>" class="textfield" <?php echo $chg_evt_handler; ?>="return unnullify('<?php echo urlencode($field); ?>')" tabindex="<?php echo $i+1; ?>" />
<?
}
?>
<?php
}
echo "\n";
?>
</td>
<?php
}