MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.225.95.229
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/.trash/../vivahmilankendra.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/.trash/../vivahmilankendra.com/cancelled-declined.php
<?php require_once("includes/dbsmain.inc.php");?>
<?php include("site-main-query.php");
if(empty($_SESSION['userLoginId'])){
  header("location:index.html");  
}
$check_user=db_scalar("select reg_id from tbl_registration where reg_id='$_SESSION[userLoginId]' ");
$check_user_status=db_scalar("select reg_status from tbl_registration where reg_id='$_SESSION[userLoginId]' ");
if(empty($check_user) || $check_user_status=="Inactive"){
    unset($_SESSION['userLoginId'],$_SESSION['userLoginName']);
    session_destroy();
    header("location:index.php");
    exit;
}
?>
<!doctype html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Vibah Milan Kendra</title>
<meta name="robots" content="index, follow" />
<!-- Stylesheets -->
<link href="<?=SITE_WS_PATH?>/css/bootstrap.min.css" rel="stylesheet">
<link href="<?=SITE_WS_PATH?>/css/style.css" rel="stylesheet">
<link href="<?=SITE_WS_PATH?>/css/style1.css" rel="stylesheet">
<!--------->
<link href="<?=SITE_WS_PATH?>/css/responsive.css" rel="stylesheet">
<link href="<?=SITE_WS_PATH?>/css/style-res-nav.css" rel="stylesheet">
<link rel="stylesheet" href="<?=SITE_WS_PATH?>/css/style-client.css">
<link href="<?=SITE_WS_PATH?>/css/style-res-nav.css" rel="stylesheet">
<link href="<?=SITE_WS_PATH?>/css/jPushMenu.css" rel="stylesheet">
<link href="<?=SITE_WS_PATH?>/css/jquery.fancybox.css" rel="stylesheet">
<!---------------->
<link rel="stylesheet" href="<?=SITE_WS_PATH?>/css/style-customizer-rgt.css"/>
<!---social----->
<link rel="stylesheet" href="<?=SITE_WS_PATH?>/css/style-social-1.css">
<link rel="stylesheet" href="<?=SITE_WS_PATH?>/css/font-awesome/css/font-awesome.min.css">
<link href="<?=SITE_WS_PATH?>/css/collapsible1.css" rel="stylesheet" type="text/css">
<!---button--->
  <style>
.btn-gryes a{display:block; background-color:#f1f1f2; color:#000; font-size:14px; padding:0px 2px; border:solid 1px #eaeaeb; text-align:center;  /*width:99%; */transition:all 1.5s;}
.btn-gryes a:hover{background-color:#fff; border:solid 1px #000; color:#000; transition:all 1.5s;}
.btn-gryes{margin:5px 5px 5px 0px; padding:0px; /*width:49%;*/}  
 </style>
 <!------------>
</head>
<body id="amitabh">
<div class="page-wrapper" >
  <div class="preloader"></div>
<?php 
if($_SESSION['userLoginId']==""){
include("site-header.php");
}else{
include("site-header-login.php");	
}
?> 
  <!---button--->
<section style="background-color:#f1f1f2;">
    <div class="container">
      <div class="row">
        <div class="col-lg-11 col-md-11 col-sm-12 col-xs-12 all-sec">
      <div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 mp-iboxd20"> <h4 class="hdg-box"><img src="images/inbox.png" class="box-img"> Inbox</h4>
            <div>
              <?php include("inbox-links.php");?>
        </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 addv" style="margin-top:20px;">
              <img src="images/marr-banner1.png">
      </div>
            <!----------->
  </div>
      <!---end-images--->
      <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12 mp_db_00">
        <section class="sec-bg">
<input type="radio" id="profile" value="s" name="tractor" checked='checked' />    
<input type="radio" id="settings" value="2" name="tractor" /> 
<input type="radio" id="posts" value="3" name="tractor" />

  
  <nav class="navd_1">   
  <label class="msg-box"  for="profile">Cancelled</label>
  <label class="msg-box"  for="settings">Declined</label>
  <!--<label class="msg-box" for="posts">Declined By Other</label>-->

</nav>
  
  <article class='uno'>
    
    
    
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 no-padd" id="cancelled-load-area">
<?php
$sql="SELECT * FROM tbl_registration AS r INNER JOIN tbl_msg_box AS mb ON r.reg_id=mb.msg_to_mem_id  WHERE r.reg_status='Active' AND mb.msg_from_mem_id='$userDATA[reg_id]' AND mb.msg_status='Cancelled'";

$dataMember=db_query($sql);
$countMember=mysqli_num_rows($dataMember);
if($countMember){
while($recMember=mysqli_fetch_array($dataMember)){	
?>   
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mp_1d"> 
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 pd-0">
<div class="col-lg-8 col-md-8 col-sm-7 col-xs-7" style="margin:0px; padding:0px;">
<h2 class="nm-acep"><a target="_blank" href="other-profile.php?mem=<?=$recMember['reg_id']?>"><?=$recMember['reg_name']?> <span class="spn-sty1">(<?="R".$recMember['reg_id']?>)</span></a></h2>
</div>
<div class="col-lg-4 col-md-4 col-sm-5 col-xs-5 text-rig-inbo">
<?php
$waiting_time= $recMember['msg_req_sent_date']." ".$recMember['msg_req_sent_time'];?>       
<span class="spn-sty"><?=time_elapsed_string($waiting_time)?></span>
<a href="Javascript:void(0)" onClick="change_status('<?=$recMember['msg_id']?>','Cancelled-Delete')"  title="Delete" class="cancl-btn-sty">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12 mp_bx_rt text-center">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center mp-inbox">
          <?php 
        $check_photo=$recMember['reg_profile_photo'];
        if(empty($check_photo) && $recMember['reg_gender']=="Female"){?>
        <img src="<?=SITE_WS_PATH?>/images/1.ico" class="img-inbox">
       <?php }else if(empty($check_photo) && $recMember['reg_gender']=="Male"){?>
        <img src="<?=SITE_WS_PATH?>/images/2.png" class="img-inbox">
       <?php }else if(!empty($check_photo)){?>
 <img src="<?=SITE_WS_PATH?>/upload_images/<?=$recMember['reg_profile_photo']?>" class="img-inbox">
       <?php }?>
</div></div>

<div class="col-lg-10 col-md-10 col-sm-12 col-xs-12 mp-btm1 mp_0bx">
Age : <?=$recMember['reg_age']?> Yrs | Height : <?=$recMember['reg_height']?> | Sect : <?=$recMember['reg_cast']?> | Division : <?=$recMember['reg_religion']?> - <?=$recMember['reg_sub_cast']?> | Location : <?=$recMember['reg_city']?>, <?=$recMember['reg_state_name']?>, <?=$recMember['reg_country_name']?> | Education : <?=$recMember['reg_highest_edu']?> | Occupation : <?=$recMember['reg_occupation']?>
<div class="clearfix"></div>
<p class="mp_0bx">
<a href="#" class="molcht onl-sty">
<i class="fa fa-commenting-o" aria-hidden="true"></i> Last Online <?=date("d-M-y",strtotime($recMember['reg_last_login']))?></a></p>

<a target="_blank" href="other-profile.php?mem=<?=$recMember['reg_id']?>" class="btn-ace-pro">View Full Profile</a>
<a href="Javascript:void(0)" onClick="change_status('<?=$recMember['msg_id']?>','PendingAgain')" class="btn-decl-box">Send Again</a>


</div>

</div>
<?php
}
}else{
?>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mp_1d text-center text-danger"> No record(s) found.</div>
<?php
}
?>
</div>
  </article>
  
  <article class='dos'>
  
  
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 no-padd" id="declined-load-area">
<?php
$sql="SELECT * FROM tbl_registration AS r INNER JOIN tbl_msg_box AS mb ON r.reg_id=mb.msg_from_mem_id  WHERE r.reg_status='Active' AND mb.msg_to_mem_id='$userDATA[reg_id]' AND mb.msg_status='Declined'";

$dataMember=db_query($sql);
$countMember=mysqli_num_rows($dataMember);
if($countMember){
while($recMember=mysqli_fetch_array($dataMember)){	
?>  
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mp_1d"> 
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 pd-0">
<div class="col-lg-8 col-md-8 col-sm-7 col-xs-7" style="margin:0px; padding:0px;">
<h2 class="nm-acep"><a target="_blank" href="other-profile.php?mem=<?=$recMember['reg_id']?>"><?=$recMember['reg_name']?> <span class="spn-sty1">(<?="R".$recMember['reg_id']?>)</span></a></h2>
</div>
<div class="col-lg-4 col-md-4 col-sm-5 col-xs-5 text-rig-inbo">
<?php
$waiting_time= $recMember['msg_req_sent_date']." ".$recMember['msg_req_sent_time'];?>       
<span class="spn-sty"><?=time_elapsed_string($waiting_time)?></span>
<a href="Javascript:void(0)" onClick="change_status('<?=$recMember['msg_id']?>','Declined-Delete')"  title="Delete" class="cancl-btn-sty">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12 mp_bx_rt text-center">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center mp-inbox">
            <?php 
        $check_photo=$recMember['reg_profile_photo'];
        if(empty($check_photo) && $recMember['reg_gender']=="Female"){?>
        <img src="<?=SITE_WS_PATH?>/images/1.ico" class="img-inbox">
       <?php }else if(empty($check_photo) && $recMember['reg_gender']=="Male"){?>
        <img src="<?=SITE_WS_PATH?>/images/2.png" class="img-inbox">
       <?php }else if(!empty($check_photo)){?>
 <img src="<?=SITE_WS_PATH?>/upload_images/<?=$recMember['reg_profile_photo']?>" class="img-inbox">
       <?php }?>
	</div></div>

<div class="col-lg-10 col-md-10 col-sm-12 col-xs-12 mp-btm1 mp_0bx"> Age : <?=$recMember['reg_age']?> Yrs | Height : <?=$recMember['reg_height']?> | Sect : <?=$recMember['reg_cast']?> | Division : <?=$recMember['reg_religion']?> - <?=$recMember['reg_sub_cast']?> | Location : <?=$recMember['reg_city']?>, <?=$recMember['reg_state_name']?>, <?=$recMember['reg_country_name']?> | Education : <?=$recMember['reg_highest_edu']?> | Occupation : <?=$recMember['reg_occupation']?>

      <div class="clearfix"></div>
<p class="mp_0bx">
<a href="#" class="molcht onl-sty">
<i class="fa fa-commenting-o" aria-hidden="true"></i> Last Online <?=date("d-M-y",strtotime($recMember['reg_last_login']))?></a></p>

<a onClick="change_status('<?=$recMember['msg_id']?>','Declined-Accepted')" class="btn-ace-pro">Accept</a>
</div>

</div>
<?php
}
}else{
?>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mp_1d text-center text-danger"> No record(s) found.</div>
<?php
}
?>

</div>




     
     
     
<!--     <div class="col-md-12 next-prv1 text-right ">
       <p>1 2 3 4 5 6 7 of 100 <a href="#"><i class="fa fa-caret-square-o-left"></i> </a> <a href="#"><i class="fa fa-caret-square-o-right"></i> </a>
 </div>-->
   
</article>
  
  
<!--  <article class='tres'>
   
   <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 no-padd" id="declined-by-other-load-area">
<?php
$sql="SELECT * FROM tbl_registration AS r INNER JOIN tbl_msg_box AS mb ON r.reg_id=mb.msg_to_mem_id  WHERE r.reg_status='Active' AND mb.msg_from_mem_id='$userDATA[reg_id]' AND mb.msg_status='Declined'";

$dataMember=db_query($sql);
$countMember=mysqli_num_rows($dataMember);
if($countMember){
while($recMember=mysqli_fetch_array($dataMember)){	
?>  
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mp_1d"> 
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 pd-0">
<div class="col-lg-8 col-md-8 col-sm-7 col-xs-7" style="margin:0px; padding:0px;">
<h2 class="nm-acep"><a target="_blank" href="other-profile.php?mem=<?=$recMember['reg_id']?>"><?=$recMember['reg_name']?> <span class="spn-sty1">(<?="R".$recMember['reg_id']?>)</span></a></h2>
</div>
<div class="col-lg-4 col-md-4 col-sm-5 col-xs-5 text-rig-inbo">
<span class="spn-sty">Waiting for 9 days</span>
<a href="Javascript:void(0)" onClick="change_status('<?=$recMember['msg_id']?>','Declined-Other-Delete')"  title="Cancelled" class="cancl-btn-sty">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12 mp_bx_rt text-center">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center mp-inbox">
          <?php 
        $check_photo=$recMember['reg_profile_photo'];
        if(empty($check_photo) && $recMember['reg_gender']=="Female"){?>
        <img src="<?=SITE_WS_PATH?>/images/1.ico" class="img-inbox">
       <?php }else if(empty($check_photo) && $recMember['reg_gender']=="Male"){?>
        <img src="<?=SITE_WS_PATH?>/images/2.png" class="img-inbox">
       <?php }else if(!empty($check_photo)){?>
 <img src="<?=SITE_WS_PATH?>/upload_images/<?=$recMember['reg_profile_photo']?>" class="img-inbox">
       <?php }?>
</div></div>

<div class="col-lg-10 col-md-10 col-sm-12 col-xs-12 mp-btm1 mp_0bx"> Age : <?=$recMember['reg_age']?> Yrs | Height : <?=$recMember['reg_height']?> | Sect : <?=$recMember['reg_cast']?> | Division : <?=$recMember['reg_religion']?> - <?=$recMember['reg_sub_cast']?> | Location : <?=$recMember['reg_city']?>, <?=$recMember['reg_state_name']?>, <?=$recMember['reg_country_name']?> | Education : <?=$recMember['reg_highest_edu']?> | Occupation : <?=$recMember['reg_occupation']?>

      <div class="clearfix"></div>
<p class="mp_0bx">
<a href="#" class="molcht onl-sty">
<i class="fa fa-commenting-o" aria-hidden="true"></i> Last Online <?=date("d-M-y",strtotime($recMember['reg_last_login']))?></a></p>

<a onClick="change_status('<?=$recMember['msg_id']?>','Pending-From-Declined')" class="btn-ace-pro">Send Again</a>
</div>

</div>
<?php
}
}else{
?>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mp_1d text-center text-danger"> No record(s) found.</div>
<?php
}
?>

</div>
   
   
</article>-->
  
</section>
  </div> 
  </div>
  </div>
  </div>
</section> 
  <!--Main Footer-->
<?php include("site-footer.php"); ?>
</div>
<!-- Side Menu-->

<!-------register----->
<script src="<?=SITE_WS_PATH?>/js/jquery-latest.js"></script>
<script>
function change_status(msgID,act){

$(document).ready(function(e) {

var act_input;

if(act=='Pending-From-Declined'){
act_input='Pending';	
}else{
act_input=act;		
}
//alert(memID)

//alert(act_input)

$.ajax({
	
url: "member-change-status.php?msgID="+msgID+"&act="+act_input,
type: "POST",
contentType: false,
processData:false,
success: function(data){

if(data!=0){




if(act=="Cancelled-Delete"){
$("#cancelled-load-area").html(data);		
document.getElementById('action-msg').innerHTML='Selected request is deleted';		
}

if(act=="Pending"){
$("#cancelled-load-area").html(data);			
document.getElementById('action-msg').innerHTML='Selected request is sent again';		
}

if(act=="PendingAgain"){
$("#cancelled-load-area").html(data);			
document.getElementById('action-msg').innerHTML='Selected request is sent again';		
}



if(act=="Declined"){
$("#declined-load-area").html(data);			
document.getElementById('action-msg').innerHTML='Selected request is declined';		
}

if(act=="Declined-Accepted"){
$("#declined-load-area").html(data);
document.getElementById('action-msg').innerHTML='Selected request is accepted';		
}

if(act=="Declined-Delete"){
$("#declined-load-area").html(data);		
document.getElementById('action-msg').innerHTML='Selected request is deleted';		
}

document.getElementById('for-update-popup').click();
setTimeout(function() { document.getElementById('close-popup').click();}, 1000);

}else{
alert('Unable to sent request now, try again later.');	
}

},
error: function(){} 	        	   
	
});
    
});

}
</script>

<script src="<?=SITE_WS_PATH?>/js/bootstrap.min.js"></script>
<script src="<?=SITE_WS_PATH?>/js/script.js"></script>
<script src="<?=SITE_WS_PATH?>/js/menuzord.js"></script>
<script src="<?=SITE_WS_PATH?>/js/jPushMenu.js"></script>
<script src="<?=SITE_WS_PATH?>/js/owl.js"></script>
<!-- validate -->
<script src="<?=SITE_WS_PATH?>/js/customcollection.js"></script>
<script src="<?=SITE_WS_PATH?>/js/custom1.js"></script>
<!-------------->
<!--<script src="<?=SITE_WS_PATH?>/http://code.jquery.com/jquery-1.12.3.min.js"></script> -->
<script src="<?=SITE_WS_PATH?>/js/jquery.collapsible.js"></script> 
<!-----left-accordian--------->
<script src="http://code.jquery.com/jquery-1.12.3.min.js"></script> 
<script src="<?=SITE_WS_PATH?>/js/jquery.collapsible.js"></script> 
<script>
$('#collapse-menu').collapsible({
  contentOpen:["0","1"]
});
</script>

<!----slider------------->
 <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
 <script language="javascript" src="<?=SITE_WS_PATH?>/js/index-tab.js"></script>
 </body>
</html>
<a data-toggle="modal" data-target="#update-popup" id="for-update-popup"></a>
<div class="modal fade" id="update-popup" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content" id="update-popup-box">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times-circle" aria-hidden="true" id="close-popup"></i>

</button>
      <div class="modal-header" style="border-bottom:none">
        <h4 class="modal-title text-center"><span id="action-msg"></span>.</h4>
      </div>
      
      
      
   
    </div>
  </div>
</div>

MMCT - 2023