$exaccomsubs = $b["exaccomsubs"]; $exprofessionalfee = $b["exprofessionalfee"]; $exorfeedrfee = $b["exorfeedrfee"]; $exadmissionfee = $b["exadmissionfee"]; $exwardservice = $b["exwardservice"]; $exnebfee = $b["exnebfee"]; $exambulancefee = $b["exambulancefee"]; $total = $b["total"]; $phtotal = $b["phtotal"]; $extotal = $b["extotal"]; } //PDF GENERATOR $pdf = new Height_Generator('P'); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 9); $pdf->Cell(80); $pdf->Cell(30, 10, "BACNOTAN DISTRICT HOSPITAL", 0, 0, 'C'); $pdf->Ln(5); $pdf->SetFont('Arial', 'B', 8); $pdf->Cell(80); $pdf->Cell(30, 10, "Bacnotan, La Union", 0, 0, 'C'); $pdf->Ln(10); $Y_Fields_Name_position = 25; $pdf->SetFillColor(232, 232, 232, 232); //Bold Font for Field Name $pdf->SetFont('Arial', 'B', 8); $pdf->SetY($Y_Fields_Name_position); $pdf->SetX(10); $pdf->Cell(20, 5, 'Patient:', 1, 0, 'R', 1); $pdf->SetX(30); $pdf->Cell(100, 5, $lastname . ', ' . $firstname . ' ' . $middlename, 1, 0);
$cs = $in["cs"]; $dob = $in["dateofbirth"]; $dateofbirth = date('F d, Y', strtotime($in["dateofbirth"])); $opdnum = $in["opdnum"]; $address = $in["address"]; $address = $in["address"]; $placeofbirth = $in["placeofbirth"]; $occupation = $in["occupation"]; $contactno = $in["contactno"]; $religion = $in["religion"]; $nationality = $in["nationality"]; } $Y_Fields_Name_position = 25; $pdf->SetFont('Arial', 'B', 9); $pdf->SetX(10); $pdf->Cell(190, 5, "BACNOTAN DISTRICT HOSPITAL", 0, 0, 'C'); $pdf->Ln(4); $pdf->SetFont('Arial', 'B', 8); $pdf->SetX(10); $pdf->Cell(190, 5, 'Bacnotan, La Union', 0, 0, 'C'); $pdf->Ln(); $pdf->SetFont('Arial', 'B', 9); $pdf->SetX(10); $pdf->Cell(190, 5, "PATIENT MEDICAL HISTORY", 0, 0, 'C'); $pdf->Ln(10); $pdf->SetFillColor(232, 232, 232, 232); //Bold Font for Field Name $pdf->SetFont('Arial', 'B', 8); $pdf->SetFont('Arial', 'B', 8); $pdf->SetX(10); $pdf->Cell(20, 5, 'Patient ID:', 1, 0, 'R', 1);