GIF89a php
Current File : /home/hencockfreshchic/public_html/app_old/tinder/profile.php
<?php
ob_start();
ini_set('error_reporting', E_STRICT);
include("session.php");
include("connect.php");
include("libs.php");
mysqli_set_charset($conn,'utf8');
date_default_timezone_set('Asia/Kolkata');
setOnline($conn,$_COOKIE["user_id"]);
?>
<!DOCTYPE html>
<html>
<?php include'head.php'; ?>
<body>
	<section class="mx-3">
   <div class="container no-gutters">
     <div class="row row-spac no-gutters">
       <div class="col-md-5 no-gutters my-1" style="margin: auto;padding: 0px;">
         <div class="row">
           <div class="col-12">
             <div class="top d-flex justify-content-center">
              <?php
              if(checkOnline($conn,$_GET['id'])>5){
              ?>
               <small class="bg-light rounded-pill text-danger p-2">Currently this listener is offline</small>
               <?php } else {  ?>
                <small class="bg-light rounded-pill text-danger p-2"><font color="green">Currently this listener is online</font></small>
                <?php } ?>
             </div>
           </div>
         </div>
        <div class="row">
           <div class="col-3 mx-0">
             <div class="d-flex justify-content-between align-items-center mt-3">
              <?php
                $img=profile($conn,$_GET['id'],"img");
                $genderr=profile($conn,$_GET['id'],"gender");

              ?>
               <img src="<?php echo findDP($conn,$img,$genderr); ?>" class="" style="height:auto; max-width: 120%">
             </div>
           </div>
           <div class="col-5">
             <div class="top my-3 float-start">
              <a href="" class="text-decoration-none text-dark"><?php echo profile($conn,$_GET['id'],"user_name"); ?></a><br>
              <a href="" class="text-decoration-none text-dark"> Recharge NOW</a><br>
              <?php 
              if(checkOnline($conn,$_GET['id'])>5){
              ?>
              <a href="" class="text-decoration-none text-success">Offline</a>
              <?php } else {  ?>
                <a href="" class="text-decoration-none text-success" style="color: green">Online</a>
                <?php } ?>
             </div>
           </div>
           <div class="col-4">
             <div class="top my-3 float-end">
              <a href="#" class="text-decoration-none text-white btn btn-dark d-block btn-sm" role="button">Report</a>
              <a href="#"><i class="bi bi-share-fill pt-3 float-start" onclick="share('<?php echo profile($conn,$_GET['id'],"user_name"); ?>','<?php echo profile($conn,$_GET['id'],"img"); ?>')"></i></a>
              <?php
              $user=profile($conn,$_GET['id'],"user_name"); 
              $url=urlencode($user.", Want to meet your. Just install Care Dating app and enjoy date with in your circle.")
              ?>
              <a href="https://wa.me/?text=<?php echo $url; ?>" data-action="share/whatsapp/share"><i class="bi bi-whatsapp pt-3 float-end"></i></a>
             </div>
           </div>
           <hr>
           </div>
<!--           <div class="row">
           <div class="col-2 bg-light rounded">
             <div>
               <img src="assest/images/girl.png" class="img-fluid">
             </div>
           </div>
           <div class="col-6 bg-light rounded">
             <div class="top my-3 float-start">
              <h4 class="">Parul</h4>
              <h6 class=""><i>@parul277</i></h6>
              <h6 class="text-success">Online</h6>
             </div>
           </div>
           <div class="col-4 bg-light rounded">
             <div class="top my-3 float-end">
              <h6 class="bg-dark text-white rounded p-2"><a href="#" class="text-decoration-none text-white">Report</a> </h6>
              <a href="#"><i class="bi bi-share-fill pt-3 float-start"></i></a>
              <a href="#"><i class="bi bi-whatsapp pt-3 float-end"></i></a>
             </div>
           </div>
             
           </div> -->
         </div>
       </div>
     </div>
   </div> 
  </section>
  <section class="mx-3">
    <div class="container no-gutters">
     <div class="row row-spac no-gutters">
       <div class="col-md-5 no-gutters my-1" style="margin: auto;padding: 0px;">
         <div class="row mb-3">
           <div class="col-12 rounded" style="background-color: #F1F1F1;">
             <div class="top my-3">
              <h6 class="my-4"> <i class="bi bi-file-person"></i> From</h6>
              <p><?php echo "I'm from ".profile($conn,$_GET['id'],"city")." ( ".profile($conn,$_GET['id'],"state")." )"; ?></p>
              <p><?php echo "Interested in ".profile($conn,$_GET['id'],"interest"); ?></p>
             </div>
           </div>
           </div>
         
           <div class="row mb-3">
           <div class="col-12 rounded bg-light">
             <div class="top my-2" >
              <h6 class="my-2">Details</h6>
              <b><i class="bi bi-info-circle-fill"><?php echo profile($conn,$_GET['id'],"gender"); ?></i><br>
              <i class="bi bi-person"> <?php echo profile($conn,$_GET['id'],"age"); ?> Years</i><br> <br>
              <i class="bi bi-vector-pen"> Language: Hindi English</i> 
             </div>
           </div>
           </div>
           <div class="row mb-3">
           <div class="col-12 rounded bg-light">
             <div class="top my-3">
              <h6 class="my-4"> <i class="bi bi-star-fill"></i> Rating</h6>
              <div class="float-end">
              <h6 class="fw-bold"><?php echo profile($conn,$_GET['id'],"rating")."/5"; ?></h6>
              <p class=""><?php echo followers($conn,$_GET['id'],"2"); ?> Followers </p>
              <p class=""><?php echo followers($conn,$_GET['id'],"3"); ?> Likes </p>
              <p class=""><?php echo followers($conn,$_GET['id'],"1"); ?> Following </p>
              </div>
             </div>
           </div>
           </div>
           <!-- <div class="row">
           <div class="col-12 rounded bg-light">
             <div class="top my-3">
              <h6 class="my-2"> <i class="bi bi-currency-bitcoin"></i> Charges</h6>
              <h6 class="mx-2 fw-bold">8.0/- per min</h6>
              <p class="mx-2 my-1"> Available on</p>
              <a href="#"><i class="bi bi-chat-left-text-fill"></i></a>
              <a href="#"><i class="bi bi-telephone-inbound-fill"></i></i></a>
             </div>
           </div>
           </div> -->
         </div>
       </div>
     </div>
   </div>
  </section>

  <section class="mx-3">
   <div class="container no-gutters">
     <div class="row row-spac no-gutters">
       <div class="col-md-5 no-gutters my-5" style="margin: auto;padding: 0px;">
         <div class="row">
           <div class="col-12">
            <div class=" d-flex justify-content-center bg-dark text-white fs-3 pt-2 rounded">
              <?php echo totalReview($conn,$_GET['id']); ?>+ Reviews
            </div>
           </div>
         </div>
         <?php
              $sqlR="SELECT * FROM `review` WHERE `user_id`='".$_GET['id']."' ORDER BY `sr` DESC";
              $rsR=mysqli_query($conn,$sqlR);
              while($rowR=mysqli_fetch_array($rsR)){
         ?>
         <div class="row">
           <div class="col-12 bg-light rounded">
             <div class="top my-3 float-start">
              <?php
                $star=round(profile($conn,$_GET['id'],"rating"));
                for($i=1;$i<=5;$i++){
                  if($i<=$star){
              ?>
              <i class="bi bi-star-fill" style="color: #D3C410"></i>
              <?php } else {  ?>
              <i class="bi bi-star-fill"></i>
              <?php } } ?>
              
              <h6 class="pt-3"><?php echo $rowR['msgg']; ?></h6>
             </div>
             <div class="top my-3 float-end">
              <h6><?php echo calTime($rowR['datee'],$rowR['timee']); ?> Hours Ago</h6>
              <!-- <a href=""><i class="bi bi-share-fill pt-3 float-end"></i></a> -->
             </div>
           </div>
            <hr>
         </div>
        <?php } ?>
         <?php include 'footer.php';?>
       </div>
     </div>
   </div> 
  </section>
</body>
</html>