コード例 #1
0
$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);
$pdf->SetX(130);
$pdf->Cell(15, 5, 'Age:', 1, 0, 'R', 1);
$pdf->SetX(145);
$pdf->Cell(20, 5, $age, 1, 0);
$pdf->SetX(165);
$pdf->Cell(15, 5, 'Sex:', 1, 0, 'R', 1);
$pdf->SetX(180);
$pdf->Cell(20, 5, $sex, 1, 0);
$pdf->Ln();
$pdf->SetX(10);
$pdf->Cell(20, 5, 'Room No.:', 1, 0, 'R', 1);
$pdf->SetX(30);
コード例 #2
0
    $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');
$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);