$exultrasound = $b["exultrasound"]; $execg = $b["execg"]; $exoxygen = $b["exoxygen"]; $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);
<?php include 'init.php'; require 'functions/height_generator.php'; $pdf = new Height_Generator('P'); $pdf->AddPage(); $pid = $_GET["pid"]; $ptInfo = getPtInfo($pid); foreach ($ptInfo as $in) { $pid = $in["pid"]; $firstname = $in["firstname"]; $middlename = $in["middlename"]; $lastname = $in["lastname"]; $membership = $in["membership"]; $sex = $in["sex"]; $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');