Current Path : /var/www/html/social/ |
|
Current File : /var/www/html/social/event_detail2.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>
<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');?>
<link href="<?=baseurl?>social/css/healthkafe_inner_moni.css" rel="stylesheet" />
<link href="<?=baseurl?>social/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
<script type="text/javascript" src="<?=baseurl?>social/js/tabcontent.js"></script>
<link href="<?=baseurl?>social/css/tabcontent.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="<?=baseurl?>social/css/lean-slider.css" type="text/css" />
<link rel="stylesheet" href="<?=baseurl?>social/css/sample-styles.css" type="text/css" />
<script src="<?=baseurl?>social/js/lean-slider.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var slider = $('#slider').leanSlider({
directionNav: '#slider-direction-nav',
controlNav: '#slider-control-nav'
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
<?php if($_SESSION['userid']!=''){ if($_SESSION['bookpopup']=='Open'){?> $('#number_passengerbtn').trigger('click');<? } unset($_SESSION['bookpopup']); }?>
$("ul#topnav li").hover(function() { //Hover over event on list item
$(this).css({ 'background' : '#8393db url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item
$(this).find("span").show(); //Show the subnav
} , function() { //on hover out...
$(this).css({ 'background' : 'none'}); //Ditch the background
$(this).find("span").hide(); //Hide the subnav
});
jQuery('.slide').click(function(){
var totalhieght=0;
totalhieght=jQuery('.slide-box').height()+jQuery('.t-box').height()+80;
if(jQuery(this).hasClass('show')){
var clickobj=jQuery(this);
jQuery('.action_events').animate({
marginTop:662
},1000,function(){
$( ".t-box" ).animate({
width: "1023"
},1000,function(){
jQuery('.slide-box').slideDown("fast");
jQuery(clickobj).removeClass('show');
jQuery(clickobj).addClass('hideslide');
})
});
}else if(jQuery(this).hasClass('hideslide')){
var clickobj=jQuery(this);
jQuery('.slide-box').slideUp("fast");
$( ".t-box" ).animate({
width: "725"
},1000,function(){
jQuery('.action_events').animate({
marginTop:0
},1000,function(){
jQuery(clickobj).removeClass('hideslide');
jQuery(clickobj).addClass('show');
})
})
}
// Animation complete.
//jQuery('.slide-box').slideToggle("slow",function(){
//});
});
});
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();
}
</script>
<script type="text/javascript">
$(document).ready(function() {
$("ul#topnav li").hover(function() { //Hover over event on list item
$(this).css({ 'background' : '#8393db url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item
$(this).find("span").show(); //Show the subnav
} , function() { //on hover out...
$(this).css({ 'background' : 'none'}); //Ditch the background
$(this).find("span").hide(); //Hide the subnav
});
});
</script>
<script>
$(document) .ready (function(){
$(".ext") .click(function(){;
$(".hide") .toggle();
});});
</script>
<style>
.pageWrap {float: left;}
.pageContent { width: 680px; margin-top: 0px; float:left;}
.accordion { list-style-type: none; padding: 0; margin: 0 0 30px; }
.accordion ul { padding: 0; margin: 0; float: left; display: block; width: 100%; }
.accordion li { background:#03A3DE; list-style-type: none; padding: 0; margin: 0; float: left; display: block; width: 100%;}
.accordion li.active>a { background: url('images/close.png') no-repeat center right 5px ; }
.accordion li div { background: none repeat scroll 0 0 #fff;
border: 2px solid #03A3DE;
clear: both;
display: block;
float: left;
padding: 20px;
border-top:none;
}
.accordion a { text-decoration: none; border-bottom: 1px solid #fff; font-family:Arial; font-size:16px; color: #fff; padding: 10px; display: block; cursor: pointer; background: url('images/open.png') no-repeat center right 5px #03A3DE;}
/* Level 2 */
.accordion li ul li { background: #7FD2FF; font-size: 0.9em; }
</style>
<style>
.links{margin:0px;}
.links a{display:inline-block; }
.links a:hover{background:#eb3755; color:#fff;}
.content{ width:275px; height: auto; padding:0px; overflow:auto; }
.contents{ width:275px; height: 186px!important; padding:0px; overflow:auto; }
.contentss{ height: 133px !important;
overflow: auto;
padding: 0;
width: 268px; }
.mCustomScrollBox {
max-height: 225px;
}
</style>
<script type="text/javascript">
$(document).ready(function(e) {
$('#show_mapss').trigger('click');
});
function togel_details()
{
$('#readmore_span_hide').css('height','auto');
$('#show_btn_details').hide('fast');
$('#hide_btn_details').show('fast');
}
function hide_details()
{
$('#readmore_span_hide').css('height','125px');
$('#hide_btn_details').hide('fast');
$('#show_btn_details').show('fast');
$(window).scrollTop($('#readmore_span_focus').position().top);
}
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 send_joinrequest(eventid)
{
<?php if($_SESSION['userid']!=''){ ?>
if(eventid!='')
{
var userid =<?=$user_id;?>;
$('#send_join_hrf').hide('fast');
$('#send_join_hrf_done').show('fast');
var new_numb=parseInt($('#total_requested_numberss').text())+1;
$('#total_requested_numberss').text(new_numb);
$.ajax({
url: "main_ajax.php?send_joinrequest=send_joinrequest&eventid="+eventid+"&userid="+userid,
type: "GET",
success:(function(msg2){})
});
}
else
{
alert("Event Id is blank");
return false;
}
<? }else{?>
login_triger2($(location).attr('href'));
<? }?>
}
//
function open_del_Request(req_delid)
{
$('#delete_request_id').val(req_delid);
$('#Confirmdelete_requestbtn').trigger('click');
}
function del_req_action_no()
{
$('#close_del_req_box').trigger('click');
}
function del_req_action_yes()
{
var eventid44=$('#delete_request_id').val();
$('#close_del_req_box').trigger('click');
cancle_joinrequest(eventid44);
}
function cancle_joinrequest(eventid33)
{
<?php if($_SESSION['userid']!=''){ ?>
if(eventid33!='')
{
var userid =<?=$user_id;?>;
$('#send_join_hrf_done').hide('fast');
$('#send_join_hrf').show('fast');
var new_numb33=parseInt($('#total_requested_numberss').text())-1;
$('#total_requested_numberss').text(new_numb33);
$.ajax({
url: "main_ajax.php?send_joinrequest=send_joinrequest&eventid="+eventid33+"&userid="+userid,
type: "GET",
success:(function(msg2){})
});
}
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;
}
}
// requested People list//
function requested_peple_list(evenetid2)
{
if(evenetid2!='')
{
$('#event_peoples_requested').empty();
$.ajax({
url: "main_ajax.php?requested_peoples_in_event=requested_ppl&even_id="+evenetid2,
type: "GET",
success:(function(requested_pepl){
$('#event_peoples_requested').html(requested_pepl);
})
});
}
else
{
alert("Event Id is blank");
return false;
}
}
//
function new_joining_requests(evenetid3)
{
if(evenetid3!='')
{
$('#event_peoples_requested').empty();
$.ajax({
url: "main_ajax.php?joinrequest_in_event=requesteds&even_id="+evenetid3,
type: "GET",
success:(function(requeste_list){
$('#event_peoples_requested').html(requeste_list);
})
});
}
else
{
alert("Event Id is blank");
return false;
}
}
//
function accept_request(event_id,users_id)
{
<?php if($_SESSION['userid']!=''){ ?>
if(event_id!='')
{
var users_id=users_id;
$.ajax({
url: "main_ajax.php?accept_request=accept_request&event_id="+event_id+"&users_id="+users_id,
type: "GET",
success:(function(msgr1){
if(msgr1==1)
{
window.location.href='';
var li_id='liacp_'+users_id;
$('#'+li_id).hide();
}
else
{
alert("There must be some error.");
}
})
});
}
else
{
alert("Event Id is blank");
return false;
}
<? }else{?>
login_triger2($(location).attr('href'));
<? }?>
}
function reject_request(event_id,users_id)
{
<?php if($_SESSION['userid']!=''){ ?>
if(event_id!='')
{
var users_id =users_id;
$.ajax({
url: "main_ajax.php?reject_request=reject_request&event_id="+event_id+"&users_id="+users_id,
type: "GET",
success:(function(msgr){
if(msgr==1)
{
window.location.href='';
var li_id='liacp_'+users_id;
$('#'+li_id).hide();
}
else
{
alert("There must be some error.");
}
})
});
}
else
{
alert("Event Id is blank");
return false;
}
<? }else{?>
login_triger2($(location).attr('href'));
<? }?>
}
function add_people()
{
<?php if($_SESSION['userid']!=''){ ?>
var len=$('input:checkbox:checked.raj_add_peopl').length;
if(len>0)
{
//$('#p_span').empty();
var event_pplid=$('#eventid_froppl').val();
$( "#close_peoples" ).trigger('click');
var PPLIDss = $('input:checkbox:checked.raj_add_peopl').map(function(){
return $(this).val();
}).get();
$.ajax({
url: "main_ajax.php?invitemoreppleto_event=invite&eventid="+event_pplid+"&users_id="+PPLIDss,
type: "GET",
success:(function(){
window.location.href='';
})
});
}
else
{
alert("Please select atleast one checkbox to invite");
return false;
}
<? }else{?>
login_triger2($(location).attr('href'));
<? }?>
//return false;
}
function delete_people(p_ids)
{
<?php if($_SESSION['userid']!=''){ ?>
var delevent_id = <?=$eventid;?>;
if(confirm("Are you sure want to delete this people"))
{ $('#ppl_li_'+p_ids).remove();
$.ajax({
url: "main_ajax.php?reject_request=reject_request&event_id="+delevent_id+"&users_id="+p_ids,
type: "GET",
success:(function(){})
});
}
<? }else{?>
login_triger2($(location).attr('href'));
<? }?>
}
</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> 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>
<!------------->
<!-- event page html -->
<div class="kafe_detail">
<div class="eventleftsec">
<div class="messsection_moni">
<div class="kafe_desc_top">
<a href="#"><?=ucfirst($result['type'])?></a>
<span><?=$result['name']?></span>
<span class="read_more"> <?php if($result['userid']==$_SESSION['userid']){?><a href="<?=baseurl?>social/creat_event2.php?id=<?=base64_encode($result['id']);?>">Edit</a>
<? }?>
<span style="padding-left:5px;"><img src="images/visits.png" /></span>
<span style="padding:0px 5px; font-size:15px;"><?=$result['visitors']?> Views</span>
</span>
</div>
<div id="events_info1" class="tabs8_event_page" style="display:block;">
<ul class="eventlylist" style="width:390px; overflow:hidden;">
<li>
<a href="">
<span class="activities2">Activities</span>
</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 style="max-width:65px !important;;">
<a href=""><span class="youicon2 youiconall" style="background:none;"><img src="../admin/segment_pics/<?=$inteterest_details['icon_small']?>" style="height:40px !important; width:40px !important;" title="<?=$inteterest_details['name']?>" /></span>
<span class="yourtxt" style="width:116% !important"><?=$inteterest_details['name']?></span>
</a>
</li>
<? }?>
</ul>
<?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="social_icon">
<ul>
<?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" ><li class="facebook"></li></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"><li class="twitter"></li></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" ><li class="google_plus"></li></a>'; ?>
</ul>
</div>
<div class="social_icon">
<ul>
<li class="book"><a href="#enquiryOpen" role="button" id="enquiryOpenbtn" data-toggle="modal" >Send Inquiry</a>
<a href="#" id="enquiryOpenbtn_sent" style="display:none;" >Inquiry Sent</a>
</li>
<? $creaters_eve=$obj1->userinfo($result['userid']);
if($result['booking_facility']==1 or $creaters_eve['usertype']=='Adventure'){ ?>
<li class="book"> <?php if($result['userid']!=$_SESSION['userid']){?><a onclick="return check_login_book();" href="javascript:void(0);">Book</a><? }?></li><? }?>
</ul>
<div class="call_us"><p>Call us-99<span>11608</span>539, 01204<span>127715</span></p></div>
</div>
<div class="clear"></div>
<div class="kafe_conpadd_moni evnfont" style="margin:5px 0px;">
<div class="banner">
<div class="slid">
<div class="slider-wrapper">
<div id="slider">
<?php $arr =$obj1->event_gallery($result['id']);
$num = count($arr);
?> <? if($num>0){
foreach($arr as $gallery){
//conainer($h1,$w1), Img($h,$w);
$h1=380;$w1=685;
$file=baseurl.'social/event_gallery/'.$gallery['img_path'];
list($width, $height) = getimagesize($file);
$ratio=$obj1->aspect_ratio($h1,$w1,$height,$width);
?>
<div class="slide1">
<? if($ratio==0)
{
if($height>$width){
$newheight=$h1;
$newwidth=round($h1*($width/$height),0);
$str_margin='';
if($newwidth>$w1){
$newwidth=$w1;
$newheight=round($w1*($height/$width),0);
$height_diff=round(($h1-$newheight)/2,0);
if($height_diff>0){
$str_margin='margin-top:'.$height_diff.'px; margin-bottom:auto;';
}
}
}
else
{
$newwidth=$w1;
$newheight=round($w1*($height/$width),0);
$height_diff=round(($h1-$newheight)/2,0);
$str_margin='margin-top:'.$height_diff.'px; margin-bottom:auto;';
if($newheight>$h1)
{
$newheight=$h1;
$newwidth=round($h1*($width/$height),0);
$str_margin='';
}
}
$img_style='style="width:'.$newwidth.'px; height:'.$newheight.'px; text-align:center; margin-left: auto; margin-right: auto; '.$str_margin.'"';
?>
<img <?=$img_style?> src="<?=baseurl?>social/event_gallery/<?=$gallery['img_path']?>" alt="<?=$gallery['alttag']?>" title="<?=$gallery['alttag']?>" />
<?
}else{?>
<img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/event_gallery/<?=$gallery['img_path']?>&h=380&w=685&zc=1" alt="<?=$gallery['alttag']?>" title="<?=$gallery['alttag']?>" />
<? }?>
<!-- <span style="width:500px; height:50px; position:absolute; margin-bottom:10px; z-index:999999; background:#03F;"><?=$gallery['img_name']?></span>-->
</div>
<? }}?>
</div>
<div id="slider-direction-nav"></div>
</div>
</div>
<?php $location_tagsss=$obj1->events_locations($result['id']); ?>
</div>
<div class="clear"></div>
<div class="kafe_conpadd_moni evnfont">
<div class="kafe_all_detail_evn">
<strong> Event Type:</strong>
<span><?=ucfirst($result['event_type'])?></span>
<div class="kafe_sporboar">
<?php if($result['event_type']=='Public'){ ?> For everybody - this event has been created to let other people in the network know about this event and join it<? }else if($result['event_type']=='Invitational'){?>
For friends and followers but creator doesn’t mind if people want to join this event with permission
<? }else{ echo ' ';}?> </div>
</div>
<div class="clear"></div>
<div class="clear"></div>
</div>
</div></div></div>
<div class="mid_container">
<div class="middle_container">
<h2>Location: <?=$location_tagsss[0]['location2']?><?
$longitude=$location_tagsss[0]['longitude'];
$lattitude=$location_tagsss[0]['lectitude'];
?></h2>
<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 id="map-canvas" style="width:350px; height:218px; margin-top:10px;"></div>
</div>
<div class="middle_container">
<h2>Cost : <?=$result['cost']?></h2>
<ul>
<li class="transport" style="width:91% !important;"><? if($result['travel']!=''){ echo $result['travel']; }else{ echo '-';}?></li>
<li class="food" style="width:91% !important;"><? if($result['food']!=''){ echo $result['food']; }else{ echo '-';}?></li>
<li class="stay" style="width:91% !important;"><? if($result['accommodation']!=''){ echo $result['accommodation']; }else{ echo '-';}?></li>
<li class="rafting" style="width:91% !important;"><? if($result['other']!=''){ echo $result['other']; }else{ echo '-';}?></li>
</ul>
</div>
</div>
<div class="itenerary">
<h2 id="readmore_span_focus">Details and Itinerary</h2>
<div class="itenerary_details">
<div id="readmore_span_hide" style="height:125px; min-height:125px; width:100%; overflow:hidden;"><p>
<?=$result['description']?></div>
<span class="read_mor"><a href="javascript:void(0);" onclick="return togel_details();" id="show_btn_details">Read More</a>
<a href="javascript:void(0);" onclick="return hide_details();" id="hide_btn_details" style="display:none;">Hide Detail</a>
</span>
</div>
</div>
<div class="reach_there">
<div class="pageContent">
<div class="t-box" style="margin-top:19px;">
<span class="box-set"><a class="slide show" id="show_mapss">Starting Point: <?=$result['plc_name2']?> <span class="rch">How to reach there</span></a></span>
<div style="display:block;" class="slide-box">
<?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'];
}
//echo '<pre>';print_r($result); die('hello');
?>
<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>
</div>
<!-------- Messsage Section Start Here---------->
<div class="messsections top">
<div class="kafe_messyotop">
<div class="tabs4_yurbor_page">
<?php $arr=array('postTab'=>'hk_event_vs_post','commentTab'=>'hk_event_vs_post_vs_reply',
'postlike'=>'hk_event_vs_post_vs_like','commentlike'=>' hk_event_vs_reply_vs_like',
'other'=>array('catid'=>$eventid));
$serialize = serialize($arr);
$encryptarr = base64_encode(base64_encode($serialize));
$postTable = $arr['postTab'];//'social_userpost';
$postLikeTable = $arr['postlike'];//'socialpostvslikes';
$replyTable = $arr['commentTab'];//'social_userreply';
$replyLikeTable = $arr['commentlike'];//'socialreplyvslikes';
$catid = $arr['other']['catid'];
?>
<?php //if(in_array($_SESSION['userid'],$friendsArrFormat)){
require "__dashboardsupport/dashboard_box.php";
//}?>
<div class="clear"></div></div></div></div>
<style type="text/css" >
.poster{
border:none;
margin:0 0 0 1px !important;
}
.messpaddtop{
margin: 22px auto 0 53px !important;
position: relative;
width: 648px !important;
}
.post-info{
float: right;
min-height: 50px;
padding: 0;
width: 605px;
}
.textararea{padding:0px !important;
padding-left:21px !important; }
.comment-txtbottom{ width:106% !important;}
#upload{ margin-left:5px !important;}
</style>
<div class="clear"></div>
<div class="messpaddtoppp" id="Overall">
<?php require "__dashboardsupport/load_massageboard.php";?>
</div><div class="clear"></div>
<!--event page right html start -->
<!------ End Heree------------>
</div>
<!--event page right html start -->
<aside class="kafe_activities_rit">
<?php $creaters=$obj1->userinfo($result['userid']);
$ctreater_link=baseurl.'socail/index.php?f='.$creaters['user_fullname'].'&m='.base64_encode($creaters['user_id'].$creaters['user_fullname']);
?>
<div class="ritbos">
<div class="kafe_acti_cont_moni evnfont evnimg pabtm">
<?php if($creaters['serviceid']==0){?>
<div class="right_section">
<div class="associate"><img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/ProfileThumb/<?=$creaters['user_img']?>&h=119&w=275&zc=1"/>
<p><?=ucwords($creaters['user_fullname'])?></p></div>
</div>
<? }else{?>
<div class="right_section">
<div class="associate"><img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/ProfileThumb/<?=$creaters['user_img']?>&h=119&w=275&zc=1"/><p>In association with local group
: <?=ucwords($creaters['user_fullname'])?></p></div>
</div>
<div class="kafe_acti_txt_moni evntxtpa"><p><a href="#">About the group</a></p>
</div>
<? }?>
<div class="clear"></div>
<!--<div class="evnbtn">
<span> Send creator a private message</span>
</div>-->
</div>
<div id="content_1" class="content">
<div class="about_the_group">
<p style="width:100%;"> <span >Date :</span><?php if($result['custome_date']!=''){
echo $result['custome_date'];
}else{ if(date('d-m-Y',strtotime($result['date_to']))!='01-01-1970'){ echo 'From '; echo date('jS M, y',strtotime($result['date_from'])); echo' to '; echo date('jS M, y',strtotime($result['date_to'])); } else{ echo 'On '; echo date('jS M, y',strtotime($result['date_from']));} }?></p>
<?php if($result['timings']!='' and $result['timings']!='NA'){ ?> <p style="width:100%;"> <span>Timings :</span> <?=$result['timings']?></p><? }?>
<p style="width:100%;"> <span>Where :</span> <?=$result['where_area']?></p>
<!--<p style="width:100%;"><span class="address"><?=$location_tagsss[0]['location2']?></span></p> -->
<p style="width:100%;"> <span>Duration:</span><?=$result['duration']?></p>
<p style="width:100%;"> <span>Seat Availability :</span> <?php if($result['seats']=='0' or $result['seats']=='NA'){echo 'Not available';}else{ echo 'Available';}?></p>
<p style="width:100%;"> <span>Cost per person (INR):</span><?=$result['cost']?></p>
<p style="width:100%;"> <span>maximum capacity:</span><?php if($result['capacity']!=''){echo $result['capacity'];}else{ echo 'NA';}?></p>
</div> </div>
<div class="clear"></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;"';
}
?>
<?php
if($_SESSION['userid']!=''){
$invited_staus=$obj1->event_invited_status($result['id'],$_SESSION['userid']);
}
$requested_peoples=$obj1->event_people_list_invited($result['id'],'Request');
$no_of_requested=count($requested_peoples);
// $user_req_status=$obj1->user_eventjoin_request_status($_SESSION['userid'],$result['id']);
if($invited_staus=='Request')
{
$st_requested=' style="display:none;"';
$st_alreadyrequested=' style="display:block;"';
$strsend_join_txtx="Already sent a request";
}
elseif($invited_staus=='Invitation')
{
$st_requested=' style="display:none;"';
$st_alreadyrequested=' style="display:block;"';
$strsend_join_txtx="Invited";
}
elseif($invited_staus=='Accepted')
{
$st_requested=' style="display:none;"';
$st_alreadyrequested=' style="display:block;"';
$strsend_join_txtx="Going";
}
else
{
$strsend_join_txtx="Already sent a request";
$st_requested=' style="display:block;"';
$st_alreadyrequested=' style="display:none;"';
}
if($result['date_from']>=date('Y-m-d'))
{
$joining_condition='style="display:block;"';
}
else
{
$joining_condition='style="display:none;"';
}
?>
<div class="evn_creat">
<hgroup class="evncreat color1">
<h5><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></h5>
</hgroup>
<hgroup class="evncreat color2">
<h5><a <?=$st_requested ?> href="javascript:void(0);" <?php if($result['date_from']>=date('Y-m-d'))
{?> onClick="return send_joinrequest(<?=$result['id']?>);" <? }?> id="send_join_hrf">Send a Join Request </a>
<a <?=$st_alreadyrequested ?> href="javascript:void(0);" onClick="return open_del_Request(<?=$result['id']?>);" id="send_join_hrf_done" ><?=$strsend_join_txtx?></a>
</h5>
</hgroup>
<hgroup class="evncreat">
<h5><a href="javascript:void(0);" onClick="return open_creat_eventpopup();">Create a new Event</a></h5>
</hgroup>
</div>
<div class="totalrevievn">
<div class="marritevn">
<a href="#event_peoples_interested" role="button" data-toggle="modal" onClick="return intersetd_peple_list('<?=$result['id']?>');" > <div class="totalnumberevn" id="allready_ineterested_txt"><?=$no_of_intersted_peoples?></div>
<div class="totatxtenv evncolor">People <br>Liked this</div></a>
</div>
<div class="marritevn">
<a href="#event_peoples_requested" role="button" data-toggle="modal" <?php if($result['userid']==$_SESSION['userid']){?> onClick="return new_joining_requests('<?=$result['id']?>');" <? }else{?> onClick="return requested_peple_list('<?=$result['id']?>');" <? }?> ><div class="totalnumberevn" id="total_requested_numberss"><?=$no_of_requested?></div>
<div class="totatxtenv evncolor">Joining <br>Requests</div></a>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<hgroup class="kafe_acti_hd paddtop">
<h5>People in this Event</h5>
</hgroup>
<?php $user_not_accepted=$obj1->event_people_list_invited($result['id'],'Invitation');
//$user_not_accepted=$obj1->event_people_list($result['id'],'0');
$not_no=count($user_not_accepted);
$user_accepted=$obj1->event_people_list($result['id'],'1');
$acp_no=count($user_accepted);
?>
<div class="box1">
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Joined(<?=$acp_no?>)</a></li>
<li><a href="#" rel="country2">Invited(<?=$not_no?>)</a></li>
</ul>
<div class="projects_tab" style="max-height:none !important;">
<div id="content_3" class="contentss" style="height:178px !important
">
<div id="country1" class="tabcontent">
<?php if($acp_no>0){
foreach($user_accepted as $useracp)
{
$user_info41=$obj1->userinfo($useracp);
$plink41=baseurl.'social/index.php?f='.$user_info41['user_fullname'].'&m='.base64_encode($user_info41['user_id'].$user_info41['user_fullname']);
if($user_info41['user_fullname']!=''){ ?>
<div id="ppl_li_<?=$useracp?>">
<a href="<?=$plink41?>"><img src="<?=baseurl?>social/ProfileThumb/<?=$user_info41['user_img']?>" style="height:49px; width:49px;" alt="<?=$user_info41['user_fullname']?>" title="<?=$user_info41['user_fullname']?>" />
</a>
<p class="people_name"><?=ucwords($user_info41['user_fullname'])?></p>
<p><?=$user_info41['location2']?></p>
</div>
<? }}}?>
</div>
<div id="country2" class="tabcontent">
<?php
if($not_no>0){
foreach($user_not_accepted as $not_accepted){
$user_info11=$obj1->userinfo($not_accepted);
$plink2=baseurl.'social/index.php?f='.$user_info11['user_fullname'].'&m='.base64_encode($user_info11['user_id'].$user_info11['user_fullname']);
?>
<div id="ppl_li_<?=$not_accepted?>"><a href="<?=$plink2?>">
<img src="<?=baseurl?>social/ProfileThumb/<?=$user_info11['user_img']?>" style="height:49px; width:49px;" alt="<?=$user_info11['user_fullname']?>" title="<?=$user_info11['user_fullname']?>" /></a>
<p class="people_name"><?=ucwords($user_info11['user_fullname'])?></p>
<p><?=$user_info11['location2']?></p>
</div>
<? }}?>
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</div>
<div class="clear"></div>
<hgroup class="kafe_acti_hd paddtop">
<h5>Action for you </h5>
</hgroup>
<div id="content_2" class="contents">
<div class="action_you" style="height:184px !important">
<ul> <?php if($result['steps']!='') {$stepss=explode('##',$result['steps']);
foreach($stepss as $step){
?>
<li><?=$step?> </li> <? }}else{?>
<li></li>
<? } ?>
</ul></div>
</div>
<div class="clear"></div>
<div class="action_events">
<hgroup class="kafe_acti_hd paddtop">
<h5>Other Events</h5>
</hgroup>
<div class="kafe_acti_cont_moni">
<ul class="evnotherevnt">
<?php $other_events=$obj1->similar_events($eventid,2);
if(count($other_events)>0){
foreach($other_events as $other_event)
{
//print_r($other_event['where_area']);
?>
<li>
<div class="kafe_seetoprr_moni evnfont1">
<a href="<?=baseurl?>social/event_detail.php?eventid=<?=custome_encoding($other_event['id']);?>" ><?=$other_event['name']?></a>
</div>
<?php $gallry_other=$obj1->get_event_image($other_event['id']); ?>
<a href="<?=baseurl?>social/event_detail.php?eventid=<?=custome_encoding($other_event['id']);?>" ><img src="<?=baseurl?>searching_files/timthumb.php?src=<?=$gallry_other?>&h=163&w=247&zc=1" /></a>
<div class="clear"></div>
<div class="events_datetimg1">
<div class="kafe_evnadd"><i class="wt"></i>
<p><?php if($other_event['custome_date']!=''){
echo $other_event['custome_date'];
}else{ if(date('d-m-Y',strtotime($other_event['date_to']))!='01-01-1970'){ echo 'From '; echo date('jS M, y',strtotime($other_event['date_from'])); echo' to '; echo date('jS M, y',strtotime($other_event['date_to'])); } else{ echo 'On '; echo date('jS M, y',strtotime($other_event['date_from']));} }?></p>
<div class="clear"></div>
<i class="wtrout"></i> <span><?=$other_event['where_area']?></span>
</div>
</div>
<div class="kafe_eveimg">
<?php $interests_ids_str_other=$obj1->get_event_segments($other_event['id']);
if(count($interests_ids_str_other>0)){
foreach($interests_ids_str_other as $interest_str){
$inteterest_details1=$obj1->get_interest_by_id($interest_str);
?>
<img width="45" height="47" src="<?=baseurl?>admin/segment_pics/<?=$inteterest_details1['icon_small'];?>" alt="<?=$inteterest_details1['name']?>" />
<? }}?>
</div>
</li>
<? }}else{?>
<li>
<div class="kafe_seetoprr evnfont1">
No Event Found...
</div>
</li>
<? }?>
</ul>
</div>
</div>
<!--<div class="clear"></div>
</div>-->
<div class="clear"></div>
</aside>
<!--event page right html end -->
<div class="clear"></div>
</div>
<?php include_once('__includedFiles/dashboard_footer.php');?>
<script type="text/javascript">
$(".hedroup_a").click(function () {
$(".hedroup").slideToggle("fast");
});
</script>
<!-- toggle js end-->
<script src="<?=baseurl?>social/js/jquery.accordion.source.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function () {
//$('ul').accordion();
});
// ]]>
</script>
<script src="<?=baseurl?>social/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>
(function($){
$(window).load(function(){
$("#content_1").mCustomScrollbar({
autoHideScrollbar:true,
theme:"light-thin"
});
});
})(jQuery);
</script>
<script>
(function($){
$(window).load(function(){
$("#content_2").mCustomScrollbar({
autoHideScrollbar:true,
theme:"light-thin"
});
});
})(jQuery);
</script>
<script>
(function($){
$(window).load(function(){
$("#content_3").mCustomScrollbar({
autoHideScrollbar:true,
theme:"light-thin"
});
});
})(jQuery);
</script>
<!----------- People Interested ------------------>
<div class="modal" id="event_peoples_interested" tabindex="-1" role="dialog" style="display:none;" >
</div>
<!-------- People Requested------------->
<div class="modal" id="event_peoples_requested" tabindex="-1" role="dialog" style="display:none;" >
</div>
<!---- End--->
,