Modif impression de la section si elle est vide lors du saut de colonne
This commit is contained in:
parent
ad900ff45f
commit
eed8c2bd78
@ -3,6 +3,9 @@
|
|||||||
* Auteur : Pierre-André Vullioud
|
* Auteur : Pierre-André Vullioud
|
||||||
* Licence : Freeware
|
* Licence : Freeware
|
||||||
* Source : http://www.fpdf.org
|
* Source : http://www.fpdf.org
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class PDF_Indexes extends FPDF
|
class PDF_Indexes extends FPDF
|
||||||
@ -54,10 +57,12 @@ class PDF_Indexes extends FPDF
|
|||||||
{
|
{
|
||||||
$this->ReferenceNewPage();
|
$this->ReferenceNewPage();
|
||||||
}
|
}
|
||||||
|
if ( $this->ReferenceNextSection == $this->ReferenceCurrentSection)
|
||||||
$this->SetFontSize(9);
|
{
|
||||||
$this->MultiCell(90, 4, $this->ReferenceCurrentSection ,0,1,'L');
|
$this->SetFontSize(9);
|
||||||
$this->SetFontSize(8);
|
$this->MultiCell(90, 4, $this->ReferenceCurrentSection ,0,1,'L');
|
||||||
|
$this->SetFontSize(8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function CreateReference($NbCol, $index)
|
function CreateReference($NbCol, $index)
|
||||||
@ -77,6 +82,8 @@ class PDF_Indexes extends FPDF
|
|||||||
$last = '';
|
$last = '';
|
||||||
for ($i=0 ; $i < $size ; $i++)
|
for ($i=0 ; $i < $size ; $i++)
|
||||||
{
|
{
|
||||||
|
$this->ReferenceNextSection = $this->Reference[$index][$i]['t'][0];
|
||||||
|
|
||||||
if ($this->GetY() > $this->YMax)
|
if ($this->GetY() > $this->YMax)
|
||||||
{
|
{
|
||||||
$this->ReferenceNextCol();
|
$this->ReferenceNextCol();
|
||||||
@ -91,7 +98,7 @@ class PDF_Indexes extends FPDF
|
|||||||
$this->ReferencePrintSection();
|
$this->ReferencePrintSection();
|
||||||
}
|
}
|
||||||
|
|
||||||
//LibellLabel
|
//LibelleLabel
|
||||||
if (is_array($this->Reference[$index][$i]['t']))
|
if (is_array($this->Reference[$index][$i]['t']))
|
||||||
{
|
{
|
||||||
$str= " ".$this->Reference[$index][$i]['t'][1];
|
$str= " ".$this->Reference[$index][$i]['t'][1];
|
||||||
@ -132,7 +139,7 @@ class PDF_Indexes extends FPDF
|
|||||||
|
|
||||||
function ReferenceNextCol()
|
function ReferenceNextCol()
|
||||||
{
|
{
|
||||||
if($this->col<$this->NbCol-1)
|
if($this->col < $this->NbCol-1)
|
||||||
{
|
{
|
||||||
//Go to the next column
|
//Go to the next column
|
||||||
$this->SetCol($this->col+1);
|
$this->SetCol($this->col+1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user