MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.149.254.25
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/snackpoint.co.nz/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/snackpoint.co.nz/home-menu.php
    <section class="menu-tab">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="pq-section-title-style-1 text-center">
	   	   				<span class="pq-section-sub-title">Selected Menu</span>
	      			   		<h5 class="pq-section-title">Our Specialties</h5>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="pq-advance-tab">
					<div class="nav nav-tabs nav-fill" id="advance-nav-tab" role="tablist">
					    <?php
                        $sqlsubcat = "SELECT * FROM `tbl_tourspots` WHERE `spots_status`='Active' ORDER BY subcat_order_by ASC";
                        $runsubcat = mysqli_query($db, $sqlsubcat) or die("Query Not run");
                        $counter = 0;
                        while ($datasubcat = mysqli_fetch_assoc($runsubcat)) {
                            $isActive = ($counter === 0) ? 'active' : '';
                            $ariaSelected = ($counter === 0) ? 'true' : 'false';
                            $tabId = "advance-nav-home-$counter";
                            $contentId = "advance-nav-$counter";
                        ?>
                            <a class="pq-tabs nav-item nav-link <?php echo $isActive; ?>" id="<?php echo $tabId; ?>" data-bs-toggle="tab" href="#<?php echo $contentId; ?>" role="tab" aria-controls="<?php echo $tabId; ?>" aria-selected="<?php echo $ariaSelected; ?>">
                                <div class="pq-tab-service-icon">
                                    <i class="flaticon-food"></i>
                                </div>
                                <?php echo $datasubcat['spots_name']; ?>
                            </a>
                        <?php
                            $counter++;
                        } ?>
					</div>
					<div class="tab-content" id="nav-tabContent">
					    <?php
                        $counter = 0;
                        $runsubcat = mysqli_query($db, $sqlsubcat) or die("Query Not run");
                        while ($datasubcat = mysqli_fetch_assoc($runsubcat)) {
                            $isActive = ($counter === 0) ? 'show active' : '';
                            $contentId = "advance-nav-$counter";
                            $cat_id = $datasubcat["spots_id"];
                            $sqlmenu = "SELECT * FROM `tbl_services` WHERE m_id=$cat_id AND `tour_status`='Active' ORDER BY tour_order ASC";
                            $runmenu = mysqli_query($db, $sqlmenu) or die("Query Not run");
                        ?>
                            <div class="tab-pane fade <?php echo $isActive; ?>" id="<?php echo $contentId; ?>" role="tabpanel" aria-labelledby="advance-nav-home-<?php echo $counter; ?>">
                                <div class="row align-items-center">
                                    <?php
                                    while ($datamenu = mysqli_fetch_assoc($runmenu)) {
                                    ?>
                                        <div class="col-lg-6 col-md-12">
                                            <div class="pq-food-price-style-2">
                                                <div class="pq-food-price-item">
                                                    <div class="pq-food-price-hoverimg">
                                                        <img class="img-fluid" src="<?php echo $wspath?>admin/images/property-image/<?php echo $datamenu['image'];?>" alt="<?php echo $datamenu['name'];?>" title="<?php echo $datamenu['name'];?>">
                                                    </div>
                                                    <div class="pq-food-price-img">
                                                        <img class="img-fluid" src="<?php echo $wspath?>admin/images/property-image/<?php echo $datamenu['image'];?>" alt="<?php echo $datamenu['name'];?>" title="<?php echo $datamenu['name'];?>">
                                                    </div>
                                                    <div class="pq-food-price-content">
                                                        <div class="pq-food-price-top">
                                                            <div class="pq-food-price-title">
                                                                <h5 class="pq-food-title"><?php echo $datamenu['name']; ?></h5>
                                                            </div>
                                                            <div class="pq-food-price-line"></div>
                                                            <div class="pq-food-price-main">$ <?php echo $datamenu['mrp']; ?></div>
                                                        </div>
                                                        <div class="pq-food-price-desc"><?php echo $datamenu['desc']; ?></div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    <?php
                                    }
                                    ?>
                                </div>
                            </div>
                        <?php
                            $counter++;
                        }
                        ?>
					</div>
				</div>
			</div>
		</div>
	</section>
		
		
		

MMCT - 2023