337 |
|
|
338 |
$Max=pg_NumRows($Res); |
$Max=pg_NumRows($Res); |
339 |
|
|
340 |
if ($Max==0) return "No row selected"; |
if ($Max==0) return array(0,"No row selected"); |
341 |
|
|
342 |
$r.="<TABLE width=\"100%\">"; |
$r.="<TABLE width=\"100%\">"; |
343 |
$l_sessid=$_REQUEST['PHPSESSID']; |
$l_sessid=$_REQUEST['PHPSESSID']; |
748 |
}// if |
}// if |
749 |
// compute max of page |
// compute max of page |
750 |
$nb_page=($p_line-($p_line%$p_size))/$p_size; |
$nb_page=($p_line-($p_line%$p_size))/$p_size; |
751 |
|
|
752 |
// if something remains |
// if something remains |
753 |
if ( $p_line % $p_size != 0 ) $nb_page+=1; |
if ( $p_line % $p_size != 0 ) $nb_page+=1; |
754 |
|
|
755 |
|
// if max page == 1 then return a empty string |
756 |
|
if ( $nb_page == 1) return ""; |
757 |
|
|
758 |
$r=""; |
$r=""; |
759 |
// previous |
// previous |
760 |
if ($p_page !=1) { |
if ($p_page !=1) { |