redesign of direction card #35
|
@ -50,7 +50,37 @@ class DirectonHtmlBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$mgtu = '';
|
||||||
|
if(array_key_exists('МГТУ', $direction['budget_places'])){
|
||||||
|
|
||||||
|
foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) {
|
||||||
|
$profile_content ='';
|
||||||
|
foreach($profile as $forms => $budget_places){
|
||||||
|
$profile_content .= "<strong> {$forms} </strong> - " . "<span style='font-family: Geologica-ExtraLight'> {$budget_places} </span><br>";
|
||||||
|
}
|
||||||
|
$mgtu .= "<div class=\"accordion\" id=\"accordionExample\">
|
||||||
|
<div class=\"accordion-item\">
|
||||||
|
<h2 class=\"accordion-header\">
|
||||||
|
<button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapseOne\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
|
||||||
|
$profile_name
|
||||||
|
</button>
|
||||||
|
</h2>
|
||||||
|
<div id=\"collapseOne\" class=\"accordion-collapse collapse show\" data-bs-parent=\"#accordionExample\">
|
||||||
|
<div class=\"accordion-body\">
|
||||||
|
$profile_content
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>" ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$filial = '222';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,8 +101,8 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
<div class='col d-flex justify-content-end'>
|
<div class='col d-flex justify-content-end'>
|
||||||
<div class=\"fs-5 \" style=\"font-family: Geologica-Light\">
|
<div class=\"fs-5 \" style=\"font-family: Geologica-Light\">
|
||||||
<a href='#' role='button'> МГТУ </a> |
|
<a href='#' role='button' class='button-mgtu'> МГТУ </a> |
|
||||||
<a href='#' role='button' > Филиал МГТУ (пос. Яблоновский)</a>
|
<a href='#' role='button' class='button-filial' > Филиал МГТУ (пос. Яблоновский)</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -100,7 +130,23 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
<div class=' col-7 '>
|
<div class=' col-7 '>
|
||||||
<div class=\"p-3 px-5 border-success fs-5 h-100\" style='border-radius: 20px; border: 2px solid;'>
|
<div class=\"p-3 px-5 border-success fs-5 h-100\" style='border-radius: 20px; border: 2px solid;'>
|
||||||
Места для обучения:
|
<script>
|
||||||
|
$(\".button-mgtu\").click(function () {
|
||||||
|
|
||||||
|
$(\".content_budget\").html('{$mgtu}');
|
||||||
|
});
|
||||||
|
$(\".button-filial\").click(function () {
|
||||||
|
$(\".content_budget\").html('{$filial}');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<strong>Места для обучения:</strong><br>
|
||||||
|
<div class='content_budget'>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue