Skip to content
Snippets Groups Projects
Commit e1150585 authored by PavelBegunkov's avatar PavelBegunkov
Browse files
parents 233897cc 5256c095
Branches
Tags
No related merge requests found
......@@ -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;
}
......
......@@ -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%}
......
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