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

<?php include_once("__includedFiles/header_top_files.php")?>
  <?php  $obj1=new Social(); $user_id=$_SESSION['userid']; 
  $eventid=custome_decoding($_REQUEST['eventid']);
  $nuserid=$eventid;
  if($eventid!='')
  {
  $results=$obj1->get_event($eventid);
  }
  $no_rows=count($results);
 $result=$results[0];
 if($result['type']=='sport event')
  {
	header('location:turnamenthome.php?eventid='.$_REQUEST['eventid']);
	}
// Visitors
mysql_query("UPDATE `hk_event` SET `visitors`=(visitors+1) WHERE `id`='".$eventid."'");
//
$segcatfb='';   
$interests_ids_str2=$obj1->get_event_segments($result['id']);
	  foreach($interests_ids_str2 as $interest_str2){
		$inteterest_details2=$obj1->get_interest_by_id($interest_str2);
           $segcatfb.=$inteterest_details2['name'].', ';
	      }
 $segcatfb=substr($segcatfb,0,-2);	  
 
 $gallry_arround1_fb=$obj1->get_event_image($result['id']);
       $url_share='http://www.365hops.com/social/event_detail.php?eventid='.custome_encoding($result['id']);
	   $url_title=trim($result['name']).' - '.$segcatfb.' '.ucfirst($result['type']);
	   $fbcaption="365hops.com";
	   if($gallry_arround1_fb!=''){
	    $fbpicture=$gallry_arround1_fb; //"http://www.365hops.com/social/images/logo.png";
	    }
		else
		 {
			 $fbpicture="http://www.365hops.com/social/images/logo.png";
			}
		$fbdescp.='Date: '; 
		if($result['custome_date']!='')
		 {
			$fbdescp.=$result['custome_date'];
			}
			else
			{
		if(date('d-m-Y',strtotime($result['date_to']))!='01-01-1970'){
		     $fbdescp.='From '.date('jS M, y',strtotime($result['date_from'])).' to '.date('jS M, y',strtotime($result['date_to']));
		      }
		  else{
			  $fbdescp.='On '.date('jS M, y',strtotime($result['date_from']));
			  }
			}
		// Where Area//
		$fbdescp.=' | Where:'.$result['where_area'];
		if($result['cost']!=='NA'){
		$fbdescp.=' | Cost per person (INR):'.$result['cost']; 	 
		}
		$fbdescp.=' | Call us- 9911608539, 01204127715';
		//	
if($url_title!='')
 {
 $page_title=$url_title;
 }
 else
  {
	$page_title='365Hops';
	 }		 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$page_title?></title>
<meta property="og:site_name" content="http://www.365hops.com/"/>
<meta property="og:title" content="<?=$page_title?>" />
<meta property="og:description" content="<?=$fbdescp?>" />
<meta property="og:url" content="<?=$url_share?>"/>
<meta property="og:image" content="<?=$fbpicture?>"/>
<meta content="<?=$fbdescp?>" name="description" />

<?php include_once('__includedFiles/dashboard_header.php');?>
<?php include_once('__includedFiles/dashboard_menu.php');?>
<?php include_once('__includedFiles/eventtype_popup.php');?>
<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />
<link href="css/style_event.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<link rel="stylesheet" type="text/css" href="responsive.css" />
<!--<script src="http://code.jquery.com/jquery-1.6.3.min.js"></script>-->
	<!--<script type="text/javascript" src="engine1/jquery.js"></script> -->


<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
<script>
$(document).ready(function(){
<?php if($_SESSION['userid']!=''){ if($_SESSION['bookpopup']=='Open'){?> $('#number_passengerbtn').trigger('click');<? } unset($_SESSION['bookpopup']); }?>		
  $(".avilable a, .pra").click(function(){
    $(".dates").slideToggle("fast");
	if($('#minus_icon_date:visible').length == 0)
      {
     $('#plus_icon_date').hide('fast');
	 $('#minus_icon_date').show('fast');
     }else{
		$('#minus_icon_date').hide('fast');
		$('#plus_icon_date').show('fast');
		 }
	
	
	//$('.pra').removeClass('pra').addClass('classB');
    e.preventDefault();
  });
});

function check_login_book()
 {
	 <?php if($_SESSION['userid']==''){ $_SESSION['bookpopup']='Open';?> 
	         var page_url_event=$(location).attr('href');
				login_triger2(page_url_event);
		 
<? }else{ ?>
   number_passesngers();
  <? } ?>	
	}
	
function number_passesngers()
 {
	$('#number_passengerbtn').trigger('click');
	}	
	function book_event()
	{
		$('#book_form').submit();
		}
 function send_enquiry_yes()
 {
	 var mobileno=$('#event_mobile').val();
	 var enqeventid=$('#enqeventid').val();
	 var event_email=$('#event_email').val();  
	  if(mobileno!='')
	     {
		$('#event_mobile').removeClass('error');	 
		if(event_email!=''){
		var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
         if(regex.test(event_email)==false)
		 {
			 $('#event_email').addClass('error');
			   $('#event_email').focus();
			   return false;
			 
			 }else{ $('#event_email').removeClass('error');}
		 
		}
	  $('#close_enquiry_box').trigger('click');
	 $('#enquiryOpenbtn').hide('fast');
	 $('#enquiryOpenbtn_sent').show('fast'); 
		    $.ajax({ 
            url: "main_ajax.php?sendevent_enquiry=ok&mobileno="+mobileno+"&eventid="+enqeventid+"&email="+event_email,
             type: "GET",
			 success:(function(rmsh){ alert(rmsh);
					})
          });
		   }
		   else
		    {
			  
			   $('#event_mobile').addClass('error');
			   $('#event_mobile').focus();
			   }
	 }	
function show_ineterest(event_id)
  {
    <?php if($_SESSION['userid']!=''){ ?>	
	 if(event_id!='')
      {
		  $('#show_int_hrf').hide();
			  $('#shown_int_hrf').show();
			  var previos=parseInt($('#allready_ineterested_txt').text());
			  var new_no_int=parseInt(previos)+1;
			  $('#allready_ineterested_txt').text(new_no_int);
		  
		  var userid =<?=$user_id;?>;
		   $.ajax({ 
            url: "main_ajax.php?show_ineterst_event=show_ineterst_event&event_id="+event_id+"&userid="+userid,
             type: "GET",
			 success:(function(){})
          });
	   }
	   else
	   {
		  alert("Event Id is blank");
		  return false;
		 }
	 <? }else{?>
	login_triger2($(location).attr('href'));
	<? }?>	 
  }
   function show_unineterest(event_id11)
  {
     <?php if($_SESSION['userid']!=''){ ?>	
	 if(event_id11!='')
      {
		    
			 $('#shown_int_hrf').hide();
			$('#show_int_hrf').show();
			  var previos11=parseInt($('#allready_ineterested_txt').text());
			  var new_no_int11=parseInt(previos11)-1;
			  $('#allready_ineterested_txt').text(new_no_int11);
		    var userid =<?=$user_id;?>;
		   $.ajax({ 
            url: "main_ajax.php?show_ineterst_event=show_ineterst_event&event_id="+event_id11+"&userid="+userid,
             type: "GET",
			 success:(function(){})
          });
	   }
	   else
	   {
		  alert("Event Id is blank");
		  return false;
		 }
	 <? }else{?>
	login_triger2($(location).attr('href'));
	<? }?>	 
  }
  
  function intersetd_peple_list(evenetid1)
  {
	
	 
     if(evenetid1!='')
       {
		   $('#event_peoples_interested').empty();
		   $.ajax({ 
            url: "main_ajax.php?interested_peoples_in_event=interested_ppl&even_id="+evenetid1,
            type: "GET",
			 success:(function(interst_pepl){
				 $('#event_peoples_interested').html(interst_pepl);
				 })
          });
	   }
	   else
	   {
		  alert("Event Id is blank");
		  return false;
		 }
  
	  
	 }
  //	 	
</script>
<script>

$(document).ready(function()
{

$( window ).scroll(function() {
       
var el= document.getElementById("saidebar_fix");
var top = el.offsetTop;

 var height = el.offsetHeight;
 
 
 var el2= document.getElementById("footer-down");
  var top2 = el2.offsetTop;

 var height2 = el2.offsetHeight;

       if((top+height)==top2)
       {
       alert("match");        
       }


}
</script>
<script>
$(document).ready(function(){
  
  $(".map_box").click(function(){
    $(".slide_u").animate({left:'-800px'});
	$(this).hide();
    $(".slide_box").show();
  });
  $(".slide_box").click(function(){
    $(".slide_u").animate({left:'0px'});
	$(this).hide();
    $(".map_box").show();
  });
    
    /*var s = $("#wraper_right");
    var pos = s.position();                    
    $(window).scroll(function() {
        var windowpos = $(window).scrollTop();

        if (windowpos >= pos.top) {
            s.addClass("stick");
        } else {
            s.removeClass("stick"); 
        }
    });
$(document).ready(function(){
    var s = $("#tab_box1");
    var pos = s.position();                    
    $(window).scroll(function() {
        var windowpos = $(window).scrollTop();

        if (windowpos >= pos.top) {
            s.addClass("fi_s");
        } else {
            s.removeClass("fi_s"); 
        }
    });
});*/
});
</script>
<!--------- Start Confirm Box---------->
 <a href="#Confirmdelete_request" role="button" id="Confirmdelete_requestbtn" data-toggle="modal" style="display:none;" ></a>
 <div class="modal" id="Confirmdelete_request" tabindex="-1" role="dialog" style="display:none;" >
 <div class="confirmations">
  <div class="pp1">
<h1>Confirmations</h1> 
<a href="javascript:void(0);" class="closeBtn4" id="close_del_req_box" data-dismiss="modal" title="Close4"></a>
<div class="clear"></div>
<input type="hidden" id="delete_request_id" value="" />

</div>
  <div class="confir_txt" id="conf_texttt" >
Are you sure that you want to remove this Request?
<div class="clear"></div>
</div>
  <div class="ppser">
   <div class="confiredit">     
     <a href="javascript:void(0);" onclick="return del_req_action_yes();" >Yes  </a>
    <div class="editconfican"> <a href="javascript:void(0);" onclick="return del_req_action_no();">Cancel</a> </div>

</div>

</div>
</div>
</div>
<!-------- End Of Confirm -------->
<!------- Enquiry Form---------->
<div class="modal" id="enquiryOpen" tabindex="-1" role="dialog" style="display:none; height:100px !important; min-height:100px !important;" >
 <div class="confirmations" style="width:400px !important;">
  <div class="pp1">
<h1>Send Your Inquiry</h1> 
<a href="javascript:void(0);" class="closeBtn4" id="close_enquiry_box" data-dismiss="modal" title="Close4"></a>
 <div class="clear"></div>
 </div>
  <div class="confir_txt" id="enquiry_texttt" style="font-size:14px !important; padding:23px 20px 23px 50px; " >
  Please fill in your mobile number on which we will contact you shortly
  <div class="clear"></div>
 <div style="font-size:13px; padding-top:5px; " >
 <input type="hidden" name="enqeventid" id="enqeventid" value="<?=$result['id']?>" />
<strong> Mobile Number:</strong><input type="text" name="event_mobile" id="event_mobile" style="border:solid 1px;" value="" />
  </div>
   <div class="clear"></div>
 <div style="font-size:13px; padding-top:5px; " >
 <strong> &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;&nbsp; Email ID:</strong><input type="text" name="event_email" id="event_email" style="border:solid 1px;" value="" />
  </div>
</div>
  <div class="ppser">
   <div class="confiredit">     
     <a href="javascript:void(0);" onclick="return send_enquiry_yes();" >Send</a>
    </div>

</div>

</div>
</div>
<!---End--->   
<!-------- Select Passengers--------->
<a href="#number_passenger" role="button" id="number_passengerbtn" data-toggle="modal" style="display:none;" ></a>
<div class="modal" id="number_passenger" tabindex="-1" role="dialog" style="display:none; height:100px !important; min-height:100px !important;" >
 <div class="confirmations" style="width:400px !important;">
  <div class="pp1">
<h1>Please select number of passengers:</h1> 
<a href="javascript:void(0);" class="closeBtn4" id="close_enquiry_box" data-dismiss="modal" title="Close4"></a>
 <div class="clear"></div>
 </div>
  <form name="book_form" id="book_form" action="booknow.php" method="get">
  <div class="confir_txt" id="enquiry_texttt" style="font-size:14px !important; padding:23px 20px 23px 50px; " >
  <input type="hidden" name="eventid" id="urlllll_evnt" value="<?=base64_encode($result['id']);?>" />
  <select name="nopassenger" id="nopassenger" style="width:200px;" >
   <? for($pi=1;$pi<=10;$pi++){?>
  <option value="<?=$pi?>" ><?=$pi?></option>
  <? }?>
  </select>
  <div class="clear"></div>
</div></form>
  <div class="ppser">
   <div class="confiredit">     
     <a href="javascript:void(0);" onclick="return book_event();" >Book</a>
    </div>

</div>

</div>
</div>
<!-------------> 
<!----------- People Interested ------------------>
   <div class="modal" id="event_peoples_interested" tabindex="-1" role="dialog" style="display:none;" >
 
   </div>  
<!--



</head>

<body>-->
<div id="main">
	<div id="wraper">
    <div id="wraper_mid">
    <!--wraper left start-->
    	<div id="wraper_left">
       	<div id="wraper_left1">
        <!--header start-->
        	<div class="header">
            	<div class="heading"><h1><?=$result['name']?></h1></div>
                <div class="head_butt"><a href="#enquiryOpen" role="button" id="enquiryOpenbtn" data-toggle="modal" >Enquire</a></div>
            </div>
        <!--header end-->
        <!--header icon start-->
        <div class="head_icon">
        	<ul>
            	<li><a href="#">Activities :</a></li>
                <?php $interests_ids_str=$obj1->get_event_segments($result['id']);
	foreach($interests_ids_str as $interest_str){
		$inteterest_details=$obj1->get_interest_by_id($interest_str);
		?>
                <li><a href="#"><img src="../admin/segment_pics/<?=$inteterest_details['icon_small']?>" title="<?=$inteterest_details['name']?>"  style="width:25px; height:25px;" class="icon_img" /></a></li>
                    <? }?>
            <!-- <li><a href="#"><img src="images/home.jpg" /></a></li>
                <li><a href="#"><img src="images/home2.jpg" class="icon_img" /></a></li>-->
              
            </ul>
        	        
        </div>
         <? $interested_peoples=$obj1->event_interested_peoples($result['id']);
      $no_of_intersted_peoples=count($interested_peoples);
      if(in_array($_SESSION['userid'], $interested_peoples)){
		 $sty_show=' style="display:none;"';
		 $str_shown=' style="display:block;"'; 
		 }
		 else
		  {
		  $sty_show=' style="display:block;"';
		  $str_shown=' style="display:none;"';  
		}
 ?>
        <div class="head_right">
  			<ul class="heand">
            	<li><a href="#event_peoples_interested" role="button" data-toggle="modal" onClick="return intersetd_peple_list('<?=$result['id']?>');"><img src="images/heand.jpg" style="margin-top:16px;" /></a></li>
                <li><a href="#event_peoples_interested" role="button" data-toggle="modal" onClick="return intersetd_peple_list('<?=$result['id']?>');">Likes</a></li>
                <li><a href="#event_peoples_interested" role="button" data-toggle="modal" onClick="return intersetd_peple_list('<?=$result['id']?>');"  style="color:#fd6d00;"><?=$no_of_intersted_peoples?></a></li>
                
            </ul>
            <ul style="margin-left:90px;">
            	<li><a href="javascript:void(0);"><img src="images/icicon.jpg"  class="icon_img1" /></a></li>
                <li><a href="javascript:void(0);">Views</a></li>
                <li><a href="javascript:void(0);"  style="color:#fd6d00;"><?=$result['visitors']?></a></li>
                
            </ul>
	      
        </div>
        
        <!--header icon end-->    
    	<!--slider start-->
        <div class="slider">
        
        <div class="map_box"><span><a href="javascript:void(0);">On The Map</a></span> <a href="javascript:void(0);"><img src="images/map.jpg" style="margin:14px 0 0 23px; float:left;" /></a></div>
        <div class="slide_box"><span><a href="javascript:void(0);">Slider</a></span> <a href="javascript:void(0);"><img src="images/1.jpg" style="margin:7px 0 0 13px; float:left;" /></a></div>
        <?php $location_tagsss=$obj1->events_locations($result['id']); ?>   
<?
           $longitude=$location_tagsss[0]['longitude'];
           $lattitude=$location_tagsss[0]['lectitude'];
		  
		   ?>
         <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
         <script>var map;
function initialize() {
  var mapOptions = {
    zoom: 10,
    center: new google.maps.LatLng(<?=$lattitude?>, <?=$longitude?>)
  };
  map = new google.maps.Map(document.getElementById('map-canvas'),
      mapOptions);
}

google.maps.event.addDomListener(window, 'load', initialize);

    </script>
        <div class="map" id="map-canvas" style="width:100%; height:380px;"></div>
        
        	<!-- Start WOWSlider.com BODY section -->
	<div class="slide_u">
     <div id="slideer" class="aslider" data-duration="10" data-hide-controls>
    



<?php $arr =$obj1->event_gallery($result['id']); 
	      $num = count($arr); 
	  ?> <? if($num>0){ $kj=5;
	        foreach($arr as $gallery){ 
			
			?>
<div class="aslide"><img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/event_gallery/<?=$gallery['img_path']?>&h=380&w=650&zc=1" alt="<?=$gallery['alttag']?>" title="<?=$gallery['alttag']?>" /></div>
<? $kj++; }}else{?>
<div class="aslide"><img src="data1/images/1.jpg" /></div>
<? }?>


</div>
</div>

	
	<!-- End WOWSlider.com BODY section -->
        
        </div>
        <!--slider end-->
        </div>
        <!--tabs start-->
        <div class="tab_box">
        			<span class="click"><a href="#">How to reach</a></span>
        			<div class="tab_box1" id="tab_box1">
        			<ul>
                        <li><a href="#" title="tab1">Details </a></li>
                        <li><a href="#" title="tab2">Cost </a></li>
                        <li><a href="#" title="tab3">Actions </a></li>                    
                        <li><a href="#" title="tab4">Extras</a></li>
                        <li><a href="#" title="tab5">Events</a></li>
					</ul>
					</div>
                    
                                <div id="content"> 
                                    <div id="tab1" class="tab_h">
                                     <!-- 	<div class="day_box">
                                        	<ul>
                                            	<span>Day</span>
                                            	<li><a href="#">1</a></li>
                                                <li><a href="#">2</a></li>
                                                <li><a href="#">3</a></li>
                                                <li><a href="#">4</a></li>
                                                <li><a href="#">5</a></li>                                           
                                            </ul>
                                        </div>
                                        
                                        <div class="day">
                                       
                                    	<ul>
                                            	<li>Day 1</li>
                                                <li>Arrive @ our office</li>
                                                <li>Laxmanjhula Laxman Jhula road near Hemkunt Gurudwara.</li>
                                                <li>Transfer to the camp site, hot lunch at camp.</li>
                                                <li>in free time explore the camp aria</li>
                                                <li>Enjoy beach volley-ball, badminton, and or play in the water</li>
                                                <li>Evening tea,</li>
                                                <li>Get prepared for fulfilled evening around a wam camp fire with Veg snacks.</li>
                                                <li>Dinner to be served at the dinning tent.</li>
                                                <li>Overninght at Camp.</li>
                                        	</ul>
                                            
                                            <ul style="margin-top:10px;">
                                            	<li>Day 2</li>
                                                <li>Arrive @ our office</li>
                                                <li>Laxmanjhula Laxman Jhula road near Hemkunt Gurudwara.</li>
                                                <li>Transfer to the camp site, hot lunch at camp.</li>
                                                <li>in free time explore the camp aria</li>
                                                <li>Enjoy beach volley-ball, badminton, and or play in the water</li>
                                                <li>Evening tea,</li>
                                                <li>Get prepared for fulfilled evening around a wam camp fire with Veg snacks.</li>
                                                <li>Dinner to be served at the dinning tent.</li>
                                                <li>Overninght at Camp.</li>
                                        	</ul>
                                            
                                        </div>-->
                                        <div class="day"> <?=$result['description']?></div>
                                        </div>
                                    <div id="tab2" class="tab_h">
                                     <?=$result['cost']?>
                                     
                                     <div class="costBox">
                                       		<ul>
                                            	<li class="cost_img1"><a href="#"><img src="../images/cost-img1.jpg"><span>Travel is not included. You have to reach Dhanaulti on your own.</span></a></li>
                                                <li class="cost_img2"><a href="#"><img src="../images/cost-img2.jpg"><span>All meals, morning / evening tea & snacks & welcome drink on arrival.</span></a></li>
                                                <li class="cost_img3"><a href="#"><img src="../images/cost-img3.jpg"><span>Accommodation is available that too in Swiss Tent .</span></a></li>
                                                <li class="cost_img4"><a href="#"><img src="../images/cost-img4.jpg"><span>All outdoor activities like trekking, rock climbing, flying fox, Rope Bridge, echo park etc.</span></a></li>
                                            </ul>
                                    </div>
                                     
                                    </div>
                                    <div id="tab3" class="tab_h">
                                    <?php if($result['steps']!=''){?>
                                     <ul>
									 <? $stepss=explode('##',$result['steps']); 
                                     foreach($stepss as $step){
                                      ?>
                                     <li><?=$step?></li>
                                     <? } ?> </ul><? } ?> 
                                    </div>
                                    <div id="tab4" class="tab_h">
                                    3
                                    </div>
                                    <div id="tab5" class="tab_h">
                                    4
                                    </div>
                                    
                                </div>
                                        
 </div>
        <!--tabs end-->
        
        </div>
    <!--wraper left end-->
    
    <!--wraper right start-->
    	<div id="wraper_right">
        <div class="pos_r">
        	<div class="cost">
            	<span style="font-size:12px;">Cost per person (INR)</span> <i style="font-size:12px;">Availability</i>
                <span style="font-weight:bold; color: #03a3df; text-shadow:0 0 1px #fff; ">Rs.<?=$result['cost']?></span> <i style="font-weight:bold"><?php if($result['seats']>0){ echo 'Available'; }else{ echo 'Not Available'; }?></i>
            </div>
        	
            <div class="book_box">
            <div class="event_book">
            <? $creaters_eve=$obj1->userinfo($result['userid']);
				  if($result['booking_facility']==1 or $creaters_eve['usertype']=='Adventure'){ ?>
            <?php if($result['userid']!=$_SESSION['userid']){?><a onclick="return check_login_book();" href="javascript:void(0);" <? }?>  >Book Now</a> <? }?></div>
             <div class="book_details">
             
             <div class="date_eventd">
                <div class="inner_u">Date<span>:</span></div>
                <p><? if($result['custome_date']!='')
		                      {
			                  echo $result['custome_date'];
			                   }
			                else
			                  {
		if(date('d-m-Y',strtotime($result['date_to']))!='01-01-1970'){
		          echo 'From '.date('jS M, y',strtotime($result['date_from'])).' to '.date('jS M, y',strtotime($result['date_to']));
		       }
		  else{
			  echo 'On '.date('jS M, y',strtotime($result['date_from']));
			  }
			} ?></p>
                <a href="#"><img src="images/cele_icon.jpg" /></a>
            </div>
            
            <div class="date_eventd">
                <div class="inner_u">Where<span>:</span></div>
                <p><?=$result['where_area']?></p>
                <a href="#"><img src="images/book2.jpg" /></a>
            </div>
            
            <div class="date_eventd">
                <div class="inner_u">Duration<span>:</span></div>
                <p><?=$result['duration']?></p>
                <a href="#">&nbsp;</a>
            </div>
            
            <div class="date_eventd">
                <div class="inner_u">Difficulty<span>:</span></div>
                <p><?php if($result['difficulty_level']==1){ echo 'Easy';}
					elseif($result['difficulty_level']==2){ echo 'Moderate';}
					elseif($result['difficulty_level']==3){ echo 'Difficult';} elseif($result['difficulty_level']==4){ echo 'Strenuous';}else{ echo '-';}  ?></p>
                <a href="#"><img src="images/book3.jpg" /></a>
            </div>
            
            <div class="date_eventd">
                <div class="inner_u">Capacity<span>:</span></div>
                <p><?php if($result['capacity']!=''){echo $result['capacity'].' Seats';}else{ echo 'NA';}?></p>
                <a href="#"><img src="images/book4.jpg" /></a>
            </div>

             </div>
           <?php 
		$fbPost = "https://www.facebook.com/dialog/feed?app_id=267984193361306&display=popup&name=".urlencode($url_title)."&caption=".urlencode($fbcaption)."&description=".urlencode($fbdescp)."&picture=".urlencode($fbpicture)."&link=".urlencode($url_share)."&redirect_uri=http://www.365hops.com/social/closeFbpop.html";
	    $twitterPost = "http://twitter.com/home?status=".urlencode($url_title)."+".urlencode($url_share);
	    $googlePost = "https://plus.google.com/share?url=".urlencode($url_share);
		?>
             <div class="book_face">
        <?php echo '<a href='.$fbPost.' onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600\'); return false;" title="Share on Facebook" ><img src="images/face.jpg" /></a>'; 
        echo '<a href='.$twitterPost.' onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600\'); return false;" title="Share on Twitter"><img src="images/twiter.jpg" /></a>';
        echo '<a href='.$googlePost.' onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600\'); return false;" title="Share on Google Plus" ><img src="images/google.jpg" /></a>'; ?> 	
                
                </div>
             
             <div class="event_butt">
             <a href="javascript:viod(0);" <?=$sty_show?> onClick="return show_ineterest(<?=$result['id']?>);" id="show_int_hrf" >Like this Event</a>
    <a href="javascript:viod(0);" <?=$str_shown?> onClick="return show_unineterest(<?=$result['id']?>);" id="shown_int_hrf" >Liked</a>
          
             
             <ul>
             	<li>Call Us</li>
                <li style="font-size:13px;">9911608539, 01204127715</li>
              
                <li><?  if($creaters_eve['serviceid']=='0'){ echo 'shared by'; }else{  echo 'in collaboration with'; } ?></li>
                
             </ul>
             
             </div>
      <? //print_r($creaters_eve);   
	        $ctreater_link=baseurl.'socail/index.php?f='.$creaters_eve['user_fullname'].'&m='.base64_encode($creaters_eve['user_id'].$creaters['user_fullname']);
	?>
             <div class="rishirokz_butt"><?  if($creaters_eve['serviceid']==0){ ?><a href="javascript:void(0);"><?=ucwords($creaters_eve['user_fullname'])?></a><? } else{ ?><?=ucwords($creaters['user_fullname'])?><? }?>
             
             </div>
           <? if($result['departure_date']!=''){
			   $departure_dates=explode('#',$result['departure_date']);
			   ?>
             <div class="avilable"><a href="javascript:void(0);">Available Dates</a><span class="pra" style="background:none !important"><img src="images/plus_ev.png" id="plus_icon_date"  /><img style="display:none;" src="images/minus_ev.png" id="minus_icon_date"  /></span>
             	<div class="dates" style="display:none;">
                	<ul>
                    	<li style="line-height:10px;">&nbsp;</li>
                    	<? if(count($departure_dates)>0){foreach($departure_dates as $depart_date){?>
                        <li><a href="#"><?=$depart_date?></a></li>
                        <? }}?>
                    
                        <li>&nbsp;</li>
                        
                    </ul>
                </div>
             	
             </div>
            <? }?> 
             
             
        	</div>
        </div>
           
            
            
            
        </div>
        <div class="clear"></div>
    <!--wraper right end-->  
    </div>
    <div class="footer-down" id="footer-down">
   <?php if($_SESSION['userid']!=''){ 
							  $user_de=$obj1->userinfo($_SESSION['userid']);
							    $user_loc=$user_de['location1'].', '.$user_de['location2'];
                                $user_longitude=$user_de['longitude']; 
							    $user_lectitude=$user_de['lectitude'];
							    }else{
								$user_loc="New Delhi";
                                $user_longitude=77.16433370000004; 
							    $user_lectitude=28.5939238;
							    } 
								//
								if($user_loc==''){
									$user_loc='New Delhi';
									}
								if($user_longitude==''){
									$user_longitude=77.16433370000004;
									}
								if($user_lectitude==''){
									$user_lectitude=28.5939238;
									}	
								//
								if($result['plc_name']!=''){
									$eve_loc=$result['plc_name'].', '.$result['plc_name2'];
									$eve_longitude=$result['longitude'];
									$eve_lectitude=$result['lectitude'];
									} ?>
      <div class="box-set" style="background:none repeat scroll 0 0 #03a3de; color:#ffffff; padding:15px 0; font-size:14px;">Starting Point:  <?=$result['plc_name2']?> <span style="float:right; padding-right:10px;">How to reach there</span></div>                              
								
	<iframe width="100%" height="600" src="http://free.rome2rio.com/s/<?php if($user_loc!=''){?><?=$user_loc?>-(<?=$user_lectitude?>,<?=$user_longitude?>)/<? } if($eve_loc!=''){?><?=$eve_loc?>-(<?=$eve_lectitude?>,<?=$eve_longitude?>)/<? }?>?brand=365hops" id="how-to-reach-r2r"></iframe>							
    </div>  
    </div>
</div>


<!--tabs jquery start-->

	<script type="text/javascript" src="engine1/wowslider.js"></script>
	<script type="text/javascript" src="engine1/script.js"></script>

<script>
$(document).ready(function() {
	$("#content div.tab_h").hide(); // Initially hide all content
	$(".tab_box1 li:first").attr("id","current"); // Activate first tab
	$("#content div.tab_h:first").fadeIn(); // Show first tab content
    
    $('.tab_box1 a').click(function(e) {
        e.preventDefault();        
        $("#content div.tab_h").hide(); //Hide all content
        $(".tab_box1 li").attr("id",""); //Reset id's
        $(this).parent().attr("id","current"); // Activate this
        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab
    });
})();
</script>
<!--tabs juqery end-->

<script>
$(document).ready(function()
{


$( window ).scroll(function() {
var el=document.getElementById("footer-down");

  if(elementInViewport2(el)){    
  
  
  $("#wraper_right .pos_r").addClass("fixe_d");
  
  
  }
  else
  {
	  
	 if($("#wraper_right .pos_r").hasClass("fixe_d"))
	 {  
  $("#wraper_right .pos_r").removeClass("fixe_d");} 
	  
	 }
  
  
  
  
});


}
);



function elementInViewport2(el) {
  var top = el.offsetTop;
  var left = el.offsetLeft;
  var width = el.offsetWidth;
  var height = el.offsetHeight;

  while(el.offsetParent) {
    el = el.offsetParent;
    top += el.offsetTop;
    left += el.offsetLeft;
  }

  return (
    top < (window.pageYOffset + window.innerHeight) &&
    left < (window.pageXOffset + window.innerWidth) &&
    (top + height) > window.pageYOffset &&
    (left + width) > window.pageXOffset
  );
}




</script>
<?php include_once('__includedFiles/dashboard_footer.php');?>

,