Fixed PHP3-compatibility (foreach-loop). Fixed indentation (cosmetical).
This commit is contained in:
@@ -119,10 +119,12 @@ class PMA_PDF extends FPDF
|
|||||||
if(count($this->Alias) > 0)
|
if(count($this->Alias) > 0)
|
||||||
{
|
{
|
||||||
$nb=$this->page;
|
$nb=$this->page;
|
||||||
foreach($this->Alias as $alias => $value)
|
@reset($this->Alias);
|
||||||
|
while(list($alias, $value) = each($this->Alias)) {
|
||||||
for($n=1;$n<=$nb;$n++)
|
for($n=1;$n<=$nb;$n++)
|
||||||
$this->pages[$n]=str_replace($alias,$value,$this->pages[$n]);
|
$this->pages[$n]=str_replace($alias,$value,$this->pages[$n]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
parent::_putpages();
|
parent::_putpages();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1206,7 +1208,8 @@ function PMA_RT_DOC($alltables ){
|
|||||||
$pdf->Cell(0,9, $GLOBALS['strTableOfContents'],1,0,'C');
|
$pdf->Cell(0,9, $GLOBALS['strTableOfContents'],1,0,'C');
|
||||||
$pdf->Ln(15);
|
$pdf->Ln(15);
|
||||||
$i = 1;
|
$i = 1;
|
||||||
foreach($alltables as $table ){
|
@reset($alltables);
|
||||||
|
while(list(, $table) = each($alltables)) {
|
||||||
$pdf->PMA_links['doc'][$table]['-'] = $pdf->AddLink();
|
$pdf->PMA_links['doc'][$table]['-'] = $pdf->AddLink();
|
||||||
$pdf->SetX(10);
|
$pdf->SetX(10);
|
||||||
//$pdf->Ln(1);
|
//$pdf->Ln(1);
|
||||||
@@ -1223,15 +1226,17 @@ function PMA_RT_DOC($alltables ){
|
|||||||
$pdf->PMA_links['doc'][$table][$field_name] =$pdf->AddLink();
|
$pdf->PMA_links['doc'][$table][$field_name] =$pdf->AddLink();
|
||||||
//$pdf->Cell(0,6,$field_name,0,1,'L',0,$pdf->PMA_links['doc'][$table][$field_name]);
|
//$pdf->Cell(0,6,$field_name,0,1,'L',0,$pdf->PMA_links['doc'][$table][$field_name]);
|
||||||
}
|
}
|
||||||
|
$lasttable = $table;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$pdf->PMA_links['RT']['-'] =$pdf->AddLink();
|
$pdf->PMA_links['RT']['-'] =$pdf->AddLink();
|
||||||
$pdf->SetX(10);
|
$pdf->SetX(10);
|
||||||
$pdf->Cell(0,6,$GLOBALS['strPageNumber'] . ' {00}',0,0,'R',0,$pdf->PMA_links['doc'][$table]['-']);
|
$pdf->Cell(0,6,$GLOBALS['strPageNumber'] . ' {00}',0,0,'R',0,$pdf->PMA_links['doc'][$lasttable]['-']);
|
||||||
$pdf->SetX(10);
|
$pdf->SetX(10);
|
||||||
$pdf->Cell(0,6,$i.' '. $GLOBALS['strRelationalSchema'],0,1,'L',0,$pdf->PMA_links['RT']['-']);
|
$pdf->Cell(0,6,$i.' '. $GLOBALS['strRelationalSchema'],0,1,'L',0,$pdf->PMA_links['RT']['-']);
|
||||||
$z = 0;
|
$z = 0;
|
||||||
foreach($alltables as $table ){
|
@reset($alltables);
|
||||||
|
while(list(, $table) = each($alltables)) {
|
||||||
$z++;
|
$z++;
|
||||||
$pdf->addpage($GLOBALS['orientation']);
|
$pdf->addpage($GLOBALS['orientation']);
|
||||||
$pdf->Bookmark($table);
|
$pdf->Bookmark($table);
|
||||||
@@ -1459,7 +1464,7 @@ function PMA_RT_DOC($alltables ){
|
|||||||
} // end while
|
} // end while
|
||||||
$pdf->SetFont('', '',14);
|
$pdf->SetFont('', '',14);
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
}//end each
|
}//end each
|
||||||
|
|
||||||
|
|
||||||
} // end function PMA_RT_DOC
|
} // end function PMA_RT_DOC
|
||||||
|
Reference in New Issue
Block a user