|
|
|
@ -7,7 +7,7 @@ if (!isset($_SESSION['email'])) { |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
// Check if seeker_id exists in the session |
|
|
|
|
$seeker_id = isset($_SESSION['seeker_id']) ; |
|
|
|
|
$seeker_id = isset($_SESSION['seeker_id']); |
|
|
|
|
|
|
|
|
|
include 'connect.php'; |
|
|
|
|
|
|
|
|
@ -90,6 +90,7 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
|
|
|
|
|
<!DOCTYPE html> |
|
|
|
|
<html lang="en" data-theme="light"> |
|
|
|
|
|
|
|
|
|
<head> |
|
|
|
|
<meta charset="UTF-8"> |
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
|
@ -97,8 +98,9 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.7.2/dist/full.min.css" rel="stylesheet" type="text/css" /> |
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
|
|
</head> |
|
|
|
|
|
|
|
|
|
<body class="min-h-screen flex flex-col bg-base-200"> |
|
|
|
|
<?php include 'navbar.php';?> |
|
|
|
|
<?php include 'navbar.php'; ?> |
|
|
|
|
|
|
|
|
|
<main class="flex-grow container mx-auto px-4 py-8"> |
|
|
|
|
<!-- Breadcrumb --> |
|
|
|
@ -116,8 +118,10 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
<!-- Display Application Message --> |
|
|
|
|
<?php if (isset($application_message)): ?> |
|
|
|
|
<div class="alert alert-success mb-4"> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current shrink-0 w-6 h-6"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" |
|
|
|
|
class="stroke-current shrink-0 w-6 h-6"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path> |
|
|
|
|
</svg> |
|
|
|
|
<span><?= htmlspecialchars($application_message) ?></span>
|
|
|
|
|
</div> |
|
|
|
@ -125,18 +129,59 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
|
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6"> |
|
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-primary" fill="none" |
|
|
|
|
viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /> |
|
|
|
|
</svg> |
|
|
|
|
<div> |
|
|
|
|
<div class="text-sm opacity-70">Location</div> |
|
|
|
|
<div class="font-medium"><?= htmlspecialchars($job['location']) ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-primary" fill="none" |
|
|
|
|
viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
</svg> |
|
|
|
|
<span class="font-medium"><?= htmlspecialchars($job['location']) ?></span>
|
|
|
|
|
<div> |
|
|
|
|
<div class="text-sm opacity-70">Salary</div> |
|
|
|
|
<div class="font-medium"><?= htmlspecialchars($job['salary']) ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-primary" fill="none" |
|
|
|
|
viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
</svg> |
|
|
|
|
<span class="font-medium"><?= htmlspecialchars($job['salary']) ?></span>
|
|
|
|
|
<div> |
|
|
|
|
<div class="text-sm opacity-70">Salary Type</div> |
|
|
|
|
<div class="font-medium"><?= htmlspecialchars($job['salary_type']) ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
|
<i class="fas fa-briefcase text-primary mr-3"></i> |
|
|
|
|
<div> |
|
|
|
|
<div class="text-sm opacity-70">job Type</div> |
|
|
|
|
<div class="font-medium"><?= htmlspecialchars($job['job_type']) ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
|
<i class="fa-solid fa-graduation-cap text-primary mr-3"></i> |
|
|
|
|
<div> |
|
|
|
|
<div class="text-sm opacity-70">Skill Level</div> |
|
|
|
|
<div class="font-medium"><?= htmlspecialchars($job['skills_level']) ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -158,16 +203,20 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
<?php if ($is_job_seeker): ?> |
|
|
|
|
<form method="POST"> |
|
|
|
|
<button type="submit" name="apply" class="btn btn-primary"> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" |
|
|
|
|
stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
</svg> |
|
|
|
|
Apply for Job |
|
|
|
|
</button> |
|
|
|
|
</form> |
|
|
|
|
<?php else: ?> |
|
|
|
|
<button class="btn btn-disabled" disabled> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" |
|
|
|
|
stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /> |
|
|
|
|
</svg> |
|
|
|
|
You must be a job seeker to apply |
|
|
|
|
</button> |
|
|
|
@ -176,16 +225,20 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
<?php if ($is_employer): ?> |
|
|
|
|
<form method="POST"> |
|
|
|
|
<button type="submit" name="remove" class="btn btn-error"> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" |
|
|
|
|
stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
|
|
</svg> |
|
|
|
|
Remove Job Posting |
|
|
|
|
</button> |
|
|
|
|
</form> |
|
|
|
|
<?php else: ?> |
|
|
|
|
<button class="btn btn-disabled" disabled> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /> |
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" |
|
|
|
|
stroke="currentColor"> |
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
|
|
|
|
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /> |
|
|
|
|
</svg> |
|
|
|
|
You must be a Employer to remove |
|
|
|
|
</button> |
|
|
|
@ -197,8 +250,9 @@ if (isset($_POST['remove']) && $is_employer) { |
|
|
|
|
</div> |
|
|
|
|
</main> |
|
|
|
|
|
|
|
|
|
<?php include 'footer.php';?> |
|
|
|
|
<?php include 'footer.php'; ?> |
|
|
|
|
</body> |
|
|
|
|
|
|
|
|
|
</html> |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|