ok
Direktori : /home2/selectio/www/wedding-info-new/ |
Current File : /home2/selectio/www/wedding-info-new/followers.php |
<?php include "header.php"; $uid=$_SESSION['user']['id']; $u_id=$_SESSION['user']['id']; $query_wishlist = "SELECT * FROM `tbl_wishlist` WHERE alliance_id = ".$u_id; $prepared2 = $pdo->prepare($query_wishlist); $prepared2->execute(); $result_wishlist = $prepared2->fetchAll(PDO::FETCH_ASSOC); // $query = "SELECT * FROM `tbl_alliances_register` LEFT JOIN tbl_wishlist on tbl_wishlist.alliance_id = tbl_alliances_register.id where tbl_wishlist.user_id =".$uid; $query = "SELECT * FROM `tbl_wishlist` LEFT JOIN tbl_alliances_register ON tbl_alliances_register.id = tbl_wishlist.user_id WHERE tbl_wishlist.alliance_id = ".$uid; $prepared = $pdo->prepare($query); $prepared->execute(); $result = $prepared->fetchAll(PDO::FETCH_ASSOC); ?> <header> <div class="back-links"> <a href="index.html"> <i class="iconly-Arrow-Left icli"></i> <div class="content"> <h2>Followers </h2> </div> </a> </div> <div class="header-option"> <ul> <li> <a href="#"><i class="iconly-Buy icli"></i></a> </li> </ul> </div> </header> <!-- header end --> <!--all verified data start--> <?php foreach ($result as $result1){ $query_wishlist_loop = "SELECT * FROM tbl_wishlist WHERE user_id = " . $u_id . " AND alliance_id = " . $result1['id']; $prepared = $pdo->prepare($query_wishlist_loop); $prepared->execute(); $result_wishlist_loop = $prepared->fetchAll(PDO::FETCH_ASSOC); $row_count = $prepared->rowCount(); $select_liked =""; // photos $user_id =$result1["id"]; $pic_query = "SELECT * FROM `tbl_images` WHERE user_id = :user_id"; $prepared_pic = $pdo->prepare($pic_query); $prepared_pic->bindParam(':user_id', $result1['id'], PDO::PARAM_INT); // Assuming user_id is an integer $prepared_pic->execute(); $picture = $prepared_pic->fetchAll(PDO::FETCH_ASSOC); $row_count_picture = $prepared_pic->rowCount(); $query_avl = "select * from tbl_avl where user_id =".$result1["id"] ; $prepared_avl = $pdo->prepare($query_avl); $prepared_avl->execute(); $available = $prepared_avl->fetchAll(PDO::FETCH_ASSOC); $row_count_avl = $prepared_avl->rowCount(); if ($row_count_avl > 0) { $current_date = date("Y-m-d"); $current_time = date("H:i:s"); $day = date("l", strtotime($current_date)); $time = "hidden"; $call = "Call Unavailable"; error_log($available[0]['monday_start']); if ($day == "Monday" && $available[0]['monday_start'] <= $current_time && $available[0]['monday_end'] >= $current_time) { $time = "show"; $call = ""; } elseif ($day == "Tuesday" && $available[0]['tuesday_start'] <= $current_time && $available[0]['tuesday_end'] >= $current_time) { $time = "show"; $call = ""; } elseif ($day == "Wednesday" && $available[0]['wednesday_start'] <= $current_time && $available[0]['wednesday_end'] >= $current_time) { $time = "show"; $call = ""; } elseif ($day == "Thursday" && $available[0]['thursday_start'] <= $current_time && $available[0]['thursday_end'] >= $current_time) { $time = "show"; $call = ""; } elseif ($day == "Friday" && $available[0]['friday_start'] <= $current_time && $available[0]['friday_end'] >= $current_time) { $time = "show"; $call = ""; } elseif ($day == "Saturday" && $available[0]['saturday_start'] <= $current_time && $available[0]['saturday_end'] >= $current_time) { $time = "show"; $call = ""; } elseif ($day == "Sunday" && $available[0]['sunday_start'] <= $current_time && $available[0]['sunday_end'] >= $current_time) { $time = "show"; $call = ""; }else{ $time = "hidden"; $call = '<button class="btn btn-solid btn-sm" data-bs-toggle="modal" data-bs-target="#available_time'.$result1["id"].'" ><small> Available time </small> </button>'; } } // if($result_wishlist_loop[0]['alliance_id']==$result1['id'] ){ if($row_count>0 ){ $select_liked = "active inactive"; $insert="active"; }else{ $select_liked = "deactivate"; $insert="deactive"; }?> <section style=" border-bottom:8px solid gray"> <div class="row" style="font-family: ' font-family: 'Segoe UI', sans-serif; ;" > <div class="" style="height:auto; ;"> <div class="row"> <div class="col-12 col-sm-12" style="position:relative;"> <div class="row"> <div class="col-12 col-sm-12" style="margin-left: 0px;;" > <!-- profile section start --> <section class="top-space pt-0" style="padding-top:0px;margin-top: 0px;"> <div class="profile-detail" style="padding-bottom: 0px;padding-top: 6px; margin-left: -10px;position:relative"> <div class="media"> <img src="assets/images/user/1.png" class="img-fluid" style="width: 44px;height: 44px; border: 2px solid blue; margin-left: 10px; padding-left: 0px; margin-left: 5px;" alt="" /> <div class="media-body"> <span style="color:green;text-align:right;position:absolute;right: 16px;top: 11px;">Online</span> <h3 style="font-size: small;"><b><?=$result1['name']?></b> </h3> </div> </div> </div> <div class="profile-detail" style="padding-top: 0px;padding-bottom: 0px; padding-left: 11px;"> <p style=" line-height:20px;margin-bottom: 0px;"><b><small><?php echo $result1['lgl_address'].",<br>".$result1['name'].",".$result1['city'] .",".$result1['state']?></small></b></p> </div> </section> <!-- profile section end --> </div> </div> <div class="carousel slide" id="myCarousel<?= $result1["id"] ?>" data-bs-ride="carousel"> <input type="hidden" value="<?= $result1["id"] ?>" id="carousel_id<?= $result1["id"] ?>" /> <div class="carousel-inner"> <div class="carousel-item active" data-bs-interval="100000"> <div class="d-flex justify-content-center align-items-center border rounded bg-dark" style="height: 300px; overflow: hidden;"> <img src="<?= $result1["v_photos"] ?>" class="d-block h-100 object-cover" alt="..."> </div> </div> <?php foreach ($picture as $img) { ?> <div class="carousel-item" data-bs-interval="100000"> <div class="d-flex justify-content-center align-items-center border rounded bg-dark" style="height: 300px; overflow: hidden;"> <img src="<?= $img['image']; ?>" class="d-block h-100 object-cover" alt="..."> </div> </div> <?php } ?> </div> </div> <div class="img-group" style=" position: relative; left: 330px; /* color: whitesmoke; */ bottom: 27px; background: white; width: 44px; border-radius: 4px; opacity: 0.9;"> <img src="images/icon/image.png" /> <span id="imageCount<?= $result1["id"] ?>"> 1 </span>/<?=$row_count_picture+1?> </div> <a href="#" style="position: absolute;top: 40%;right: 6%;color: white;font-size: 18px;border-radius: 27px;"> <div class="wishlist-btn <?=$select_liked?>" onClick="wishlist(<?=$result1['id']?>,'<?=$insert?>')"> <i class="iconly-Heart icli"></i> <i class="iconly-Heart icbo"></i> <div class="effect-group"> <span class="effect"></span> <span class="effect"></span> <span class="effect"></span> <span class="effect"></span> <span class="effect"></span> </div> </div> </a> <a href="#" style="position: absolute;top: 50%;color: white;right: 8%;;font-size: 18px;"><i class="fa fa-share-alt" style=" border-radius: 20px; background: white; padding: 4px 5px 3px 4px; color: black; font-weight: 100;" aria-hidden="true"></i></a> </div> </div> <div class="row"> <div class="col-8 col-sm-8" style=" padding-top: 13px; margin-left: 0px; padding-left: 24px;" > <div class="product-content"> <ul style="padding-left: 11px;" class="ratings"> 4.5 <li><i class="iconly-Star icbo"></i></li> <li><i class="iconly-Star icbo"></i></li> <li><i class="iconly-Star icbo"></i></li> <li><i class="iconly-Star icbo"></i></li> <li><i class="iconly-Star icbo empty"></i></li> (54) </ul> </div> </div> <div class="col-4 col-sm-4" style="text-align: right;padding-right: 30px;" > <h3 style=" padding-top: 14px;"><b>ID NO</b> 001</h3> </div> </div> <div class="row" > <div class="col-12 col-sm-12" style="padding: 30px;padding-top: 0px;padding-bottom: 0px;"> <table class="table table-striped"> <tbody> <tr> <td width="45%">Age</td> <td>:</td> <td><?=$result1['age']?></td> </tr> <tr> <td>Occupation</td> <td>:</td> <td><?=$result1['occupation']?></td> </tr> <tr> <td>Physical Status</td> <td>:</td> <td><?=$result1['phy_status']?></td> </tr> <tr> <td>Martial Status</td> <td>:</td> <td><?=$result1['martial_status']?></td> </tr> <tr> <td>Religion</td> <td>:</td> <td><?=$result1['religion']?></td> </tr> </tbody> </table> </div> <div style=";text-align:right"> <span id="read_more_<?=$result1['id']?>" class="theme-color" style="cursor: pointer; cursor: pointer; padding-right: 20px;" onclick="readMore(<?=$result1['id']?>)" style="padding-right: 20px;">Read More</span> </div> </div> <div id="read_more_cnt_<?=$result1['id']?>" class="row read_more_cnt_" style="display: flex;justify-content: center;align-items: center; ;"> <div class="col-12 col-sm-12" style="padding: 30px;padding-top: 0px;padding-bottom: 0px;"> <table class="table table-striped"> <tbody> <tr> <td width="45%">Mother Tongue</td> <td>:</td> <td><?=$result1['mother_tonque']?></td> </tr> <tr> <td>Caste</td> <td>:</td> <td><?=$result1['caste']?></td> </tr> <tr> <td>Gender</td> <td>:</td> <td><?=$result1['gender']?></td> </tr> <tr> <td>Date Of Birth</td> <td>:</td> <td><?=$result1['h_dob']?></td> </tr> <tr> <td>Time Of Birth</td> <td>:</td> <td><?=$result1['h_hour'].":".$result1['age']." ".$result1['age']?></td> </tr> <tr> <td>Place Of Birth</td> <td>:</td> <td><?=$result1['h_place_birth ']?></td> </tr> <tr> <td>Zodiac Signs/stars</td> <td>:</td> <td><?=$result1['h_zodic']?></td> </tr> <tr> <td>Dosham</td> <td>:</td> <td><?=$result1['h_dosham']?></td> </tr> </tbody> </table> </div> </div> <center style=" margin-bottom: 21px;" > <a href="#" class=" btn-sm btn-outline"> Chat </a> <a class="btn-sm btn-solid" <?=$time?> >Call </a> <span><?=$call?></span> </center> </div> </div> <!--people calling time start--> <div class="modal fade" id="available_time<?=$result1["id"]?>" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Available Time</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="table-responsive-sm"> <table class="table table-striped"> <tr> <th></th> <th>Start Time</th> <th>End Time</th> </tr> <tr <?=($day == "Monday" ? "style='font-weight: bold;'" : "");?> > <td>Monday</td> <td><?=date("g:i A", strtotime($available[0]['monday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['monday_end']))?></td> </tr> <tr <?=($day == "Tuesday" ? "style='font-weight: bold;'" : "");?> > <td>Tuesday</td> <td><?=date("g:i A", strtotime($available[0]['tuesday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['tuesday_end']))?></td> </tr> <tr <?=($day == "Wednesday" ? "style='font-weight: bold;'" : "");?> > <td>Wednesday</td> <td><?=date("g:i A", strtotime($available[0]['wednesday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['wednesday_end']))?></td> </tr> <tr <?=($day == "Thursday" ? "style='font-weight: bold;'" : "");?> > <td>Thursday</td> <td><?=date("g:i A", strtotime($available[0]['thursday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['thursday_end']))?></td> </tr> <tr <?=($day == "Friday" ? "style='font-weight: bold;'" : "");?> > <td>Friday</td> <td><?=date("g:i A", strtotime($available[0]['friday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['friday_end']))?></td> </tr> <tr <?=($day == "Saturday" ? "style='font-weight: bold;'" : "");?> > <td>Saturday</td> <td><?=date("g:i A", strtotime($available[0]['saturday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['saturday_end']))?></td> </tr> <tr <?=($day == "Sunday" ? "style='font-weight: bold;'" : "");?> > <td>Sunday</td> <td><?=date("g:i A", strtotime($available[0]['sunday_start']))?></td> <td><?=date("g:i A", strtotime($available[0]['sunday_end']))?></td> </tr> </table> </div> </div> </div> </div> <!--people calling time end--> </section> <?php } ?> <!--all verified data end--> <!-- remove item canvas start --> <div class="offcanvas offcanvas-bottom h-auto removecart-canvas" id="removecart"> <div class="offcanvas-body small"> <div class="content"> <h4>Remove Item: </h4> <p>Are you sure you ____ to remove or move ____ item from the cart? </p> </div> <div class="bottom-cart-panel"> <div class="row"> <div class="col-7"> <a href="wishlist.html" class="title-color">MOVE TO WISHLIST </a> </div> <div class="col-5"> <a href="#" class="theme-color">REMOVE </a> </div> </div> </div> </div> </div> <!-- remove item canvas end --> <?php include "footer2.php"?> <script> $('#add_ver_btn').click(function () { // if ($("#add_ver_btn").is(':click')) { var adh_no = $("#adh_no").val(); var aadhar_mbl = $("#aadhar_mbl").val(); var aadhar_name = $("#aadhar_name").val(); var gender = $("#gender").val(); var dob = $("#dob").val(); var ids = <?=$ids?>; $.ajax({ url: 'api/alliance_verification.php', type: 'post', dataType: 'json', data: { aadhar_no: adh_no, types:'check',ids:ids,aadhar_mbl:aadhar_mbl,aadhar_name:aadhar_name,gender:gender,dob:dob }, success: function (response) { console.log(response); if (response['status'] == 200) { success(response['message']); $("#verification").show() } else { warning(response['message']); $("#verification").hide() } } }); // } }); </script> <script> $(document).ready(function(){ $('#read_more_cnt').hide() $('.read_more_cnt_').hide() $('#read_more').click(function(){ $('#read_more_cnt').show() $('#read_more').hide() }) }) </script> <script> function readMore(id) { $('#read_more_cnt_' + id).show(); $('#read_more_' + id).hide(); } </script> <script> function wishlist(id,insert){ $.ajax({ url: 'api/wishlist.php', type: 'post', dataType: 'json', data: { id: id, type:'wishlist' ,insert:insert}, success: function (response) { console.log(response); if (response['status'] == 200) { success(response['message']); $("#verification").show() } else { warning(response['message']); $("#verification").hide() } } }); } </script> <script> $(document).ready(function() { $('.carousel').each(function() { var id = $(this).find('input[type="hidden"]').val(); $(this).on('slide.bs.carousel', function (e) { var slideFrom = $(this).find('.active').index(); var slideTo = $(e.relatedTarget).index(); $('#imageCount' + id).text(slideTo + 1); }); }); }); </script>