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

добавил кнопки

parent 28f877c1
Branches
Tags
No related merge requests found
......@@ -147,6 +147,12 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$id = $this->request->param('id');
$db = new Model_Teacher_Rating;
// Узнаем ExamType
$dbMap = new Model_Teacher_Map;
$disc_temp = $dbMap->getDisciplineInfoByID($id);
$disciplineInfo['ExamType'] = $disc_temp['ExamType'];
$disciplineInfo['ID'] = $id;
// Шапка таблицы: структура УКД (модули и мероприятия)
$structure = $db->GetMapForDisciplineExam($this->UserInfo['TeacherID'], $id);
......@@ -286,7 +292,7 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$twig->studyGroupID = $this->GetSGID($id);
$twig->DisciplineID = $id;
$twig->disciplineInfo = $disciplineInfo;
$this->response->body($twig);
}
......
......@@ -12,6 +12,16 @@
{% block main_content %}
<h2 style="margin-left: 2.5%; font-weight: normal; color: #3399CC;">Экзамен</h2>
{% if disciplineInfo.ExamType == 'exam' %}
<button class="downloadExamTable">Скачать отчёт по экзамену</button>
{% else %}
<button class="downloadCreditTable">Скачать отчёт по зачету</button>
{% endif %}
{{ HTML.anchor('rate/'~DisciplineID,
"Перейти к оцениванию",
{'title': 'Оценивание', 'class': 'rate_a'})|raw }}
<div class="groupSelectorWrap">
<div class="groupSelectorText">Фильтр:</div>
<select class="groupSelector">
......
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