コード例 #1
0
ファイル: transfers.php プロジェクト: sahartak/v1poject
        $db            = new DBConnection();
        $transferModel = new App\Model\Transfer($db);
        
        $transfer      = $transferModel->getTransferByRef($_GET['ref']);
        $transferTypes = $transferModel->getTypes();
        $codeTypes     = $transferModel->getCodeTypes();
        
        $transfer['tr_type'] = $transferTypes[$transfer['tr_type']];
        $transfer['tr_bank_codetype'] = $codeTypes[$transfer['tr_bank_codetype']];
        $transfer = $transferModel->formatPriceValues($transfer);
        
        $mpdf = new mPDF(null, 'A4', null, null, 8, 8, 40, 20, 8, 8);
        $pdf  = new App\Utility\Pdf($db);
        
        $mpdf->SetHTMLHeader($pdf->getHeader());
        $mpdf->SetHTMLFooter($pdf->getFooter());
        
        $mpdf->WriteHTML($pdf->getBody('transfer_' . strtolower($transfer['tr_type']), $transfer));
        
        $mpdf->Output($transfer['user_account_num'] . '_' . $transfer['tr_ref'] . '.pdf', 'D');
        exit();
        break;
	default :
		$page_content=listTransfers();
		break;
}

page_header();
echo $page_content;
page_footer();
?>
コード例 #2
0
ファイル: carpool.php プロジェクト: emircg/UCPMv3.0
<?php 
listTransfers($userID);