
PK 
<?php
ob_start();
//error_reporting(E_ALL ^ E_NOTICE);
@session_start();
ini_set('allow_url_include',1);
date_default_timezone_set("Asia/Kolkata");
set_time_limit(600);
ini_set('max_execution_time',600);
require_once 'admin/includes/settings/PDODB.php';
include 'admin/includes/modules/functions.php';
$function = new FUNCTIONS();
//blog
$blogdata = $function->getBlog($id=$_GET['id'],$isactive=1,$orderBy='DESC');
//print_r($blogdata[0]);
//end blog
if (isset($_POST["needassistancebtn"])) {
//print_r($_POST); exit;
$name = !empty($_POST['name'])?trim($_POST['name']):"";
$email = !empty($_POST['email'])?trim($_POST['email']):"";
$phone = !empty($_POST['phone'])?trim($_POST['phone']):"";
$message = !empty($_POST['message'])?trim($_POST['message']):"";
$error_msg = "";
//mail to admin for contacting users
function sendmail($name,$from,$to,$sendmessage){
$to = $to;
$subject = 'FTFINNTAX NEED ASSISTANCE Enquiry';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From:' .$from. "\r\n" .
'Reply-To: ' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$message = $sendmessage;
mail($to, $subject, $message, $headers);
}
if(!empty($message)){
$to="ftfinntaxconsultants@gmail.com";
$contactmail='<table cellpadding="0" cellspacing="0" style="width:600px; margin:0px auto; color:#7b7b7c; vertical-align:middle; font-family:Arial, Helvetica, sans-serif; font-size:16px;">
<tr>
<td style="text-align:center;"><a href="#"><img src="" /></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="color:#333;"><strong>Hi, Admin</strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>You have been received a query.</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" style="width:600px; margin:0px auto; color:#7b7b7c; vertical-align:top; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:22px;">
<tr>
<td> </td>
</tr>
<tr>
<td style="color:#333;" colspan="3"><strong>Contact Details</strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td width="200px;">Name</td>
<td width="20px;">:</td>
<td width="380px;">'.$name.'</td>
</tr>
<tr>
<td width="200px;">Email Address</td>
<td width="20px;">:</td>
<td width="380px;">'.$email.'</td>
</tr>
<tr>
<td width="200px;">Phone No.</td>
<td width="20px;">:</td>
<td width="380px;">'.$phone.'</td>
</tr>
<tr>
<td width="200px;">Message</td>
<td width="20px;">:</td>
<td width="380px;"><p>'.$message.'</p></td>
</tr>
</table>';
//print_r($contactmail); exit;
sendmail($name,$email,$to,$contactmail);
//var_dump(sendmail($name,$email,$to,$contactmail));
}
// end mail send
$error_msg = "Message Sent Successfully";
?>
<script type="text/javascript">
$error_msg = "Message Sent Successfully";
alert("Sucessfully Submited");
</script>
<?php
}
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- --><!-- Document Title--><!-- =============================================-->
<title><?=$blogdata[0]['title'];?> | FTFINNTAX CONSULTANTS PVT LTD</title>
<?php include_once'layout/style.php'; ?>
</head>
<body data-spy="scroll" data-target=".inner-link" data-offset="60">
<main>
<div class="loading" id="preloader">
<div class="loader h-100 d-flex align-items-center justify-content-center">
<div class="line-scale">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<?php include_once'layout/header.php'; ?>
<div class="background-11 py-5">
<div class="container">
<div class="row mt-6">
<div class="col">
<h3 class="text-center fs-2 fs-md-3"><?=$blogdata[0]['title'];?></h3>
<hr class="short" data-zanim='{"from":{"opacity":0,"width":0},"to":{"opacity":1,"width":"4.20873rem"},"duration":0.8}' data-zanim-trigger="scroll"/>
</div>
<div class="col-12 background-white">
<img class="mt-3" src="admin/uploads/blog/<?=$blogdata[0]['file'];?>">
<div class="background-white px-3 mt-6 px-0 pb-5 px-lg-5 radius-secondary text-justify">
<h6 class="color-7 fw-400"><b>Posted by</b> <?=$blogdata[0]['author_name'];?></h6>
<!-- <div class="color-7 mb-3">
<i class="fa fa-calendar" aria-hidden="true"></i>
<?=date('l, jS M, Y', strtotime($blogdata[0]['isdated']));?>
</div> -->
<?=$blogdata[0]['full_description'];?>
</div>
</div>
</div>
<!--/.row-->
</div>
<!--/.container-->
</div>
<?php include_once'layout/need-assistance.php'; ?>
<?php include_once'layout/footer.php'; ?>
</main>
<?php include_once'layout/script.php'; ?>
</body>
</html>


PK 99