print_r($_POST); if (isset($_POST['opeqpnote'])) { $dimn->setValue('opeqpnote', addslashes($_POST['opeqpnote'])); } if (isset($_POST['Ope_Rev_ID'])) { $dimn->setValue('opedrawingid', $_POST['Ope_Rev_ID']); } if (isset($_POST['Operation_ID'])) { $dimn->setValue('operationid', $_POST['Operation_ID']); } if (isset($_POST['Ope_Quality_Plan_ID'])) { $dimn->setValue('opeqpid', $_POST['Ope_Quality_Plan_ID']); } $dimn->saveOpqQPNote(); } else { if (isset($_GET['ui'])) { if (isset($_GET['opeqpid'])) { $dimn->setValue('opeqpid', $_GET['opeqpid']); } $dimn->showQualityPlanNotesUI(); } if (isset($_GET['list'])) { $dimn->setValue('opedrawingid', $_GET['revid']); $dimn->createQPList(); $sel = new selectlist("Ope_Quality_Plan_ID", $dimn->opeqpnotelist, 'Select Note to Edit', 'Ope_Quality_Plan_ID', 'note', '', '', '1'); } if (isset($_GET['qplan'])) { $dimn->setValue('drawingid', $_GET['did']); $dimn->showQualityPlan(); } }
$this->Cell(80, 18, 'Divya Engineering Works (P) Ltd, Mysore', 1, 0, 'C'); $this->Cell(60, 18, 'Quality Plan', 1, 0, 'C'); $this->SetFont('helvetica', '', 10); $this->Cell(58, 6, 'Record Format REF: DEW-QA-R-03', 'T R B', 2, 'L'); $this->Cell(58, 6, 'DATE: 01-12-2015', 'R B', 2, 'L'); $this->Cell(58, 6, 'REV NO: 00', 'B R', 0, 'L'); $this->ln(); $this->Cell(80, 6, 'ITEM: ' . $cname, 'L T R B', 0, 'L'); $this->MultiCell(118, 6, 'Drg No/Rev No: ' . $partno, 1, 'L', 0, 0, '', '', true, 0, false, true, 6, 'M', true); } function Footer() { $this->SetY(-10); $this->SetFont('helvetica', '', 6); $this->Cell(0, 10, 'Page' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, 'C'); } } $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); $pdf->setAutoPageBreak(1, 20); $pdf->SetTopMargin(25); $pdf->AddPage('P', 'A4'); $pdf->SetFont('helvetica', '', 10); $dimn->setValue('drawingid', $drawingid); $dimn->showQualityPlan($pdf); $pdfname = $pdfpath . $drawingid . '-QP.pdf'; ob_start(); //header('Content-Type: application/pdf'); //header('Content-Disposition: attachment; filename="$pdfname"'); $pdf->Output($pdfname, 'F'); ob_end_flush(); }