GIF89a php
Current File : /home/viralhoga/public_html/booking.php
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<meta charset="utf-8">
<meta name="description"
    content="" />
<meta name="keywords"
    content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- title -->
<title>Viralhoga.com | My Booking</title>
<!-- favicon -->
<link rel="icon" type="image/x-icon" href="img/logo/favicon.png">
<!-- bootstrap css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<!-- magnific-popup css -->
<link rel="stylesheet" type="text/css" href="css/magnific-popup.css">
<!-- animate css -->
<link rel="stylesheet" type="text/css" href="css/animate.min.css">
<!-- bootstrap icon -->
<link rel="stylesheet" type="text/css" href="css/bootstrap-icons.css">
<!-- font-awesome css -->
<link rel="stylesheet" type="text/css" href="css/all.min.css">
<!--fether css -->
<link rel="stylesheet" type="text/css" href="css/feather.css">
<!-- owl css -->
<link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css">
<link rel="stylesheet" type="text/css" href="css/owl.theme.default.min.css">
<!-- swiper-bundle css -->
<link rel="stylesheet" type="text/css" href="css/swiper-bundle.min.css">
<!-- slick slider css -->
<link rel="stylesheet" type="text/css" href="css/slick.css">
<!-- style css -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- account css -->
<link rel="stylesheet" type="text/css" href="css/account.css">
<link rel="stylesheet" href="css/ourstyle.css">
</head>
<body>
<!-- header start -->
<?php include('includes/navbar.php');
    //get my booking
	if(!isset($_SESSION['reg_id']) || empty($_SESSION['reg_id']))echo "<script>window.location='login.php'</script>";
	 //get product
	 $my_booking = $obj->select_all('cart',"where reg_id='$_SESSION[reg_id]' and paysts='Success'");
   ?>
<!-- header end -->
<!-- main section start-->
<main>
  <!-- breadcrumb start-->
  <section class="breadcrumb-area">
    <div class="container">
      <div class="col">
        <div class="row">
          <div class="breadcrumb-index">
            <!-- breadcrumb main-title start-->
            <div class="breadcrumb-title">
              <h2>My Booking</h2>
            </div>
            <!-- breadcrumb main-title end-->
            <!-- breadcrumb-list start -->
            <ul class="breadcrumb-list">
              <li class="breadcrumb-item-link"> <a href="index.php">Home</a> </li>
              <li class="breadcrumb-item-link"> <span>My Booking</span> </li>
            </ul>
            <!-- breadcrumb-list end -->
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- breadcrumb start-->
  <section class="customer-page section-ptb">
    <div class="container">
      <div class="row">
        <div class="col">
          <div class="wishlist-page">
            <div class="wishlist-grid is_visible">
              <div class="wish-wrap">
                <!-- wishlist-title start -->
                <div class="wishlist-title">
                  <h6>Booking:</h6>
                  <span class="wish-count"> <span class="wishlist-counter"><?php echo mysqli_num_rows($my_booking)?></span> <span class="wish-item-title">Items</span> </span> </div>
                <?php while($row=mysqli_fetch_array($my_booking)){
					//sel cust details
			          $customerDtl = mysqli_fetch_array($obj->select_all("register","where reg_id='$row[reg_id]'"));
					  $totalPriceIS=0;
					  $sel_d=mysqli_query($con,"select * from product where id='$row[product_id]'") or die(mysqli_error());
					  $row_data=mysqli_fetch_array($sel_d);
					  $totalPrice=$song_price+$channelPrice;
					  $discountAmount = $totalPrice*$row['disPercentage']/100;
					  $totalPayableAmount = $row['totalAmount'];
					  $dcd_img=json_decode($row_data['img']);
					?>
                <ul class="wishlist-tile-container">
                  <li class="wishlist-info">
                    <div class="item-img"> <a href="#!"> <img src="adminpanel/img/<?php echo $dcd_img[0]; ?>" class="img-fluid" alt="p-1"> </a> </div>
                    <div class="item-title ps-lg-4">
                      <div class="row">
                        <div class="col-6 col-lg-3 mt-3">
                          <div class="booking_date">
                            <p class="text-black">
                              <?php 
				  if(!empty($row['Color']))echo "<strong>Song Type: </strong>".$row['Color']."<br>";
				  if(!empty($row_data['brand']))echo "<strong>Song Name: </strong>".$row_data['brand']."<br>";
				  if(!empty($row_data['name']))echo "<strong>Singer Name: </strong>".$row_data['name']."<br>";
				  echo "<a onClick='disp_popup".$row['id']."()'style='cursor:pointer'><font color='#e02d2b'><strong>Total Submit URL: ".$row['quantity']."</strong></font></a><br>";
				  if($row['disPercentage']!=0)echo "<strong>Discount Amount(%): </strong>".$row['disPercentage']."<br>";
			      $totalAmount = $totalPayableAmount;
				?>
                            </p>
                            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
                            <script>
//var popup = setInterval(function(){ disp_popup(); }, 1000);
function disp_popup<?php echo $row['id']?>()
{
	$('#popup<?php echo $row['id']?>').fadeIn("slow");
	clearInterval(popup);
}

function close_btn<?php echo $row['id']?>()
{
	$('#popup<?php echo $row['id']?>').fadeOut("slow");
}
</script>
                            <div id="popup<?php echo $row['id']?>" style="display:none; height:100%; width:100%; padding:0; margin:0; position:fixed; top:0; left:0; z-index:1000; background:rgba(0,0,0,0.3);">
                              <div style="background:#fff; margin:auto; margin-top:50px; padding:6px; box-shadow:0 0 10px #000; width:400px; ">
                                <div onClick="close_btn<?php echo $row['id']?>();" style="position:relative;right: 0;top: -25px;width: 30px;height: 30px;padding:2px;color:#fff;font-weight:bold;border-radius:50%;background:#a00;cursor:pointer;">&nbsp;X</div>
                                <div style="margin-top:-23px; padding:15px 10px;">
                                  <div style="font-size:16pt; text-align:center; color:rgb(51,102,153); text-shadow:0 1px #fff; font-weight:bold; margin-bottom:10px;"> Youtube URL and Channel Name </div>
                                  <?php
			 $youtubeUrlData=json_decode($row['bll_country']);
			 $youtubeChannelData=json_decode($row['orderBy']);
			?>
                                  <table>
                                    <?php for($i=0;$i<sizeof($youtubeUrlData);$i++){?>
                                    <tr>
                                      <td><?php echo "<b>".$youtubeChannelData[$i]."</b><br>"?> <?php echo $youtubeUrlData[$i]?> </td>
                                    </tr>
                                    <?php }?>
                                  </table>
                                </div>
                              </div>
                              <!--</div> -->
                            </div>
                          </div>
                        </div>
                        <div class="col-6 col-lg-3 mt-3">
                          <div class="booking_date text-lg-center"> <span>Booking Date</span>
                            <p class="text-black"><?php echo date('d/m/Y',$row['order_date']);?></p>
                          </div>
                        </div>
                        <div class="col-6 col-lg-2 mt-3">
                          <div class="booking_date text-lg-center"> <span>Total Amount</span>
                            <p class="text-black">₹ <?php echo number_format($totalPayableAmount,2)?></p>
                          </div>
                        </div>
                        <div class="col-6 col-lg-2 mt-3">
                          <div class="booking_date text-lg-end"> <span>Deliver Date</span>
                            <p class="text-black">Under <?php echo $row_data['stock']?> Days</p>
                          </div>
                        </div>
                        <div class="col-6 col-lg-2 mt-3">
                          <div class="booking_date text-lg-end"> <span>Order Status</span>
                            <p class="text-black"><?php echo $row['status']?></p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </li>
                </ul>
                <?php }?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</main>
<!-- main section end-->
<!-- footer start -->
<?php include('includes/footer.php')?>
<!-- screen-bg start -->
<div class="screen-bg"></div>
<!-- screen-bg end -->
<!-- back-to-top start -->
<a href="javascript:void(0)" id="top" class="scroll"> <span><i class="feather-arrow-up"></i></span> </a>
<!-- back-to-top end -->
<!-- jquery -->
<script src="js/jquery-3.6.3.min.js"></script>
<!-- bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<script src="js/popper.min.js"></script>
<!-- magnific-popup js -->
<script src="js/jquery.magnific-popup.min.js"></script>
<!-- owl js -->
<script src="js/owl.carousel.min.js"></script>
<!-- swiper-bundle js -->
<script src="js/swiper-bundle.min.js"></script>
<!-- slick js -->
<script src="js/slick.min.js"></script>
<!-- waypoints js -->
<script src="js/waypoints.min.js"></script>
<!-- counter js -->
<script src="js/counter.js"></script>
<!-- main js -->
<script src="js/main.js"></script>
</body>
</html>