Skip to content
Snippets Groups Projects
Commit 3b083e77 authored by Антон Шалимов's avatar Антон Шалимов
Browse files

исправлен поиск для студентов

parent 17955a49
Branches
Tags
No related merge requests found
......@@ -400,7 +400,7 @@ class Controller_Handler_Map extends Controller_Handler {
-> rule('DisciplineID', 'not_empty')
-> rule('DisciplineID', 'digit');
if($this->post->check()) {
$SeResult = $this->model->SearchStudentsNew(
$SeResult = $this->model->getStudentsNotAttendingDiscipline(
$this->post->offsetGet('Grade'),
$this->post->offsetGet('GroupN'),
$this->post->offsetGet('FacultyID'),
......
......@@ -218,6 +218,12 @@ class Model_Teacher_Map extends Model
return DB::query(Database::SELECT, $sql)->execute();
}
public function getStudentsNotAttendingDiscipline($Grade, $Group, $FacultyID, $Last, $First, $Second, $DisciplineID)
{
$sql = "CALL `getStudentsNotAttendingDiscipline`('$Grade', '$Group', '$FacultyID', '$Last', '$First', '$Second', '$DisciplineID'); ";
return DB::query(Database::SELECT, $sql)->execute();
}
public function SearchTeachers($FacultyID, $DepartmentID, $Last, $First, $Second) {
$sql = "CALL `SearchTeachers`('$FacultyID', '$DepartmentID', '$Last', '$First', '$Second'); ";
return DB::query(Database::SELECT, $sql)->execute();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment