prodV1 #2

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

View File

@ -60,13 +60,16 @@ class DirectonHtmlBuilder
//exit(); //exit();
if (array_key_exists('educationalInstitution', $direction)) { if (array_key_exists('educationalInstitution', $direction)) {
foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) { foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) {
$profile_out = '<br>';
$profiles .= "<p> {$educationalInstitution_name}</p>"; $profiles .= "<p> {$educationalInstitution_name}</p>";
foreach ($educationalInstitution as $profile_name => $profile) { foreach ($educationalInstitution as $profile_name => $profile) {
$profile_out = '<br>';
foreach ($profile as $key => $value) { foreach ($profile as $key => $value) {
$profile_out .= "<span style='font-family: Geologica-ExtraLight'>{$key}</span> - <strong> {$value['budget_places']} </strong><br>"; $profile_out .= "<span style='font-family: Geologica-ExtraLight'>{$key}</span> - <strong> {$value['budget_places']} </strong><br>";
} }
$tmp = str_replace(' ', '', $profile_name); $tmp = str_replace(' ', '', $profile_name);
$tmp = str_replace(',', '', $tmp);
// $print_r = '<pre>' . print_r($direction,1) . '<pre>';
$profiles .= " $profiles .= "
<div class=\"accordion \" id=\"accordionPanelsStayOpenExample\"> <div class=\"accordion \" id=\"accordionPanelsStayOpenExample\">
<div class=\"accordion-item\"> <div class=\"accordion-item\">
@ -78,6 +81,9 @@ class DirectonHtmlBuilder
<div id=\"panelsStayOpen-{$tmp}\" class=\"accordion-collapse collapse show\"> <div id=\"panelsStayOpen-{$tmp}\" class=\"accordion-collapse collapse show\">
<div class=\"accordion-body\"> <div class=\"accordion-body\">
$profile_out $profile_out
</div> </div>
</div> </div>
</div> </div>