browse table bug

This commit is contained in:
Marc Delisle
2001-05-09 19:16:07 +00:00
parent 9537899b6d
commit ce9d3b8c57
2 changed files with 8 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2001-05-09 Marc Delisle <lem9@users.sourceforge.net> 2001-05-09 Marc Delisle <lem9@users.sourceforge.net>
* new messages in /lang * new messages in /lang
* browse table bug (#421879)
2001-05-08 Korakot Chaovavanich <korakot@iname.com> 2001-05-08 Korakot Chaovavanich <korakot@iname.com>
* In edit page, replace dropdown with radio if short enough * In edit page, replace dropdown with radio if short enough

View File

@@ -16,14 +16,15 @@ function show_table_navigation($pos_next, $pos_prev, $dt_result) {
<table border=0><tr> <table border=0><tr>
<td> <td>
<form method="post" <form method="post"
onsubmit="return <?php echo ( $pos >= $cfgMaxRows ? "true" : "false" ); ?>" onsubmit="return <?php echo ( $pos > 0 ? "true" : "false" ); ?>"
action=<?php echo action=<?php echo
"\"sql.php3?server=$server&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=0&sessionMaxRows=$sessionMaxRows\"";?> "\"sql.php3?server=$server&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=0&sessionMaxRows=$sessionMaxRows\"";?>
><input type="submit" value="<?php echo $strPos1 . " &lt;&lt;" ; ?>" > ><input type="submit" value="<?php echo $strPos1 . " &lt;&lt;" ; ?>" >
</form> </form>
</td> </td>
<td> <td>
<form method="post" onsubmit="return <?php echo ( $pos >= $cfgMaxRows ? "true" : "false" ); ?>" <form method="post"
onsubmit="return <?php echo ( $pos > 0 ? "true" : "false" ); ?>"
action=<?php echo action=<?php echo
"\"sql.php3?server=$server&&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=$pos_prev&sessionMaxRows=$sessionMaxRows\"";?> "\"sql.php3?server=$server&&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=$pos_prev&sessionMaxRows=$sessionMaxRows\"";?>
><input type="submit" value="<?php echo $strPrevious ." &lt;" ; ?>" > ><input type="submit" value="<?php echo $strPrevious ." &lt;" ; ?>" >
@@ -269,6 +270,10 @@ function display_table ($dt_result) {
$pos_next = $pos + $cfgMaxRows; $pos_next = $pos + $cfgMaxRows;
$pos_prev = $pos - $cfgMaxRows; $pos_prev = $pos - $cfgMaxRows;
if ($pos_prev < 0) {
$pos_prev = 0;
}
if(isset($total) && $total>1) { if(isset($total) && $total>1) {
if(isset($SelectNumRows) && $SelectNumRows!=$total) if(isset($SelectNumRows) && $SelectNumRows!=$total)
$selectstring = ", $SelectNumRows $strSelectNumRows"; $selectstring = ", $SelectNumRows $strSelectNumRows";