diff --git a/job_applications.php b/job_applications.php
index e58f229..377170b 100644
--- a/job_applications.php
+++ b/job_applications.php
@@ -19,7 +19,7 @@ if (!$is_job_seeker) {
// Get all applications for the current seeker
$seeker_id = $_SESSION['seeker_id'];
-$sql = "SELECT a.*, j.job_title, j.location, j.salary, j.posted_date
+$sql = "SELECT a.*, j.job_title, j.location, j.salary, j.posted_date,j.job_type,j.skills_level,j.salary_type
FROM applications a
JOIN job_postings j ON a.job_id = j.job_id
WHERE a.seeker_id = ?";
@@ -62,6 +62,9 @@ $result = $stmt->get_result();
Job Title |
Location |
Salary |
+ Salary Type |
+ Job type |
+ Skill Level |
Application Date |
Status |
@@ -80,6 +83,15 @@ $result = $stmt->get_result();
= htmlspecialchars($application['salary']) ?>
|
+
+ = htmlspecialchars($application['salary_type']) ?>
+ |
+
+ = htmlspecialchars($application['job_type']) ?>
+ |
+
+ = htmlspecialchars($application['skills_level']) ?>
+ |
= date('F j, Y', strtotime($application['application_date'])) ?>
|
diff --git a/job_details.php b/job_details.php
index 88d954e..821da5e 100644
--- a/job_details.php
+++ b/job_details.php
@@ -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) {
+
@@ -97,9 +98,10 @@ if (isset($_POST['remove']) && $is_employer) {
+
-
-
+
+
@@ -116,27 +118,70 @@ if (isset($_POST['remove']) && $is_employer) {
-
-
+
-
-
-
+
+
+
- = htmlspecialchars($job['location']) ?>
+
+
Location
+
= htmlspecialchars($job['location']) ?>
+
-
+
-
-
+
+
- = htmlspecialchars($job['salary']) ?>
+
+
Salary
+
= htmlspecialchars($job['salary']) ?>
+
+
+
+
+
+
+
+
+
Salary Type
+
= htmlspecialchars($job['salary_type']) ?>
+
+
+
+
+
+
+
+
job Type
+
= htmlspecialchars($job['job_type']) ?>
+
+
+
+
+
+
+
+
Skill Level
+
= htmlspecialchars($job['skills_level']) ?>
+
@@ -158,49 +203,58 @@ if (isset($_POST['remove']) && $is_employer) {
-
+
-
-
+
+
-
+
+
close();
-?>
+?>
\ No newline at end of file
diff --git a/manage_applications.php b/manage_applications.php
index 05da0eb..17d8fc2 100644
--- a/manage_applications.php
+++ b/manage_applications.php
@@ -26,6 +26,7 @@ $sql = "SELECT
u.firstname,
u.lastname,
u.email,
+ js.skills,
u.phone
FROM applications a
JOIN job_postings j ON a.job_id = j.job_id
@@ -105,6 +106,9 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
Contact
|
+
+ Skills
+ |
Date
|
@@ -141,6 +145,15 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
= htmlspecialchars($application['phone']) ?>
+
+
+ = htmlspecialchars($application['location']) ?>
+
+
+
+
+
+ = htmlspecialchars($application['skills']) ?>
|
diff --git a/managejob.php b/managejob.php
index abee97e..d9ab1db 100644
--- a/managejob.php
+++ b/managejob.php
@@ -19,24 +19,30 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
$location = $_POST['location'];
$salary = $_POST['salary'];
$requirements = $_POST['requirements'];
+ $salary_type = $_POST['salary_type'];
+ $job_type = $_POST['job_type'];
+ $skills_level = $_POST['skills_level'];
// Prepare the SQL query to insert job data into job_postings table
$stmt = $conn->prepare(
- "INSERT INTO job_postings (employer_id, job_title, job_description, location, salary, requirements)
- VALUES (?, ?, ?, ?, ?, ?)"
+ "INSERT INTO job_postings (employer_id, job_title, job_description, location, salary, requirements,salary_type,job_type,skills_level )
+ VALUES (?, ?, ?, ?, ?, ?,?,?,?)"
);
$stmt->bind_param(
- "isssss", // Define parameter types (string, string, string, string, string, string)
+ "issssssss", // Define parameter types (string, string, string, string, string, string)
$employer_id,
$job_title,
$job_description,
$location,
$salary,
- $requirements
+ $requirements,
+ $salary_type,
+ $job_type,
+ $skills_level
);
$stmt->execute();
- echo "";
+ echo "";
exit;
} catch (Exception $e) {
@@ -49,6 +55,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
+
@@ -66,8 +73,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
@@ -103,8 +110,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
Job Description
-
+
@@ -115,8 +122,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
Location
-
+
@@ -127,8 +134,54 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
Salary
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -139,10 +192,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
Requirements
-
+
+
+
+
|