| Server IP : 172.67.206.42 / Your IP : 104.23.243.50 Web Server : Apache System : Linux server.localhost.com 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64 User : pahana ( 1029) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/pahana/public_html/ |
Upload File : |
<?php include "php/header.php"; ?>
<div class="contents">
<div class="custom-container">
<div class="row">
<div class="col-lg-12">
<ol class="breadcrumb">
<li><a href="<?= $siteUrlMain; ?>">Home</a></li>
<li class="active">Magazines</li>
</ol>
</div>
<div class="col-lg-12 conentsection">
<div class="sections">
<h2 class="heading">Magazines</h2>
<div class="row d-flex flex-wrap">
<?php
$page = isset($_GET["page"]) ? (int)$_GET["page"] : 1;
$setLimit = 999;
$pageLimit = ($page * $setLimit) - $setLimit;
$sql = "SELECT id, mpImg, cateName, issueDate, pdfFile, bookViewURL FROM product_mapping_cate ORDER BY issueDate DESC LIMIT $pageLimit, $setLimit";
$pgSql = "SELECT id FROM product_mapping_cate ORDER BY issueDate DESC";
$query = mysqli_query($conn, $sql);
$numRow = mysqli_num_rows($query);
if ($numRow > 0) {
$counter = 0;
while ($rows = mysqli_fetch_array($query)) {
echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 mb-4">'
. '<div class="blogposttwo">'
. '<figure>'
. '<a target="_blank" href="' . $rows["bookViewURL"] . '">'
. '<img src="' . $siteUrlMain . 'img/' . (!empty($rows['mpImg']) ? $rows['mpImg'] : 'noImg.jpg') . '" class="img-responsive hovereffect" alt="' . stringTxtLimit($rows['cateName'], 33) . '" />'
. '</a>'
. '</figure>'
. '<div class="text text-center">'
. '<h4 class="text-center" style="margin:0px;"><a target="_blank" href="' . $rows["bookViewURL"] . '">' . stringTxtLimit($rows['cateName'], 33) . '</a></h4>'
. '<a target="_blank" href="' . $rows["bookViewURL"] . '" class="btn btn-primary btn-xs backcolor text-center">Read More</a>'
. '<a download href="' . $siteUrlMain . 'img/' . (!empty($rows['pdfFile']) ? $rows['pdfFile'] : 'noImg.jpg') . '" class="btn btn-success btn-xs text-center">Download <i class="fa fa-download"></i></a>'
. '</div>'
. '</div>'
. '</div>';
$counter++;
// Add clearfix after every 4 items
if ($counter % 4 == 0) {
echo '<div class="clearfix"></div>';
}
}
echo '<div class="clearfix"></div>'
. tablePaging($pgSql, $setLimit, $page);
} else {
echo '<div class="col-12 text-center">'
. '<div class="blogposttwo">'
. '<div class="text">'
. '<div class="cateDesc">No data found.</div>'
. '</div>'
. '</div>'
. '</div>';
}
?>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include "php/footer.php"; ?>