File manager - Edit - /home/familylifersmpc/htdocs/www.familylifersmpc.com/index.php.bak.20260718164714
Back
<?php require 'includes/cone.php'; $conn = new mysqli($host, $user, $pass, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // Pagination settings $postsPerPage = 6; $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $start = ($page - 1) * $postsPerPage; // Count total posts for pagination $totalResult = $conn->query("SELECT COUNT(*) AS total FROM postingtbl"); $totalPosts = $totalResult->fetch_assoc()['total']; $totalPages = ceil($totalPosts / $postsPerPage); // Fetch posts with limit $result = $conn->query("SELECT * FROM postingtbl ORDER BY ID DESC LIMIT $start, $postsPerPage"); $result1 = $conn->query("SELECT * FROM announcementtbl ORDER BY ID DESC"); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="author" content="FLMPC"> <link rel="shortcut icon" href="favicon.png"> <meta name="description" content="" /> <meta name="keywords" content="bootstrap, bootstrap4" /> <!-- Bootstrap CSS --> <link href="web-css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/css/lightbox.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet"> <link href="web-css/tiny-slider.css" rel="stylesheet"> <link href="web-css/style.css" rel="stylesheet"> <title>Family Lifers MPC</title> </head> <body> <!-- Start Header/Navigation --> <nav class="custom-navbar1 custom-navbar navbar navbar navbar-expand-md navbar-dark bg-dark" arial-label="Furni navigation bar"> <div class="container"> <a class="navbar-brand" href="index">FLMPC</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsFurni" aria-controls="navbarsFurni" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarsFurni"> <ul class="custom-navbar-nav navbar-nav ms-auto mb-2 mb-md-0"> <li class="nav-item active"> <a class="nav-link" href="index">Home</a> </li> <li><a class="nav-link" href="loansoffered">Loans Offered</a></li> <li><a class="nav-link" href="savingsandtimedeposit">Savings & Time Deposit</a></li> <li><a class="nav-link" href="services">Programs & Services</a></li> <li><a class="nav-link" href="#aboutus">About us</a></li> </ul> <ul class="custom-navbar-cta navbar-nav mb-2 mb-md-0 ms-5"> <li><a class="nav-link" href="login"><img src="web-images/user.svg"><strong> My Coop Login</strong></a></li> </ul> </div> </div> </nav> <!-- End Header/Navigation --> <video autoplay muted loop playsinline id="bgVideo"> <source src="bgvid1.mp4" type="video/mp4"> </video> <!-- Start Hero Section --> <div class="hero bgmain"> <div class="container"> <div class="row justify-content-between"> <div class="col-lg-5"> <div class="intro-excerpt"> <h1>My Coop <span class="mb-4"> Login</span></h1> <p class="mb-4" style="color:black;font-size:18px;"><strong>View your current Savings and Loans Online.</br> Login to your account by clicking the button below.</strong></p> <p><a href="login" class="btn btn-secondary me-2">Login</a> <a href="index.php#howtoregister" class="btn btn-white-outline">How to Register?</a></p> </div> </div> <div class="col-lg-7"> <div class="hero-img-wrap"> <img src="web-images/couch.png" class="img-fluid"> </div> </div> </div> </div> </div> <!-- End Hero Section --> <!-- Start Product Section --> <div class="product-section"> <div class="container"> <div class="row"> <!-- Start Column 1 --> <div class="col-md-12 col-lg-4 mb-5 mb-lg-0"> <h2 class="mb-4 section-title">Check out the loan services we offer!</h2> <p class="mb-4">Explore our loan services designed to make borrowing simple, flexible, and reliable. Whether it’s for personal needs or business growth, we’re here to help you move forward with confidence.</p> <p><a href="shop.html" class="btn">Explore</a></p> </div> <!-- End Column 1 --> <!-- Start Column 2 --> <div class="col-12 col-md-4 col-lg-2 mb-5 mb-md-0"> <a class="product-item" href="loansoffered.php#regularloan"> <img src="web-images/product-1.png" class="img-fluid product-thumbnail"> <strong class="product-price">Regular Loan</strong> <span class="icon-cross"> <img src="web-images/cross.svg" class="img-fluid"> </span> </a> </div> <!-- End Column 2 --> <!-- Start Column 3 --> <div class="col-12 col-md-4 col-lg-2 mb-5 mb-md-0"> <a class="product-item" href="loansoffered.php#specialloan"> <img src="web-images/product-2.png" class="img-fluid product-thumbnail"> <strong class="product-price">Special Loan</strong> <span class="icon-cross"> <img src="web-images/cross.svg" class="img-fluid"> </span> </a> </div> <!-- End Column 3 --> <!-- Start Column 4 --> <div class="col-12 col-md-4 col-lg-2 mb-5 mb-md-0"> <a class="product-item" href="loansoffered.php#pettycashloan"> <img src="web-images/product-3.png" class="img-fluid product-thumbnail"> <strong class="product-price">Petty Cash Loan</strong> <span class="icon-cross"> <img src="web-images/cross.svg" class="img-fluid"> </span> </a> </div> <!-- End Column 4 --> <!-- Start Column 5 --> <div class="col-12 col-md-4 col-lg-2 mb-5 mb-md-0"> <a class="product-item" href="loansoffered.php#riceloan"> <img src="web-images/product-4.png" class="img-fluid product-thumbnail"> <strong class="product-price">Rice Loan</strong> <span class="icon-cross"> <img src="web-images/cross.svg" class="img-fluid"> </span> </a> </div> <!-- End Column 5 --> </div> </div> </div> <!-- End Product Section --> <div class="container"> <?php if ($result1->num_rows > 0): ?> <!-- Check if there are announcements --> <h1 class="my-4"> <strong> Announcements</strong> </h1> <?php while ($row = $result1->fetch_assoc()): ?> <div class="announcement-card"> <div class="row-align <?php echo $row['ImagePosition'] == 'right' ? 'flex-row-reverse' : ''; ?>"> <?php if (!empty($row['ImageName'])): ?> <img src="UPLOADS_ANNOUNCEMENTS/<?php echo $row['ImageName']; ?>" class="announcement-img"> <?php endif; ?> <div class="announcement-content" style="color:black"> <h4><strong><?php echo htmlspecialchars($row['Title']); ?></strong></h4> <p style="font-size:18px;"><?php echo nl2br(htmlspecialchars($row['Description'])); ?></p> </div> </div> </div> <?php endwhile; ?> <?php endif; ?> <!-- End if check --> </div> <!-- Start Testimonial Slider --> <div class="testimonial-section1" id="howtoregister"> <div class="container"> <div class="row"> <div class="col-lg-7 mx-auto text-center"> <h3 class="font-weight-bold"><strong>My Coop Account</strong></h3> <h1 class="section-title">How to Register?</h1> </div> </div> <div class="row justify-content-center"> <div class="col-lg-12"> <div class="testimonial-slider-wrap text-center"> <div class="item"> <div class="row justify-content-center"> <div class="col-lg-8 mx-auto"> <div class="testimonial-block text-center"> <blockquote class="mb-5"> <p>“Registration for My Coop Account is open to all members of our Cooperative! Simply visit our office and ask our team about the registration process—we’ll be happy to guide you through it.”</p> </blockquote> <div class="author-info"> <div class="author-pic"> <img src="web-images/person-1.png" alt="flmpc manager" class="img-fluid"> </div> <h3 class="font-weight-bold"><strong>Allan Melchor Cepe</strong></h3> <span class="position d-block mb-3">Manager, Family Lifers MPC</span> </div> </div> </div> </div> </div> <!-- END item --> </div> </div> </div> </div> </div> <!-- End Testimonial Slider --> <!-- Start Testimonial Slider --> <div class="testimonial-section" id="coopgallery"> <div class="container" style="max-width: 1600px; margin-top: 20px; width: 100%;"> <h1 class="text-center mb-4" style=" font-weight: bold;color:black;">Our Coop's Gallery</h1> <br> <?php if ($result->num_rows > 0): ?> <div class="post-grid"> <?php while ($row = $result->fetch_assoc()): ?> <div class="post-card"> <?php $folder = "UPLOADS/" . $row['FolderName']; if (is_dir($folder)) { $files = array_values(array_diff(scandir($folder), ['.', '..'])); $totalImages = count($files); if ($totalImages > 0) { $displayCount = min(6, $totalImages); $galleryClass = "gallery-" . $displayCount; echo '<div class = "gallery-wrapper ' . $galleryClass . '">'; foreach ($files as $index => $file) { $filePath = $folder . "/" . $file; if ($index < 5 || ($index == 5 && $totalImages <= 6)) { echo "<a href = '$filePath' data-lightbox='post{$row['ID']}' data-title='" . htmlspecialchars($row['Title']) . "'> <img src = '$filePath' alt='Post Image'> </a>"; } elseif ($index == 5 && $totalImages > 6) { $moreCount = $totalImages - 6; echo "<a href = '$filePath' data-lightbox='post{$row['ID']}' data-title='" . htmlspecialchars($row['Title']) . "'> <div class = 'more-overlay'> <img src = '$filePath' alt='Post Image'> <span>+{$moreCount}</span> </div> </a>"; } else { echo "<a href = '$filePath' data-lightbox='post{$row['ID']}' data-title='" . htmlspecialchars($row['Title']) . "' style='display:none;'></a>"; } } echo '</div>'; } } ?> <div class="content"> <div class="post-meta"> Posted on <?php echo date("F j, Y"); ?> </div> <h4 style="color:black"><?php echo htmlspecialchars($row['Title']); ?></h4> <p><?php echo nl2br(htmlspecialchars($row['Description'])); ?></p> </div> </div> <?php endwhile; ?> </div> <?php else: ?> <!-- Optional: Display a message if there are no posts --> <p class="text-center" style="color: gray;">“No posts available in the gallery.“</p> <?php endif; ?> </div> <!-- Pagination Links --> <div class="pagination"> <?php for ($i = 1; $i <= $totalPages; $i++): ?> <a href="?page=<?php echo $i; ?>" class="<?php echo ($i == $page) ? 'active' : ''; ?>"> <?php echo $i; ?> </a> <?php endfor; ?> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/js/lightbox-plus-jquery.min.js"></script> </div> <!-- End Testimonial Slider --> <!-- Start We Help Section --> <div class="we-help-section" id="aboutus"> <div class="container"> <div class="row justify-content-between"> <div class="col-lg-7 mb-5 mb-lg-0"> <div class="imgs-grid"> <div class="grid grid-1"><img src="web-images/img-grid-1.jpg" alt="Untree.co"></div> <div class="grid grid-2"><img src="web-images/img-grid-2.jpg" alt="Untree.co"></div> <div class="grid grid-3"><img src="web-images/img-grid-3.jpg" alt="Untree.co"></div> </div> </div> <div class="col-lg-5 ps-lg-5"> <h4 class="section-title mb-4">FLMPC</h4> <h2 class="section-title mb-4"><strong>Family Lifers Multi-Purpose Cooperative</strong></h2> <p>The leadership of Family Lifers MPC originated from a simple story, just like how ordinary people usually start their journey.</p> <p>In 1991, while we were conducting monthly reunions at Family Life Apostolates, we noticed that sometimes others were absent because they were too busy looking for something they could eat and use for their daily needs. We remember that if we just ignore each of our situations, we won't be able to hide, but if we combine our small capital, talent, and 100% service, we can move forward and help the needs of other members.</p> <p>We formed FLMPC with only 19 members, each contributing a total capital of P2,700.00. We registered with the CDA on December 26, 1991.</p> <p>We chose "Family Lifers Coop" as our name because, aside from the fact that the incorporators are members of Family Life Apostolates, we also believe that all people come from one family. We aim to protect and assist in improving the quality of life for everyone.</p> <p>Establishing and running a cooperative is not just a simple task, as it requires the dedication of time from its officials. Sacrifice is necessary, and challenges are often abundant. However, everything becomes manageable because cooperation within FLMPC is genuinely strong.</p> </div> <div class="col-lg-12 ps-lg-12"> <p>If there are ownership meetings, annual assemblies, and Family Day events, everyone attends because the raffle prizes are substantial. Snacks are free, too. That is why we are all happy in Family Lifers MPC.</p> <p>Our desire is to ensure that FLMPC continues to operate for more than 50 years. We have also envisioned it as a harmonious, prosperous community that fosters quality of life and a strong cooperative supporting the advancement of economic, social, and spiritual aspects of people's lives.</p> <blockquote class="text-center"> <h2>“We Care, We Share”</h2> </blockquote> </div> </div> </div> </div> <!-- End We Help Section --> <!-- Start Popular Product --> <div class="popular-product"> <div class="container"> <div class="row"> <div class="col-12 col-md-6 col-lg-4 mb-4 mb-lg-0"> <div class="product-item-sm d-flex"> <div class="thumbnail"> <img src="web-images/vision.png" alt="Image" class="img-fluid"> </div> <div class="pt-3"> <h3>Our Vision</h3> <h6>Family Lifers MPC.... </br> Bigger, Better and </br> more accessible Coop</h6> </div> </div> </div> <div class="col-12 col-md-6 col-lg-4 mb-4 mb-lg-0"> <div class="product-item-sm d-flex"> <div class="thumbnail"> <img src="web-images/mission.png" alt="Image" class="img-fluid"> </div> <div class="pt-3"> <h3>Our Mission</h3> <h6>To provide members with holistic programs and sustainable development services</h6> </div> </div> </div> <div class="col-12 col-md-6 col-lg-4 mb-4 mb-lg-0"> <div class="product-item-sm d-flex"> <div class="thumbnail"> <img src="web-images/goal.png" alt="Image" class="img-fluid"> </div> <div class="pt-3"> <h3>Our Goals</h3> <h6>Increased Capital, Deposit </br> and Loan portfolios; </br>Diversified Products and Services</h6> </div> </div> </div> </div> </div> </div> </br></br> <!-- End Popular Product --> <!-- Start Testimonial Slider --> <div class="testimonial-section"> <div class="container"> <div class="row"> <div class="col-lg-7 mx-auto text-center"> <h2 class="section-title"><strong>Rights & Duties</strong></h2> </div> </div> <div class="row justify-content-center"> <div class="col-lg-12"> <div class="testimonial-slider-wrap text-center"> <div id="testimonial-nav"> <span class="prev" data-controls="prev"><span class="fa fa-chevron-left"></span></span> <span class="next" data-controls="next"><span class="fa fa-chevron-right"></span></span> </div> <div class="testimonial-slider"> <div class="item"> <div class="row justify-content-center"> <div class="col-lg-8 mx-auto"> <div class="testimonial-block text-center"> <div class="author-info"> <div class="author-pic"> <img src="web-images/rights.png" alt="rights" class="img-fluid"> </div> <h2 class="font-weight-bold"><strong>Rights of Membership</strong></h2> </br> </div> <blockquote style="font-size:20px;color:Black"> <p>“To vote.”</p> <p>“To be vote upon.”</p> <p>“To receive information and reports.”</p> <p>“To recommend policies.”</p> <p>“To receive interest in his/her capitalaccording to established policies.”</p> </blockquote> </div> </div> </div> </div> <!-- END item --> <div class="item"> <div class="row justify-content-center"> <div class="col-lg-8 mx-auto"> <div class="testimonial-block text-center"> <div class="author-info"> <div class="author-pic"> <img src="web-images/duties.png" alt="duties" class="img-fluid"> </div> <h2 class="font-weight-bold"><strong>Duties of Membership</strong></h2> </br> </div> <blockquote style="font-size:20px;color:Black"> <p>“To provide capital.”</p> <p>“To serve when elected.”</p> <p>“To attend to his/her financial obligations.”</p> <p>“To participate in decision making through the General Assembly.”</p> <p>“To attend meeting.”</p> <p>“To participate in coop activities.”</p> <p>“To promote the organization.”</p> </blockquote> </div> </div> </div> </div> <!-- END item --> </div> </div> </div> </div> </div> </div> <!-- End Testimonial Slider --> </br></br></br> <!-- Start Footer Section --> <footer class="footer-section bgmain"> <div class="container relative"> <div class="sofa-img"> <img src="web-images/sofa.png" alt="Image" class="img-fluid"> </div> <div class="row g-5 mb-5"> <div class="col-lg-4"> <div class="mb-4 footer-logo-wrap"><a href="#" class="footer-logo"><strong>FLMPC</strong></a></div> <p class="mb-4">"We Care, We Share"</br>Family Lifers Multi-Purpose Cooperative<br>Since 1991</p> <ul class="list-unstyled custom-social"> <li><a href="https://www.facebook.com/familylifersmpc"><span class="fa fa-brands fa-facebook-f"></span></a></li> </ul> </div> <div class="col-lg-8"> <div class="row links-wrap"> <div class="col-6 col-sm-6 col-md-3"> <ul class="list-unstyled"> <li><a href="loansoffered">Loans Offered</a></li> <li><a href="savingsandtimedeposit">Savings & Time Deposit</a></li> <li><a href="services">Programs & Services</a></li> </ul> </div> <div class="col-6 col-sm-6 col-md-3"> <ul class="list-unstyled"> <li><a href="mailto:coop.familylifers@gmail.com">Email Us</a></li> <li><a href="https://www.facebook.com/familylifersmpc" target="_blank">Facebook Page</a> </li> <li><a href="https://m.me/familylifersmpc" target="_blank">Live chat</a></li> </ul> </div> <div class="col-6 col-sm-6 col-md-3"> <ul class="list-unstyled"> <li><a href="#">My Coop Account</a></li> <li><a href="https://maps.app.goo.gl/RehaSX4KugbtmKudA">Find Us</a></li> <li><a href="#aboutus">About Us</a></li> </ul> </div> </div> </div> </div> <div class="border-top copyright"> <div class="row pt-4"> <div class="col-lg-6"> <p class="mb-2 text-center text-lg-start">Copyright © <script>document.write(new Date().getFullYear());</script>. All Rights Reserved. </p> </div> <div class="col-lg-6 text-center text-lg-end"> <ul class="list-unstyled d-inline-flex ms-auto"> <li class="me-4"><a href="terms.html">Terms & Conditions</a></li> <li><a href="policy.html">Privacy Policy</a></li> </ul> </div> </div> </div> </div> </footer> <!-- End Footer Section --> <script src="web-js/bootstrap.bundle.min.js"></script> <script src="web-js/tiny-slider.js"></script> <script src="web-js/custom.js"></script> </body> </html> <?php $conn->close(); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.2 |
proxy
|
phpinfo
|
Settings