
PK 
<?php
//need assistance
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
}
//end need assistance
$error_msg='';
if(isset($_FILES["file"]["name"])){
$firstname = !empty($_POST['firstname'])?trim($_POST['firstname']):"";
$lastname = !empty($_POST['lastname'])?trim($_POST['lastname']):"";
$email = !empty($_POST['email'])?trim($_POST['email']):"";
$phone = !empty($_POST['phone'])?trim($_POST['phone']):"";
$message = !empty($_POST['subject'])?trim($_POST['subject']):"";
$fromemail = $email;
$subject="FTFINNTAX for Career Enquiry";
$email_message = '<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;">'.$firstname.' '.$lastname.'</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>';
$email_message.="Please find the attachment";
$semi_rand = md5(uniqid(time()));
$headers = "From: ".$fromemail;
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
if($_FILES["file"]["name"]!= ""){
$strFilesName = $_FILES["file"]["name"];
$strContent = chunk_split(base64_encode(file_get_contents($_FILES["file"]["tmp_name"])));
$email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$email_message .= "\n\n";
$email_message .= "--{$mime_boundary}\n" .
"Content-Type: application/octet-stream;\n" .
" name=\"{$strFilesName}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$strContent .= "\n\n" .
"--{$mime_boundary}--\n";
}
$toemail="ftfinntaxconsultants@gmail.com";
if(mail($toemail, $subject, $email_message, $headers)){
$error_msg= "Email send successfully with attachment";
?>
<script type="text/javascript">
$error_msg = "Message Sent Successfully";
alert("Sucessfully Submited");
</script>
<?php }else{
$error_msg= "Not sent";
}
}
?>
<!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">
<meta property="og:title" content="FTFINNTAX CONSULTANTS PVT LTD" />
<meta property="og:type" content="FTFINNTAX CONSULTANTS PVT LTD" />
<meta property="og:url" content="http://ftfinntax.com" />
<meta property="og:image" content="http://ftfinntax.com" />
<meta property="og:description" content="FTFINNTAX CONSULTANTS PVT LTD" />
<meta property="og:site_name" content="FTFINNTAX CONSULTANTS PVT LTD" />
<!-- --><!-- Document Title--><!-- =============================================-->
<title>FTFINNTAX CONSULTANTS PVT LTD | Careers</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}'>Careers</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="#">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Careers</li>
</ol>
</div>
</div>
</div>
</div>
</div>
<!--/.row-->
</div>
<!--/.container-->
</section>
<div class="background-11">
<div class="container">
<div class="row mt-6">
<!-- <div class="col">
<h3 class="text-center fs-2 fs-md-3">About Us</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">
<div class="background-white px-3 mt-6 px-0 py-5 px-lg-5 radius-secondary">
<h5>Careers</h5>
<p class="mt-3">Be a part of our squad<br>
Want to play a part in our growth story? Apply here
</p>
<form method="POST" enctype="multipart/form-data">
<div class="row">
<div class="form-group col-6">
<label for="exampleFormControlInput1">First Name</label>
<input type="text" class="form-control" id="exampleFormControlInput1" name="firstname" placeholder="First Name" required>
</div>
<div class="form-group col-6">
<label for="exampleFormControlInput1">Last Name</label>
<input type="text" class="form-control" id="exampleFormControlInput1" name="lastname" placeholder="Last Name" required>
</div>
<div class="form-group col-6">
<label for="exampleFormControlInput1">Email</label>
<input type="email" class="form-control" id="exampleFormControlInput1" name="email" placeholder="name@example.com" required>
</div>
<div class="form-group col-6">
<label for="exampleFormControlInput1">Phone</label>
<input type="text" class="form-control" id="exampleFormControlInput1" name="phone" placeholder="Phone" required>
</div>
<div class="form-group col-12">
<label for="exampleFormControlTextarea1">Subject</label>
<textarea class="form-control" name="subject" id="exampleFormControlTextarea1" rows="3" required></textarea>
</div>
<div class="input-group col-lg-6 col-sm-12">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroupFileAddon01">Upload Resume</span>
</div>
<div class="custom-file">
<input type="file" class="custom-file-input" id="file" name="file" aria-describedby="inputGroupFileAddon01">
<label class="custom-file-label" for="file">Choose file</label>
</div>
</div>
</div>
<button type="submit" name="btncareer" class="btn btn-primary float-right mb-5 mt-2">Submit</button>
</form>
</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'; ?>
<script>
// Add the following code if you want the name of the file appear on select
$(".custom-file-input").on("change", function() {
var fileName = $(this).val().split("\\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
</script>
</body>
</html>


PK 99