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

страница оценивание: у мигрантов кроме группы пишется курс

parent def6ce8e
Branches
Tags
No related merge requests found
......@@ -15,9 +15,9 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
if($discipline->count() == 0)
throw HTTP_Exception::factory (404, "Для дисциплины с ID $id не создана УКД или такой дисциплины не существует!");
$disciplineHandled = array();
$disciplineHandled = array();
$maxRate = 0; $i = 0; $module = 0;
foreach($discipline as $row)
{
if($row['ModuleID'] != $module)
......@@ -58,7 +58,14 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$studentsHandled[$i]['FirstName'] = $row['FirstName'];
$studentsHandled[$i]['SecondName'] = $row['SecondName'];
$studentsHandled[$i]['Grade'] = $row['Grade'];
if ($row['Degree'] == 'bachelor')
$studentsHandled[$i]['GradeTitle'] = $row['Grade'].' курс';
if ($row['Degree'] == 'specialist')
$studentsHandled[$i]['GradeTitle'] = $row['Grade'].' курс';
if ($row['Grade'] == 'master')
$studentsHandled[$i]['GradeTitle'] = 'Магистратура, '.$row['Grade'].' год';
$studentsHandled[$i]['GroupNum'] = $row['GroupNum'];
$studentsHandled[$i]['isAttached'] = $row['isAttached'];
$rate = $db->getMapForStudent($row['StudentID'], $id);
$j = 0;
foreach($rate as $r) {
......
......@@ -90,7 +90,7 @@
{% if student.GroupNum != GroupNum %}
{% set GroupNum = student.GroupNum %}
<tr>
<td class="group" colspan="{{ CellCount + 2 }}">{{ student.GroupNum }} группа</td>
<td class="group" colspan="{{ CellCount + 2 }}">{% if student.isAttached == 1 %} {{ student.GradeTitle }}, {% endif %}{{ student.GroupNum }} группа</td>
</tr>
{% endif %}
<tr>
......
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