diff --git a/~dev_rating/application/classes/Controller/Handler/Map.php b/~dev_rating/application/classes/Controller/Handler/Map.php index 7c659b445324f89df9129b1b0ae6135e556a84bd..8b60df4342aa2f3b6db2d871c90f14f086e32e22 100644 --- a/~dev_rating/application/classes/Controller/Handler/Map.php +++ b/~dev_rating/application/classes/Controller/Handler/Map.php @@ -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'), diff --git a/~dev_rating/application/classes/Model/Teacher/Map.php b/~dev_rating/application/classes/Model/Teacher/Map.php index 763b1947bef25aa4c502d8f0bb1aa7abf8066675..57cdf0035d8f0aaec5b97dfee380af72e187639a 100644 --- a/~dev_rating/application/classes/Model/Teacher/Map.php +++ b/~dev_rating/application/classes/Model/Teacher/Map.php @@ -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();