本文整理汇总了PHP中Course::getInfobyId方法的典型用法代码示例。如果您正苦于以下问题:PHP Course::getInfobyId方法的具体用法?PHP Course::getInfobyId怎么用?PHP Course::getInfobyId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Course
的用法示例。
在下文中一共展示了Course::getInfobyId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Course
$courses = $c->getAllAppointed();
while (!empty($courses) && ($course = $courses->fetch_object())) {
$i++;
?>
<tr id="<?php
echo 'assigned_row_id' . $i;
?>
">
<td><?php
echo $course->course_code;
?>
</td>
<td>
<?php
$cc = new Course();
$cc->getInfobyId($course->course_code);
echo $cc->getCourseName();
unset($cc);
?>
</td>
<td><?php
$d = new Department();
$d->getInfo($course->course_dep);
echo $d->getDepName();
unset($d);
?>
</td>
<td><?php
echo $course->course_sem;
?>
</td>
示例2: Course
<?php
require_once '../../core/init.php';
if (!loggedIn()) {
echo '-';
die;
}
if (Session::get('type') != 'student') {
echo '-';
die;
}
if (Input::exists('get') && Input::get('cid') != '' && Input::get('t') != '') {
$c = new Course();
$c->getInfobyId(Input::get('cid'));
if (Input::get('t') == 1) {
echo $c->getCourseName();
} else {
if (Input::get('t') == 2) {
echo $c->getCourseCredit();
} else {
echo '-';
}
}
unset($c);
}
echo '';
示例3: explode
die;
}
if (Input::exists()) {
if (Input::get('course_id') != '') {
$var = explode(',', Input::get('course_id'));
$m = new Marks();
if (!$m->getGradeScale($var[0], $var[1])) {
echo '<div class="alert alert-danger alert-dismissible" role="alert">';
echo '<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>';
echo 'Set grading scale first!';
echo '</div>';
die;
}
$m->generateResult($var[0], $var[1]);
$c = new Course();
$c->getInfobyId($var[0]);
?>
<div class="box box-success">
<div class="box-header">
<h1 class="box-title">Final Result ( <?php
echo $var[0] . ' - ' . $c->getCourseName();
unset($c);
?>
)</h1>
<button type="button" class="btn btn-success btn-lg pull-right" OnClick="approve(<?php
echo '\'' . Session::get('teacher_id') . '\',\'' . $var[0] . '\',\'' . $var[1] . '\'';
?>
);"><i class="glyphicon glyphicon-ok"></i> Approve Result!!</button>
</div> <!-- ./box-header -->
<div class="box-body">
<?php
示例4: explode
</thead>
<tbody>
<?php
$courses = $s->getCourses();
$courses = explode(',', $courses);
foreach ($courses as $course) {
?>
<tr>
<td><?php
echo $course;
?>
</td>
<td>
<?php
$c = new Course();
$c->getInfobyId($course);
echo $c->getCourseName();
unset($c);
$a = new Attendance();
$view = $a->getEntry(Session::get('sn'), $course);
if (empty($view)) {
$ca = '-';
$tc = '-';
$p = '-';
$lu = '-';
} else {
$view = $view->fetch_object();
$ca = $view->classes_attended;
$tc = $view->classes_total;
$p = $view->percentage . '%';
$lu = $view->timestamp;
示例5: Approval
<select class="form-control" id="course" name="course_id">
<option value="" >Select Course</option>
<?php
$a = new Approval();
$b = $a->underApproval();
while ($key = $b->fetch_object()) {
$course = $key->course_code;
$course_dep = $key->course_dep;
?>
<option value="<?php
echo $course . ',' . $course_dep;
?>
"> <?php
echo $course . '-';
$ccn = new Course();
$ccn->getInfobyId($course);
echo $ccn->getCourseName();
unset($ccn);
?>
in <?php
$d = new Department();
$d->getInfo($course_dep);
echo $d->getDepName();
?>
</option>
<br />
<?php
}
?>
</select>