Your IP : 18.222.252.84


Current Path : /home/lentoinv/getschooljobs.com/
Upload File :
Current File : //home/lentoinv/getschooljobs.com/jobapplications.php

<?php
session_start(); ob_start();
include('lib/controller.php');


if(isset($_GET['job'])){
$job = $_GET['job'];
$lid = sqLx('listing','slug',$job,'id');
$sql = dbSelect('listing',['id'=>$lid]);
}
else{
$sql = $db->query("SELECT * FROM listing WHERE sid = '$uid' ORDER BY id DESC LIMIT 1 ");  
}
$row = mysqli_fetch_assoc($sql);
extract($row);
?>
<!DOCTYPE html>
<html lang="en">


<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title>Applications</title>
  <meta name="description" content="">
  <meta name="keywords" content="">

  <meta name="robots" content="index, follow">

<?php include('style.php') ?>
  
  <style type="text/css">
      .badge1 {
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 5px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: inline-block;
  border-radius: 50px;
  font-family: var(--default-font);
}

#pdfViewer {
      display: none;
      width: 100%;
      height: 600px;
      border: 1px solid #ccc;
/*      margin-top: 20px;*/
    }
  </style>

</head>


<body class="service-details-page">

  <?php include('header.php');

   ?>

  <main class="main">

    <!-- Page Title -->
    <div class="page-title dark-background" data-aos="fade">
      <div class="heading">
        <div class="container">
          <div class="row d-flex justify-content-center text-center">
            <div class="col-lg-8">
              <h1><?=$title?></h1>
              <p class="mb-0">Keep track of all your job applications</p>
            </div>
          </div>
        </div>
      </div>
      <nav class="breadcrumbs">
        <div class="container">
          <ol>
           
            <li class="current">Applications</li>
            <li class="current"><?=$title?></li>
          </ol>
        </div>
      </nav>
    </div><!-- End Page Title -->

    <!-- Service Details Section -->
    <section id="service-details" class="service-details section">

      <div class="container">

        <div class="row gy-4">

          <div class="col-lg-12">
            <div class="services-list p-0" style="border-radius: 10px;">
 
          <h4 class="p-3 pb-0">Job Information</h4>
          <hr>
          
          <p class="p-2"><span class="badge1"><?=$worktype?></span> <span class="badge1"><?=$level?></span> <span class="badge1"><?=$currency?><?=$salary?></span>  <span class="badge1"><?=$qualification?> Min Qualification</span> <span class="badge1"><?=$experience?> Years Experience</span></p>
        
        </div>
          </div>

          <div class="col-lg-4">
           <?php include('menux.php') ?>
          
          </div>

          <div class="col-lg-8 services pt-0">
          
            <div class="row gy-4">
        <?php 

$sql = $db->query("SELECT * FROM user WHERE id IN (SELECT uid FROM application WHERE lid = '$id')");

 ?>

        <div class="col-lg-12 col-md-12" data-aos="fade-up" data-aos-delay="200">
        <div class="services-list table-responsive p-0" style="border-radius: 10px;">
 
    <table class="table">
      <tr>
        <th>SN</th>
        <th>Name</th>
        <th>Birthday</th>
        <th>Gender</th>
        
        <th>Phone No</th>
        <th>Location</th>
        <th>Action</th>
      </tr>

      <?php  $i=1;
while($row = mysqli_fetch_assoc($sql)){ $e=$i++;
extract($row);
      ?>
<tr>
  <td><?=$e?></td>
  <td><?=$firstname?> <?=$lastname?></td>
  <td><?=$day.'/'.$month.'/'.$year?></td>
  <td><?=$gender?></td>
 
  <td><?=$phone?></td>
  <td><?=$lga?>, <?=$state?></td> 
  <td><a href="#candidatesjobprofile" onclick="viewPDF('jobprofile?ref=<?=$pub?>&job=<?=$slug?>')" class="mt-0 p-1"><span>Profile</span></a></td>
</tr>
      <?php } ?>
    </table>
   
</div>
          </div>

        </div>

      </div>

    </section><!-- /Service Details Section -->

  </main>

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

  <!-- Vendor JS Files -->
  <script data-cfasync="false" src="assets/email-decode.min.js"></script>
  <script src="assets/bootstrap.bundle.min.js"></script>
  <script src="assets/validate.js"></script>
  <script src="assets/aos.js"></script>
  <script src="assets/purecounter_vanilla.js"></script>
  <script src="assets/swiper-bundle.min.js"></script>

  <!-- Main JS File -->
  <script src="assets/main.js"></script>

<script type="text/javascript">
function viewPDF(pdfUrl) {
  // Open the PDF in a new window or tab
  window.open(pdfUrl, '_blank', 'width=900,height=600,resizable=yes');
}
</script>
</body>

</html>

?>