init
This commit is contained in:
31
modules/templates/EcmDocuments/e5/footer.php
Executable file
31
modules/templates/EcmDocuments/e5/footer.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?
|
||||
$this->SetFont('arialpl', '', 8);
|
||||
$this->SetY($this->fh-15);
|
||||
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->SetFillColor(255,255,255);
|
||||
$this->Rect(0, $this->getBreakLine(), $this->fw, $this->bMargin+1, "F");
|
||||
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->Cell(0, 10, $this->PageNo().'/{nb}');
|
||||
|
||||
$this->Ln(5);
|
||||
$this->AliasNbPages();
|
||||
$this->SetLineWidth(0);
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->Line($this->lMargin,$this->getBreakLine(),$this->fw-$this->rMargin,$this->fh-$this->bMargin+1);
|
||||
|
||||
|
||||
if($this->edt->show_footer_on_all_pages == 0 && $this->page > 1) {
|
||||
// $this->bMargin = 3;
|
||||
// $this->SetAutoPageBreak(true,$this->bMargin);
|
||||
return;
|
||||
} else {
|
||||
// $this->bMargin = 19;
|
||||
// $this->SetAutoPageBreak(true,$this->bMargin+$this->tMarign+5);
|
||||
}
|
||||
|
||||
$this->SetFont('arialpl','','8');
|
||||
$this->SetXY($this->lMargin+10,$this->fh-$this->bMargin+3);
|
||||
$this->MultiCell($this->fw-$this->lMargin-$this->rMargin-20,4,$this->edt->footer_text,0,'C');
|
||||
?>
|
||||
17
modules/templates/EcmDocuments/e5/header.php
Executable file
17
modules/templates/EcmDocuments/e5/header.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?
|
||||
if(!$this->blnShowHeader) return;
|
||||
|
||||
if($this->edt->show_header_on_all_pages == 0 && $this->page > 1) return;
|
||||
|
||||
//logo
|
||||
if(isset($this->edt->logo_path) && $this->edt->logo_path != '')
|
||||
if(file_exists($this->edt->logo_path))
|
||||
$this->Image($this->edt->logo_path,$this->rMargin+132,$this->tMargin,0,18.3);
|
||||
|
||||
//from address
|
||||
$this->SetFont('arialpl', '', 8);
|
||||
$this->SetXY($this->lMargin,$this->tMargin+3);
|
||||
$this->MultiCell(100,3.15,$this->edt->header_text,0,'L');
|
||||
|
||||
$this->SetY(32);
|
||||
?>
|
||||
3
modules/templates/EcmDocuments/e5/subfooter.php
Executable file
3
modules/templates/EcmDocuments/e5/subfooter.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<?
|
||||
$pdf->SetFont('arialpl','','10');
|
||||
?>
|
||||
9
modules/templates/EcmDocuments/e5/subheader.php
Executable file
9
modules/templates/EcmDocuments/e5/subheader.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?
|
||||
$pdf->SetFont('arialpl','','10');
|
||||
|
||||
$pdf->UseCSS(true);
|
||||
$pdf->noPPadding = true;
|
||||
$this->document_text = "<p></p>".$this->document_text;
|
||||
$this->document_text = str_replace(array("<", ">", """), array("<", ">", "\""), $this->document_text);
|
||||
$pdf->WriteHTML($this->getParsedDocumentText($this->document_text));
|
||||
?>
|
||||
31
modules/templates/EcmDocuments/saascrm/footer.php
Executable file
31
modules/templates/EcmDocuments/saascrm/footer.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?
|
||||
$this->SetFont('arialpl', '', 8);
|
||||
$this->SetY($this->fh-15);
|
||||
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->SetFillColor(255,255,255);
|
||||
$this->Rect(0, $this->getBreakLine(), $this->fw, $this->bMargin+1, "F");
|
||||
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->Cell(0, 10, $this->PageNo().'/{nb}');
|
||||
|
||||
$this->Ln(5);
|
||||
$this->AliasNbPages();
|
||||
$this->SetLineWidth(0);
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->Line($this->lMargin,$this->getBreakLine(),$this->fw-$this->rMargin,$this->fh-$this->bMargin+1);
|
||||
|
||||
|
||||
if($this->edt->show_footer_on_all_pages == 0 && $this->page > 1) {
|
||||
// $this->bMargin = 3;
|
||||
// $this->SetAutoPageBreak(true,$this->bMargin);
|
||||
return;
|
||||
} else {
|
||||
// $this->bMargin = 19;
|
||||
// $this->SetAutoPageBreak(true,$this->bMargin+$this->tMarign+5);
|
||||
}
|
||||
|
||||
$this->SetFont('arialpl','','8');
|
||||
$this->SetXY($this->lMargin+10,$this->fh-$this->bMargin+3);
|
||||
$this->MultiCell($this->fw-$this->lMargin-$this->rMargin-20,4,$this->edt->footer_text,0,'C');
|
||||
?>
|
||||
34
modules/templates/EcmDocuments/saascrm/header.php
Executable file
34
modules/templates/EcmDocuments/saascrm/header.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?
|
||||
if(!$this->blnShowHeader) return;
|
||||
|
||||
if($this->edt->show_header_on_all_pages == 0 && $this->page > 1) return;
|
||||
|
||||
//from address
|
||||
$this->SetFont('arialpl', '', 8);
|
||||
$this->SetXY($this->fw-100-$this->rMargin,$this->tMargin);
|
||||
$this->MultiCell(100,3.15,$this->edt->header_text,0,'R');
|
||||
//logo
|
||||
if(isset($this->edt->logo_path) && $this->edt->logo_path != '')
|
||||
if(file_exists($this->edt->logo_path))
|
||||
$this->Image($this->edt->logo_path,$this->lMargin,$this->tMargin,0,22.3);
|
||||
|
||||
/*
|
||||
//line
|
||||
$this->SetLineWidth(0);
|
||||
$this->SetDrawColor(0,0,0);
|
||||
$this->Line($this->lMargin,$this->tMargin-1,$this->fw-$this->rMargin,$this->tMargin-1);
|
||||
*/
|
||||
//if($this->GetY() < $this->tMargin) $this->SetY($this->tMargin); else
|
||||
|
||||
/*
|
||||
$this->Ln(6);
|
||||
if($this->page == 1)
|
||||
if($this->edt->address) {
|
||||
$this->Ln(9);
|
||||
$this->SetFont('arialpl', 'u', 8);
|
||||
$this->SetX($this->lMargin);
|
||||
//$this->MultiCell(0,3.15,$this->edt->address,0,'L');
|
||||
$this->Ln(5);
|
||||
}
|
||||
*/
|
||||
?>
|
||||
3
modules/templates/EcmDocuments/saascrm/subfooter.php
Executable file
3
modules/templates/EcmDocuments/saascrm/subfooter.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<?
|
||||
$pdf->SetFont('arialpl','','10');
|
||||
?>
|
||||
9
modules/templates/EcmDocuments/saascrm/subheader.php
Executable file
9
modules/templates/EcmDocuments/saascrm/subheader.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?
|
||||
$pdf->SetFont('arialpl','','10');
|
||||
|
||||
$pdf->UseCSS(true);
|
||||
$pdf->noPPadding = true;
|
||||
$this->document_text = "<p></p>".$this->document_text;
|
||||
$this->document_text = str_replace(array("<", ">", """), array("<", ">", "\""), $this->document_text);
|
||||
$pdf->WriteHTML($this->getParsedDocumentText($this->document_text));
|
||||
?>
|
||||
Reference in New Issue
Block a user