12 June 2019

Career page and thankyou page in core php...

<?php include('function/function.php');
$page_data_sql=sqlfetch("SELECT * FROM page_meta where id='9'");
?>
<base href="<?=SITE_URL;?>"/>
<title><?=@$page_data['meta_title']?$page_data['meta_title']:$main_site_info['name'];?></title>
<meta name="subject" content="<?=@$page_data['meta_title']?$page_data['meta_title']:$main_site_info['name'];?>" />
<meta name="description" content="<?=$page_data['meta_des'];?>"/>
<meta name="classification" content="<?=$page_data['meta_des'];?>"/>
<meta name="keywords" content="<?=$page_data['meta_key'];?>"/>
<?php include('include/header.php');?>
<style>
.innerblock.career-block {
width: 100%;
float: left;
}
.innerblock.career-block ul {
padding: 0px;
list-style: none;
}
.innerblock ul li {
    display: block;
    width: auto;
    float: none;
    border: none;
    margin: 0px;
    overflow: unset;
    margin-bottom: 5px;
}
.innerblock.career-block h3 {
border-bottom: 1px dashed #5faedf;
float: left;
padding-left: 0;
text-align: left;
width: 100%;
color: #3f8ec7;
font-size: 14px;
font-weight: 600;
padding: 0 0 14px;
margin-bottom: 20px;
font-size: 28px;
}
.innerblock.career-block ul li p strong {
color: #4789c5;
}
.apply {
float: left;
margin: 7px 0 0;
padding: 10px 30px;
}
.btn-default {
background: #378fcf;
margin-right: 74px;
background: -moz-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #378fcf), color-stop(3%, #368ece), color-stop(10%, #2c89ce), color-stop(13%, #2583cb), color-stop(16%, #2282cc), color-stop(23%, #2085cb), color-stop(84%, #288cd7), color-stop(87%, #288ad3), color-stop(94%, #2480c3), color-stop(100%, #257ec0));
background: -webkit-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: -o-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: -ms-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: linear-gradient(to bottom, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
font-size: 15px;
color: #fff;
border: 0;
cursor: pointer;
padding: 6px 33px;
border-radius: 4px;
}
.job-form {
width: 100%;
float: left;
}
.job-form .modal-content {
width: 100%;
float: left;
background: #fff;
border: none;
}
.modal-content {
-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
box-shadow: 0 5px 15px rgba(0,0,0,.5);
z-index: 999999999;
position: absolute;
transform: translate(-50%, 2%);
top: 50%;
left: 48%;
width: 73% !important;
float: left;
background: #ffffff;
margin-top: 0px;
border: none;
}
.job-form .modal-header {
background: #1a6ba7;
text-align: center;
padding: 5px;
font-size: 20px;
}
.modal-header .close {
margin-top: -2px;
margin-right: 7px;
font-size: 35px;
font-weight: normal;
}
.modal-title {
margin: 0;
line-height: 1.42857143;
color: #fff;
}
.job-form .form-group {
float: left;
width: 100%;
margin-bottom: 5px;
margin-top: 5px;
}
.job-form label {
font-weight: 500;
}
.job-form input#enqury {
float: right;
background: #378fcf;
margin-right: 74px;
background: -moz-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #378fcf), color-stop(3%, #368ece), color-stop(10%, #2c89ce), color-stop(13%, #2583cb), color-stop(16%, #2282cc), color-stop(23%, #2085cb), color-stop(84%, #288cd7), color-stop(87%, #288ad3), color-stop(94%, #2480c3), color-stop(100%, #257ec0));
background: -webkit-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: -o-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: -ms-linear-gradient(top, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
background: linear-gradient(to bottom, #378fcf 0%, #368ece 3%, #2c89ce 10%, #2583cb 13%, #2282cc 16%, #2085cb 23%, #288cd7 84%, #288ad3 87%, #2480c3 94%, #257ec0 100%);
font-size: 15px;
color: #fff;
border: 0;
cursor: pointer;
padding: 8px 20px;
border-radius: 4px;
}

.job-form .modal-dialog {
width: 900px;
margin: 0 auto;
}
.modal-body {
    float: left;
    width: 100%;
}
.modal-header .close {
    color: #fff;
    opacity: 1;
}
</style>
</head>
<body>
<div class="inner-strip">
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-10 col-md-10 col-lg-10">
<nav aria-label="breadcrumb">
   <h2 style="color:#fff;">Careers</h2> 
  <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?=SITE_URL;?>">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Careers</li>
  </ol>
</nav>
            </div>
            <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2">
                <a href="#" class="query-btn"><i class="fa fa-paper-plane-o" aria-hidden="true"></i> &nbsp; Enquire Now!</a>
            </div>
        </div>
    </div>
</div>
<?php
$count=1;
$data=sqlfetch("SELECT * FROM `career`");
foreach($data as $menu)
{ ?>
<div class="innerblock career-block">
      <div class="container">
        <ul>
          <li>
            <h3> <?php echo $menu['name']; ?></h3>   
            <p><strong>Experience :</strong> <?php echo $menu['experience']; ?></p>
            <p><strong>Location :</strong> <?php echo $menu['location']; ?></p>
            <p><strong>Qualification :</strong> <?php echo $menu['qualification']; ?></p>
            <p><strong>Skills Required :</strong> <?php echo $menu['srequired']; ?></p>
            <p class="job-description"><strong>job Description:</strong> </p>
             <?php echo $menu['jdes']; ?>
            <p></p>
            <p><strong>Closing date :</strong> <?php echo $menu['cdate']; ?></p>
            <p><strong>Vacancies :</strong> <?php echo $menu['vacancies']; ?></p>
           <p> <a class="apply btn-default" data-toggle="modal" data-target="#jobModal<?php echo $menu['id']; ?>" title="Apply Now" style="margin-bottom:20px;"> Apply Now</a>
   <div class="job-form">
  <div class="modal fade in" id="jobModal<?php echo $menu['id']; ?>" role="dialog">
<div class="modal-dialog">
  <!-- Modal content-->
  <div class="modal-content">
<div class="modal-header">
  <button type="button" class="close" data-dismiss="modal">×</button>
  <h4 class="modal-title">Apply Now</h4>
</div>
<div class="modal-body">
<form action="thankyou.php" method="post"  enctype="multipart/form-data">
<input type="hidden" name="apply_for" value="<?php echo $menu['name']; ?>">
<input type="hidden" name="experience" value="<?php echo $menu['experience']; ?>">
<input type="hidden" name="location" value="<?php echo $menu['location']; ?>">
<input type="hidden" name="qualification" value="<?php echo $menu['qualification']; ?>">
<input type="hidden" name="srequired" value="<?php echo $menu['srequired']; ?>">

  <div class=" ass">
  <div class="form-group">
<label class="control-label col-sm-5" for="apply">Applying For:</label>
   <div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="apply_for" size="40" value="<?php echo $menu['name']; ?>" class="form-control" disabled>
</div>
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="experience">Minimum Experience Needed:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="experience" value="<?php echo $menu['experience']; ?>" size="40" class="form-control" disabled>
</div>
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="location">Location:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="location" value="<?php echo $menu['location']; ?>" size="40" class="form-control" disabled>
</div>
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="qualification">Qualification:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="qualification" value="<?php echo $menu['qualification']; ?>" size="40" class="form-control" disabled>
</div>
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="qualification">Skills:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="srequired" value="<?php echo $menu['srequired']; ?>" size="40" class="form-control" disabled>
</div>
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="first_name">Name<sup>*</sup>:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="name" value="" placeholder="Your Name" class="form-control" pattern="[A-Za-z\s]+" required="">
</div>
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="email">Email<sup>*</sup>:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="text" name="email" value="" placeholder="Your Email" class="form-control" pattern="[^@\s]+@[^@\s]+\.[^@\s]+" required="">
</div>
  </div>
  <div class="form-group">
  <label class="control-label col-sm-5" for="mobile">Mobile<sup>*</sup>:</label>
  <div class="col-xs-12 col-sm-10 col-md-7">
<input type="text" name="phone" value="" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required form-control"  minlength="10" maxlength="10" pattern="^(?:(?:\+|0{0,2})91(\s*[\-]\s*)?|[0]?)?[789]\d{9}$" required placeholder="Mobile No" >
  </div>
  <div class="form-group">
<label class="control-label col-sm-5" for="resume">Upload Resume / C.V.<sup>*</sup>:</label>
<div class="col-xs-12 col-sm-10 col-md-7">
  <input type="file" name="photo"   class="wpcf7-form-control wpcf7-file form-control" aria-invalid="false" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" required />
      (File Upload in Pdf, Csv and Doc)
</div>
  </div>
  <div class="form-group">
<label>&nbsp;</label>
<input type="submit" value="Submit" class="wpcf7-form-control wpcf7-submit" id="enqury">
</div>
</form>
</div>
  </div>
</div>
  </div>
</div>
</div>
</div>
   </p> </li>
          <strong> </strong>
        </ul>
        <strong> </strong></div>
    </div>
<?php } ?>
</body>
</html>
<?php include('include/footer.php');?>


<!--------- ThankYou Page  Start------->

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Kw Group Thank You </title>
<meta name="keywords" content="bulk sms, bulk email" />
<meta name="description" content="Proaxive">
<meta name="author" content="Proaxive">
<!-- Favicon -->
<link rel="shortcut icon" href="img/feb-icons.png" type="image/x-icon" />
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">

<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

 <?php error_reporting(0); include('function/function.php'); 
 ob_start(); ?>
<?php include 'include/header.php' ;?>

<style type="text/css">
.thank-sec {
left: 50%;
/* top: 0%; */
transform: translate(-50%, -0%);
width: 70%;
height: auto;
/* height: 80%;*/
padding: 0px 20px 20px 20px;
color: #000;
text-align: center;
position: relative;
}
.thank-sec a img {
width: 115px;
}
.thank-sec h1 {
font-size: 80px;
line-height: 86px;
font-weight: 600;
width: 100%;
text-transform: uppercase;
margin: 0px 0px;
}
.thank-sec i {
font-size: 70px;
line-height: 76px;
font-weight: 600;
width: 100%;
color: #359936;
margin-bottom: -20px;
}

.thank-sec p {
    font-size: 18px;
    line-height: 30px;
    font-weight: 600;
    color: #000;
    text-align: center;
}

.back-site {
    border: 1px solid #e1140c;
    padding: 7px 10px;
    width: 169px;
    display: inline-block;
    border-radius: 3px;
    font-size: 17px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background: #f77607;
    text-shadow: 1px 1px 1px #55588f;
    line-height: 33px;
    margin-top: 20px;
}

</style>
<div class="clearfix"></div>
<article class="about-midd-section">
<div class="container">
<div class="row">
<div class="thanks">
<div class="thank-sec">
<?php   
   @extract($_POST);
   $page_table_name='career_form';
$posted_data=$_POST;
$sql=sqlfetch("select * from  career_form ");
    $photos=$_FILES['photo']['name'];
    $Filename='';
    if($photos){
    $Filename=date('dmyhis').basename($_FILES['photo']['name']);
    $posted_data['photo']=$Filename;
        $target = "upload/".$Filename;
        move_uploaded_file($_FILES['photo']['tmp_name'], $target); 
    }
    $affected_rows=insert($page_table_name,$posted_data);
if($affected_rows){
        $to = "$email";
     
        $subject= $apply_for . " " . "Kw Group Career Form Message";
        //body
        $body = "
        \n Hello ".$apply_for.",
        \n Thank you for contacting Kw Group. We have received your message.\n
        The contact details provided by you are -
        \n Applying For : " . $apply_for .
        "\n Minimum Experience Needed : " . $experience .
        "\n Location : " . $location .
        "\n Qualification : " . $qualification .
        "\n Skills : " . $srequired .
        "\n Name : " . $name . 
        "\n Email : ". $email .
        "\n Phone : ". $phone .
        "\n Resume : ".'http://kwgroup.mailxing.in/upload/'.$Filename ;
        "\n\n We will reach you soon.";
        $r = mail($to, $subject, $body, "From: info@kworldgroup.com ") ;
       
       
        $to1 = "indrajeet@nimbusitsolutions.com";
        $subject1= $apply_for . " " . " Kw Group Career Message";
        //body
        $body1 = "
        \n Hello ".$name.",
        \n By Kw Group Career Form Message.
        \n The Contact details provided by you are -
         \n Applying For : " . $apply_for .
        "\n Minimum Experience Needed : " . $experience .
        "\n Location : " . $location .
        "\n Qualification : " . $qualification .
        "\n Skills : " . $srequired .
        "\n Name : " . $name . 
        "\n Email : ". $email .
        "\n Phone : ". $phone .
        "\n Resume : ".'http://kwgroup.mailxing.in/upload/'.$Filename ;
        "\n\n\n We will reach you soon.";
        $r1 = mail($to1, $subject1, $body1, "From: $email") ;
       
        if($r == 1 && $r1 == 1)
        {
       
        echo "<a href='index.php'><img src='upload/230419072042logo.jpg'></a>
        <h1>Thank you</h1>
        <i class='fa fa-check'></i>
        <p>ONE OF OUR COUNCELLORS WILL CONTACT YOU, SHORTLY!<br/> WE HOPE TO SEE YOU AROUND!</p>
        <a href='index.php' class='back-site'>Back To Home</a>
        ";
        //echo "Thank You For Form Submission";
        }
        else
        {
        echo 'Message delivered failed.';
        }
}
?> 

</div>
</div>
</form>
</div>
</div>
</article>

<div class="clearfix"></div>
<?php include ('include/footer.php') ;?>

<!--------- End ThankYou Page  ------->