/[phpcompta]/phpcompta/include/user_common.php
ViewVC logotype

Diff of /phpcompta/include/user_common.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by sparkyx, Wed Oct 26 13:18:23 2005 UTC revision 1.49 by sparkyx, Wed Oct 26 14:59:16 2005 UTC
# Line 337  function ListJrn($p_cn,$p_jrn,$p_where=" Line 337  function ListJrn($p_cn,$p_jrn,$p_where="
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'];
# Line 748  function jrn_navigation_bar($p_offset,$p Line 748  function jrn_navigation_bar($p_offset,$p
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) {

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26