Пример #1
0
function doEnroll()
{
    if (isset($_POST['savestep1'])) {
        $created = strftime("%Y-%m-%d %H:%M:%S", time());
        $idno = $_POST['idno'];
        $Status = $_POST['Status'];
        $course = $_POST['course'];
        $ay = $_POST['ay'];
        $Semester = $_POST['Semester'];
        $sy = new Schoolyr();
        $sy->AY = $ay;
        $sy->STATUS = $Status;
        $sy->SEMESTER = $Semester;
        $sy->COURSE_ID = $course;
        $sy->IDNO = $idno;
        $sy->DATE_RESERVED = $created;
        $istrue = $sy->create();
        if ($istrue == 1) {
            message("competences successfully enrolled! Assign now the competence's subjects.", "success");
            // check_message();
            redirect('index.php?view=view&competenceId=' . $idno . '');
        }
    }
}
Пример #2
0
    $cur = $student->single_student($_GET['studentId']);
}
if (isset($_POST['savestep1'])) {
    $created = strftime("%Y-%m-%d %H:%M:%S", time());
    $idno = $_POST['idno'];
    $Status = $_POST['Status'];
    $course = $_POST['course'];
    $ay = $_POST['ay'];
    $Semester = $_POST['Semester'];
    $sy = new Schoolyr();
    $sy->AY = $ay;
    $sy->SEMESTER = $Semester;
    $sy->COURSE_ID = $course;
    $sy->IDNO = $idno;
    $sy->DATE_RESERVED = $created;
    $istrue = $sy->create();
    if ($istrue == 1) {
        message("Students successfully enrolled! Assign now the student's subjects.", "success");
        // check_message();
        redirect('studentsubjects.php?studentId=' . $idno . '');
    }
}
?>
 
		  <form class="form-horizontal span4" action="#.php" method="POST">

					<div class="panel panel-primary">
					  <div class="panel-heading">
					    <h3 class="panel-title"><span class="glyphicon glyphicon-user"></span> Enroll Student</h3>
					  </div>
					  <div class="panel-body">