本文整理匯總了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();