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

css

parent 058356f0
Branches
Tags
No related merge requests found
......@@ -415,6 +415,7 @@ class Controller_Handler_Map extends Controller_Handler {
$this->post->offsetGet('DisciplineID')
);
$SearchResult = array();
$i = 0;
foreach($SeResult as $row){
$i++;
......@@ -424,6 +425,7 @@ class Controller_Handler_Map extends Controller_Handler {
$SearchResult[$i]['StudentSecond'] = $row['StudentSecond'];
$SearchResult[$i]['GroupGrade'] = $row['GroupGrade'];
$SearchResult[$i]['GroupNum'] = $row['GroupNum'];
$SearchResult[$i]['GroupID'] = $row['GroupID'];
}
$SearchResult['Count'] = $i;
}
......
......@@ -250,7 +250,7 @@ class Controller_Teacher_Map extends Controller_UserEnvi {
$students = $db->GetStudentsForDiscipline($this->UserInfo['TeacherID'], $DisciplineID);
$studentsHandled = array();
$i = 0;
foreach($students as $row) {
$i++;
$studentsHandled[$i]['StudentID'] = $row['StudentID'];
......@@ -260,6 +260,7 @@ class Controller_Teacher_Map extends Controller_UserEnvi {
$studentsHandled[$i]['Grade'] = $row['Grade'];
$studentsHandled[$i]['GroupNum'] = $row['GroupNum'];
$studentsHandled[$i]['Type'] = $row['Type'];
$studentsHandled[$i]['GroupID'] = $row['GroupID'];
}
return $studentsHandled;
}
......
......@@ -6,13 +6,13 @@
{% block map_content %}
<p class="top_center_info" style="display: none">Учебная карта дисциплины на 1 семестр 2014 года</p>
<div class="studyMap">
<div class="studyMap StructureTable">
<div class="name">Виды контрольных мероприятий</div>
<div class="currentControl">Текущий контроль</div>
<div class="landmarkControl">Рубежный контроль</div>
<div class="actions" style="text-align: right; padding-right: 30px;">Действия</div>
</div>
<div class="moduleList">
<div class="moduleList StructureTable">
{% for i in range(1, Map.ModulesCount) if Map.ModulesCount > 0 %}
<div class="moduleGroup" id="{{ Map[i].ModuleID }}">
<div class="moduleHead">
......
......@@ -15,9 +15,9 @@
{% if not loop.first %}
</div>
{% endif %}
<div class="GradeAndGroupTitle" id="{{ Student.Grade }}_{{ Student.GroupNum }}">
<div class="GradeAndGroupTitle ActionShowHideGroupContainer" id="{{ Student.GroupID }}">
<span class="info">Курс {{ Student.Grade }}, Группа {{ Student.GroupNum }}</span>
<span class="ActionShowHideGroupContainer">Открыть список ▼</span>
<span class="Action">Открыть список ▼</span>
</div>
<div class="GroupContainer">
{% set NowGroupNum = Student.GroupNum %}
......
......@@ -109,23 +109,23 @@
Общие стили для шапки учебной карты (НЕ шапки страницы),
модуля и мероприятия (подмодуля)
*/
.name { /* Название */
.StructureTable .name { /* Название */
width: 250px;
float: left;
display: inline;
margin-right: 60px;
}
.currentControl{ /* Текущий контроль */
.StructureTable .currentControl{ /* Текущий контроль */
width: 150px;
float: left;
display: inline;
}
.landmarkControl{ /* Рубежный контроль */
.StructureTable .landmarkControl{ /* Рубежный контроль */
width: 150px;
float: left;
display: inline;
}
.actions{ /* Действия */
.StructureTable .actions{ /* Действия */
width: 160px;
float: right;
display: inline;
......@@ -243,8 +243,11 @@
font-size: 14px;
color: #333;
}
.GradeAndGroupTitle .ActionShowHideGroupContainer{
margin-left: 40px;
.GradeAndGroupTitle .info {
float: left;
}
.GradeAndGroupTitle .Action{
float: right;
font-size: 13px;
cursor: pointer
}
......@@ -253,7 +256,7 @@
}
.StudentsList .Student {
margin: 10px 0;
padding: 10px;
padding: 7px 10px;
}
.StudentsList .Student .Name {
float: left;
......
......@@ -663,13 +663,13 @@ $('.StudentsList').on('click', '.Action_UnbindStudent', function(){
});
$('.StudentsList').on('click', '.ActionShowHideGroupContainer', function(){
if ($(this).parent().next('.GroupContainer').css('display') == 'none') {
$(this).text('Скрыть список ▲');
$(this).parent().next('.GroupContainer').show();
if ($(this).next('.GroupContainer').css('display') == 'none') {
$(this).children('.Action').text('Скрыть список ▲');
$(this).next('.GroupContainer').show();
}
else {
$(this).text('Открыть список ▼');
$(this).parent().next('.GroupContainer').hide();
$(this).children('.Action').text('Открыть список ▼');
$(this).next('.GroupContainer').hide();
}
});
......
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