This commit is contained in:
Loïc Chapeaux
2001-08-08 14:29:49 +00:00
parent b5c96fef20
commit ab815be1fe
4 changed files with 7 additions and 3 deletions

View File

@@ -10,8 +10,9 @@ $Source$
bit both the '$set$' switch cases.
* ldi_check.php3: fixed bug #448522 (Insert Data Error on Win32-Server).
* tbl_change.php3, lines 165 & 287: removed erroneous <lf>.
* lib.inc.php3, line 947: fix a bug when primary key values contain
slashes.
* lib.inc.php3:
- line 947: fix a bug when primary key values contain slashes.
- merged patch #443393.
2001-08-08 Steve Alberty <alberty@neptunlabs.de>
* tbl_replace.php3: remove warning in a new row if a 'set' field is not

BIN
images/asc_order.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

BIN
images/desc_order.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

View File

@@ -871,12 +871,15 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
// 3. Do define the sorting url
if (!$is_in_sort) {
$sort_order = ' ORDER BY ' . backquote($field->name) . ' ' . $GLOBALS['cfgOrder'];
$order_img = '';
}
else if (substr($sql_order, -3) == 'ASC' && $is_in_sort) {
$sort_order = ' ORDER BY ' . backquote($field->name) . ' DESC';
$order_img = '&nbsp;<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC">';
}
else if (substr($sql_order, -4) == 'DESC' && $is_in_sort) {
$sort_order = ' ORDER BY ' . backquote($field->name) . ' ASC';
$order_img = '&nbsp;<img src="./images/desc_order.gif" border="0" width="7" height="7" alt="DESC">';
}
if (eregi('(.*)( LIMIT (.*)| PROCEDURE (.*)| FOR UPDATE| LOCK IN SHARE MODE)', $unsorted_sql_query, $regs3)) {
$sorted_sql_query = $regs3[1] . $sort_order . $regs3[2];
@@ -892,7 +895,7 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
?>
<th>
<a href="sql.php3?<?php echo $url_query; ?>">
<?php echo htmlspecialchars($field->name); ?></a>
<?php echo htmlspecialchars($field->name); ?></a><?php echo $order_img . "\n"; ?>
</th>
<?php
} // end if