Current Path : /var/www/html/social/
Upload File :
Current File : /var/www/html/social/finder_detail.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');?>
<?  $obj1=new Social(); $user_id=$_SESSION['userid']; 
  $requestid=base64_decode($_REQUEST['requestid']);
  if($requestid!='')
  {
  $results=$obj1->get_finder_request($requestid);
  }
  $no_rows=count($results);
 $result=$results[0];

?>
<script type="text/javascript">
 function show_ineterest(finderid)
  {
     if(finderid!='')
      {
		    $('#show_interst_div_id ').hide('fast');
        $('#intersted_div_id ').show('fast');
        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_finder=show_ineterst_finder&finderid="+finderid+"&userid="+userid,
             type: "GET",
			 success:(function(){ })
          });
	   }
	   else
	   {
		  alert("Finder Id is blank");
		  return false;
		 }
  }
  function show_unineterest(finderid122)
  {
     if(finderid122!='')
      {
       $('#intersted_div_id ').hide('fast'); 
        $('#show_interst_div_id ').show('fast'); 
       var previos12=parseInt($('#allready_ineterested_txt').text());
        var new_no_int12=parseInt(previos12)-1;
        $('#allready_ineterested_txt').text(new_no_int12);
      
      var userid122 =<?=$user_id;?>;
       $.ajax({ 
            url: "main_ajax.php?show_ineterst_finder=show_ineterst_finder&finderid="+finderid122+"&userid="+userid122,
             type: "GET",
       success:(function(){       
      
       })
          });
     }
     else
     {
      alert("Finder Id is blank");
      return false;
     }
  }
 function intersetd_peple_list(finderid1)
  {
	
	 
     if(finderid1!='')
       {
		   $('#finder_peoples_interested').empty();
		   $.ajax({ 
            url: "main_ajax.php?interested_peoples_in_finder=interested_ppl&finderid="+finderid1,
            type: "GET",
			 success:(function(interst_pepl){
				 $('#finder_peoples_interested').html(interst_pepl);
				 })
          });
	   }
	   else
	   {
		  alert("Finder Id is blank");
		  return false;
		 }
  
	  
	 } 
</script>
<!-- event page html -->
<div class="kafe_detail">
<div  class="eventleftsec">
<?php $creaters=$obj1->userinfo($result['creater_id']);
       $ctreater_link='../social/index.php?f='.$creaters['user_fullname'].'&m='.base64_encode($creaters['user_id'].$creaters['user_fullname']); ?>
<div class="messsection">
<div class="finderrequtxt">   
    Finder Request :<?=$result['looking_for']?>  
</div>


<div id="events_info1" class="tabs8_event_page" style="display:block;">
<ul class="eventlylist">
<?php $interests_ids_str=$obj1->get_finder_segments($result['id']);
	foreach($interests_ids_str as $interest_str){
		$inteterest_details=$obj1->get_interest_by_id($interest_str);
		?>

 <li>
 <a href="">
 	<span class="evnhe"><img width="35" height="35" src="../admin/segment_pics/<?=$inteterest_details['icon_small'];?>" /></span>
    <span class="yourtxt"><?=$inteterest_details['name']?></span>
  </a>  
 </li>
 <? }?>
 
</ul>
<div class="clear"></div>
<div class="kafe_conpadd evnfont eventxtpadd">
  <div class="evn_location">
<div class="sectone">
<strong class="wid"><i class="searchicon"><img src="images/searchicn.png" width="16" height="12" /></i>Looking for: </strong>
<div class="evnlo indivi"><?=$result['request_type']?></div>
<div class="clear"></div>
</div>

<div class="evadd1">
<strong class="wid"><dd class="searchicon"></dd>Where: </strong>
 <?php  $healthkafe_finder_locationss=$obj1->finder_locations($result['id']);
    	if(count($healthkafe_finder_locationss)>0){
		foreach($healthkafe_finder_locationss as $healthkafe_finder_location){
	
  ?><div class="evaddsec evpad"><?php print_r($healthkafe_finder_location['location1']);?></div> 

<? } }?>
<div class="clear"></div>
</div>
<div class="kafe_all_detail">
    <strong>Created Date:</strong>
    <span><?=date('jS M, Y',strtotime($result['creation_date']))?></span>    
</div>

<div class="evadd1">
<strong class="wid"><i class="searchicon"><img src="images/ii.png" width="10" height="16" /></i><span class="requse">Request <br />Description: </span></strong>
<p><?=$result['description']?></p>
</div>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>



<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="messsection top">
  <div class="kafe_messyotop">
<!--
<div class="kafe_sports_hdtoplast">
<ul class="tabs4">
<li id="Overall" class="selected4">Overall</li>
<li id="Only_friends">Only Friends</li>
<li id="media_blogs">Media n Blogs</li>
</ul>
</div>

<div class="clear"></div>-->
<div  class="tabs4_yurbor_page">

   <?php $arr=array('postTab'=>'hk_finder_request_vs_post','commentTab'=>'hk_finder_request_vs_post_vs_reply',
						                   'postlike'=>'hk_finder_request_vs_post_vs_like','commentlike'=>'hk_finder_request_vs_reply_vs_like',
										   'other'=>array('catid'=>$requestid));
		$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="messpaddtop" id="Overall">
<?php  require "__dashboardsupport/load_massageboard.php";?>
</div><div class="clear"></div></div>
<!--event page right html start -->
<aside class="kafe_activities_rit">

<div class="ritbos">
<div class="kafe_acti_cont evnfont evnimg pabtm coloevn">
   
     <a href="<?=$ctreater_link;?>"><img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/ProfileThumb/<?=$creaters['user_img']?>&h=86&w=94&zc=1" /></a>
<div class="kafe_evente_txt evntxtpa"><p><i>Created By:</i></p>
<b><a href="<?=$ctreater_link;?>"><?=ucwords($creaters['user_fullname'])?></a></b><br /> 
<i><?=ucwords($creaters['location2'])?></i>
</div>
      <div class="clear"></div>
  
  <div class="evnbtn">
    <?php if($result['userid']!=$_SESSION['userid']){?>  <i class="ms" ></i>
     
   <ul>
<li>
<span> <a href="javascript:void(0);" >Send creator a private message</a></span>
<ul id="show_msg_bx">
<li>
<div class="mebox">
 <img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/ProfileThumb/<?=$creaters['user_img']?>&h=26&w=32&zc=1" alt="<?=$creaters['user_fullname']?>" title="<?=$creaters['user_fullname']?>"  />
    <p style="color:#000;">Mesage to <b><?=ucwords($creaters['user_fullname'])?></b></p>
    <div class="clear"></div> 
  <form name="send_message" id="send_message" action="" method="post">
  <input type="hidden"  name="365msg_from" id="365msg_from" value="<?=$_SESSION['userid']?>" />
  <input type="hidden" id="365msg_to" name="365msg_to"  value="<?=$creaters['user_id']?>" />
  <textarea name="365message_body" id="365message_body" cols="" rows="" placeholder="write message here" ></textarea>
    <input type="submit" name="send_msg" style="display:none;" value="send" />
    <a href="javascript:void(0);"  onclick="send_365hopsmessage();" >Send</a>
   <span id="msg_body_error" style="color:#F00; float:left; display:none;">* required</span>
  </form> 
  </div>
</li>
</ul>

</li>
</ul>
<? }?> 
    </div>
  
 </div>
 
 <div class="evn_creat">
   <hgroup class="evncreat">
    <h5><a href="creat_finder.php">Create a new Finder Request</a></h5> 
 </hgroup>
 <?php 
     $int_shown = $obj1->finder_interst_shown($user_id,$result['id']);
   if($int_shown==0){ $shown='style="display:none"'; $show='style="display:block"'; }   else {
	    $shown='style="display:block"'; $show='style="display:none"'; 
	    } ?>
         <?php $interested_peoples=$obj1->finder_interested_peoples($result['id']);
               $no_of_intersted_peoples=count($interested_peoples);
 ?>
  <hgroup class="evncreat color1">
    <h5 <?=$shown?> id="intersted_div_id"><a href="javascript:viod(0);" onclick="return show_unineterest(<?=$result['id']?>);" >Liked</a></h5> 
     <h5 <?=$show?> id="show_interst_div_id"><a href="javascript:viod(0);" onclick="return show_ineterest(<?=$result['id']?>);">Like this Finder</a></h5> 
 </hgroup>
 
  
 </div>
 <div class="totalrevievn">
   <div class="eve_circle">
     <a  href="#finder_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="clear"></div>  
    </div>
<div class="clear"></div>
</div>
<!----------- People Interested ------------------>
   <div class="modal" id="finder_peoples_interested" tabindex="-1" role="dialog" style="display:none;" >
 
   </div>  
 <hgroup class="kafe_acti_hd paddtop">
    <h5>Similar Finder</h5> 
 </hgroup>
     
<ul class="searchotherevt">
	<?php $other_events=$obj1->similar_finders($result['id'],2); 
    if(count($other_events)>0){
	  foreach($other_events as $other_event)
	  {
 
       $interests_finder_healthkafe2=$obj1->get_finder_segments($other_event['id']);
		  //foreach($interests_finder_healthkafe as $interest_finder_healthkafe){ }
			$inteterest_details_finder_hk2=$obj1->get_interest_by_id($interests_finder_healthkafe2[0]);
			$img_seg_hk2="../admin/segment_pics/".$inteterest_details_finder_hk2['icon_small'];
				 
 ?>
    <li>       
         <div class="kafe_findtop">
          <a href="finder_detail.php?requestid=<?=base64_encode($other_event['id']);?>"><img width="53" height="54" src="<?=$img_seg_hk2?>"></a>
            <strong class="eventtxt eventtxtseac"><a href="finder_detail.php?requestid=<?=base64_encode($other_event['id']);?>"><?=$other_event['looking_for']?></a></strong>
         </div>         
        <div class="clear"></div>       
        <div class="eventouter eventoutersee">
                        <?php  $healthkafe_finder_locationss2=$obj1->finder_locations($other_event['id']);
						if(count($healthkafe_finder_locationss2)>0){
	                	foreach($healthkafe_finder_locationss2 as $healthkafe_finder_location2){
			    		?>
	         
                          <p><i class="dest3 finico"></i><?=$healthkafe_finder_location2['location1']?> </p>
                         <? }}?>
                          <div class="clear"></div>
                         <?php $hk_finder_posts=$obj1->finder_posts($other_event['id']);
		$no_hk_finder_posts=count($hk_finder_posts);
		
		    $hk_finder_creater2=$obj1->userinfo($other_event['creater_id']);
			$hk_finder_creater_link2='index.php?f='.$hk_finder_creater2['user_fullname'].'&m='.base64_encode($hk_finder_creater2['user_id'].$hk_finder_creater2['user_fullname']);
				
		?> 
         <span><i class="desti4"></i><?=$no_hk_finder_posts?> Replies</span>              
                                   
           <div class="kafe_finderimg">               
             <a href="<?=$hk_finder_creater_link2?>"><img src="<?=baseurl?>searching_files/timthumb.php?src=<?=baseurl?>social/ProfileThumb/Thumb/<?=$hk_finder_creater2['user_img']?>&h=28&w=27&zc=1"  /></a>
              <div class="evby"><i> By</i> <div class="clear"></div>
              <span><a href="<?=$hk_finder_creater_link2?>"><?=$hk_finder_creater2['user_fullname']?></a></span>
              </div>
            </div>
      </div>
     
    </li>
    <? }}?>
    
</ul>


      <!--<div class="clear"></div>
     
 </div>-->
 

<div class="clear"></div>
</aside>

<!--event page right html end -->


  <div class="clear"></div>
</div>



<!--event page html end -->

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

,