sorry, the   are needed, otherwise netscape doesn't display the background of empty cells

This commit is contained in:
Olivier Müller
2001-08-22 22:33:11 +00:00
parent 27da959306
commit eeae9f08b5

View File

@@ -1203,7 +1203,7 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
}
$primary = mysql_fetch_field($dt_result, $i);
if ($primary->numeric == 1) {
echo ' <td align="right">' . $row[$i] . '</td>' . "\n";
echo ' <td align="right">' . $row[$i] . '&nbsp;</td>' . "\n";
} else if ($GLOBALS['cfgShowBlob'] == FALSE && eregi('BLOB', $primary->type)) {
// loic1 : mysql_fetch_fields returns BLOB in place of TEXT
// fields type, however TEXT fields must be displayed even
@@ -1219,15 +1219,15 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
$row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) . '...';
}
// loic1 : displays <cr>/<lf>
// echo ' <td>' . htmlspecialchars($row[$i]) . '</td>' . "\n";
// echo ' <td>' . htmlspecialchars($row[$i]) . '&nbsp;</td>' . "\n";
$row[$i] = ereg_replace("((\015\012)|(\015)|(\012))+", '<br />', htmlspecialchars($row[$i]));
echo ' <td>' . $row[$i] . '</td>' . "\n";
echo ' <td>' . $row[$i] . '&nbsp;</td>' . "\n";
}
} else {
// loic1 : displays <cr>/<lf>
// echo ' <td>' . htmlspecialchars($row[$i]) . '</td>' . "\n";
// echo ' <td>' . htmlspecialchars($row[$i]) . '&nbsp;</td>' . "\n";
$row[$i] = ereg_replace("((\015\012)|(\015)|(\012))+", '<br />', htmlspecialchars($row[$i]));
echo ' <td>' . $row[$i] . '</td>' . "\n";
echo ' <td>' . $row[$i] . '&nbsp;</td>' . "\n";
}
} // end for
// Possibility to have the modify/delete button on the left added