Current Path : /var/www/html/social/
Upload File :
Current File : /var/www/html/social/print_ticket.php

<?php include_once('__includedFiles/header_top_files.php');?>
<?php //include_once('__includedFiles/header_top.php');?>
<?php //include_once('__includedFiles/dashboard_header.php');?>
<?php //include_once('__includedFiles/dashboard_menu.php');?>
<?php if($_SESSION['userid']=='' and $_SESSION['AdminLogedIn']=='' ){
 echo '<script>window.parent.location.href="../logout.php";</script>';
   }  //require "__dashboardconfig/session.php"; 

?>
<link rel="stylesheet" type="text/css" href="<?=baseurl?>social/css/healthkafe_inner.css" />
<link href="css/main.css" rel="stylesheet" type="text/css"/>
<body style="background:none !important;" onLoad="window.print();">
<?  $obj1=new Social(); 
$orderid=$_GET['orderid'];
//$orderid='365hops538325c22361e';
$get_order=mysql_fetch_array(mysql_query("SELECT * FROM `hk_booking` WHERE `transectionid`='".$orderid."'"));
//print_r($get_order);
$userdetailss=$obj1->userinfo($get_order['userid']);
$userlinkss=baseurl.'social/index.php?f='.$userdetailss['user_fullname'].'&m='.base64_encode($userdetailss['user_id'].$userdetailss['user_fullname']);
$usernamesarr=explode(' ', $userdetailss['user_fullname']);
$results=$obj1->get_event($get_order['eventid']);
$result=$results[0];
$nopassenger=$get_order['no_passenger'];
?>
<script type="text/javascript">
$(document).ready(function(e) { 

});
</script>
<style type="text/css">
body {
font-family: verdana ;
font-size: 16px ;
}
.formsectionone label:first-child:after,.formsectionthird label:after{
	content:"" !important;
	}
	h1,h2,label,span,div{ font-size:18px !important;}
	p,ul,li{font-size:16px !important;}
</style>
<div class="kafe_detail">
<div id="main_page">
<div class="leftsidecontaner" style="margin-top:30px;">
<div class="leftsidecontanerheading">
<h1><span style="float:left; font-size:16px !important;"><img src="<?=baseurl?>social/ProfileThumb/Thumb/<?=$userdetailss['user_img']?>" height="35" width="35" /></span><span ><b>Hi <?=ucwords($usernamesarr[0]);?>,</b> thank you for booking with us. This is your copy of the e-ticket for this event. Kindly take a print of the ticket and present it to the organizer at the start of the event with a proper ID proof.</span></h1>

</div>
<div class="formsection">
<div class="contanermainheading" style="font-size:16px !important;"><h1>OrderDetails</h1></div>
<div id="passengersdiv" style="font-size:16px !important;">
<div class="formsectionone fleft"><label>Order ID : </label> <label><?=$get_order['orderid']?></label></div>
<div class="formsectionone fleft"> <label>Order Date : </label><label><?=date('d-m-Y',strtotime($get_order['orderdate']));?></label>
</div>

<div class="formsectionone fleft"><label>Paid Amount : </label> <label><?=$get_order['transaction_amount']?> INR</label></div>
<div class="formsectionone fleft"> <label>Event Date : </label><label><?=date('d-m-Y',strtotime($get_order['choosed_date']));?></label>
</div>
<div class="formsectionone fleft"><label>Payment Status : </label> <label><? if($get_order['payment_status']==''){ echo 'Pending';}else{ echo $get_order['payment_status'];}?></label></div>

<?php $costplan_details=mysql_fetch_array(mysql_query("SELECT * FROM `hk_costplans` WHERE `eventid`='".$get_order['eventid']."' AND `cost`='".$get_order['plancost']."'"));?>
<div class="formsectionone fleft"><label>Cost Plan : </label> <label><?=$costplan_details['details']; ?></label></div>
<div class="clear"></div>
</div><br />
<?php //if($nopassenger>0){
//for($i=0;$i<$nopassenger;$i++){
	?><div >
 <div class="contanermainheading" style="font-size:16px !important;">
   <h1>Participants Details</h1></div>
<div id="passengersdiv" style="font-size:16px !important;">
<div class="formsectionone fleft" style="width:35px !important; margin-right:5px;"><label>S.No.</label> </div>
<div class="formsectionone fleft"><label>Name</label> </div>
<div class="formsectiontwo formsectionone fleft"> <label> Gender </label>
</div>
<div class="formsectionthird fleft"> <label>Age</label> </div>
<div class="clear"></div>
</div><?php $passengers_details_q=mysql_query("SELECT * FROM  `hk_booking_details` WHERE bookingid='".$get_order['id']."'");
if(mysql_num_rows($passengers_details_q)>0){ $ij=1;
while($res_passenger=mysql_fetch_array($passengers_details_q,MYSQL_ASSOC)){
?>
<div id="passengersdiv">
<div class="formsectionone fleft" style="width:35px !important; margin-right:5px;"><label><?=$ij?>.</label> </div>
<div class="formsectionone fleft"><label><?=$res_passenger['name']?></label> </div>
<div class="formsectiontwo formsectionone fleft"> <label><?=$res_passenger['gender']?></label>
</div>
<div class="formsectionthird fleft"> <label><?=$res_passenger['age']?></label> </div>
<div class="clear"></div>
</div>

<? $ij++;}}?>
</div>
<br/>
<div >
 <div class="contanermainheading">
   <h1>Participant Contact Details</h1></div>
<div id="passengersdiv">
<div class="formsectionone fleft" style="width:100%"><label>Name : <?=$userdetailss['user_fullname']?></label></div>
<div class="formsectionone fleft" style="width:100%">
  <label>Email ID : <?=$get_order['email'];?></label></div>
<div class="formsectionone fleft" style="width:100%">
  <label>Mobile No. : <?=$get_order['mobile'];?></label></div>
<div class="clear"></div>
</div>

</div>
<br/>
<div >
 <div class="contanermainheading"><h1>Contact Us</h1></div>
<div id="passengersdiv">

<div class="formsectionone fleft" style="width:100%"><p>Regarding any other query or information, you can call us @ 011-42156013, 07838984471 or mail us at care@365hops.com</p> </div>
<div class="clear"></div>
</div>

</div>
<div class="clear"></div>
<div class="termandconditions" style="font-size:16px !important;">
<h1>Terms and Conditions </h1>
<p>365hops allows the cancellation of the events/trips booked through this website. The cancellation and refund will based on the policy of 365hops.com and/or that of the vendor organizing the event/trips, whichever is more stringent. The users are strongly advised to read the vendor cancellation and refund policy given in the terms and conditions while booking the event/trips. </p>
<p>The refund in event of cancellation will depend on the date of cancellation and as per details provided below: </p>

<ul>
<li><p>From the booking date till 14 days prior to the date of event/trip: 80% refund</p> </li>
<li><p>From 7 to 14 days prior to the date of event/trip: 60% refund</p> </li>
<li><p>From 1 to 7 days prior to the date of event/trip: 30% refund</p></li>
<li><p>Less than 1 day prior to the date of event/trip: No refund</p></li>
</ul>

</div>

</form>
</div>

</div><!-- End leftsidecontaner -->


<div class="rightcontaner fright">
<img title="365hops" alt="logo" src="http://www.365hops.com/social/images/logo.png" style="margin:-9px 2px 3px;">
<span >A <em>Curious Innovations Pvt. Ltd</em> venture</span>
<div class="contanermainheading"><h1>Event Details</h1></div>
<div class="rightcontanerheading"> <h1>"<?=$result['name']?>"</h1></div>
<?php  $gallry_other=$obj1->get_event_image($result['id']); ?>
<div class="imagesection"> <img src="<?=baseurl?>searching_files/timthumb.php?src=<?=$gallry_other?>&h=108&w=234&zc=1" width="234" /> <br /><br />
<p><?=$result['where_area']?></p>
</div>

<div class="textarea">
<p> <span> Facilities Covered: <?=$costplan_details['details']; ?></span></p>
<h1>Cost per person (INR):<span><?=$get_order['plancost'];?> </span></h1>
<? if($result['fixed_charge']>0){ ?><h1>Fixed Charge (INR):<span><?=$result['fixed_charge'];?> </span></h1><? }?>
<p> <span><?=$nopassenger?> <?php if($nopassenger>1){ echo 'Persons'; }else{ echo 'Person';}?></span></p>
<?php $discount_availed=mysql_fetch_array(mysql_query("SELECT * FROM `hk_discounts_availed` WHERE `orderid`='".$get_order['orderid']."'"),MYSQL_ASSOC);
if($discount_availed['discounted_amount']!=''){
?>
<p style="border-top: 1px solid rgb(204, 204, 204); height:28px; padding-top:9px; margin-top:5px;"><span>Sub Total: </span><span><?=(($nopassenger*$get_order['plancost'])+($result['fixed_charge']))?> INR</span></p>
<p id="dis_span_container2"  ><span>Discount Availed: </span><span  id="discounted_text_sp"><?=$discount_availed['discounted_amount']?></span> INR</h3>
<? }?>
<h2>Total:<?=(($nopassenger*$get_order['plancost'])+($result['fixed_charge'])-$discount_availed['discounted_amount'])?> INR</p>
</div>



</div><!-- End rightcontaner --> 

<div class="clear"></div>
</div><!-- End main_page -->
</div>
</body>
<script type="text/javascript">
$(document).ready(function(e) { 
window.close();
});
</script>

,