problem with printLogo.jpg path fixed
This commit is contained in:
parent
42968db7ff
commit
cdea733854
|
@ -248,7 +248,15 @@ function createUserPDF($accounts) {
|
||||||
class lamPDF extends FPDF {
|
class lamPDF extends FPDF {
|
||||||
// Print page header
|
// Print page header
|
||||||
function header() {
|
function header() {
|
||||||
$this->Image("../../graphics/printLogo.jpg",10,10,50,20,"JPG");
|
$lamPath = explode("/",$SCRIPT_NAME);
|
||||||
|
$i=0;
|
||||||
|
$imageFile = "";
|
||||||
|
while($lamPath[$i] <> "lam") {
|
||||||
|
$imageFile .= "/" . $lamPath[$i];
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
$imageFile .= "/graphics/printLogo.jpg";
|
||||||
|
$this->Image($imageFile,10,10,50,20,"JPG");
|
||||||
$this->SetFont("arial","B",22);
|
$this->SetFont("arial","B",22);
|
||||||
$this->Cell(170,5,"LDAP Account Manager",0,1,"R",0);
|
$this->Cell(170,5,"LDAP Account Manager",0,1,"R",0);
|
||||||
$this->Ln(3);
|
$this->Ln(3);
|
||||||
|
|
Loading…
Reference in New Issue