<?php require_once 'autoload.php'; $nc = new NCLog(); if (isset($_POST['problemdescription'])) { print_r($_POST); //print_r($_FILES); if (isset($_POST['NonConformance_ID'])) { $nc->setValue('nonconformanceid', $_POST['NonConformance_ID']); $ncid = $_POST['NonConformance_ID']; } if (isset($_POST['NC_Type_ID'])) { $nc->setValue('nctypeid', $_POST['NC_Type_ID']); $nctypeid = $_POST['NC_Type_ID']; } $nc->setValue('ncdate', $_POST['ncddb']); if (isset($_POST['Batch_ID'])) { $nc->setValue('batchid', $_POST['Batch_ID']); } $nc->setValue('ncqty', $_POST['quantity']); $nc->setValue('ncnumber', $_POST['ncnumber']); $nc->setValue('problemdescription', $_POST['problemdescription']); $nc->setValue('correctiveaction', $_POST['correctiveaction']); $nc->setValue('correction', $_POST['correction']); $nc->setValue('containment', $_POST['containment']); $why = $_POST['why']; $reason = $_POST['reason']; $nc->setValue('stage', $_POST['stage']); $nc->setValue('effectiveness', $_POST['effectiveness']); $targetdate = $_POST['tdatedb']; $department = $_POST['department'];
case 'idle': //machine list $act = new Activitylog(); $act->createReasonList(); $sel = new selectlist('Idle_ID', $act->getReasonList(), 'Select Idle Reason', 'Idle_ID', 'Idle_Reason', 'class="required"', '', '1'); break; case 'nclog': //machine list $ncl = new NCLog(); if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = ''; } if (isset($_GET['showall'])) { $ncl->setValue('showall', 1); } if (isset($_GET['nclt'])) { $ncl->setValue('nctypeid', $_GET['nclt']); } $ncl->createNCList(); $sel = new selectlist('NonConformance_ID', $ncl->getNCList(), 'Select NC Log', 'NonConformance_ID', 'pd', $class, '', '1'); break; case 'notation': //machine list $not = new OpeNotation(); $not->createList(); if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = '';
<?php require_once 'autoload.php'; $_SESSION['LAST_ACTIVITY'] = time(); require_once '../tcpdf/tcpdf.php'; date_default_timezone_set('Asia/Kolkata'); $nc = new NCLog(); if (isset($_POST['NonConformance_ID'])) { //print_r($_POST); $nclid = $_POST['NonConformance_ID']; $reverified = ''; $nc->setValue('nonconformanceid', $nclid); class PDF_SKN extends TCPDF { // Page header function Header() { $nclid = $GLOBALS['nclid']; // $this->SetY(10); // $this->Image('logo.png',8,10,10); $this->SetFont('helvetica', '', 12); $this->Cell(65, 20, 'Divya Engineering Works (P) Ltd', 1, 0, 'C'); $this->Cell(73, 20, 'Corrective / Preventive Action Report', 1, 0, 'C'); $this->SetFont('helvetica', '', 10); $this->Cell(50, 5, ' Rec. For REF: DEW-QA-R-12', 'TBR', 2, 'L'); $this->Cell(50, 5, ' Rev No : A', 'BR', 2, 'L'); $this->Cell(50, 5, ' Issue Date: 31-12-2015', 'BR', 2, 'L'); $this->Cell(50, 5, ' NC Report ID: ' . $nclid, 'B R', 0, 'L'); $this->ln(); } function Footer()