FPDF("P", "mm", array($length,$width)); $this->Open(); $this->setMargins(4,10,1); $this->setAutoPageBreak(true,$height); $this->setDisplayMode(125); $this->setTiTle("Fiche catalographique de l'exemplaire :".$expl_cb); $this->setAuthor("PMB"); $this->setCreator("PMB"); } function Header() { /*---------------------------------------------------------* ! Create the header of the catalographic card ! *---------------------------------------------------------*/ global $header; global $width; global $length; global $height; global $exemplaire; global $pmb_pdf_font; $this->setFont($pmb_pdf_font,"B",10); $this->Cell($length,$height,$header); $this->Ln(); $matriz=explode( " ",$exemplaire->cote); $this->Cell($length,$height,$matriz[0]); $this->Cell($length,$height,$header); $this->Ln(); $this->setFont('barcode',"",20); $this->Cell($length-175,$height-256,$header); $this->Cell(20,0,"*".$exemplaire->cb."*",0,0,'R'); $this->setFont($pmb_pdf_font,"B",10); $this->Cell($length,$height,$header); $this->Ln(); $this->Cell($length,$height,$matriz[1]); $this->setFont($pmb_pdf_font,"",10); $this->Cell($length,$height,$header); $this->Ln(); $this->Cell(27,0); $this->Cell(20,0,$exemplaire->cb,0,0,'R'); $this->setFont($pmb_pdf_font,"B",10); $this->Cell($length,$height,$header); $this->Ln(); $this->Cell($length,$height,$matriz[2]); // $this->Ln() } function Body() { /*---------------------------------------------------------* ! Create the body of the catalographic card ! 2 *---------------------------------------------------------*/ global $width; global $length; global $height; global $exemplaire; global $pmb_pdf_font; $body=""; /* book note */ $this->setFont($pmb_pdf_font,"",10); // $this->Ln() $this->MultiCell(10,$height,$body); } function Footer() { /*---------------------------------------------------------* ! Create the footer of the catalographic card ! *---------------------------------------------------------*/ global $width; global $length; global $height; global $exemplaire; global $pmb_pdf_fontfixed; /* $this->setFont($pmb_pdf_font,"B",10); $this->Cell($length,$height,$header); $this->Ln(); $this->Cell($length,$height,$matriz[2]); $this->setFont($pmb_pdf_fontfixed,"",10); $this->Cell($length-30,$height-35,$header);; $this->Cell($length,$height,$exemplaire->cb); */ // $this->setFont('barcode',"",20); // $this->setXY(40,$width-7); // $this->Cell(20,0,"*".$exemplaire->cb."*",0,0,'R'); } } /* Create the PDF catalographic card */ $nom_classe=$fpdf."_Catalog"; $card=new $nom_classe(); $card->create(); $card->AddFont('barcode', '', "barcode.php"); /* Create a catalographic card for each author */ for($i=0;$iresponsabilites["auteurs"]);$i++) { unset($auteur); $card->addPage(); $card->Body(); } /* Create a catalographic card for the index */ $card->addPage(); $card->Body(); $card->output(); ?>