Mail and Booking
This commit is contained in:
parent
62e84637b6
commit
5daea268f7
250 changed files with 5377 additions and 1473 deletions
49
app/Libraries/CouponPDF.php
Normal file
49
app/Libraries/CouponPDF.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
namespace App\Libraries;
|
||||
|
||||
|
||||
use \setasign\Fpdi\Fpdi;
|
||||
|
||||
class CouponPDF extends Fpdi
|
||||
{
|
||||
|
||||
protected $_tplIdx;
|
||||
protected $is_static_coupon;
|
||||
|
||||
public function _set($name, $value){
|
||||
$this->{$name} = $value;
|
||||
}
|
||||
|
||||
public function Header()
|
||||
{
|
||||
if($this->is_static_coupon){
|
||||
$file = './pdf/coupon/images/coupon-background.pdf';
|
||||
}else{
|
||||
$file = './pdf/coupon/images/coupon-background1.pdf';
|
||||
|
||||
}
|
||||
|
||||
if (null === $this->_tplIdx) {
|
||||
$this->setSourceFile($file);
|
||||
$this->_tplIdx = $this->importPage(1);
|
||||
}
|
||||
$this->useTemplate($this->_tplIdx);
|
||||
|
||||
}
|
||||
|
||||
/*function Footer() {
|
||||
$this->SetFont('Helvetica', '', 10);
|
||||
|
||||
$this->SetXY(15, 260);
|
||||
$this->Cell(180, 0, '', 'T');
|
||||
$this->Ln();
|
||||
$this->SetXY(15, 261);
|
||||
|
||||
$this->MultiCell(180, 6, utf8_decode($this->_footer_data), 0, 'C');
|
||||
$this->Ln();
|
||||
|
||||
} // end of footer
|
||||
*/
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue