本文整理汇总了PHP中Program::getStudentProgram方法的典型用法代码示例。如果您正苦于以下问题:PHP Program::getStudentProgram方法的具体用法?PHP Program::getStudentProgram怎么用?PHP Program::getStudentProgram使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Program
的用法示例。
在下文中一共展示了Program::getStudentProgram方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Candidate
<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: Voter
$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: Voter
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();