Skip to content
Snippets Groups Projects
Commit 6b91a1a7 authored by Anton's avatar Anton
Browse files

- Шаговая система на странице УКД

- fix
parent 85ae0722
Branches
Tags
No related merge requests found
...@@ -143,10 +143,10 @@ class Controller_Teacher_Map extends Controller_UserEnvi { ...@@ -143,10 +143,10 @@ class Controller_Teacher_Map extends Controller_UserEnvi {
$teachersHandled = array(); $i = 0; $teachersHandled = array(); $i = 0;
foreach ($teachers as $row) { foreach ($teachers as $row) {
$teachersHandled[$i] = $row['LastName'].' '.$row['FirstName'].''; $teachersHandled[$i] = $row['TeacherLast'].' '.$row['TeacherFirst'].'';
if(!empty($row['TeacherSecond'])) if(!empty($row['TeacherSecond']))
{ {
$teachersHandled[$i] .= ' '.$row['SecondName']; $teachersHandled[$i] .= ' '.$row['TeacherSecond'];
} }
$i++; $i++;
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<p class="help">Логин может состоять из латинских букв, цифр и символа _</p> <p class="help">Логин может состоять из латинских букв, цифр и символа _</p>
<div class="itemBlock"> <div class="itemBlock">
<div class="title">Логин:</div> <div class="title">Логин:</div>
<div class="field"><input type="text" class="inputLogin inputText" value="{{ User.Login }}"></div> <div class="field"><input type="text" class="inputLogin inputText" value="{{ User.AccLogin }}"></div>
</div> </div>
<button class="changeLogin saveSettings">Изменить логин</button> <button class="changeLogin saveSettings">Изменить логин</button>
</div> </div>
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
{% block media %} {# head -> css, js #} {% block media %} {# head -> css, js #}
{{ HTML.script('media/js/functions.js')|raw }} {{ HTML.script('media/js/functions.js')|raw }}
{{ HTML.script('media/js/event_inspector/event_inspector.js')|raw }}
{{ HTML.style('media/js/event_inspector/event_inspector.css')|raw }}
{{ HTML.style('media/css/construct.css')|raw }} {{ HTML.style('media/css/construct.css')|raw }}
{{ HTML.script('media/js/construct/create.js')|raw }} {{ HTML.script('media/js/construct/create.js')|raw }}
{% endblock %} {% endblock %}
...@@ -30,7 +33,7 @@ ...@@ -30,7 +33,7 @@
</div> </div>
<div class="section"> <div class="section">
<select class="SelectDepartment"> <select class="SelectDepartment">
<option value="{{ User.DepartmentID }}">{{ User.DepartmentName }}</option> <option value="{{ User.DepID }}">{{ User.DepName }}</option>
</select> </select>
<select class="SelectGrade"> <select class="SelectGrade">
<option value="0">Выберите курс:</option> <option value="0">Выберите курс:</option>
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
{% block title %}Конструктор УКД{% endblock %} {# head -> title #} {% block title %}Конструктор УКД{% endblock %} {# head -> title #}
{% block media %} {# head -> css, js #} {% block media %} {# head -> css, js #}
{{ HTML.script('media/js/functions.js')|raw }} {{ HTML.script('media/js/functions.js')|raw }}
{{ HTML.style('media/js/wnd/wnd.css')|raw }}
{{ HTML.script('media/js/wnd/wnd.js')|raw }}
{{ HTML.script('media/js/event_inspector/event_inspector.js')|raw }} {{ HTML.script('media/js/event_inspector/event_inspector.js')|raw }}
{{ HTML.style('media/js/event_inspector/event_inspector.css')|raw }} {{ HTML.style('media/js/event_inspector/event_inspector.css')|raw }}
...@@ -17,10 +14,14 @@ ...@@ -17,10 +14,14 @@
{% block main_top_title %}Редактирование УКД{% endblock %} {% block main_top_title %}Редактирование УКД{% endblock %}
{% block main_content %} {% block main_content %}
<div class="tabs">
<div class="tab step_1">Шаг 1<span class="desc">. Базоые настройки УКД</span></div>
<div class="tab step_2 active">Шаг 2<span class="desc">. Структура УКД</span></div>
<div class="tab step_3">Шаг 3<span class="desc">. Прикрепление групп</span></div>
<div class="tab step_4">Шаг 4<span class="desc">. Прикрепление студентов</span></div>
</div>
<p class="top_center_info" style="display: none">Учебная карта дисциплины на 1 семестр 2014 года</p>
<div class="discipline"> <div class="discipline">
<p class="top_center_info">Учебная карта дисциплины на 1 семестр 2014 года</p>
<span class="AttachGroups">Прикрепить группы</span>
<span class="AttachStudents">Прикрепить студентов</span>
<div class="section"> <div class="section">
<select class="SelectSubject"> <select class="SelectSubject">
<option value="0">Выберите предмет:</option> <option value="0">Выберите предмет:</option>
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
</div> </div>
<div class="section"> <div class="section">
<select class="SelectDepartment"> <select class="SelectDepartment">
<option value="{{ User.DepartmentID }}">{{ User.DepartmentName }}</option> <option value="{{ User.DepID }}">{{ User.DepName }}</option>
</select> </select>
<select class="SelectGrade"> <select class="SelectGrade">
<option value="0">Выберите курс:</option> <option value="0">Выберите курс:</option>
...@@ -53,12 +54,12 @@ ...@@ -53,12 +54,12 @@
</div> </div>
<button class="ChangeDiscipline">Сохранить</button> <button class="ChangeDiscipline">Сохранить</button>
</div> </div>
<div class="construct"> <div class="structure">
<div class="studyMap"> <div class="studyMap">
<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">Действия</div> <div class="actions" style="text-align: right; padding-right: 30px;">Действия</div>
</div> </div>
<div class="moduleList"> <div class="moduleList">
{% for i in range(1, Map.ModulesCount) if Map.ModulesCount > 0 %} {% for i in range(1, Map.ModulesCount) if Map.ModulesCount > 0 %}
......
...@@ -16,8 +16,32 @@ ...@@ -16,8 +16,32 @@
margin: 15px 0px 15px 20px; margin: 15px 0px 15px 20px;
font-size: 15px; font-size: 15px;
} }
/* -- Вкладки на странице -------------------- */
.tabs {
margin-left: 25px;
}
.tabs .tab {
display: inline;
float: left;
background: #EEEEEE;
padding: 5px 12px;
margin-right: 2px;
font-size: 13px;
color: #333;
cursor: pointer
}
.tabs .tab:hover {
background-color: #3399CC;
color: #f6f7f7;
}
.tabs .tab.active {
background-color: #3399CC;
color: #f6f7f7;
}
.discipline { .discipline {
display: none;
margin: 0px 25px; margin: 0px 25px;
} }
.discipline .top_center_info { .discipline .top_center_info {
...@@ -42,11 +66,11 @@ ...@@ -42,11 +66,11 @@
.construct { .structure {
margin: 10px 25px; margin: 0px 25px;
} }
.construct .empty { .structure .empty {
display: block; display: block;
} }
......
...@@ -16,9 +16,10 @@ $(function() { ...@@ -16,9 +16,10 @@ $(function() {
function(data){ function(data){
data = $.parseJSON(data); data = $.parseJSON(data);
if(data.success === true) { if(data.success === true) {
alert('Ок, AddDiscipline'); $('.AddDiscipline').hide();
EventInspector_ShowMsg('Ок, AddDiscipline', 'success');
setTimeout('location.replace("/~dev_rating/map/'+data.DisciplineID+'")',5000); setTimeout('location.replace("/~dev_rating/map/'+data.DisciplineID+'")',5000);
} else alert('Error, AddDiscipline'); } else EventInspector_ShowMsg('Error, AddDiscipline', 'error');
} }
); );
}); });
......
...@@ -3,6 +3,22 @@ $(function() { ...@@ -3,6 +3,22 @@ $(function() {
var URL = (window.location.href).split('/'); var URL = (window.location.href).split('/');
var DisciplineID = URL[URL.length - 1] var DisciplineID = URL[URL.length - 1]
// Вкладки
$('.tab').click(function(){
$('.tab').each(function(){
$(this).removeClass('active');
});
$(this).addClass('active');
$('.discipline').hide();
$('.structure').hide();
});
$('.step_1').click(function(){
$('.discipline').show();
});
$('.step_2').click(function(){
$('.structure').show();
});
// Шаблон мероприятия // Шаблон мероприятия
function GetSubModuleTmp(){ function GetSubModuleTmp(){
return '\ return '\
......
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