Skip to content
Snippets Groups Projects
Commit 8ea59958 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

mx2

parent 81480c2c
Branches
Tags
No related merge requests found
......@@ -175,12 +175,15 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$structureHandled[$i][$j]['SubmoduleID'] = $row['SubmoduleID'];
if ($row['ModuleType'] == 'extra') {
$structureHandled[$i][$j]['Title'] = 'Добор баллов';
$maxRate += $row['MaxRate'];
$maxRate += $row['MaxRate'];
}
else {
$try++;
if ($try === 0)
$structureHandled[$i][$j]['Title'] = 'Основная сдача';
else
$structureHandled[$i][$j]['Title'] = 'Пересдача '.$try;
$examRate = $row['MaxRate'];
$structureHandled[$i][$j]['Title'] = 'Пересдача '.$try;
$try++;
}
//$structureHandled[$i][$j]['Description'] = $row['SubmoduleDescription']; // Описание
$structureHandled[$i][$j]['MaxRate'] = (int) $row['MaxRate'];
......
......@@ -26,9 +26,15 @@
<tr class="RatingTableModulesHead">
<td class="title" width="150px">Модуль</td>
{% for i in 1..headerRate.ModulesCount %}
<td class="subject" colspan="{{headerRate[i].SubmodulesCount}}">
{{ headerRate[i].ModuleTitle }}
</td>
{% if headerRate[i].ModuleType == 'extra' %}
<td class="subject" colspan="2">
{{ headerRate[i].ModuleTitle }}
</td>
{% else %}
<td class="subject" colspan="{{headerRate[i].SubmodulesCount}}">
{{ headerRate[i].ModuleTitle }}
</td>
{% endif %}
{% endfor %}
<td class="subject" rowspan="3">Итог за семестр</td>
<td class="subject" rowspan="3">Итог</td>
......@@ -42,7 +48,7 @@
{% set CellCount = CellCount + headerRate[i].SubmodulesCount %}
{% for j in 1..headerRate[i].SubmodulesCount %}
{% set col = col + 1 %}
<td class="subject col_{{ col }}" rowspan="2">{{ headerRate[i][j].Title }}</td>
<td class="subject col_{{ col }}" rowspan="2"> - </td>
{% endfor %}
{% set col = col + 1 %}
<td class="subject col_{{ col }}" rowspan="2">{{ "Макс." }}</td>
......
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