Compare commits

..

2 Commits

Author SHA1 Message Date
aslan 7f6b65175b Merge pull request 'EGE bug fix' (#56) from RomanGolienko/Roman_applicant-site:feature/visually-impaired-mode into main
Tests & Lint & Deploy to Railway / build (2.7.6, 20.x, 8.3) (push) Failing after 1s Details
Tests & Lint & Deploy to Railway / deploy (push) Has been skipped Details
Reviewed-on: http://gitea.mkgtu.ru/aslan/applicant-site/pulls/56
2024-06-06 09:38:27 +03:00
RomanGolienko aa0e773592 EGE bug fix 2024-06-06 09:37:54 +03:00
2 changed files with 16 additions and 7 deletions

View File

@ -55,10 +55,16 @@ class DirectonHtmlBuilder
<br> <br>
<div class=" d-inline-block p-2 text-start">'; <div class=" d-inline-block p-2 text-start">';
foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) { if (array_key_exists('ЕГЭ', $direction['entrance_examinations'])){
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) {
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
}
$EGE .= '</div></div>';
} else {
$EGE = '';
} }
$EGE .= '</div></div>';
$po_viboru = '<div class="col-auto "> $po_viboru = '<div class="col-auto ">
<strong> Предметы по выбору </strong> <strong> Предметы по выбору </strong>

View File

@ -55,11 +55,14 @@ class DirectonHtmlBuilderForCalculator
<br> <br>
<br> <br>
<div class=" d-inline-block p-2 text-start">'; <div class=" d-inline-block p-2 text-start">';
foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) { if (array_key_exists('ЕГЭ', $direction['entrance_examinations'])) {
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) {
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
}
$EGE .= '</div></div>';
} else {
$EGE = '';
} }
$EGE .= '</div></div>';
$po_viboru = '<div class="col-auto "> $po_viboru = '<div class="col-auto ">
<strong> Предметы по выбору </strong> <strong> Предметы по выбору </strong>
<br> <br>