예제 #1
0
<div id="ballot">
<?php 
require_once "libraries/classes/config.php";
require_once "libraries/classes/clsCandidate.php";
require_once "libraries/classes/clsPosition.php";
require_once "libraries/classes/clsProgram.php";
$programID = $_SESSION["programID"];
$candidate = new Candidate();
$ssgCandidate = $candidate->getSSGCandidates();
$programCandidate = $candidate->getProgramCandidates($programID);
$program = new Program();
$programName = $program->getStudentProgram($_SESSION["studentID"]);
$position = new Position();
$ssgPosition = $position->getPosition(1);
$programPosition = $position->getPosition(2);
?>

<SCRIPT LANGUAGE="javascript">
    function KeepCount()
    {
        var NewCount = 0;
        <?php 
for ($cand_x = 0; $cand_x < count($candidate->getProgramCandidates($programID)); $cand_x++) {
    if ($programCandidate[$cand_x]["posID"] == 10) {
        $candidateName = $programCandidate[$cand_x]["lname"] . ", " . $programCandidate[$cand_x]["fname"];
        ?>
        
        if (document.Candidates.<?php 
        echo str_replace(" ", "", str_replace(",", "", str_replace(".", "", $candidateName)));
        ?>
.checked)
예제 #2
0
                    $pdf->Ln();
                    $pdf->Cell(40, 5, ' ' . $candidate_rec[$y]['lname'] . ', ' . $candidate_rec[$y]['fname']);
                }
            }
        }
    } else {
        $pdf->Ln();
    }
    $pdf->Ln();
}
$voterDtl = new Voter();
$name = $voterDtl->searchVoter($votID1);
$courseDtl = new Course();
$course = $courseDtl->getVotersCourse($votID1);
$program = new Program();
$progName = $program->getStudentProgram($votID1);
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Times', '', 10);
$pdf->MultiCell(0, 5, '---------------------------Voters Information---------------------------', 0, 'C');
$pdf->Cell(10, 5, 'ID No.  ' . $votID1);
$pdf->Ln();
$pdf->Cell(10, 5, 'Name  ' . $name[0]['vot_lname'] . ', ' . $name[0]['vot_fname']);
$pdf->Ln();
$pdf->Cell(10, 5, 'Course  ' . $course[0]['course']);
$pdf->Ln();
$pdf->Cell(10, 5, 'Program  ' . $progName[0]['progName']);
$pdf->Ln();
$pdf->Cell(10, 5, 'Date/Time Printed  ');
예제 #3
0
            if ($posId1 == $posId2) {
                $pdf->SetFont('Times', 'B', 9);
                $pdf->Ln();
                $pdf->Cell(40, 5, ' ' . $candidate_rec[$y]['lname'] . ', ' . $candidate_rec[$y]['fname']);
            }
        }
    }
    $pdf->Ln();
}
$voterDtl = new Voter();
$voterDtl->updateBallotTimePrinted($votID1);
$name = $voterDtl->searchVoter($votID1);
$courseDtl = new Course();
$course = $courseDtl->getVotersCourse($votID1);
$program = new Program();
$progCode = $program->getStudentProgram($votID1);
$pdf->Ln();
$pdf->SetFont('Times', 'B', 10);
$pdf->MultiCell(0, 5, 'Voters Information', 1, 'C');
$pdf->SetFont('Times', '', 10);
$pdf->Ln();
$pdf->Cell(10, 4, 'ID No.  ' . $votID1);
$pdf->Ln();
$pdf->Cell(10, 4, 'Name  ' . $name[0]['votLname'] . ', ' . $name[0]['votFname']);
$pdf->Ln();
$pdf->Cell(10, 4, 'Course  ' . $course[0]['course']);
$pdf->Ln();
$pdf->Cell(10, 4, 'Program  ' . $progCode[0]['progCode']);
$pdf->Ln();
$pdf->Cell(10, 4, 'Date/Time Printed  ' . $name[0]['ballotLog']);
$pdf->Ln();