MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.117.232.215
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/leetcoaching.co.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/leetcoaching.co.in/home-testimonal.php
<div class="it-testimonial-5-area it-testimonial-style-2 p-relative pt-20 pb-20">
    <div class="it-testimonial-5-shape-5 d-none d-xl-block">
        <img src="assets/img/testimonial/shape-5-6.png" alt>
    </div>
    <div class="it-testimonial-5-shape-6 d-none d-xl-block">
        <img src="assets/img/testimonial/shape-5-7.png" alt>
    </div>
    <div class="it-testimonial-5-shape-7 d-none d-xl-block">
        <img src="assets/img/testimonial/shape-5-8.png" alt>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
                <div class="it-testimonial-5-title-box text-center mb-60">
                    <span class="it-section-subtitle-2">Testimonial</span>
                    <h4 class="it-section-title-5">Creating A Community Of <br>Life Long Learners.</h4>
                </div>
            </div>
            <div class="col-xl-12">
                <div class="it-testimonial-5-wrapper p-relative">
                    <div class="swiper-container it-testimonial-5-active">
                        <div class="swiper-wrapper">
                            <?php 
                                $sqltesti = "SELECT * FROM tbl_testimonial";
                                $runtesti = mysqli_query($db, $sqltesti);
                                if(mysqli_num_rows($runtesti) > 0) {
                                    while($datatesti = mysqli_fetch_assoc($runtesti)) {
                            ?>
                            <div class="swiper-slide">
                                <div class="it-testimonial-5-item p-relative z-index">
                                    <div class="it-testimonial-3-author-box d-flex align-items-center mb-20">
                                        <div class="it-testimonial-3-avata" style="flex-basis:50%">
                                            <img src="<?php echo $wspath ?>admin/images/property-image/<?php echo $datatesti['image']; ?>" alt>
                                        </div>
                                        <div class="it-testimonial-3-author-info" style="flex-basis:50%">
                                            <h5><?php echo $datatesti['name']; ?></h5>
                                        </div>
                                    </div>
                                    <div class="it-testimonial-5-content z-index-5">
                                        <div class="it-testimonial-5-text">
                                            <p>
                                                <?php echo substr($datatesti['tes_description'], 0, 250); ?>... <br><a href="testimonial.html" class="it-btn sm">Read More</a>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php } } ?>
                        </div>
                    </div>
                    <!-- Navigation buttons -->
                    <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
    document.addEventListener('DOMContentLoaded', function () {
        var swiper = new Swiper('.it-testimonial-5-active', {
            loop: true, // Enable looping
            slidesPerView: 3, // Default number of slides to show
            spaceBetween: 30, // Default space between slides in pixels
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
            breakpoints: {
                320: {
                    slidesPerView: 1, // Number of slides to show on mobile
                    spaceBetween: 10, // Space between slides on mobile
                },
                768: {
                    slidesPerView: 1, // Number of slides to show on tablets
                    spaceBetween: 20, // Space between slides on tablets
                },
                1024: {
                    slidesPerView: 3, // Number of slides to show on desktop
                    spaceBetween: 30, // Space between slides on desktop
                }
            }
        });
    });
</script>


<!-- Custom CSS for Navigation Buttons -->
<style>
    .swiper-button-next, .swiper-button-prev {
        color: #000; /* Change the color as needed */
        background-color: rgba(255, 255, 255, 0.5); /* Example background */
        border-radius: 50%; /* Example shape */
        width: 40px; /* Example size */
        height: 40px; /* Example size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
</style>

MMCT - 2023