HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/forbes/contact-form/img/
Upload File :
Current File : /home/islapiiu/sites/forbes/contact-form/img/product.php.tar
home/islapiiu/sites/forbes/product.php000064400000011133150760145070014117 0ustar00<?php
include './class/include.php';
if (isset($_GET['id'])) {
    $id = $_GET['id'];

    $PRODUCT = new Product(NUll);
    $PRODUCT_TYPES = new ProductType($id);
}
?>
<!DOCTYPE html>

<html lang="en">


    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="keywords" content="jewellery shops in sri lanka, jewellery shops in galle, wedding jewellery, engagement rings, jewellery design, gem products in sri lanka, forbes gems and jewellery, best wedding jewellery in galle, blue sapphire, necklace, bangles, ear studs, pendant, diamond rings">
        <meta name="description" content="Forbes Gems & Jewellery is committed to providing our customers the best value, quality, service and selection of Sapphires, Diamonds, Emeralds, Pearls and other gemstone jewellery in Sri Lanka.">

        <title>Forbes Gems & Jewellers - Product </title>

        <!--Favicons-->
        <link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
        <link rel="manifest" href="http://www.veepixel.com/tf/html/d-shine/favicon/manifest.json">
        <meta name="msapplication-TileColor" content="#ffffff">

        <meta name="theme-color" content="#ffffff">

        <!--Bootstrap and Other Vendors-->
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <link rel="stylesheet" href="css/bootstrap-theme.min.css">
        <link rel="stylesheet" href="css/fontawesome-all.min.css">
        <link rel="stylesheet" href="../../../../www.veepixel.com/tf/html/d-shine/vendors/owl.carousel/css/owl.carousel.html">    


        <link rel="stylesheet" type="text/css" href="vendors/flexslider/flexslider.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="vendors/bootstrap-rating/bootstrap-rating.css" media="screen" />

        <!--Fonts-->
        <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css?family=Questrial" rel="stylesheet">  

        <!--Mechanic Styles-->
        <link rel="stylesheet" href="css/style.css">
        <link rel="stylesheet" href="css/responsive.css">
        <link href="css/custom.css" rel="stylesheet" type="text/css"/>

    </head>
    <body>
        <a href="#" id="back-to-top" title="Back to top">&uarr;</a>
        <?php include './header.php'; ?><!--Header-->

        <section id="breadcrumbRow" class="row bnner">
            <h2 class="banner-text"><?php echo $PRODUCT_TYPES->name ?></h2>
            <div class="row pageTitle m0">
                <div class="container">
                    <h4 class="fleft"></h4>
                    <ul class="breadcrumb fright">
                        <li><a href="index.php">home</a></li>
                        <li class="active">product</li>
                    </ul>
                </div>
            </div>
        </section>
        <section class="row contentRowPad greybg">
            <div class="container">
                <div class="row">
                    <?php
                    foreach ($PRODUCT->getProductsById($id) as $product) {
                        ?>
                        <div class="col-sm-3 product">
                            <div class="productInner row m0">
                                <div class="row m0 imgHov">
                                    <img src="upload/product-type/product/<?php echo $product['image_name'] ?>" alt="">
                                </div>
                                <div class="row m0 proName"><a href="#"><?php echo $product['name']; ?></a></div>
                            </div>
                        </div>
                        <?php
                    }
                    ?>
                </div>
            </div>
        </section>

        <?php include './footer.php'; ?>

        <!--jQuery-->
        <script src="js/jquery-2.1.3.min.js"></script>
        <!--Google Maps-->
        <script src="https://maps.googleapis.com/maps/api/js"></script>
        <!--Bootstrap JS-->
        <script src="js/bootstrap.min.js"></script>
        <!--Owl Carousel-->
        <script src="vendors/owl.carousel/js/owl.carousel.min.js"></script>
        <!--Isotope-->
        <script src="vendors/isotope/isotope-custom.js"></script>

        <!--FlexSlider-->
        <script src="vendors/flexslider/jquery.flexslider-min.js"></script>

        <!--D-shine JS-->
        <script src="js/d-shine.js"></script>
    </body>


</html>home/islapiiu/sites/faithlinkint/product.php000064400000016173150766204150015335 0ustar00<!DOCTYPE html>
<?php
include './class/include.php';

$id = '';
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
$PRODUCT_TYPES = new ProductType($id);
$PRODUCT = new Product($id);
?>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <title>Faithlink International (Pvt) Ltd - Product</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <meta name="keywords" content="construction company in sri lanka, bathroom fittings, swimming pool construction, swimming pool fittings, consultant service, imports and exports company in sri lanka, civil construction company in sri lanka, faithlink international pvt ltd, faithlink in maldives, trading company in sri lanka">
        <meta name="description" content="We are a Trading company, involved in Intending, Imports and exports of any item which complies with the standard import regulations, we also have diversified into construction and assist our customers on the whole process of getting the necessary products to the customer on a timely manner">
        <meta content="" name="author" />
        <!-- BEGIN GLOBAL MANDATORY STYLES -->
        <link href="plugins/normalize.css" rel="stylesheet" type="text/css">
        <link href="plugins/uikit-2.27.2/css/uikit.min.css" rel="stylesheet" type="text/css">
        <link href="plugins/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" type="text/css">
        <link href="plugins/slick-master/slick/slick.css" rel="stylesheet" type="text/css">
        <link href="plugins/flat-icon/flaticon.css" rel="stylesheet" type="text/css">
        <!-- END GLOBAL MANDATORY STYLES -->
        <!-- BEGIN PAGE COMPONENTS UIKIT -->
        <link href="plugins/uikit-2.27.2/css/components/sticky.min.css" rel="stylesheet" type="text/css">
        <link href="plugins/uikit-2.27.2/css/components/slider.min.css" rel="stylesheet" type="text/css">
        <!-- END PAGE COMPONENTS UIKIT -->
        <!-- BEGIN REVOLUTION SLIDER -->
        <link rel="stylesheet" href="plugins/revolution/css/settings.css">
        <link rel="stylesheet" href="plugins/revolution/css/layers.css">
        <link rel="stylesheet" href="plugins/revolution/css/navigation.css">
        <!-- END REVOLUTION SLIDER -->
        <!-- BEGIN TEMPLATE LAYOUT STYLES -->
        <link rel="stylesheet" href="css/style.css">
        <link rel="stylesheet" href="css/responsive.css">
        <!-- END TEMPLATE LAYOUT STYLES -->
        <link rel="shortcut icon" href="images/icon.png" />
    </head>
    <body>
        <!-- BEGIN HEADER -->
        <?php include './header.php'; ?>
        <!-- END HEADER -->
        <!-- BEGIN CONTAINER -->
        <!-- BEGIN SLIDER -->
        <section class="brick-banner">
            <div class="uk-container uk-container-center">
                <div class="title">
                    <h3><?php echo $PRODUCT_TYPES->name; ?></h3>
                    <ul>
                        <li><a href="index.php">Home</a></li>
                        <li class=""><a href="product.php">Product</a></li>

                    </ul>
                </div>
            </div>
        </section>
        <section class="meet-our-team set-padding">
            <div class="uk-container uk-container-center">
                <div class="brick-title-v3">
                </div>
                <div data-uk-slider="{autoplay: false, autoplayInterval: }">
                    <div class="uk-slider-container" style="margin-top: 50px;">
                        <ul class=" uk-grid uk-grid-match uk-grid-width-medium-1-4 uk-grid-width-small-1-2 uk-grid-width-1-1" style="margin-bottom: 50px;">
                            <?php
                            foreach ($PRODUCT->getProductsById($id) as $product) {
                                ?>
                                <li>   
                                    <div class="box product-mob" style="margin-top: 50px;">
                                        <div class="box-img">
                                            <a href="view-product.php?id=<?php echo $product["id"]; ?>"><img src="upload/product-type/product/<?php echo $product['image_name'] ?>" alt=""></a>
                                        </div>
                                        <div class="box-team-member brick-background-202222">
                                            <a href="view-product.php?id=<?php echo $product["id"]; ?>" class="brick-hover-child-color-yellow"><h3><?php echo $product['name']; ?></h3></a>
                                        </div>
                                    </div>
                                </li>
                                <?php
                            }
                            ?> 
                        </ul>
                    </div>
                </div>
            </div>
        </section>
        <!-- END SLIDER -->
        <!-- BEGIN FOOTER -->
        <?php include './footer.php'; ?>
        <!-- END FOOTER -->
        <div class="brick-backtotop brick-background-yellow" data-uk-smooth-scroll><span class="fa fa-arrow-up"></span></div>
        <!-- BEGIN JQUERY JS -->
        <script src="plugins/jquery/jquery-1.12.4.min.js"></script>
        <script src="plugins/uikit-2.27.2/js/uikit.min.js" type="text/javascript"></script>
        <script src="plugins/slick-master/slick/slick.min.js" type="text/javascript"></script>
        <script src="plugins/jquery-waypoints/2.0.3/waypoints.min.js" type="text/javascript"></script>
        <script src="plugins/jquery-count-to-number/jquery.counterup.min.js" type="text/javascript"></script>
        <!-- END JQUERY JS -->
        <!-- BEGIN COMPONENT UIKIT-->
        <script src="plugins/uikit-2.27.2/js/components/sticky.min.js" type="text/javascript"></script>
        <script src="plugins/uikit-2.27.2/js/components/slider.min.js" type="text/javascript"></script>
        <!-- END COMPONENT UIKIT-->
        <!-- BEGIN REVOLUTION SLIDER -->
        <script src="plugins/revolution/js/jquery.themepunch.tools.min.js"></script>
        <script src="plugins/revolution/js/jquery.themepunch.revolution.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.actions.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.carousel.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.kenburn.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.layeranimation.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.migration.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.navigation.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.parallax.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.slideanims.min.js"></script>
        <script src="plugins/revolution/js/extensions/revolution.extension.video.min.js"></script>
        <!-- END REVOLUTION SLIDER -->
        <!-- BEGIN MAIN JS -->
        <script src="js/main.js"></script>
        <!-- END MAIN JS  -->
    </body>


</html>
home/islapiiu/sites/srilekha/product.php000064400000011106150766237620014452 0ustar00<?php
include './class/include.php';
if (isset($_GET['id'])) {
    $id = $_GET['id'];

    $PRODUCT = new Product(NUll);
    $PRODUCT_TYPES = new ProductType($id);
}
?>
<!DOCTYPE html>

<html lang="en">


    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="keywords" content="jewellery shops in sri lanka, jewellery shops in galle, wedding jewellery, engagement rings, jewellery design, gem products in sri lanka, forbes gems and jewellery, best wedding jewellery in galle, blue sapphire, necklace, bangles, ear studs, pendant, diamond rings">
        <meta name="description" content="Forbes Gems & Jewellery is committed to providing our customers the best value, quality, service and selection of Sapphires, Diamonds, Emeralds, Pearls and other gemstone jewellery in Sri Lanka.">

        <title>Srilekha Jewellers - Product </title>

        <!--Favicons-->
        <link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
        <link rel="manifest" href="http://www.veepixel.com/tf/html/d-shine/favicon/manifest.json">
        <meta name="msapplication-TileColor" content="#ffffff">

        <meta name="theme-color" content="#ffffff">

        <!--Bootstrap and Other Vendors-->
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <link rel="stylesheet" href="css/bootstrap-theme.min.css">
        <link rel="stylesheet" href="css/fontawesome-all.min.css">
        <link rel="stylesheet" href="../../../../www.veepixel.com/tf/html/d-shine/vendors/owl.carousel/css/owl.carousel.html">    


        <link rel="stylesheet" type="text/css" href="vendors/flexslider/flexslider.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="vendors/bootstrap-rating/bootstrap-rating.css" media="screen" />

        <!--Fonts-->
        <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css?family=Questrial" rel="stylesheet">  

        <!--Mechanic Styles-->
        <link rel="stylesheet" href="css/style.css">
        <link rel="stylesheet" href="css/responsive.css">
        <link href="css/custom.css" rel="stylesheet" type="text/css"/>

    </head>
    <body>
        <a href="#" id="back-to-top" title="Back to top">&uarr;</a>
        <?php include './header.php'; ?><!--Header-->

        <section id="breadcrumbRow" class="row bnner">
            <h2 class="banner-text"><?php echo $PRODUCT_TYPES->name ?></h2>
            <div class="row pageTitle m0">
                <div class="container">
                    <h4 class="fleft"></h4>
                    <ul class="breadcrumb fright">
                        <li><a href="index.php">home</a></li>
                        <li class="active">product</li>
                    </ul>
                </div>
            </div>
        </section>
        <section class="row contentRowPad greybg">
            <div class="container">
                <div class="row">
                    <?php
                    foreach ($PRODUCT->getProductsById($id) as $product) {
                        ?>
                        <div class="col-sm-3 product">
                            <div class="productInner row m0">
                                <div class="row m0 imgHov">
                                    <img src="upload/product-type/product/<?php echo $product['image_name'] ?>" alt="">
                                </div>
                                <div class="row m0 proName"><?php echo $product['name']; ?></div>
                            </div>
                        </div>
                        <?php
                    }
                    ?>
                </div>
            </div>
        </section>

        <?php include './footer.php'; ?>

        <!--jQuery-->
        <script src="js/jquery-2.1.3.min.js"></script>
        <!--Google Maps-->
        <script src="https://maps.googleapis.com/maps/api/js"></script>
        <!--Bootstrap JS-->
        <script src="js/bootstrap.min.js"></script>
        <!--Owl Carousel-->
        <script src="vendors/owl.carousel/js/owl.carousel.min.js"></script>
        <!--Isotope-->
        <script src="vendors/isotope/isotope-custom.js"></script>

        <!--FlexSlider-->
        <script src="vendors/flexslider/jquery.flexslider-min.js"></script>

        <!--D-shine JS-->
        <script src="js/d-shine.js"></script>
    </body>


</html>home/islapiiu/sites/pramudi/product.php000064400000020145150766747510014320 0ustar00<?php
include './class/include.php';
if (!isset($_SESSION)) {
    session_start();
}

$product_category = '';
if (isset($_GET['id'])) {
    $product_category = $_GET['id'];
}
if ($product_category != '') {
    $PRODUCT_CATEGORY1 = new ProductCategory($product_category);
    $products = Product::getProductsByCategory($product_category);
} else {
    $products = Product::all();
}
?>
<!doctype html>
<html class="no-js" lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Products || Pramudi Gems & Jewellery</title>
    <meta name="robots" content="noindex, follow" />
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.png">

    <!-- CSS
            ============================================ -->
    <!-- google fonts -->
    <link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,900" rel="stylesheet">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="assets/css/vendor/bootstrap.min.css">
    <!-- Pe-icon-7-stroke CSS -->
    <link rel="stylesheet" href="assets/css/vendor/pe-icon-7-stroke.css">
    <!-- Font-awesome CSS -->
    <link rel="stylesheet" href="assets/css/vendor/font-awesome.min.css">
    <!-- Slick slider css -->
    <link rel="stylesheet" href="assets/css/plugins/slick.min.css">
    <!-- animate css -->
    <link rel="stylesheet" href="assets/css/plugins/animate.css">
    <!-- Nice Select css -->
    <link rel="stylesheet" href="assets/css/plugins/nice-select.css">
    <!-- jquery UI css -->
    <link rel="stylesheet" href="assets/css/plugins/jqueryui.min.css">
    <!-- main style css -->
    <link rel="stylesheet" href="assets/css/style.css">
    <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" />
</head>

<body class="product-list-page">
    <?php include './header.php'; ?>

    <main>
        <div class="breadcrumb-area">
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="breadcrumb-wrap">
                            <nav aria-label="breadcrumb">
                                <ul class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="./" class="mobile-f-16"><i class="fa fa-home"></i> Home</a></li>
                                    <li class="breadcrumb-item active banner-font"><a href="product-categories.php" class="mobile-f-16"><?= $PRODUCT_CATEGORY1->name; ?></a></li>
                                    <li class="breadcrumb-item active banner-font mobile-f-16">Products</a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="shop-main-wrapper section-padding-product mobile-section-index-about">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="shop-product-wrapper">
                            <div class="shop-product-wrap grid-view row mbn-30">
                                <?php
                                if (count($products) > 0) {
                                    foreach ($products as $product) {
                                        $PRODUCT_CATEGORY = new ProductCategory($product['category']);
                                        $discount = ($product['price'] * $product['discount']) / 100;
                                        $new_price = $product['price'] - $discount;
                                ?>
                                        <div class="col-lg-3 col-md-4 col-sm-6">
                                            <div class="product-item">
                                                <div class="blog-post-item">
                                                    <figure class="blog-thumb">
                                                        <a href="view-product.php?id=<?php echo $product['id']; ?>">
                                                            <img src="upload/product/<?php echo $product['image_name']; ?>" alt="product">
                                                        </a>
                                                        <div class="product-badge">
                                                        </div>
                                                    </figure>
                                                </div>
                                                <div class="product-caption text-center product-box product-pt">
                                                    <h3 class="product-name">
                                                        <a href="view-product.php?id=<?php echo $product['id']; ?>"><?php echo $product['name']; ?></a>
                                                    </h3>
                                                    <h6 class="product-price">
                                                        US $ <?= number_format($new_price, 2); ?>
                                                        <?php
                                                        if ($discount != 0) {
                                                            echo "<small class='discount_price'>US $ " . number_format($product['price'], 2) . "</small>";
                                                        }
                                                        ?>
                                                    </h6>
                                                    <div class="price-box">
                                                        <a href="view-product.php?id=<?php echo $product['id']; ?>" class="btn-sec btn btn-hero button-mb">View More</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                <?php
                                    }
                                } else {
                                }
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <div class="scroll-top not-visible">
        <i class=""><img src="assets/img/icon/gem-top.png"></i>
    </div>
    <!-- Scroll to Top End -->
    <?php include './footer.php'; ?>
    <!-- JS
    ============================================ -->

    <!-- Modernizer JS -->
    <script src="assets/js/vendor/modernizr-3.6.0.min.js"></script>
    <!-- jQuery JS -->
    <script src="assets/js/vendor/jquery-3.3.1.min.js"></script>
    <!-- Popper JS -->
    <script src="assets/js/vendor/popper.min.js"></script>
    <!-- Bootstrap JS -->
    <script src="assets/js/vendor/bootstrap.min.js"></script>
    <!-- slick Slider JS -->
    <script src="assets/js/plugins/slick.min.js"></script>
    <!-- Countdown JS -->
    <script src="assets/js/plugins/countdown.min.js"></script>
    <!-- Nice Select JS -->
    <script src="assets/js/plugins/nice-select.min.js"></script>
    <!-- jquery UI JS -->
    <script src="assets/js/plugins/jqueryui.min.js"></script>
    <!-- Image zoom JS -->
    <script src="assets/js/plugins/image-zoom.min.js"></script>
    <!-- Imagesloaded JS -->
    <script src="assets/js/plugins/imagesloaded.pkgd.min.js"></script>
    <!-- Instagram feed JS -->
    <script src="assets/js/plugins/instagramfeed.min.js"></script>
    <!-- mailchimp active js -->
    <script src="assets/js/plugins/ajaxchimp.js"></script>
    <!-- contact form dynamic js -->
    <script src="assets/js/plugins/ajax-mail.js"></script>
    <!-- google map api -->
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCfmCVTjRI007pC1Yk2o2d_EhgkjTsFVN8"></script>
    <!-- google map active js -->
    <script src="assets/js/plugins/google-map.js"></script>
    <!-- Main JS -->
    <script src="assets/js/main.js"></script>
</body>

</html>home/islapiiu/sites/ariyapalamarks/product.php000064400000012322150767435360015654 0ustar00<?php
include_once(dirname(__FILE__) . '/class/include.php');

$id = '';
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
    
$PRODUCT_TYPE_OBJ = new ProductType($id);
$PRODUCT_OBJ  =new Product(null);

?>
<!Doctype html>
<html lang="en-gb" class="no-js"> 
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Product  | Ariyapala Mask Museum | Ariyapala Traditional Masks | Ariyapala Mask in Ambalangoda</title>
        <meta name="description" content="The art of Sri Lankan Masks was existing from time immemorial. Mask carving is a local tradition in the southern coastal region in Sri Lanka. Ambalangoda is well known for traditional masks carvings and masks dancing. The present institution named ‘Ariyapala & Sons’ passing through their fifth generation of traditional masks carving and dancing is a very popular cultural center in Ambalangoda. It was named after “Ariyapala Wijesuriya Gurunnanse”, one of the greatest master craftsmen in Sri Lanka.">
            <meta name="keywords" content="mask in ambalangoda, ariyapala & sons mask museum ambalangoda, traditional mask in sri lanka, traditional mask in ambalangoda ">
        <meta name="author" content="">

           <link rel="icon" type="image/png" sizes="16x16" href="images/icons/favicon.ico">
        <link rel="icon" type="image/png" sizes="16x16" href="images/icons/apple-icon.png">
  

        <link id="default-css" rel="stylesheet" href="style.css" type="text/css" media="all" />

        <link href="css/animations.css" rel="stylesheet" type="text/css" media="all" />
        <link id="shortcodes-css" href="css/shortcodes.css" rel="stylesheet" type="text/css" media="all" />
        <link id="skin-css" href="skins/red/style.css" rel="stylesheet" media="all" />
        <link href="css/isotope.css" rel="stylesheet" type="text/css" media="all" />
        <link href="css/prettyPhoto.css" rel="stylesheet" type="text/css" />
        <link href="css/pace.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="css/responsive.css" type="text/css" media="all" />
        <script src="js/modernizr.js"></script> 
        <link id="light-dark-css" href="dark/dark.css" rel="stylesheet" media="all" />

        <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
    </head>
    <body>
              <div class="loader-wrapper">
            <div id="large-header" class="large-header">
                <h1 class="loader-title"><span>Ariyapala</span> Mask Museum</h1>
            </div>
        </div>

        <div class="wrapper">
            <div class="inner-wrapper">
                <?php include './header.php'; ?>
                <div id="main">
                    <div class="container">
                        <div class="dt-sc-hr-invisible-small"></div>
                        <div class="main-title animate" data-animation="pullDown" data-delay="100">
                            <h3> Product  </h3>
                            <p>Tell mocking stories of traditional Sri Lankan colonial life.</p>
                        </div>
                        <section id="primary" class="content-full-width">
                            <div class="container">
                                <div class="row">
                                    <?php 
                                  
                                    $PRODUCT = $PRODUCT_OBJ->getProductsById($id);
                                    foreach ($PRODUCT as $key=>$product){
                                    ?>
                                        <div class="product">
                                        <figure>
                                            <img src="upload/product-type/product/<?php echo $product["image_name"]?>" alt=""/>
                                        </figure>
                                      
                                        </div>
                                 <?php
                                    }
                                 ?>
                                </div>

                            </div>
                            </section>
                    </div>
                    
                    <div class="dt-sc-hr-invisible-small"> </div>
                </div>

                <?php include './footer.php'; ?>
            </div>
        </div>
    </div>

    <script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
    <script src="js/jquery.tabs.min.js"></script>
    <script type="text/javascript" src="js/jquery-migrate.min.js"></script>
    <script type="text/javascript" src="js/jquery.isotope.min.js"></script>
    <script type="text/javascript" src="js/jquery.isotope.perfectmasonry.min.js"></script>
    <script src="js/jquery.prettyPhoto.js" type="text/javascript"></script>
    <script src="js/jquery.validate.min.js" type="text/javascript"></script>
    <script src="js/jquery.bxslider.min.js" type="text/javascript"></script>
    <script src="js/jsplugins.js" type="text/javascript"></script>
    <script src="js/controlpanel.js" type="text/javascript"></script>
    <script src="js/custom.js"></script>
</body>

</html>
home/islapiiu/sites/forbes/control-panel/post-and-get/product.php000064400000007331150767534200021207 0ustar00<?php



include_once(dirname(__FILE__) . '/../../class/include.php');



if (isset($_POST['create'])) {



    $PRODUCT = new Product(NULL);

    $VALID = new Validator();

   

    $PRODUCT->type = $_POST['id'];

    $PRODUCT->name = $_POST['name'];

    $PRODUCT->short_description = $_POST['short_description'];

    $PRODUCT->description = $_POST['description'];



    $dir_dest = '../../upload/product-type/product/';



    $handle = new Upload($_FILES['image']);



    $imgName = null;



    if ($handle->uploaded) {

        $handle->image_resize = true;

        $handle->file_new_name_ext = 'jpg';

        $handle->image_ratio_crop = 'C';

        $handle->file_new_name_body = Helper::randamId();

        $handle->image_x = 360;

        $handle->image_y = 333;



        $handle->Process($dir_dest);



        if ($handle->processed) {

            $info = getimagesize($handle->file_dst_pathname);

            $imgName = $handle->file_dst_name;

        }

    }



    $PRODUCT->image_name = $imgName;



    $VALID->check($PRODUCT, [

        'name' => ['required' => TRUE],

        'short_description' => ['required' => TRUE],

        'description' => ['required' => TRUE],

        'image_name' => ['required' => TRUE]

    ]);



    if ($VALID->passed()) {

        $PRODUCT->create();



        if (!isset($_SESSION)) {

            session_start();

        }

        $VALID->addError("Your data was saved successfully", 'success');

        $_SESSION['ERRORS'] = $VALID->errors();



        header('Location: ' . $_SERVER['HTTP_REFERER']);

    } else {



        if (!isset($_SESSION)) {

            session_start();

        }



        $_SESSION['ERRORS'] = $VALID->errors();



        header('Location: ' . $_SERVER['HTTP_REFERER']);

    }

}



if (isset($_POST['update'])) {

    $dir_dest = '../../upload/product-type/product/';



    $handle = new Upload($_FILES['image']);



    $imgName = null;



    if ($handle->uploaded) {

        $handle->image_resize = true;

        $handle->file_new_name_body = TRUE;

        $handle->file_overwrite = TRUE;

        $handle->file_new_name_ext = FALSE;

        $handle->image_ratio_crop = 'C';

        $handle->file_new_name_body = $_POST ["oldImageName"];

        $handle->image_x = 360;

        $handle->image_y = 333;



        $handle->Process($dir_dest);



        if ($handle->processed) {

            $info = getimagesize($handle->file_dst_pathname);

            $imgName = $handle->file_dst_name;

        }

    }



    $PRODUCT = new Product($_POST['id']);



    $PRODUCT->image_name = $_POST['oldImageName'];

    $PRODUCT->name = $_POST['name'];

    $PRODUCT->short_description = $_POST['short_description'];

    $PRODUCT->description = $_POST['description'];



    $VALID = new Validator();

    $VALID->check($PRODUCT, [

        'name' => ['required' => TRUE],

        'short_description' => ['required' => TRUE],

        'description' => ['required' => TRUE],

        'image_name' => ['required' => TRUE]

    ]);



    if ($VALID->passed()) {

        $PRODUCT->update();



        if (!isset($_SESSION)) {

            session_start();

        }

        $VALID->addError("Your changes saved successfully", 'success');

        $_SESSION['ERRORS'] = $VALID->errors();



        header('Location: ' . $_SERVER['HTTP_REFERER']);

    } else {



        if (!isset($_SESSION)) {

            session_start();

        }



        $_SESSION['ERRORS'] = $VALID->errors();



        header('Location: ' . $_SERVER['HTTP_REFERER']);

    }

}



if (isset($_POST['save-data'])) {

    foreach ($_POST['sort'] as $key => $img) {
        $key = $key + 1;

        $PRODUCT = Product::arrange($key, $img);

        header('Location: ' . $_SERVER['HTTP_REFERER']);

    }

}