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