From c2616e87136918ed076eb14008c6f6eabc42409d Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 18 Mar 2024 12:24:44 +0300 Subject: [PATCH 1/8] adding to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2749dec..71ff04d 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ yarn-error.log /_ide_helper.php /_ide_helper_models.php /public/img/icons/play-button.png +/tabit.sql From f93404d996c931de113f4b0138f6f10c1c25c0fd Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 18 Mar 2024 12:24:44 +0300 Subject: [PATCH 2/8] adding to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2749dec..71ff04d 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ yarn-error.log /_ide_helper.php /_ide_helper_models.php /public/img/icons/play-button.png +/tabit.sql From 116c949f458023f3e994b58fc6310f722a68a891 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 18 Mar 2024 13:03:50 +0300 Subject: [PATCH 3/8] fixing directions --- app/Services/DirectonHtmlBuilder.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index 4774833..52bd960 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -60,13 +60,16 @@ class DirectonHtmlBuilder //exit(); if (array_key_exists('educationalInstitution', $direction)) { foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) { - $profile_out = '
'; + $profiles .= "

{$educationalInstitution_name}

"; foreach ($educationalInstitution as $profile_name => $profile) { + $profile_out = '
'; foreach ($profile as $key => $value) { $profile_out .= "{$key} - {$value['budget_places']}
"; } $tmp = str_replace(' ', '', $profile_name); + $tmp = str_replace(',', '', $tmp); +// $print_r = '
' . print_r($direction,1) . '
';
                     $profiles .= "
                                   
@@ -78,6 +81,9 @@ class DirectonHtmlBuilder
$profile_out + + +
From 303f4e59a045f7d3fb7b61783509261071f04e82 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 18 Mar 2024 12:24:44 +0300 Subject: [PATCH 4/8] adding to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2749dec..71ff04d 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ yarn-error.log /_ide_helper.php /_ide_helper_models.php /public/img/icons/play-button.png +/tabit.sql From 4fc8a80a0424dff24e49a609c0b989972825ca61 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 18 Mar 2024 13:03:50 +0300 Subject: [PATCH 5/8] fixing directions --- app/Services/DirectonHtmlBuilder.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index 4774833..52bd960 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -60,13 +60,16 @@ class DirectonHtmlBuilder //exit(); if (array_key_exists('educationalInstitution', $direction)) { foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) { - $profile_out = '
'; + $profiles .= "

{$educationalInstitution_name}

"; foreach ($educationalInstitution as $profile_name => $profile) { + $profile_out = '
'; foreach ($profile as $key => $value) { $profile_out .= "{$key} - {$value['budget_places']}
"; } $tmp = str_replace(' ', '', $profile_name); + $tmp = str_replace(',', '', $tmp); +// $print_r = '
' . print_r($direction,1) . '
';
                     $profiles .= "
                                   
@@ -78,6 +81,9 @@ class DirectonHtmlBuilder
$profile_out + + +
From 56662905a92373020bf4aaf183b17d1cd4fcf88a Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Wed, 20 Mar 2024 11:43:15 +0300 Subject: [PATCH 6/8] calculator design fix --- resources/views/new-design/bakalavr-special.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/new-design/bakalavr-special.blade.php b/resources/views/new-design/bakalavr-special.blade.php index a46c7aa..dfa3895 100644 --- a/resources/views/new-design/bakalavr-special.blade.php +++ b/resources/views/new-design/bakalavr-special.blade.php @@ -572,14 +572,14 @@
-
+
Выберите предметы
-
+
From 560679316d57d680c88282db930b7a2a560d0548 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Wed, 20 Mar 2024 16:44:31 +0300 Subject: [PATCH 7/8] design changes --- .../Controllers/Api/CalculatorController.php | 11 +- app/Services/DirectonHtmlBuilder.php | 115 +++++++++--------- .../new-design/bakalavr-special.blade.php | 9 +- 3 files changed, 68 insertions(+), 67 deletions(-) diff --git a/app/Http/Controllers/Api/CalculatorController.php b/app/Http/Controllers/Api/CalculatorController.php index 20bb715..23c8963 100644 --- a/app/Http/Controllers/Api/CalculatorController.php +++ b/app/Http/Controllers/Api/CalculatorController.php @@ -61,10 +61,10 @@ class CalculatorController extends Controller $faculty = Faculty::find($department->faculty_id); // phpcs:disable $fon_3 = URL::to('img/front-page/bakalavr-special/fon3_blok.png'); - return "{$acc} - - + + - + + "; }; // phpcs:enable diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index 52bd960..af5ce2a 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -58,40 +58,40 @@ class DirectonHtmlBuilder $profiles = ''; //if (array_key_exists('educationalInstitution',$direction)) echo '+++++'; else echo '----'; //exit(); - if (array_key_exists('educationalInstitution', $direction)) { - foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) { - - $profiles .= "

{$educationalInstitution_name}

"; - foreach ($educationalInstitution as $profile_name => $profile) { - $profile_out = '
'; - foreach ($profile as $key => $value) { - $profile_out .= "{$key} - {$value['budget_places']}
"; - } - $tmp = str_replace(' ', '', $profile_name); - $tmp = str_replace(',', '', $tmp); -// $print_r = '
' . print_r($direction,1) . '
';
-                    $profiles .= "
-                                  
-
-

- -

-
-
- $profile_out - - - -
-
-
-
- "; - } - }; - } +// if (array_key_exists('educationalInstitution', $direction)) { +// foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) { +// +// $profiles .= "

{$educationalInstitution_name}

"; +// foreach ($educationalInstitution as $profile_name => $profile) { +// $profile_out = '
'; +// foreach ($profile as $key => $value) { +// $profile_out .= "{$key} - {$value['budget_places']}
"; +// } +// $tmp = str_replace(' ', '', $profile_name); +// $tmp = str_replace(',', '', $tmp); +//// $print_r = '
' . print_r($direction,1) . '
';
+//                    $profiles .= "
+//                                  
+//
+//

+// +//

+//
+//
+// $profile_out +// +// +// +//
+//
+//
+//
+// "; +// } +// }; +// } return "
@@ -104,15 +104,15 @@ class DirectonHtmlBuilder
-
+
{$direction['code']}
-
{$direction['name']}
+
{$direction['name']}

{$direction['description']}

-

Бюджетные места:

{$profiles}
+
@@ -120,42 +120,41 @@ class DirectonHtmlBuilder
+
+
+ +
-
- -
+
Уровень образования: {$direction['educationLevel']}
-

+
Форма обучения: $educationForms
-

-
Бюджетные места: - {$budget_places} -
-

-
Квота: - {$direction['quota']} -
-

-
Места на контракт: - {$direction['paid_places']} -
-

-
Стоимость платного обучения: -
-

+ + + + +
Период обучения (в годах): {$period}
-
+
+ +
+ + Места для обучения: + +
+
+
diff --git a/resources/views/new-design/bakalavr-special.blade.php b/resources/views/new-design/bakalavr-special.blade.php index dfa3895..a026380 100644 --- a/resources/views/new-design/bakalavr-special.blade.php +++ b/resources/views/new-design/bakalavr-special.blade.php @@ -74,6 +74,7 @@ .hover1:hover { transform: scale(1.1); transition: all .3s ease-in-out; + z-index: 1052; } @@ -387,15 +388,15 @@

{{ $faculty->name }}

-
{$faculty->name} - id}{$direction->id }\" aria-controls=\"offcanvasScrolling\" role=\"button\">{$direction->name} + return "{$acc}
+ id}{$direction->id }\" aria-controls=\"offcanvasScrolling\" role=\"button\">{$direction->name}
id }{$direction->id}\" aria-labelledby=\"offcanvasScrollingLabel-{$direction->id}{$direction->id}\" style=\"height: 100%; font-family: Geologica-Medium; overflow-y: auto ; background-image: url({$fon_3}); color: #004329\"> @@ -134,8 +134,9 @@ class CalculatorController extends Controller
{$direction->cost_paid_place} {$direction->period}
+ style=" font-family: Geologica-ExtraLight;"> @@ -561,7 +562,7 @@ data: 'ajx=get_napr&format=html&predmets=' + JSON.stringify(selected), success: function (data) { - $(".calcul_rez").html(''); + $(".calcul_rez").html(''); $(".calcul_rez").append(data.html); } From 3bf100ed741aff0ddc16fb28b31f6c906d8e92ac Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Thu, 21 Mar 2024 14:48:08 +0300 Subject: [PATCH 8/8] design changes --- app/Services/DirectonHtmlBuilder.php | 127 ++++++++---------- .../new-design/bakalavr-special.blade.php | 2 +- 2 files changed, 58 insertions(+), 71 deletions(-) diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index af5ce2a..3575c6f 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -2,9 +2,7 @@ namespace App\Services; -use App\Models\Direction; use Illuminate\Support\Facades\URL; -use PhpParser\Node\Expr\Array_; class DirectonHtmlBuilder { @@ -15,6 +13,7 @@ class DirectonHtmlBuilder { $this->direction = $direction; } + public function getHTML() { @@ -22,12 +21,9 @@ class DirectonHtmlBuilder $direction = $this->direction; - $fon_3 = URL::to('img/front-page/bakalavr-special/fon3_blok.png'); - - $educationForms = ''; foreach ($direction['educationForms'] as $key => $educationForm) { $educationForms .= $key . ', '; @@ -35,7 +31,6 @@ class DirectonHtmlBuilder $educationForms = substr($educationForms, 0, -2); - // phpcs:disable $budget_places_array = array(); @@ -96,76 +91,68 @@ class DirectonHtmlBuilder return "
-
-
- -
+
+
+ +
-
+
-
+
+
+
{$direction['code']}
+
{$direction['name']}
+
+ +
-
-
{$direction['code']}
-
{$direction['name']}
-
-
-

{$direction['description']}

+
+
+

{$direction['description']}

+
+
+
+ +
+
+
Уровень образования: + {$direction['educationLevel']} +
+
Форма обучения: + $educationForms +
+
Период обучения (в годах): + {$period} +
+
+
+
+
+ Места для обучения: +
+
+
+
+
+
-
+
+
+
+
- - - -
-
- -
- -
- -
-
Уровень образования: - {$direction['educationLevel']} -
- -
Форма обучения: - $educationForms - -
- - - - - - -
Период обучения (в годах): - {$period} -
-
-
-
- -
- - Места для обучения: - -
-
-
- -
- - - -
-
-
- -
-
"; +
+
+ + + + "; } // phpcs:enable } diff --git a/resources/views/new-design/bakalavr-special.blade.php b/resources/views/new-design/bakalavr-special.blade.php index a026380..e198121 100644 --- a/resources/views/new-design/bakalavr-special.blade.php +++ b/resources/views/new-design/bakalavr-special.blade.php @@ -581,7 +581,7 @@ style="font-family: Geologica-ExtraLight">Выберите предметы
-
Название Код специальности
Факультет Направление Период обучения (в годах)
Направление Цена за обучение Период обучения (в годах)