Fixed PHP3-compatibility (foreach-loop). Fixed indentation (cosmetical).

This commit is contained in:
Garvin Hicking
2003-02-03 17:41:32 +00:00
parent 477c1e9c3e
commit ad3180bd46

View File

@@ -119,10 +119,12 @@ class PMA_PDF extends FPDF
if(count($this->Alias) > 0)
{
$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++)
$this->pages[$n]=str_replace($alias,$value,$this->pages[$n]);
}
}
parent::_putpages();
}
@@ -1206,7 +1208,8 @@ function PMA_RT_DOC($alltables ){
$pdf->Cell(0,9, $GLOBALS['strTableOfContents'],1,0,'C');
$pdf->Ln(15);
$i = 1;
foreach($alltables as $table ){
@reset($alltables);
while(list(, $table) = each($alltables)) {
$pdf->PMA_links['doc'][$table]['-'] = $pdf->AddLink();
$pdf->SetX(10);
//$pdf->Ln(1);
@@ -1223,15 +1226,17 @@ function PMA_RT_DOC($alltables ){
$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]);
}
$lasttable = $table;
$i++;
}
$pdf->PMA_links['RT']['-'] =$pdf->AddLink();
$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->Cell(0,6,$i.' '. $GLOBALS['strRelationalSchema'],0,1,'L',0,$pdf->PMA_links['RT']['-']);
$z = 0;
foreach($alltables as $table ){
@reset($alltables);
while(list(, $table) = each($alltables)) {
$z++;
$pdf->addpage($GLOBALS['orientation']);
$pdf->Bookmark($table);