Changeset 7655 for trunk/reports/inc/class.fpdf.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reports/inc/class.fpdf.inc.php
r5291 r7655 421 421 $w=0; 422 422 $l=strlen($s); 423 for($i=0;$i<$l; $i++)423 for($i=0;$i<$l;++$i) 424 424 $w+=$cw[$s[$i]]; 425 425 return $w*$this->FontSize/1000; … … 476 476 $d=0; 477 477 $nb=count($this->diffs); 478 for($i=1;$i<=$nb; $i++)478 for($i=1;$i<=$nb;++$i) 479 479 { 480 480 if($this->diffs[$i]==$diff) … … 743 743 } 744 744 $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); 745 $i++;745 ++$i; 746 746 $sep=-1; 747 747 $j=$i; 748 748 $l=0; 749 749 $ns=0; 750 $nl++;750 ++$nl; 751 751 if($border && $nl==2) 752 752 $b=$b2; … … 757 757 $sep=$i; 758 758 $ls=$l; 759 $ns++;759 ++$ns; 760 760 } 761 761 $l+=$cw[$c]; … … 766 766 { 767 767 if($i==$j) 768 $i++;768 ++$i; 769 769 if($this->ws>0) 770 770 { … … 788 788 $l=0; 789 789 $ns=0; 790 $nl++;790 ++$nl; 791 791 if($border && $nl==2) 792 792 $b=$b2; 793 793 } 794 794 else 795 $i++;795 ++$i; 796 796 } 797 797 //Last chunk … … 828 828 //Explicit line break 829 829 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 830 $i++;830 ++$i; 831 831 $sep=-1; 832 832 $j=$i; … … 838 838 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 839 839 } 840 $nl++;840 ++$nl; 841 841 continue; 842 842 } … … 856 856 $w=$this->w-$this->rMargin-$this->x; 857 857 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 858 $i++;859 $nl++;858 ++$i; 859 ++$nl; 860 860 continue; 861 861 } 862 862 if($i==$j) 863 $i++;863 ++$i; 864 864 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 865 865 } … … 878 878 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 879 879 } 880 $nl++;880 ++$nl; 881 881 } 882 882 else 883 $i++;883 ++$i; 884 884 } 885 885 //Last chunk … … 1382 1382 { 1383 1383 //Replace number of pages 1384 for($n=1;$n<=$nb; $n++)1384 for($n=1;$n<=$nb;++$n) 1385 1385 $this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]); 1386 1386 } … … 1396 1396 } 1397 1397 $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; 1398 for($n=1;$n<=$nb; $n++)1398 for($n=1;$n<=$nb;++$n) 1399 1399 { 1400 1400 //Page … … 1438 1438 $this->_out('<</Type /Pages'); 1439 1439 $kids='/Kids ['; 1440 for($i=0;$i<$nb; $i++)1440 for($i=0;$i<$nb;++$i) 1441 1441 $kids.=(3+2*$i).' 0 R '; 1442 1442 $this->_out($kids.']'); … … 1535 1535 $cw=&$font['cw']; 1536 1536 $s='['; 1537 for($i=32;$i<=255; $i++)1537 for($i=32;$i<=255;++$i) 1538 1538 $s.=$cw[chr($i)].' '; 1539 1539 $this->_out($s.']'); … … 1589 1589 { 1590 1590 $trns=''; 1591 for($i=0;$i<count($info['trns']); $i++)1591 for($i=0;$i<count($info['trns']);++$i) 1592 1592 $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 1593 1593 $this->_out('/Mask ['.$trns.']'); … … 1710 1710 $this->_out('0 '.($this->n+1)); 1711 1711 $this->_out('0000000000 65535 f '); 1712 for($i=1;$i<=$this->n; $i++)1712 for($i=1;$i<=$this->n;++$i) 1713 1713 $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i])); 1714 1714 //Trailer
Note: See TracChangeset
for help on using the changeset viewer.