<?php
include_once("include/main.inc.php");
@extract($_GET);
@extract($_POST);
@extract($_REQUEST);
if (preg_match('webpulse\.co$/', $_SERVER['HTTP_HOST'], $match)) {
  $match1 = $match[1];
  $vanity_url = 'http://' . $_SERVER['HTTP_HOST'];
}
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee = explode('/', $actual_link);

$mm = $ee[4];
$ss = explode('.', $mm);
$cc = $ss[0];
$cat = str_replace("-", " ", $cc);
$cats = ucfirst($cat);

$cat_s = mysqli_query($dbconn, "select * from career_tbl where catName='$cats'");
$num = mysqli_num_rows($cat_s);
$cat_r = mysqli_fetch_array($cat_s);
$career_id = $cat_r['catID'];
$catn = $cat_r['catName'];
$cat_sql1 = mysqli_query($dbconn, "select * from career_tbl where catID='$career_id'");
$cat_res = mysqli_fetch_array($cat_sql1);
$title = $cat_res['catName'];
$page_metatitle = $cat_res['catName'];
$page_metakey = $cat_res['catName'];
$page_metadesc = $cat_res['catName'];
if (strpos($_SERVER['REQUEST_URI'], "?") !== false) {
  $uri_parts = explode('?', $_SERVER['REQUEST_URI']);
  $linksLoc = $uri_parts[0];
  header("Location: " . site_url . $linksLoc);
  exit;
}

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
    <?php include "app_top.php"; ?>
</head>

<body>
    <?php include "app_header.php"; ?>

    <section class="heading_banner" style="background-image: url(<?= site_url; ?>/designer/images/career-banner.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title">Careers - <?=$admin_res['companyName'];?></h1>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </section>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?= site_url; ?>" title="Home">Home</a></li>
                        <li><a href="<?= site_url; ?>/career.htm" title="Career">Career</a></li>
                        <li class="active"><?= $cat_res['displayName']; ?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <section class="testimonial_page career-page">
        <div class="container">
            <div class="tt-bx mb-2">
                <h2 class="tt text-start fs-3">Job for <span><?= $cat_res['displayName']; ?></span></h2>
            </div>
            <ul class="pointer-li">
            <?php if ($cat_res['salary'] != '') { ?><li><strong>Salary:</strong> <?= $cat_res['salary']; ?></li> <?php } ?>
            <?php if ($cat_res['experience'] != '') { ?><li><strong>Exp.:</strong> <?= $cat_res['experience']; ?></li> <?php } ?>
        <?php if ($cat_res['location'] != '') { ?> <li><strong>Location:</strong> <?= $cat_res['location']; ?></li> <?php } ?>
            </ul>
            <?= html_entity_decode($cat_res['catDesc1']); ?>
            <div class="custom-from-row mt-5">
                <div class="custom-frm">
                    <div class="tt-bx mb-4">
                        <div class="tt">Apply <span>Now</span></div>
                        <p>Submit your application according to your location, and our dedicated local team will promptly get in touch to guide you through the next steps.</p>
                    </div>
                    <form name="career_form" id="career_form" method="POST" enctype="multipart/form-data">
                    <div id="career_response"></div>
                        <div class="row g-3">
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="name" placeholder="Full Name*" onkeypress="return ValidateAlpha(event)" value="" required="">
                            </div>
                            <div class="col-md-6 col-12">
                                <!-- <input type="hidden" class="countryName countryName" name="countryName" value=""> -->
                                <input class="form-control" value="" type="tel" name="mobile" placeholder="Mobile Number*" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" minlength="10" maxlength="10" required="" autocomplete="off">
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="email" name="email" placeholder="Email ID*" value="" required="">
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="location" placeholder="Location*" value="" required="">
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="zipcode" placeholder="Zip Code*" value="" required="">
                            </div>
                            <div class="col-md-6 col-12 position-relative">
                                <input class="form-control" type="file" name="files" id="files">
                                <small class="position-absolute top-50 end-0 translate-middle-y pe-3 d-none d-md-block">Upload Resume</small>
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="qualifications" placeholder="Your Qualifications*" value="" required="">
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="experience" placeholder="Experience Years*" value="" required="">
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="jobtitle" placeholder="Job Title*" value="" required="">
                            </div>
                            <div class="col-md-6 col-12">
                                <input class="form-control" type="text" name="salary" placeholder="Salary Expectation*" value="" required="">
                            </div>
                            <div class="col-12">
                                <textarea class="form-control" name="message" placeholder="Your Message*" required=""></textarea>
                            </div>
                            <div class="col-12">
                                <div class="g-recaptcha" data-sitekey="<?= site_key; ?>"></div>

                            </div>
                            <div class="col-12 mt-0">
                                <button type="submit" class="main-btn" name="career_submit">Apply Now</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>

    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

</html>