Пример #1
0
<?php

require_once '../classes/config.php';
require_once '../inc/fpdf17/fpdf.php';
require_once '../classes/clsPosition.php';
require_once '../classes/clsCandidate.php';
require_once '../classes/clsVoter.php';
require_once '../classes/clsCourse.php';
//require_once('../classes/clsProgram.php');
$votID1 = $_POST['vot_id'];
$pdf = new FPDF('P', 'mm', array(114.3, 330.2));
$position = new Position();
$position_rec = $position->getPosition(1);
$candidate = new Candidate();
$candidate_rec = $candidate->getRecordVoted(1, $votID1);
$pdf->AddPage();
$pdf->SetFont('Times', '', 11);
$pdf->MultiCell(0, 2, 'University of Immaculate Conception', 0, 'C');
$pdf->Ln();
$pdf->MultiCell(0, 2, 'Davao City, Philippines 8000', 0, 'C');
$pdf->Ln();
$pdf->MultiCell(0, 2, 'Student Supreme Government Elections', 0, 'C');
$pdf->Ln();
$pdf->MultiCell(0, 3, 'A.Y. 2012 - 2013', 0, 'C');
$pdf->Ln();
$pdf->MultiCell(0, 3, 'OFFICIAL BALLOT', 0, 'C');
$pdf->Ln();
$pdf->Rect(10, 35, 95, 99, 'D');
$pdf->SetFont('Times', '', 12);
$pdf->Cell(10, 8, "SSG Executive");
$pdf->Ln();