Файловый менеджер - Редактировать - /home/amitahospital/public_html/department.php
Назад
<?php include('include/header.php'); ?> <main id="main"> <!-- ======= Breadcrumbs ======= --> <section class="breadcrumbs"> <div class="container"> <div class="d-flex justify-content-between align-items-center"> <h2>Our Department</h2> <ol> <li><a href="index.php">Home</a></li> <li>Our Department</li> </ol> </div> </div> </section><!-- End Breadcrumbs --> <section class=""> <div class="container"> <div class="section-title"> <h2>Department</h2> </div> <div class="row pt-5"> <div class="accordion" id="accordionExample"> <?php $res= $obj->getTable('sub_department','sub_dep_title'); if($res){ $i=1; $flag=1; foreach($res as $depart_data) { $show=''; if($flag==1) { $show= 'show'; $flag=0; } $sql= "SELECT * FROM department WHERE department_id='".$depart_data['department_id']."'"; $rs= mysqli_query($obj->mysqli,$sql); if($rs) { foreach($rs as $data) { ?> <div class="accordion-item mb-3"> <h2 class="accordion-header" id="headingOne"> <button class="accordion-button info tab" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne<?= $i ?>" aria-expanded="true" aria-controls="collapseOne"> <i class="bi bi-x-diamond-fill"></i> <?= $data['department_name'] ?> </button> </h2> <div id="collapseOne<?= $i ?>" class="accordion-collapse collapse <?= $show ?>" aria-labelledby="headingOne" data-bs-parent="#accordionExample"> <div class="accordion-body"> <div class="row"> <div class="col-md-8 col-sm-12"> <h4><strong> <?= $data['department_name'] ?> </strong> | <?= $depart_data['sub_dep_title'] ?></h4> <?= $depart_data['sub_dep_des']?> </div> <div class="col-md-4 col-sm-12"> <img src="amita_master/upload/sub_depart/<?= $depart_data['dep_img'] ?>" width="100%" class="img-thumbnail" /> </div> </div> </div> </div> </div> <?php $i++; } } } } ?> </div> </div> </div> </section> </main><!-- End #main --> <?php include('include/footer.php'); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка