prodV1 #2

Open
RomanGolienko wants to merge 309 commits from prodV1 into main
1 changed files with 14 additions and 11 deletions
Showing only changes of commit b47d800d19 - Show all commits

View File

@ -28,31 +28,34 @@ class DirectonHtmlBuilder
$period = '<br>'; $period = '<br>';
foreach ($direction['period'] as $key => $el) { foreach ($direction['period'] as $key => $el) {
$period .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; $period .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el .
'</strong><br>' ;
} }
$EGE = '<br>'; $EGE = '<br>';
foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) { foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) {
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; $EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el .
'</strong><br>' ;
} }
//dd($direction); //dd($direction);
$po_viboru = '<br>'; $po_viboru = '<br>';
if (array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])) { if (array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])) {
foreach ($direction['entrance_examinations']['ЕГЭ']['Предметы по выбору'] as $key => $el) { foreach ($direction['entrance_examinations']['ЕГЭ']['Предметы по выбору'] as $key => $el) {
$po_viboru .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; $po_viboru .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' .
$el . '</strong><br>' ;
} }
} }
$SPO = '<br>'; $SPO = '<br>';
if (array_key_exists('СПО', $direction['entrance_examinations'])) { if (array_key_exists('СПО', $direction['entrance_examinations'])) {
foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) { foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) {
$SPO .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; $SPO .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el .
'</strong><br>' ;
} }
} }
// phpcs:disable
$mgtu = ''; $mgtu = '';
if (array_key_exists('МГТУ', $direction['budget_places'])) { if (array_key_exists('МГТУ', $direction['budget_places'])) {
foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) { foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) {
$profile_content = ''; $profile_content = '';
foreach ($profile as $forms => $budget_places) { foreach ($profile as $forms => $budget_places) {