diff --git a/~dev_rating/application/classes/Controller/Teacher/Index.php b/~dev_rating/application/classes/Controller/Teacher/Index.php index 26eab296e640a8023990396aab768092cbd1aa93..cd4617070fb04061b3edd9bf7b637e7d9930f4f2 100644 --- a/~dev_rating/application/classes/Controller/Teacher/Index.php +++ b/~dev_rating/application/classes/Controller/Teacher/Index.php @@ -65,10 +65,10 @@ class Controller_Teacher_Index extends Controller_UserEnvi { foreach ($teachers as $teacher) { $i++; - $teachersHandled[$i] = $teacher['LastName'].' '.UTF8::substr($teacher['FirstName'], 0, 1).'. '; + $teachersHandled[$i] = $teacher['TeacherLast'].' '.UTF8::substr($teacher['TeacherFirst'], 0, 1).'. '; if(!empty($teacher['TeacherSecond'])) { - $teachersHandled[$i] .= UTF8::substr($teacher['SecondName'], 0, 1).'.'; + $teachersHandled[$i] .= UTF8::substr($teacher['TeacherSecond'], 0, 1).'.'; } } return $teachersHandled; diff --git a/~dev_rating/application/classes/Controller/Teacher/Rating.php b/~dev_rating/application/classes/Controller/Teacher/Rating.php index 1611f10769e3e14239d6ffbafc497b55b2b96335..a30d7ea2a38e8e5e023a2e81844c6d8685f40723 100644 --- a/~dev_rating/application/classes/Controller/Teacher/Rating.php +++ b/~dev_rating/application/classes/Controller/Teacher/Rating.php @@ -56,9 +56,9 @@ class Controller_Teacher_Rating extends Controller_UserEnvi { // Не Мигранты $i++; $studentsHandled[$i]['StudentID'] = $row['StudentID']; - $studentsHandled[$i]['LastName'] = $row['LastName']; - $studentsHandled[$i]['FirstName'] = $row['FirstName']; - $studentsHandled[$i]['SecondName'] = $row['SecondName']; + $studentsHandled[$i]['LastName'] = $row['StudentLast']; + $studentsHandled[$i]['FirstName'] = $row['StudentFirst']; + $studentsHandled[$i]['SecondName'] = $row['StudentSecond']; $studentsHandled[$i]['Grade'] = $row['Grade']; $studentsHandled[$i]['GroupNum'] = $row['GroupNum']; $rate = $db->getMapForStudent($row['StudentID'], $id); @@ -75,9 +75,9 @@ class Controller_Teacher_Rating extends Controller_UserEnvi { $MigrantsCount++; $MigrantsHandled[$MigrantsCount]['StudentID'] = $row['StudentID']; $MigrantsHandled[$MigrantsCount]['StudentID'] = $row['StudentID']; - $MigrantsHandled[$MigrantsCount]['LastName'] = $row['LastName']; - $MigrantsHandled[$MigrantsCount]['FirstName'] = $row['FirstName']; - $MigrantsHandled[$MigrantsCount]['SecondName'] = $row['SecondName']; + $MigrantsHandled[$MigrantsCount]['LastName'] = $row['StudentLast']; + $MigrantsHandled[$MigrantsCount]['FirstName'] = $row['StudentFirst']; + $MigrantsHandled[$MigrantsCount]['SecondName'] = $row['StudentSecond']; $MigrantsHandled[$MigrantsCount]['Grade'] = $row['Grade']; $MigrantsHandled[$MigrantsCount]['GroupNum'] = $row['GroupNum']; $rate = $db->getMapForStudent($row['StudentID'], $id); diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig index 5991fbb6eee73dee7bbb1e699ebbd0986243476d..d59b2352c2d638e3cdfd1907b0b6410f7d2cf96f 100644 --- a/~dev_rating/application/views/base.twig +++ b/~dev_rating/application/views/base.twig @@ -19,7 +19,7 @@ {{ User.FacultyName }} </div> <div class="top_user"> - {{ User.FirstName }} {{ User.LastName }} + {{ User.First }} {{ User.Last }} | {{ HTML.anchor('settings', 'Настройки', {'title': 'Настройки аккаунта'})|raw }} {{ HTML.anchor('sign/out', 'Выход', {'title': 'Выход из системы'})|raw }} </div>