HOME


Mini Shell 1.0
DIR: /tmp/
Upload File :
Current File : //tmp/phpMYTYCp
home/islapiiu/sites/magnoliya/designs.php000064400000027265150766364030014615 0ustar00<!DOCTYPE html>

<?php
include './class/include.php';
$PRODUCT_CATEGORIES = new ProductCategories(NULL);
$PRODUCT = new Product(NULL);

if (isset($_GET["cat"])) {
    $products = $PRODUCT->getProductsByCategory($_GET["cat"]);
} else {
    $products = $PRODUCT->all();
}
?>

<html lang="en">

    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" type="image/x-icon" href="assets/magnoliya logo.png"/>
        <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&amp;display=swap"
              rel="stylesheet">
        <link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&amp;display=swap" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/animate.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/chosen.min.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/pe-icon-7-stroke.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/jquery.scrollbar.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/lightbox.min.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/magnific-popup.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/slick.min.css"/>
        <link rel="stylesheet" type="text/css" href="assets/fonts/flaticon.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/megamenu.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/dreaming-attribute.css"/>
        <link rel="stylesheet" type="text/css" href="assets/css/style.css"/>
        <title>Magnoliya | Designs</title>
    </head>
    <body>

        <!-- Start Header -->
        <?php include './header.php'; ?>
        <!-- End Header -->

        <div class="banner-wrapper has_background">
            <img src="assets/images/banner-for-all2.jpg"
                 class="img-responsive banner-img attachment-1920x447 size-1920x447" alt="img">
            <div class="banner-wrapper-inner">

                <div class="container lynessa-categories style-02 mt-137">
                    <div class="categories-list-owl owl-slick equal-container better-height"
                         data-slick="{&quot;arrows&quot;:true,&quot;slidesMargin&quot;:60,&quot;dots&quot;:false,&quot;infinite&quot;:false,&quot;speed&quot;:800,&quot;slidesToShow&quot;:4,&quot;rows&quot;:1}"
                         data-responsive="[{&quot;breakpoint&quot;:480,&quot;settings&quot;:{&quot;slidesToShow&quot;:2,&quot;slidesMargin&quot;:&quot;10&quot;}},{&quot;breakpoint&quot;:768,&quot;settings&quot;:{&quot;slidesToShow&quot;:3,&quot;slidesMargin&quot;:&quot;20&quot;}},{&quot;breakpoint&quot;:992,&quot;settings&quot;:{&quot;slidesToShow&quot;:4,&quot;slidesMargin&quot;:&quot;30&quot;}},{&quot;breakpoint&quot;:1200,&quot;settings&quot;:{&quot;slidesToShow&quot;:4,&quot;slidesMargin&quot;:&quot;40&quot;}},{&quot;breakpoint&quot;:1500,&quot;settings&quot;:{&quot;slidesToShow&quot;:4,&quot;slidesMargin&quot;:&quot;50&quot;}}]">
                             <?php
                             foreach ($PRODUCT_CATEGORIES->all() as $key => $product_categoris) {
                                 ?>
                            <div class="categories-item rows-space-0 post-740 page type-page status-publish hentry">
                                <div class="categories-inner">
                                    <figure class="categories-thumb">
                                        <a href="designs.php?cat=<?php echo $product_categoris['id']; ?>" tabindex="-1">
                                            <img src="upload/product-categories/icon/<?php echo $product_categoris['icon']; ?>"
                                                 class="img-responsive attachment-370x370 size-370x370" alt="img"> </a>
                                    </figure>
                                    <h3 class="title">
                                        <a href="designs.php?cat=<?php echo $product_categoris['id']; ?>" tabindex="-1">
                                            <?php echo substr($product_categoris['name'], 0, 20) . ''; ?> </a>
                                    </h3>
                                </div>
                            </div>

                            <?php
                        }
                        ?>
                    </div>

                </div>
            </div>
        </div>
        <h1 class="page-title">Products</h1>
        <div class="main-container shop-page no-sidebar">
            <div class="container">
                <div class="row">
                    <div class="main-content col-md-12">

                        <div class=" auto-clear lynessa-products">
                            <ul class="row products columns-3">
                                <?php
                                foreach ($products as $product) {
                                    $sub_r_products = Product::getSubProductsByParent($product['id']);
                                    if (count($sub_r_products) > 0) {
                                        $min_price = Product::getMinimumPrice($product['id']);
                                        $discount = ($min_price['price'] * $min_price['discount']) / 100;
                                        $price = $min_price['price'] - $discount;
                                        $old_price = $min_price['price'];
                                    } else {
                                        $discount = ($product['price'] * $product['discount']) / 100;
                                        $price = $product['price'] - $discount;
                                        $old_price = $product['price'];
                                    }
                                    ?>
                                    <li class="product-item wow fadeInUp product-item rows-space-30 col-bg-3 col-xl-3 col-lg-4 col-md-6 col-sm-6 col-ts-6 style-01 post-24 product type-product status-publish has-post-thumbnail product_cat-chair product_cat-table product_cat-new-arrivals product_tag-light product_tag-hat product_tag-sock first instock featured shipping-taxable purchasable product-type-variable has-default-attributes"
                                        data-wow-duration="1s" data-wow-delay="0ms" data-wow="fadeInUp">
                                        <div class="product-inner tooltip-left">
                                            <div class="product-thumb">
                                                <a class="thumb-link" href="view-product.php?id=<?php echo $product['id']; ?>">
                                                    <img class="img-responsive" src="upload/product-categories/sub-category/product/photos/<?php echo $product['image_name']; ?>" alt="MINI SKIRT" width="600" height="778">
                                                </a>
                                                <div class="flash">
                                                    <span class="onnew"><span class="text">New</span></span></div>

                                                <a href="#" class="button yith-wcqv-button" data-product_id="24">Quick View</a>
                                                <div class="group-button">

                                                    <a href="view-product.php?id=<?php echo $product['id']; ?>" class="button yith-wcqv-button">Quick View</a>

                                                </div>
                                            </div>
                                            <div class="product-info equal-elem">
                                                <h3 class="product-name product_title">
                                                    <a href="view-product.php?id=<?php echo $product['id']; ?>">
                                                        <?php
                                                        if (strlen($product['name']) > 30) {
                                                            echo substr($product['name'], 0, 28) . '...';
                                                        } else {
                                                            echo $product['name'];
                                                        }
                                                        ?>
                                                    </a>
                                                </h3>
                                                <!--<div class="rating-wapper nostar">
                                                    <div class="star-rating"><span style="width:0%">Rated <strong
                                                            class="rating">0</strong> out of 5</span></div>
                                                    <span class="review">(0)</span>
                                                </div>-->
                                                <span class="price">
                                                    <?php
                                                    if ($discount == 0) {
                                                        ?>
                                                        <span class="price"> Rs. <?php echo number_format($price, 2); ?></span>
                                                        <?php
                                                    } else {
                                                        ?>
                                                        <span class="price"> Rs. <?php echo number_format($price, 2); ?></span> <del><span class="price-before-discount">Rs. <?php echo number_format($old_price, 2); ?></span> </del>
                                                        <?php
                                                    }
                                                    ?>
                                                </span>

                                            </div>


                                        </div>
                                    </li>

                                    <?php
                                }
                                ?> 
                            </ul>
                        </div>


                    </div>

                </div>
            </div>
        </div>

        <!-- Start Header -->
        <?php include './footer.php'; ?>
        <!-- End Header -->



        <a href="#" class="backtotop active">
            <i class="fa fa-angle-up"></i>
        </a>
        <script src="assets/js/jquery-1.12.4.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
        <script src="assets/js/chosen.min.js"></script>
        <script src="assets/js/countdown.min.js"></script>
        <script src="assets/js/jquery.scrollbar.min.js"></script>
        <script src="assets/js/lightbox.min.js"></script>
        <script src="assets/js/magnific-popup.min.js"></script>
        <script src="assets/js/slick.js"></script>
        <script src="assets/js/jquery.zoom.min.js"></script>
        <script src="assets/js/threesixty.min.js"></script>
        <script src="assets/js/jquery-ui.min.js"></script>
        <script src="assets/js/mobilemenu.js"></script>
        <script src="assets/js/functions.js"></script>
        <script src="js/add-to-cart.js"></script>
    </body>

</html>