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
/
cce
/
Views
/
layouts
/home/ecedu/public_html/cce/Views/layouts
Name
Type
Size
Actions
📁
..
Folder
-
Delete
Rename
📄
aboutus-layout.php
File
1676
Delete
Rename
Edit
Download
📄
article-layout.php
File
21975
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
59102
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:
list-pdf-layout.php
Size: 4,459 bytes
Lines: 115
Type: .php
💾 Save
Cancel
✕
<!-- بداية الجزء الخاص بالعرض --> <main id="content"> <div class="container"> <div class="row"> <!--breadcrumb--> <div class="col-12"> <div class="breadcrumb u-breadcrumb pt-0 px-0 mb-0 bg-transparent small" style="margin-top:-5px;"> <a class="breadcrumb-item" href="index.php?lang=<?= $lang ?>"><?= $L['home'] ?></a> » <?= $L['archive']; ?> </div> </div> <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"><?= $L['archive']; ?></h1> <hr class="hr-after mx-auto"> </header> <div class="entry-content post-content post-page inside-text"> <div class="gap-2"></div> <?php $folder = 'service/images/pdf'; $files = glob("$folder/*.pdf"); rsort($files); $perPage = 16; $total = count($files); $totalPages = ceil($total / $perPage); $page = isset($_GET['page']) ? (int)$_GET['page'] : 1; $page = max(1, min($totalPages, $page)); $start = ($page - 1) * $perPage; $filesPage = array_slice($files, $start, $perPage); echo '<div class="row">'; foreach ($filesPage as $file) { $filename = basename($file, '.pdf'); $pdf_url = "$folder/$filename.pdf"; $img_url = "$folder/$filename.jpg"; echo <<<HTML <div class="col-md-4 col-sm-5 col-6 mb-4"> <div class="card h-100 shadow-sm position-relative overflow-hidden"> <a href="$pdf_url" target="_blank" class="d-block"> <div class="card-img-container"> HTML; if (file_exists($img_url)) { echo "<img src='$img_url' loading='lazy' class='w-100 h-100' style='object-fit:cover;' alt='العدد $filename'>"; } else { echo "<canvas class='pdf-canvas w-100 h-100' data-pdf='$pdf_url' style='background:#f4f4f4;'></canvas>"; } echo <<<HTML <div class="overlay-title">العدد $filename</div> </div> </a> </div> </div> HTML; } echo '</div>'; echo '<nav aria-label="Page navigation"><ul class="pagination justify-content-center">'; for ($i = 1; $i <= $totalPages; $i++) { $active = ($i == $page) ? 'active' : ''; echo "<li class='page-item $active'><a class='page-link' href='?page=$i'>$i</a></li>"; } echo '</ul></nav>'; ?> <hr class="my-4" /> <div class="gap-1"></div> </div> </article> </div> <?php include('right_sidebar.php'); ?> </div> </div> </main> <!-- تحسين تصميم العنوان فوق الصورة وتحسين الاستجابة --> <style> .overlay-title { position: absolute; bottom: 0; width: 100%; background: rgba(0, 0, 0, 0.4); color: #fff; padding: 5px 6px; font-size: 0.85rem; font-weight: bold; text-align: center; text-shadow: 0 0 3px #000; } /* الحاوية الخاصة بالصورة أو الـ canvas */ .card-img-container { position: relative; overflow: hidden; aspect-ratio: 3 / 4; /* ارتفاع نسبي جيد للموبايل */ } /* لأجهزة التابلت والديسكتوب */ @media (min-width: 768px) { .card-img-container { height: 340px; aspect-ratio: auto; } } </style>
✅ File saved successfully!