Priority File Manager
📁 public_html
Base Directory:
/home/ecedu/public_html
/home/ecedu/public_html/wp-content/plugins
/home/ecedu/public_html/wp-content
/home/ecedu
/var/www
/var/www/cgi-bin
/var/www/html
public_html
/
new
/
Views
/
layouts
/home/ecedu/public_html/new/Views/layouts
Name
Type
Size
Actions
📁
..
Folder
-
Delete
Rename
📄
aboutus-layout.php
File
1676
Delete
Rename
Edit
Download
📄
article-layout.php
File
22554
Delete
Rename
Edit
Download
📄
back-top.php
File
706
Delete
Rename
Edit
Download
📄
body-layout.php
File
1313
Delete
Rename
Edit
Download
📄
contactus-layout.php
File
4025
Delete
Rename
Edit
Download
📄
department-layout.php
File
3736
Delete
Rename
Edit
Download
📄
footer-layout.php
File
5862
Delete
Rename
Edit
Download
📄
header-layout.php
File
451
Delete
Rename
Edit
Download
📄
header-second.php
File
827
Delete
Rename
Edit
Download
📄
index-layout.php
File
4027
Delete
Rename
Edit
Download
📄
list-languages.php
File
5393
Delete
Rename
Edit
Download
📄
list-news-layout.php
File
6488
Delete
Rename
Edit
Download
📄
list-pdf-layout.php
File
4459
Delete
Rename
Edit
Download
📄
main-func.php
File
59071
Delete
Rename
Edit
Download
📄
main-layout.php
File
8313
Delete
Rename
Edit
Download
📄
main-menu.php
File
3613
Delete
Rename
Edit
Download
📄
mobile-menu.php
File
5453
Delete
Rename
Edit
Download
📄
mobile-side.php
File
14998
Delete
Rename
Edit
Download
📄
pdf-layout.php
File
3
Delete
Rename
Edit
Download
📄
right_sidebar.php
File
3970
Delete
Rename
Edit
Download
📄
search-layout.php
File
5408
Delete
Rename
Edit
Download
📄
top-menu.php
File
1175
Delete
Rename
Edit
Download
📄
top_slider.php
File
2320
Delete
Rename
Edit
Download
Upload
Create Folder
📝 Editing:
department-layout.php
Size: 3,736 bytes
Lines: 92
Type: .php
💾 Save
Cancel
✕
<?php $id = isset($_GET['id']) ? (int)$_GET['id'] : 0; if ($id > 0) { require_once __DIR__ . '/../../Models/DetailsManager.php'; $label=''; $description=''; $img_path1 = "service/images/details/"; $ctrl = new DetailsManager(); $row = $ctrl->getDetailsById($id); $imagePath =""; if ($row !== null) { if (!empty($row['img_ext'])) { $imagePath = $img_path1 . 'img_' . $row['item_id'] . '.' . $row['img_ext']; } if($lang==='ar'){ $label = $row['details_title'] ?? ''; $description = $row['details_description'] ?? ''; } else if($lang==='ku'){ $label = $row['details1_title'] ?? ''; $description = $row['details1_description'] ?? ''; } else if($lang==='en'){ $label = $row['details2_title'] ?? ''; $description = $row['details2_description'] ?? ''; } } else { $list = $ctrl->getMenu(); $item = findById($list, $id); if ($item !== null) { $label= $item['title'][$lang]; } } } ?> <main id="content"> <div class="container"> <div class="row"> <!--breadcrumb--> <div class="col-12"> <div class="breadcrumb u-breadcrumb pt-3 px-0 mb-0 bg-transparent small"> <a class="breadcrumb-item" href="index.php?lang=<?= $lang ?>"><?= $L['home'] ?></a> » <?=$label; ?></div> </div> <!--end breadcrumb--> <div class="col-md-8"> <article class="post-397 page type-page status-publish hentry" id="post-397"> <header class="entry-header post-title"> <h1 class="entry-title h1 text-center display-4-md display-3-lg mt-2"><?= $label; ?></h1> <hr class="hr-after mx-auto"> </header><!-- .entry-header --> <div class="entry-content post-content post-page"> <?php if ($imagePath): ?> <div class="ratio_360-202 image-wrapper mb-4"> <a href="#" onclick="event.preventDefault();"> <img class="img-fluid lazy" src="assets/img/lazy-empty.png" data-src="<?= htmlspecialchars($imagePath) ?>" alt="<?= htmlspecialchars($label) ?>"> </a> </div> <?php endif; ?> <div class="mb-5"></div> <div class="inside-text"> <?php echo html_entity_decode($description); ?> </div> <hr class="my-4" /> <div class="gap-1"></div> </div><!-- .entry-content --> </article><!-- #post-## --> </div> <?php include('right_sidebar.php'); ?> </div> </div> </main>
✅ File saved successfully!