diff --git a/~dev_rating/application/classes/Controller/Teacher/Map.php b/~dev_rating/application/classes/Controller/Teacher/Map.php index e7e7a75fd1bc1b7fac74c119731243692aec84a4..430f2fcd7ca90eb9514c89bc024f46cfb0c6c75e 100644 --- a/~dev_rating/application/classes/Controller/Teacher/Map.php +++ b/~dev_rating/application/classes/Controller/Teacher/Map.php @@ -143,10 +143,10 @@ class Controller_Teacher_Map extends Controller_UserEnvi { $teachersHandled = array(); $i = 0; foreach ($teachers as $row) { - $teachersHandled[$i] = $row['LastName'].' '.$row['FirstName'].''; + $teachersHandled[$i] = $row['TeacherLast'].' '.$row['TeacherFirst'].''; if(!empty($row['TeacherSecond'])) { - $teachersHandled[$i] .= ' '.$row['SecondName']; + $teachersHandled[$i] .= ' '.$row['TeacherSecond']; } $i++; } diff --git a/~dev_rating/application/views/settings.twig b/~dev_rating/application/views/settings.twig index 8a90fcf93bf162b1ec181a37209d78470f1fc285..2a3acb93f6a8dc4628245c6bbe3cc9501f2f63fd 100644 --- a/~dev_rating/application/views/settings.twig +++ b/~dev_rating/application/views/settings.twig @@ -13,7 +13,7 @@ <p class="help">Логин может состоять РёР· латинских Р±СѓРєРІ, цифр Рё символа _</p> <div class="itemBlock"> <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> <button class="changeLogin saveSettings">Рзменить логин</button> </div> diff --git a/~dev_rating/application/views/teacher/map/create.twig b/~dev_rating/application/views/teacher/map/create.twig index d954d89f843c29fbe22f679985b99056162559c8..eec186a60ab3406637a106e7de942b3f3117ffa9 100644 --- a/~dev_rating/application/views/teacher/map/create.twig +++ b/~dev_rating/application/views/teacher/map/create.twig @@ -4,6 +4,9 @@ {% block media %} {# head -> css, js #} {{ 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.script('media/js/construct/create.js')|raw }} {% endblock %} @@ -30,7 +33,7 @@ </div> <div class="section"> <select class="SelectDepartment"> - <option value="{{ User.DepartmentID }}">{{ User.DepartmentName }}</option> + <option value="{{ User.DepID }}">{{ User.DepName }}</option> </select> <select class="SelectGrade"> <option value="0">Выберите РєСѓСЂСЃ:</option> diff --git a/~dev_rating/application/views/teacher/map/edit.twig b/~dev_rating/application/views/teacher/map/edit.twig index a0a384b26eaf3ac2b2198157f706cdef92a9f79c..06fde9fc481e972e767b1dfd21756213e1199ead 100644 --- a/~dev_rating/application/views/teacher/map/edit.twig +++ b/~dev_rating/application/views/teacher/map/edit.twig @@ -3,9 +3,6 @@ {% block title %}Конструктор РЈРљР”{% endblock %} {# head -> title #} {% block media %} {# head -> css, js #} {{ 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.style('media/js/event_inspector/event_inspector.css')|raw }} @@ -17,10 +14,14 @@ {% block main_top_title %}Редактирование РЈРљР”{% endblock %} {% 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"> - <p class="top_center_info">Учебная карта дисциплины РЅР° 1 семестр 2014 РіРѕРґР°</p> - <span class="AttachGroups">Прикрепить РіСЂСѓРїРїС‹</span> - <span class="AttachStudents">Прикрепить студентов</span> <div class="section"> <select class="SelectSubject"> <option value="0">Выберите предмет:</option> @@ -31,7 +32,7 @@ </div> <div class="section"> <select class="SelectDepartment"> - <option value="{{ User.DepartmentID }}">{{ User.DepartmentName }}</option> + <option value="{{ User.DepID }}">{{ User.DepName }}</option> </select> <select class="SelectGrade"> <option value="0">Выберите РєСѓСЂСЃ:</option> @@ -53,12 +54,12 @@ </div> <button class="ChangeDiscipline">Сохранить</button> </div> - <div class="construct"> + <div class="structure"> <div class="studyMap"> <div class="name">Р’РёРґС‹ контрольных мероприятий</div> <div class="currentControl">Текущий контроль</div> <div class="landmarkControl">Рубежный контроль</div> - <div class="actions">Действия</div> + <div class="actions" style="text-align: right; padding-right: 30px;">Действия</div> </div> <div class="moduleList"> {% for i in range(1, Map.ModulesCount) if Map.ModulesCount > 0 %} diff --git a/~dev_rating/media/css/construct.css b/~dev_rating/media/css/construct.css index 36cbf15b070b6293f9147339700de1b3482a7a42..3c01c5e60db329bb7366216ca0c9dfda963b4ec7 100644 --- a/~dev_rating/media/css/construct.css +++ b/~dev_rating/media/css/construct.css @@ -16,8 +16,32 @@ margin: 15px 0px 15px 20px; 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; } .discipline .top_center_info { @@ -42,11 +66,11 @@ -.construct { - margin: 10px 25px; +.structure { + margin: 0px 25px; } - .construct .empty { + .structure .empty { display: block; } diff --git a/~dev_rating/media/js/construct/create.js b/~dev_rating/media/js/construct/create.js index e7e7f882be3dc2069d141be7f38312eaff6cb8f7..7f122b4cb26751277dc83270a5df7180dc0d35cb 100644 --- a/~dev_rating/media/js/construct/create.js +++ b/~dev_rating/media/js/construct/create.js @@ -16,9 +16,10 @@ $(function() { function(data){ data = $.parseJSON(data); if(data.success === true) { - alert('РћРє, AddDiscipline'); + $('.AddDiscipline').hide(); + EventInspector_ShowMsg('РћРє, AddDiscipline', 'success'); setTimeout('location.replace("/~dev_rating/map/'+data.DisciplineID+'")',5000); - } else alert('Error, AddDiscipline'); + } else EventInspector_ShowMsg('Error, AddDiscipline', 'error'); } ); }); diff --git a/~dev_rating/media/js/construct/edit.js b/~dev_rating/media/js/construct/edit.js index 6991931a44168faeac7e4d1776360a013019432f..e315dabdfaa1763e214ead2c66510a9bc341adde 100644 --- a/~dev_rating/media/js/construct/edit.js +++ b/~dev_rating/media/js/construct/edit.js @@ -3,6 +3,22 @@ $(function() { var URL = (window.location.href).split('/'); 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(){ return '\