diff --git a/~dev_rating/application/classes/Controller/Handler/Rating.php b/~dev_rating/application/classes/Controller/Handler/Rating.php index e3db2673ecf63a80b514469ea9e19904eb6ed572..aa93519d94d3f7287acc96ee2dacba7870ac0d8d 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 0799e59cffa21786f1af8a248531611c3291e8e9..1a435e4704bd719f65c8d0d98d2b91fb1eacca04 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%}