auditionadmin/app/Actions/Print/signInPDF.php

36 lines
1.1 KiB
PHP

<?php
namespace App\Actions\Print;
use Codedge\Fpdf\Fpdf\Fpdf;
class signInPDF extends Fpdf
{
public $roomOn;
public $columnWidth = [
'id' => .5,
'instrument' => 1.25,
'drawNumber' => .3,
'name' => 1.8,
'school' => 1.4,
];
public $headerRowHeight = .25;
public function Header()
{
$this->SetFont('arial', '', '10');
$headerText = auditionSetting('auditionName').' - Student Sign In - Room: ';
$headerText .= $this->roomOn;
$this->Cell(0, .3, $headerText, 1, 0, 'C');
$this->Ln(.4);
$this->Cell($this->columnWidth['id'], $this->headerRowHeight, 'I.D.', 1, 0, 'L');
$this->Cell($this->columnWidth['instrument'], $this->headerRowHeight, 'Instrument', 1, 0, 'L');
$this->Cell($this->columnWidth['drawNumber'], $this->headerRowHeight, '#', 1, 0, 'L');
$this->Cell($this->columnWidth['name'], $this->headerRowHeight, 'Name (D) = Doubler', 1, 0, 'L');
$this->Cell($this->columnWidth['school'], $this->headerRowHeight, 'School', 1, 0, 'L');
$this->Cell(0, $this->headerRowHeight, 'Signature', 1, 1, 'L');
}
}