From 5256c09586849a3d9a88e2bc6f41af610d6dc48f Mon Sep 17 00:00:00 2001 From: Shalimov Anton <solidovic@yandex.ru> Date: Tue, 26 Aug 2014 14:31:49 +0400 Subject: [PATCH] fix --- .../application/classes/Controller/Handler/Rating.php | 1 - ~dev_rating/application/views/teacher/map/EditStudents.twig | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/~dev_rating/application/classes/Controller/Handler/Rating.php b/~dev_rating/application/classes/Controller/Handler/Rating.php index e3db2673e..aa93519d9 100644 --- a/~dev_rating/application/classes/Controller/Handler/Rating.php +++ b/~dev_rating/application/classes/Controller/Handler/Rating.php @@ -19,7 +19,6 @@ class Controller_Handler_Rating extends Controller_Handler { -> rule('rate', 'range', array(':value', 0, 100)); if($this->post->check()) { $result = $this->model->setRate($this->user['TeacherID'], $this->post->offsetGet('student'), $this->post->offsetGet('submodule'), $this->post->offsetGet('rate')); - var_dump($this->post); if ($result[0]['Num'] == 0) $data['success'] = true; } diff --git a/~dev_rating/application/views/teacher/map/EditStudents.twig b/~dev_rating/application/views/teacher/map/EditStudents.twig index 0799e59cf..1a435e470 100644 --- a/~dev_rating/application/views/teacher/map/EditStudents.twig +++ b/~dev_rating/application/views/teacher/map/EditStudents.twig @@ -5,7 +5,12 @@ {% block map_content %} <p class="top_center_info" style="display: none">Учебная карта дисциплины на 1 семестр 2014 года</p> <div class="AttachedStudentsList"> + {% set NowGroupNum = 0 %} {% for Student in Students %} + {% if NowGroupNum != Student.GroupNum %} + <div>Курс {{ Student.Grade }}, Группа {{ Student.GroupNum }}</div> + {% set NowGroupNum = Student.GroupNum %} + {% endif %} <div id="{{ Student.StudentID }}" class="Student {% if Student.Type == detach %}StatusBind{% else %}StatusUnbind{% endif %}"> <span class="Name">{{ Student.LastName }} {{ Student.FirstName }} {{ Student.SecondName }}</span> {% if Student.Type == detach%} -- GitLab