<?php include('include/head.php'); ?>


  <body class="tt-magic-cursor">
    
    <!-- Header Start -->
	<?php include('include/header.php'); ?>

    <!-- Header End -->

	<?php
              $banner = mysqli_query($conn, "SELECT * FROM `banner` where bannertype='career'");
              while($ban = mysqli_fetch_array($banner))
              {
                  $img = $ban['image'];
                  $heading = $ban['heading'];
              }
              ?>
	<!-- Page Header Section Start -->
	<div class="page-header" style="background-image: url(<?php path(); ?>/assets/images/banner/<?php echo $img; ?>); background-size: cover; background-attachment: local;">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<!-- Subpage Header Box Start -->
					<div class="page-header-box">
						<h1 class="text-anime"></h1>
					</div>
					<!-- Subpage Header Box End -->
				</div>
			</div>
		</div>
	</div>	
	
	<!-- Property Sinlge Page Start -->
	<div class="page-property-single mmm" style="padding-top: 100px;">
		<div class="container">
			<div class="row">
				
				<div class="col-lg-6">
					<!-- Property Single Content Start -->
					<div class="property-single-content pt-5">
						<!-- About Property Start -->
						<div class="wow fadeInUp" data-wow-delay="0.75s">
						    <div class="property-single-subtitle justify-content-center text-center" >
					<div class="section-title text-center pt-3 pdd">
						<h3 class="wow fadeInUp" style="color:rgb(248 191 22);" >Culture at Crown Crest Infra</h3>
					</div>
				</div>
							<div class="about-property-content text-dark">
								<p>At Crown Crest Infra, we foster a culture of innovation, collaboration, and excellence. Our team is our greatest asset, and we believe in nurturing talent and providing opportunities for professional growth. We value integrity, creativity, and a commitment to quality in everything we do. </p>
								<p>Employees at Crown Crest Infra enjoy a supportive work environment where their ideas are valued, and their contributions make a tangible impact. Join us to be part of a dynamic team dedicated to redefining luxury living and creating exceptional holiday retreats.</p>

								<!-- <div class="about-property-cta">
									<a href="#" class="btn-default btn-border">Contact us</a>
									<a href="#" class="btn-default"><i class="fa-solid fa-phone-volume"></i> +123 456 789</a>
								</div> -->
							</div>
						</div>
						<!-- About Property End -->
					</div>
				</div>

				<div class="col-lg-6">
				    <?php if(!empty($statusMsg)){ ?>
    <p class="statusMsg <?php echo !empty($msgClass)?$msgClass:''; ?>"><?php echo $statusMsg; ?></p>
<?php } ?>
					<!-- Property Single Sidebar Start -->
					<div class="porperty-single-sidebar">
						<!-- Property Inquiry Form Start -->
						<div class="property-inquiry-box wow fadeInUp" data-wow-delay="0.5s">
							<!-- <h3>Send Inquiry</h3> -->
							
							<div class="property-inquiry-form">
								<form method="POST" enctype="multipart/form-data">
									<div class="row">
										<div class="form-group col-md-6 mb-3">
											<input type="text" name="career-name" class="form-control" id="name" placeholder="Name" required >
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>
		
										<div class="form-group col-md-6 mb-3">
											<input type="email" name="career-email" class="form-control" id="email" placeholder="Email" required >
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>
		
										<div class="form-group col-md-6 mb-3">
											<input type="text" name="career-phone" class="form-control phone" id="phone" placeholder="Phone" required >
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>
										
										<div class="form-group col-md-6 mb-3">
											<input type="text" name="currect-ctc" class="form-control" id="phone" placeholder="Current CTC (lakhs)" required >
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>
										
										<div class="form-group col-md-6 mb-3">
											<input type="text" class="form-control" name="position" placeholder="Position Applying For" required>
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>
										
										<div class="form-group col-md-6 mb-3">
											<input type="number" class="form-control" name="notice"  placeholder="Notice Period (In days)" required >
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>

										<div class="form-group col-md-12 mb-3">
										    <label style="color: #000;">Upload Resume</label>
											<input type="file" name="file" class="form-control" id="file" placeholder="file" required >
											<div class="help-block with-errors" style="color: #fff;"></div>
										</div>
		
										<!-- <div class="form-group col-md-12 mb-3">
											<textarea name="msg" class="form-control" id="msg" rows="4" placeholder="Write a Message" required></textarea>
											<div class="help-block with-errors"></div>
										</div> -->
		
										<div class="col-md-5 text-center">
											<button type="submit" name="career-message" class="btn-default btn-dark">Send Message</button>
											<!--<div id="msgSubmit" class="h3 text-left hidden"></div>-->
										</div>
									</div>
								</form>
							</div>
						</div>
						<!-- Property Inquiry Form End -->
					</div>
					<!-- Property Single Sidebar End -->
				</div>
			</div>
		</div>
	</div>
	<!-- Property Sinlge Page End -->

	<?php include('include/footer.php'); ?>

<?php
 if(isset($_POST['career-message']))
            {
    $filenameee =  $_FILES['file']['name'];
    $fileName = $_FILES['file']['tmp_name']; 
    $name = $_POST['career-name'];
    $email = $_POST['career-email'];
    $phone = $_POST['career-phone'];
    $usermessage = $_POST['currect-ctc'];
    $position = $_POST['position'];
    $notice = $_POST['notice'];
    
    $message ="Name = ". $name . "\r\n  Email = " . $email . "\r\n Phone No =" . $phone . "\r\n Current CTC =" . $usermessage . "\r\n Position =" . $position . "\r\n Notice =" . $notice; 
    
    $subject ="Contact Enquiry Form";
    $fromname ="Contact Form Enquiry";
    $fromemail = 'inquiry@crowncrestrealty.com';  //if u dont have an email create one on your cpanel

    $mailto = 'neelam.crowncrest@gmail.com';  //the email which u want to recv this email

    $content = file_get_contents($fileName);
    $content = chunk_split(base64_encode($content));

    // a random hash will be necessary to send mixed content
    $separator = md5(time());

    // carriage return type (RFC)
    $eol = "\r\n";

    // main header (multipart mandatory)
    $headers = "From: ".$fromname." <".$fromemail.">" . $eol;
    $headers .= "MIME-Version: 1.0" . $eol;
    $headers .= "Content-Type: multipart/mixed; boundary=\"" . $separator . "\"" . $eol;
    $headers .= "Content-Transfer-Encoding: 7bit" . $eol;
    $headers .= "This is a MIME encoded message." . $eol;

    // message
    $body = "--" . $separator . $eol;
    $body .= "Content-Type: text/plain; charset=\"iso-8859-1\"" . $eol;
    $body .= "Content-Transfer-Encoding: 8bit" . $eol;
    $body .= $message . $eol;

    // attachment
    $body .= "--" . $separator . $eol;
    $body .= "Content-Type: application/octet-stream; name=\"" . $filenameee . "\"" . $eol;
    $body .= "Content-Transfer-Encoding: base64" . $eol;
    $body .= "Content-Disposition: attachment" . $eol;
    $body .= $content . $eol;
    $body .= "--" . $separator . "--";

    //SEND Mail
    if (mail($mailto, $subject, $body, $headers)) {
         echo "mail send ... okk!";
        echo "<script>
window.location = 'https://crowncrestrealty.com/thank-you';</script>";
        
    } else {
        echo "mail send ... ERROR!";
        print_r( error_get_last() );
    }
            }
?>
	</body>
  
	<!-- Mirrored from demo.awaikenthemes.com/html-preview/jivux/html/index-slider.php by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 27 Apr 2024 07:42:22 GMT -->
	<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
  </html>
  