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

fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix

parent 512f0b11
No related merge requests found
......@@ -139,7 +139,7 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$structureHandled = array();
$maxRate = 0; $i = 1; $module = 0;
$maxRate = 0; $i = 1; $module = 0; $try_1 = 0; // try = 1 - экзамен, = 2, 3 - пересдачи
foreach($structure as $row)
{
......@@ -163,7 +163,14 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$twig->examSubmoduleID = $row['SubmoduleID'];
$structureHandled[$i][$j]['SubmoduleID'] = $row['SubmoduleID'];
$structureHandled[$i][$j]['Title'] = 'Попытка '.$j;
if ($row{'ModuleType'] == 'extra')
$structureHandled[$i][$j]['Title'] = 'Добор баллов';
else {
$try++;
if ($try > 1)
$structureHandled[$i][$j]['Title'] = 'Пересдача '.($try - 1);
else $structureHandled[$i][$j]['Title'] = 'Экзамен';
}
//$structureHandled[$i][$j]['Description'] = $row['SubmoduleDescription']; // Описание
$structureHandled[$i][$j]['MaxRate'] = (int) $row['MaxRate'];
$maxRate += $row['MaxRate'];
......@@ -222,7 +229,7 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
}
}
//echo debug::vars($structureHandled);
echo debug::vars($structure);
$twig->rateTable = $rateHandled;
$twig->groups = $groupsHandled;
......
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