本文整理汇总了PHP中Course::single_course方法的典型用法代码示例。如果您正苦于以下问题:PHP Course::single_course方法的具体用法?PHP Course::single_course怎么用?PHP Course::single_course使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Course
的用法示例。
在下文中一共展示了Course::single_course方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doEdit
function doEdit()
{
$courseid = $_GET['id'];
$singledept = new Course();
$object = $singledept->single_course($courseid);
if (isset($_POST['savecourse'])) {
if ($_POST['coursename'] == "" or $_POST['coursedesc'] == "") {
message("All field is required!", "error");
} else {
$course = new Course();
$courseid = $_GET['id'];
$coursename = $_POST['coursename'];
$courselevel = $_POST['level'];
$coursemajor = $_POST['major'];
$coursedesc = $_POST['coursedesc'];
$coursedept = $_POST['dept'];
$course->COURSE_NAME = $coursename;
$course->COURSE_LEVEL = $courselevel;
$course->COURSE_MAJOR = $coursemajor;
$course->COURSE_DESC = $coursedesc;
$course->DEPT_ID = $coursedept;
$course->update($courseid);
message($coursename . " has updated successfully!", "info");
redirect('index.php');
}
}
}
示例2: Course
<?php
$courseid = $_GET['id'];
$singledept = new Course();
$object = $singledept->single_course($courseid);
?>
<form class="form-horizontal well span6" action="controller.php?action=edit&id=<?php
echo $courseid;
?>
" method="POST">
<fieldset>
<legend>Modify Grade level</legend>
<div class="form-group">
<div class="col-md-8">
<label class="col-md-4 control-label" for=
"coursename">Grade level</label>
<div class="col-md-8">
<input class="form-control input-sm" id="coursename" name="coursename" placeholder=
"Course Code" type="text" value="<?php
echo $object->COURSE_NAME;
?>
">
</div>
</div>
</div>
<!-- <div class="form-group">
<div class="col-md-8">
<label class="col-md-4 control-label" for=
"level">Level</label>
示例3: Schoolyr
}
.right {
border-right:thin solid;
border-color:black;
}
.header-row { position:fixed; top:0; left:0; }
.table {padding-top:5px; }
</style>
<?php
$Schoolyr = new Schoolyr();
$sy = $Schoolyr->single_sy($_GET['txtsearch']);
$course = new Course();
$studcourse = $course->single_course($sy->COURSE_ID);
$student = new Student();
$cur = $student->single_student($_GET['txtsearch']);
?>
<div class="rows">
<div class="col-10 col-sm-10 col-lg-10">
<div class="panel panel-primary">
<div class="panel-body">
<html>
<body>
示例4: Course
// check_message();
redirect("enrollment.php?studentId=".$_GET['studentId']);
}else{
$sy = $Schoolyr->single_sy($_GET['sy']);
$course = new Course();
$studcourse = $course->single_course($sy->COURSE_ID);
//the button in assigning the subjects.
$button ='<a href = "index.php?view=assign&studentId='.$_GET['studentId'].'&SY='.$sy->AY.'&cid='.$sy->COURSE_ID.'&sy='.$_GET['sy'].'" class="btn btn-default"><span class="glyphicon glyphicon-plus-sign"></span>Assign Subject</a>
<button type="submit" class="btn btn-default" name="delete"><span class="glyphicon glyphicon-trash"></span> Delete Selected</button>';
}*/
$course = new Course();
$cur = $course->single_course($_GET['cid']);
}
?>
<!-- <form class="form-horizontal span4" action="#.php" method="POST"> -->
<div class="panel panel-primary">
<div class="panel-heading">
<!--<h4><span class="glyphicon glyphicon-list-alt"></span></h4>-->
</div>
<div class="panel-body">
<div class="row">
<div class="container">
<div class="well">
<span id="printout">
<table >