
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=NULL,$isactive=1,$orderBy='DESC');
//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>
<!-- http://markup.themewagon.com/tryelixir/ -->
<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>FTFINNTAX CONSULTANTS PVT LTD | Blog</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'; ?>
<section>
<div>
<div class="background-holder tp-60 overlay" style="background-image:url(assets/images/background-2.jpg);background-position: center bottom;"></div>
<!--/.background-holder-->
<div class="container">
<div class="row pt-6" data-inertia='{"weight":1.5}'>
<div class="col-md-8 px-md-0 color-white" data-zanim-timeline="{}" data-zanim-trigger="scroll">
<div class="overflow-hidden">
<h1 class="color-white fs-4 fs-md-5 mb-0 zopacity" data-zanim='{"delay":0}'>Blog</h1>
<div class="nav zopacity" aria-label="breadcrumb" role="navigation" data-zanim='{"delay":0.1}'>
<ol class="breadcrumb fs-1 pl-0 fw-700">
<li class="breadcrumb-item"><a class="color-white" href="index.php">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Blog</li>
</ol>
</div>
</div>
</div>
</div>
</div>
<!--/.row-->
</div>
<!--/.container-->
</section>
<section class="background-11">
<div class="container">
<h3 class="text-center fs-2 fs-md-3">Our Blog</h3>
<hr class="short" data-zanim='{"from":{"opacity":0,"width":0},"to":{"opacity":1,"width":"4.20873rem"},"duration":0.8}' data-zanim-trigger="scroll"/>
<?php
$count =0;
foreach ($blogdata as $key => $value) {
if($count % 2 == 0){ ?>
<div class="row no-gutters pos-relative mt-4 mt-lg-0">
<div class="elixir-caret d-none d-lg-block"></div>
<div class="col-lg-6 py-3 py-lg-0 mb-0" style="min-height:400px;">
<div class="background-holder radius-tl-secondary radius-tr-secondary radius-tr-lg-0 radius-tl-lg-0 radius-bl-0 radius-bl-lg-secondary" style="background-image:url(admin/uploads/blog/<?=$value['file'];?>);"></div>
<!--/.background-holder-->
</div>
<div class="col-lg-6 px-lg-5 py-lg-6 p-4 my-lg-0 background-white radius-bl-secondary radius-bl-lg-0 radius-br-secondary">
<div class="d-flex align-items-center h-100">
<div data-zanim-timeline="{}" data-zanim-trigger="scroll">
<div class="overflow-hidden">
<h5 data-zanim='{"delay":0}'><?=$value['title'];?></h5>
<!-- <div class="color-7">
<i class="fa fa-calendar" aria-hidden="true"></i>
<?=date('l, jS M, Y', strtotime($value['isdated']));?>
</div> -->
<h6 class="fw-400 color-7" data-zanim='{"delay":0.1}'><b>Posted by</b> <?=$value['author_name'];?></h6>
</div>
<div class="overflow-hidden">
<p class="mt-3" data-zanim='{"delay":0.1}'><?=$value['first_description'];?></p>
</div>
<div class="overflow-hidden">
<div data-zanim='{"delay":0.2}'>
<a class="d-flex align-items-center" href="blog-details.php?id=<?=$value['id'];?>">
Learn More
<div class="overflow-hidden ml-2"><span class="d-inline-block" data-zanim='{"from":{"opacity":0,"x":-30},"to":{"opacity":1,"x":0},"delay":0.8}'>⟶</span></div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<div class="row no-gutters pos-relative mt-4 mt-lg-0">
<div class="elixir-caret d-none d-lg-block"></div>
<div class="col-lg-6 py-3 py-lg-0 mb-0 order-lg-2" style="min-height:400px;">
<div class="background-holder radius-tl-secondary radius-tl-lg-0 radius-tr-secondary radius-tr-lg-0" style="background-image:url(admin/uploads/blog/<?=$value['file'];?>);"></div>
<!--/.background-holder-->
</div>
<div class="col-lg-6 px-lg-5 py-lg-6 p-4 my-lg-0 background-white radius-bl-secondary radius-bl-lg-0 radius-br-secondary radius-br-lg-0">
<div class="d-flex align-items-center h-100">
<div data-zanim-timeline="{}" data-zanim-trigger="scroll">
<div class="overflow-hidden">
<h5 data-zanim='{"delay":0}'><?=$value['title'];?></h5>
<h6 class="fw-400 color-7" data-zanim='{"delay":0.1}'><b>Posted by</b> <?=$value['author_name'];?></h6>
</div>
<div class="overflow-hidden">
<p class="mt-3" data-zanim='{"delay":0.1}'><?=$value['first_description'];?></p>
</div>
<div class="overflow-hidden">
<div data-zanim='{"delay":0.2}'>
<a class="d-flex align-items-center" href="blog-details.php?id=<?=$value['id'];?>">
Learn More
<div class="overflow-hidden ml-2"><span class="d-inline-block" data-zanim='{"from":{"opacity":0,"x":-30},"to":{"opacity":1,"x":0},"delay":0.8}'>⟶</span></div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }
$count++;
} ?>
<!--/.row-->
</div>
<!--/.container-->
</section>
<?php include_once'layout/need-assistance.php'; ?>
<?php include_once'layout/footer.php'; ?>
</main>
<?php include_once'layout/script.php'; ?>
</body>
</html>


PK 99