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

Diff of /phpcompta/include/class_form.php

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

revision 1.1 by sparkyx, Wed Jun 22 20:32:24 2005 UTC revision 1.2 by sparkyx, Mon Jul 4 18:34:01 2005 UTC
# Line 35  class formulaire { Line 35  class formulaire {
35      return $this->name;      return $this->name;
36    }    }
37    function GetRow($p_start,$p_end) {    function GetRow($p_start,$p_end) {
     if ( $p_start == $p_end )  
       $cond=" j_tech_per = $p_start ";  
     else  
       $cond = "(j_tech_per >= $p_start and j_tech_per <= $p_end) ";  
38    
39     $Res=ExecSql($this->db,"select fo_id ,     $Res=ExecSql($this->db,"select fo_id ,
40                       fo_fr_id,                       fo_fr_id,
# Line 56  class formulaire { Line 52  class formulaire {
52        $l_line=pg_fetch_array($Res,$i);        $l_line=pg_fetch_array($Res,$i);
53        $col[]=ParseFormula($this->db,        $col[]=ParseFormula($this->db,
54                     $l_line['fo_label'],                     $l_line['fo_label'],
55                     $l_line['fo_formula'],$cond);                     $l_line['fo_formula'],
56                              $p_start,
57                              $p_end
58                              );
59            
60      } //for ($i      } //for ($i
61      $this->row=$col;      $this->row=$col;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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