当前位置: 首页>>代码示例>>PHP>>正文


PHP Course::getInfobyId方法代码示例

本文整理汇总了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>
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:list_courses_appointed.php

示例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 '';
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:26,代码来源:course_load_info.php

示例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">&times;</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 
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:generate_result.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;
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:attendance_page.php

示例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>
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:go_approval.php


注:本文中的Course::getInfobyId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。