Current Path : /var/www/html/social/ |
|
Current File : /var/www/html/social/turnamenthome.php |
<?php include_once('__includedFiles/header_top_files.php');
$obj1=new Social(); $user_id=$_SESSION['userid'];
$eventid=custome_decoding($_REQUEST['eventid']);
$nuserid=$eventid;
?>
<?php include_once('__includedFiles/header_top.php');?>
<?php include_once('__includedFiles/dashboard_header.php');?>
<?php include_once('__includedFiles/dashboard_menu.php');?>
<?php //require "__dashboardconfig/session.php"; ?>
<link href="css/styles.css" rel="stylesheet" />
<link href="css/styles2.css" rel="stylesheet" />
<!--For Slider-->
<link href="css/elastislide.css" rel="stylesheet" />
<script src="js/slider/jquerypp.custom.js"></script>
<script src="js/slider/modernizr.custom.17475.js"></script>
<script src="js/slider/jquery.elastislide.js"></script>
<script>
$(document).ready(function () {
$('#carousel').elastislide();
$(window).scroll(function () {
var Height_of_Header = 100;
if ($(window).scrollTop() > Height_of_Header) {
//begin to scroll
$(".rightfeeds").css("position", "fixed");
$(".rightfeeds").css("top", 0);
$(".destinations #floatbar_home").css("position", "fixed");
$(".destinations #floatbar_home").css("top", 0);
}
else {
//lock it back into place
$(".rightfeeds").css("position", "absolute");
$(".destinations #floatbar_home").css("position", "absolute");
}
});
});
</script>
<!--detail page html -->
<div class="side_detail">
<div class="total_wrap">
<?php include_once('__includedFiles/turnament_top.php');?>
<div style="clear:both"></div>
<? $gallry_arroundimg=$obj1->get_event_image($result['id']);
$h1=405;$w1=685;
$file=$gallry_arroundimg;
list($width, $height) = getimagesize($file);
$ratio=$obj1->aspect_ratio($h1,$w1,$height,$width);
?>
<h2 style="width:100%;">Top Stories</h2>
<div class="total_wrap_secondary frontpage">
<div class="wrapper left">
<div class="content">
<div class="bigpost">
<!-- <img src="images_new2/thumbnail-pic.png" />-->
<? 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="<?=$gallry_arroundimg?>" alt="" />
<?
}else{?>
<img src="<?=baseurl?>searching_files/timthumb.php?src=<?=$gallry_arroundimg?>&h=405&w=685&zc=1" alt="" />
<? }?>
<? $result['id'];?>
<div class="overlay">
<h4><a href="turnament_details?eventid=<?=$_REQUEST['eventid']?>" style="color:#333;" ><?=$result['detail_title']?></a></h4>
<pre><span><?=$result['where_area']?></span> <span> <? 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']));
} ?></span></pre>
</div>
</div> <!--Big Post-->
<div style="clear:both"></div>
<div class="slider" style="width:710px !important; padding-left:0px;">
<ul id="carousel" class="elastislide-list">
<? $stories=$obj1->get_turnament_story($eventid); if(count($stories)>0){
foreach($stories as $story){
?>
<li>
<a href="#">
<? $gallery_imges=$obj1->get_match_gallery($story['match_id']);
$gallery_imge=$gallery_imges[0];
?>
<? if($gallery_imge['path']!=''){?>
<img src="<?=baseurl.'social/'.$gallery_imge['path']?>" alt="image01" />
<? }else{?><img src="images_new2/thumbnail-pic.png" alt="image02" /><? }?>
<div class="overlay">
<h4><?=$story['result']?></h4>
<span>in a dramatic finish</span>
</div>
</a>
</li>
<? }}else{?>
<? }?>
<!-- ... -->
</ul>
</div> <!--Slider-->
</div>
<div style="clear:both"></div>
<div class="content-padding v2"></div>
<div class="wrapper left second" style="background-color:transparent !important; height:auto !important;">
<!-------- 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>
<div class="clear"></div><div class="clear"></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><!--wrapper left second inner-->
<div class="content-padding">
<br />
</div>
</div><!--wrapper left-->
<?php include_once('__includedFiles/turnament_right.php');?>
</div>
</div>
</div>
<div class="clear" ></div>
<?php include_once('__includedFiles/dashboard_footer.php');?>
,