removed custom css using tailwind and daisyui instead of it

main
Grim0o5 6 months ago
parent 4a38e5fa7b
commit 08880f013c
  1. 4
      .htaccess
  2. 56
      ManageJob.css
  3. 23
      aboutus.css
  4. 112
      aboutus.php
  5. 50
      contactus.css
  6. 51
      contactus.php
  7. 8
      createAccount.css
  8. 132
      createAccount.php
  9. 65
      employe.css
  10. 101
      employerdash.php
  11. 111
      employerprofile.php
  12. 6
      footer.css
  13. 16
      home.php
  14. 144
      index.css
  15. 276
      index.php
  16. 139
      job_applications.php
  17. 99
      job_details.php
  18. 63
      jobseekerdash.css
  19. 79
      jobseekerdash.php
  20. 113
      jobseekerprofile.css
  21. 181
      jobseekerprofile.php
  22. 12
      login.css
  23. 125
      login.php
  24. 225
      manage_applications.php
  25. 116
      managejob.php
  26. 12
      navbar.css
  27. 3
      navbar.php
  28. BIN
      pic/TEMPHIRE_LOGO.png
  29. 2
      updateprofile.php

@ -1,6 +1,6 @@
RewriteEngine On
# Remove .php extension for all URLs (for lowercase letters only)
# Remove .php extension for all URLs (for lowercase letters and underscores)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([a-z-]+)$ $1.php [L]
RewriteRule ^([a-z0-9-_]+)$ $1.php [L]

@ -1,56 +0,0 @@
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.post-job input, .post-job textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 4px;
}
.post-job button {
padding: 10px 20px;
background-color: #28a745;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.post-job button:hover {
background-color: #218838;
}
#jobsList {
margin-top: 20px;
}
.job {
background-color: #f9f9f9;
padding: 15px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
.job h3 {
margin: 0;
font-size: 18px;
}
.job p {
margin: 5px 0;
}

@ -1,23 +0,0 @@
.content {
padding: 40px 20px;
max-width: 800px;
margin: 0 auto;
}
.content h1 {
text-align: center;
color: rgb(49, 61, 231);
margin-bottom: 20px;
}
.content h2 {
text-align: center;
margin-bottom: 20px;
color: rgb(49, 61, 231);
}
.content p {
line-height: 1.6;
margin: 15px 0;
text-align: center;
}

@ -1,35 +1,99 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us - Part-Time Job</title>
<link rel="stylesheet" href="aboutus.css">
<title>About Us - TempHire</title>
<!-- Add this script for custom colors -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#313DE7',
secondary: '#FF6B6B',
accent: '#4CAF50',
neutral: '#3D4451',
'base-100': '#FFFFFF',
}
}
}
}
</script>
<link href="https://cdn.jsdelivr.net/npm/daisyui@3.9.0/dist/full.css" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<!-- Add custom styles -->
<style>
.gradient-bg {
background: linear-gradient(135deg, #313DE7 0%, #FF6B6B 100%);
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(49, 61, 231, 0.1);
}
</style>
</head>
<body>
<body class="bg-white">
<?php include 'navbar.php'?>
<div class="content">
<h1>Welcome to Temphire</h1>
<p>
At part-time job, we are dedicated to connecting job seekers with meaningful part-time opportunities that suit their skills, schedules, and aspirations. Our platform is designed to provide a seamless experience for both employers and job seekers, making it easier to find the right match.
</p>
<p>
Whether you are a student, a stay-at-home parent, or someone looking to supplement your income, our platform offers a diverse range of job listings from various industries and locations. From flexible hours to remote work options, we strive to cater to the unique needs of our users.
</p>
<h2>Our Mission</h2>
<p>
Our mission is to empower individuals by providing access to quality part-time job opportunities and to support businesses by helping them find talented and motivated part-time employees. We believe in creating a community where everyone can thrive through meaningful work.
</p>
<h2>Why Choose Us?</h2>
<p>
- A wide variety of part-time job listings across multiple sectors.<br>
- User-friendly platform for easy navigation and application.<br>
- Tools to filter and customize your job search to find the perfect fit.<br>
- Dedicated support to assist you every step of the way.
</p>
<!-- Hero Section -->
<div class="hero min-h-[50vh] bg-base-200 relative overflow-hidden">
<div class="hero-content text-center">
<div class="max-w-3xl">
<h1 class="text-5xl font-bold text-primary mb-8">Welcome to TempHire</h1>
<p class="text-xl leading-relaxed text-neutral">
Your gateway to flexible employment opportunities. We connect talented individuals with meaningful part-time work that fits their lifestyle.
</p>
</div>
</div>
</div>
<!-- Main Content -->
<div class="container mx-auto px-4 py-12">
<div class="grid gap-12 max-w-4xl mx-auto">
<!-- About Cards -->
<div class="grid md:grid-cols-2 gap-6">
<div class="card bg-white shadow-xl card-hover border border-primary/10">
<div class="card-body">
<i class='bx bx-search text-4xl text-primary'></i>
<h3 class="card-title text-primary">Find Your Perfect Match</h3>
<p class="text-neutral">Browse through carefully curated job listings that match your skills, schedule, and career goals.</p>
</div>
</div>
<div class="card bg-white shadow-xl card-hover border border-primary/10">
<div class="card-body">
<i class='bx bx-time-five text-4xl text-primary'></i>
<h3 class="card-title text-primary">Flexible Hours</h3>
<p class="text-neutral">Whether you're a student, parent, or professional, find opportunities that fit your schedule.</p>
</div>
</div>
</div>
<!-- Mission Section -->
<div class="card bg-primary text-white shadow-xl">
<div class="card-body items-center text-center">
<i class='bx bx-target-lock text-5xl mb-4'></i>
<h2 class="text-3xl font-bold mb-4">Our Mission</h2>
<p class="text-lg max-w-2xl">
We're committed to empowering individuals by providing access to quality part-time opportunities while helping businesses find exceptional talent. Our platform creates a community where everyone can thrive through meaningful work.
</p>
</div>
</div>
</div>
</div>
<?php include 'footer.php'?>
<?php include 'footer.php'?>
</body>
</html>

@ -1,50 +0,0 @@
.content {
padding: 40px 20px;
max-width: 800px;
margin: 0 auto;
}
.content h3 {
text-align: center;
}
.content form {
display: flex;
flex-direction: column;
gap: 15px;
}
.content form label {
font-weight: bold;
}
.content form input,
.content form textarea,
.content form button {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1rem;
}
.content form textarea {
resize: vertical;
height: 100px;
}
.content form button {
background-color: #00416A;
color: white;
border: none;
cursor: pointer;
}
.content form button:hover {
background-color: #62b9d1;
}

@ -1,29 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - Temphire</title>
<link rel="stylesheet" href="contactus.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
</head>
<body>
<body class="min-h-screen bg-base-200">
<?php include 'navbar.php' ?>
<div class="content">
<h3><b>Please provide the feed back about your problem</h3>
<form>
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
<div class="hero min-h-screen bg-base-200">
<div class="hero-content flex-col lg:flex-row-reverse">
<div class="card flex-shrink-0 w-full max-w-lg shadow-2xl bg-base-100">
<div class="card-body">
<h3 class="text-2xl font-bold text-center mb-4">Please provide the feedback about your problem</h3>
<form class="space-y-4">
<div class="form-control">
<label class="label">
<span class="label-text">Your Name</span>
</label>
<input type="text" id="name" name="name" placeholder="Enter your name" class="input input-bordered w-full" required />
</div>
<label for="email">Your Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
<div class="form-control">
<label class="label">
<span class="label-text">Your Email</span>
</label>
<input type="email" id="email" name="email" placeholder="Enter your email" class="input input-bordered w-full" required />
</div>
<label for="message">Your Message:</label>
<textarea id="message" name="message" placeholder="Type your message here" required></textarea>
<div class="form-control">
<label class="label">
<span class="label-text">Your Message</span>
</label>
<textarea id="message" name="message" class="textarea textarea-bordered h-32" placeholder="Type your message here" required></textarea>
</div>
<button type="submit">Send Message</button>
</form>
<div class="form-control mt-6">
<button class="btn btn-primary">Send Message</button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php include 'footer.php' ?>

@ -1,8 +0,0 @@
form
{
display: flex;
justify-content: center;
align-items: center;
padding: 60px;
}

@ -1,77 +1,91 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- font-awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<!-- custom css -->
<link rel="stylesheet" href="createAccount.css">
<title>Create Account - Temphire</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
</head>
<body>
<body class="min-h-screen bg-base-200">
<?php include 'navbar.php'; ?>
<form method="post" action="register.php">
<div class="forms-container">
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<input type="text" id="fname" name="fname" class="form-control" required />
<label class="form-label" for="fname">First name</label>
</div>
</div>
<div class="col">
<div class="form-outline">
<input type="text" id="lname" name="lname" class="form-control" required />
<label class="form-label" for="lname">Last name</label>
</div>
</div>
</div>
<!-- Job type -->
<div class="form-outline mb-4">
<select name="user_type" id="user_type" class="form-control" required>
<option value="Job seeker" >Job seeker</option>
<option value="Employer" ">Employer</option>
</select>
<label class="form-label" for="user_type">User Type</label>
</div>
<div class="hero min-h-screen bg-base-200">
<div class="hero-content flex-col lg:flex-row-reverse">
<div class="card flex-shrink-0 w-full max-w-lg shadow-2xl bg-base-100">
<div class="card-body">
<h2 class="card-title text-2xl font-bold text-center mb-6">Create Account</h2>
<form method="post" action="register.php" class="space-y-4">
<!-- Name Fields -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="form-control">
<label class="label">
<span class="label-text">First name</span>
</label>
<input type="text" id="fname" name="fname" class="input input-bordered w-full" required />
</div>
<div class="form-control">
<label class="label">
<span class="label-text">Last name</span>
</label>
<input type="text" id="lname" name="lname" class="input input-bordered w-full" required />
</div>
</div>
<!-- Contact input -->
<div class="form-outline mb-4">
<input type="number" name="contact" id="contact" class="form-control" />
<label class="form-label" for="contact">Contact</label>
</div>
<!-- User Type -->
<div class="form-control">
<label class="label">
<span class="label-text">User Type</span>
</label>
<select name="user_type" id="user_type" class="select select-bordered w-full" required>
<option value="Job seeker">Job seeker</option>
<option value="Employer">Employer</option>
</select>
</div>
<!-- Email input -->
<div class="form-outline mb-4">
<input type="email" id="email" name="email" class="form-control" required />
<label class="form-label" for="email">Email address</label>
</div>
<!-- Contact -->
<div class="form-control">
<label class="label">
<span class="label-text">Contact</span>
</label>
<input type="number" name="contact" id="contact" class="input input-bordered w-full" />
</div>
<!-- Username input -->
<div class="form-outline mb-4">
<input type="text" name="username" id="username" class="form-control" />
<label class="form-label" for="username">Username</label>
</div>
<!-- Email -->
<div class="form-control">
<label class="label">
<span class="label-text">Email address</span>
</label>
<input type="email" id="email" name="email" class="input input-bordered w-full" required />
</div>
<!-- Password input -->
<div class="form-outline mb-4">
<input type="password" name="password" id="password" class="form-control" required />
<label class="form-label" for="password">Password</label>
</div>
<!-- Username -->
<div class="form-control">
<label class="label">
<span class="label-text">Username</span>
</label>
<input type="text" name="username" id="username" class="input input-bordered w-full" />
</div>
<!-- Password -->
<div class="form-control">
<label class="label">
<span class="label-text">Password</span>
</label>
<input type="password" name="password" id="password" class="input input-bordered w-full" required />
</div>
<!-- Submit button -->
<button type="submit" class="btn btn-primary btn-block mb-4" name="signup">Sign up</button>
<!-- Submit Button -->
<!-- <div class="form-control mt-9"> -->
<button type="submit" name="signup" class="btn btn-primary btn-sm w-full">Sign up</button>
<!-- </div> -->
</form>
</div>
</div>
</div>
</div>
</form>
<?php include 'footer.php'; ?>
</body>
</html>

@ -1,65 +0,0 @@
*
body {
margin: 0;
font-family: sans-serif;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
.blue-box {
width: 100%;
height: 300px;
background-color: #8492e0;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-size: 2em;
}
.main-div {
width: 80%;
max-width: 800px;
margin-top: 50px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.button-div {
width: 30%;
height: 100px;
border: 1px solid #ddd;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
cursor: pointer;
}
.button-div:hover {
background-color: #f2f2f2;
}
.icon {
margin-right: 10px;
font-size: 2em;
}
.button-text {
font-size: 1.2em;
}
.button-div a{
text-decoration: none;
color: black;
}

@ -1,47 +1,74 @@
<!DOCTYPE html>
<html>
<html lang="en" data-theme="light">
<head>
<title>Employee Dashboard</title>
<link rel="stylesheet" href="employe.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Employee Dashboard</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
</head>
<body>
<?php include 'navbar.php'?>
<body class="min-h-screen bg-base-200">
<?php include 'navbar.php'?>
<div class="container">
<div class="button-div">
<span class="icon">📄</span>
<span class="button-text">Manage Job Applications</span>
</div>
<div class="button-div">
<a href="managejob">
<span class="icon">💼</span>
<span class="button-text">post Jobs</span>
</div>
</a>
<div class="container mx-auto px-4 py-8">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Manage Applications -->
<a href="manage_applications" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">📄</span>
</div>
<h2 class="card-title text-xl">Manage Job Applications</h2>
<p class="text-base-content/70">Review and process applications</p>
</div>
</a>
<div class="button-div">
<a href="viewjobs">
<span class="icon">💼</span>
<span class="button-text">View Jobs</span>
</div>
<!-- Post Jobs -->
<a href="managejob" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-secondary/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">💼</span>
</div>
<h2 class="card-title text-xl">Post Jobs</h2>
<p class="text-base-content/70">Create new job listings</p>
</div>
</a>
<div class="button-div">
<a href="employerprofile">
<span class="icon">👤</span>
<span class="button-text">My Profile</span>
</a>
</div>
<div class="button-div">
<a href="logout">
<span class="icon">🚪</span>
<span class="button-text">Logout</span>
</a>
</div>
<!-- View Jobs -->
<a href="viewjobs" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-accent/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">💼</span>
</div>
<h2 class="card-title text-xl">View Jobs</h2>
<p class="text-base-content/70">Browse all posted jobs</p>
</div>
</a>
</div>
<!-- My Profile -->
<a href="employerprofile" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-success/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">👤</span>
</div>
<h2 class="card-title text-xl">My Profile</h2>
<p class="text-base-content/70">View and edit your profile</p>
</div>
</a>
<!-- Logout -->
<a href="logout" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-error/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">🚪</span>
</div>
<h2 class="card-title text-xl">Logout</h2>
<p class="text-base-content/70">Exit your account</p>
</div>
</a>
</div>
</div>
<?php include 'footer.php'?>
</body>
</html>
</body>
</html>

@ -38,47 +38,102 @@ if ($result->num_rows > 0) {
}
?>
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Update Profile</title>
<link rel="stylesheet" href="jobseekerprofile.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
</head>
<body>
<body class="min-h-screen bg-base-200">
<?php include 'navbar.php' ?>
<div class="profile-container">
<h2>Employer Profile</h2>
<form class="profile-form" method="POST" action="updateemployeeprofile.php" enctype="multipart/form-data">
<div class="form-group">
<label>First Name</label>
<input type="text" name="first_name" value="<?php echo isset($user['firstname']) ? $user['firstname'] : ''; ?>" required>
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="last_name" value="<?php echo isset($user['lastname']) ? $user['lastname'] : ''; ?>" required>
</div>
<div class="container mx-auto px-4 py-8">
<div class="card max-w-2xl mx-auto bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title text-2xl font-bold text-center mb-6">Employer Profile</h2>
<div class="form-group">
<label>Email</label>
<input type="email" name="email" value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>" required>
</div>
<form method="POST" action="updateemployeeprofile.php" enctype="multipart/form-data" class="space-y-6">
<!-- First Name -->
<div class="form-control">
<label class="label">
<span class="label-text">First Name</span>
</label>
<input
type="text"
name="first_name"
value="<?php echo isset($user['firstname']) ? $user['firstname'] : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<div class="form-group">
<label>Phone Number</label>
<input type="tel" name="phone" value="<?php echo isset($user['phone']) ? $user['phone'] : ''; ?>" required>
</div>
<!-- Last Name -->
<div class="form-control">
<label class="label">
<span class="label-text">Last Name</span>
</label>
<input
type="text"
name="last_name"
value="<?php echo isset($user['lastname']) ? $user['lastname'] : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<div class="form-group">
<label>Company Address</label>
<input type="text" name="company_address" value="<?php echo isset($user['company_address']) ? $user['company_address'] : ''; ?>" required>
</div>
<!-- Email -->
<div class="form-control">
<label class="label">
<span class="label-text">Email</span>
</label>
<input
type="email"
name="email"
value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Phone Number -->
<div class="form-control">
<label class="label">
<span class="label-text">Phone Number</span>
</label>
<input
type="tel"
name="phone"
value="<?php echo isset($user['phone']) ? $user['phone'] : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Company Address -->
<div class="form-control">
<label class="label">
<span class="label-text">Company Address</span>
</label>
<input
type="text"
name="company_address"
value="<?php echo isset($user['company_address']) ? $user['company_address'] : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<button type="submit" class="submit-btn" name="update">Update</button>
</form>
<!-- Submit Button -->
<div class="form-control mt-8">
<button type="submit" name="update" class="btn btn-primary w-full">Update Profile</button>
</div>
</form>
</div>
</div>
</div>
<?php include 'footer.php'?>
</body>
</html>

@ -1,6 +1,6 @@
footer {
padding: 50px;
background-color: #28709c;
background-color: #7986b2;
}
.quicklinks {
@ -22,11 +22,11 @@ footer {
.quicklinks a {
text-decoration: none;
color: black;
color: rgb(245, 239, 239);
}
.copyright-section {
text-align: center;
font-size: 14px;
color: black;
color: rgb(247, 247, 247);
}

@ -1,16 +0,0 @@
<?php
session_start();
include ('connect.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p> logged in bruv</p>
</body>
</html>

@ -1,144 +0,0 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.centered-image
{
display: flex;
justify-content: center;
}
.search-container {
max-width: 800px;
margin: 2rem auto;
padding: 0 1rem;
}
.search-bar {
width: 100%;
padding: 1rem;
border: 2px solid #ddd;
border-radius: 25px;
font-size: 1rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.section-title {
font-size: 1.5rem;
color: #00416A;
margin: 2rem 1rem;
text-align: center;
}
.section-title1 {
font-size: 1.5rem;
color: #00416A;
margin: 2rem 1rem;
text-align: center;
}
.ad-box {
text-align: center;
margin: 20px auto;
padding: 10px;
}
.centered-image img {
max-width: 25%;
height: auto;
}
.featured-jobs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
padding: 40px 20px;
margin: 0 auto;
max-width: 800px;
}
.job-card {
background-color: white;
border-radius: 8px;
padding: 40px 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.job-title {
font-size: 1.2rem;
color: #00416A;
margin-bottom: 0.5rem;
}
.job-card1 {
background-color: white;
border-radius: 8px;
padding: 40px 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.job-card2 {
background-color: white;
border-radius: 8px;
padding: 40px 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.job-card3 {
background-color: white;
border-radius: 8px;
padding: 40px 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.job-location {
color: #666;
margin-bottom: 1rem;
}
.job-description {
color: black;
font-size: 0.9rem;
line-height: 1.5;
}
.categories {
display: flex;
gap: 2rem;
padding: 2rem;
flex-wrap: wrap;
padding: 40px 20px;
margin: 0 auto;
max-width: 800px;
align-items: right;
justify-content: center;
}
.category {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
text-decoration: none;
color: #00416A;
transition: transform 0.2s;
}
.category:hover {
transform:translateY(-5px);
}
.category-icon {
width: 120px;
height: 80px;
border-radius: 8px;
overflow:hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);;
}
.category-icon img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}
.category-icon img:hover {
transform: scale(1.1);
}

@ -1,77 +1,247 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Temphire</title>
<link rel="stylesheet" href="index.css">
<title>TempHire • Future of Work</title>
</head>
<?php include 'navbar.php' ?>
<body class="min-h-screen bg-gradient-to-br from-base-300 via-base-100 to-base-300 text-base-content">
<div class="centered-image">
<img src="pic/Job seek.jpg" alt="Image"/>
</div>
<div class="search-container">
<input type="text" class="search-bar" placeholder="Search for part-time jobs...">
</div>
<?php include 'navbar.php'; ?>
<div class="hero min-h-[70vh] bg-base-200 relative overflow-hidden">
<div class="absolute inset-0 bg-grid-slate-900/[0.04] bg-[size:40px_40px]"></div>
<div class="hero-content text-center">
<div class="max-w-xl relative z-10">
<h1
class="text-5xl font-bold mb-8 bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary">
The Future of Work
</h1>
<p class="py-6 text-lg">Discover opportunities that match your schedule and skills in real-time.</p>
<h2 class="section-title">Featured Jobs</h2>
<div class="featured-jobs">
<div class="job-card">
<h3 class="job-title">Care Taker</h3>
<div class="job-location">Location: Balaju, Kathmandu</div>
<p class="job-description">Take care of dogs for two days. Experience with pets required.</p>
</div>
<div class="job-card1">
<h3 class="job-title">Old Aged Helper</h3>
<div class="job-location">Location: Bouddha, Kathmandu</div>
<p class="job-description">Take care of elderly people for 3 days. Prior experience preferred.</p>
</div>
<div class="job-card2">
<h3 class="job-title">Cleaner</h3>
<div class="job-location">Location: Sundarijal, Kathmandu</div>
<p class="job-description">Cleaner for 1 week in an apartment.</p>
<div class="join w-full backdrop-blur-sm bg-base-100/50 rounded-lg p-1">
<input class="input join-item flex-1 !outline-none border-primary/20"
placeholder="Search for jobs..." />
<button class="btn join-item btn-primary">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</button>
<button class="btn join-item" onclick="document.getElementById('filter_modal').showModal()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z" />
</svg>
</button>
</div>
</div>
</div>
<div class="job-card3">
<h3 class="job-title">Factory Worker</h3>
<div class="job-location">Location: Biratnmagar, Kathmandu</div>
<p class="job-description">Factory worker for a month.</p>
</div>
<dialog id="filter_modal" class="modal modal-bottom sm:modal-middle">
<form method="dialog" class="modal-box bg-base-200">
<h3 class="font-bold text-lg mb-4">Filter Options</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="form-control w-full">
<label class="label">
<span class="label-text">Location</span>
</label>
<select class="select select-bordered">
<option value="">Select Location</option>
<option value="kathmandu">Kathmandu</option>
<option value="lalitpur">Lalitpur</option>
<option value="bhaktapur">Bhaktapur</option>
<option value="pokhara">Pokhara</option>
<option value="biratnagar">Biratnagar</option>
<option value="butwal">Butwal</option>
</select>
</div>
<div class="form-control w-full">
<label class="label">
<span class="label-text">Job Type</span>
</label>
<select class="select select-bordered">
<option value="">Select Type</option>
<option value="childcare">childcare and petcare</option>
<option value="cleaning">cleaning and maintainence</option>
<option value="delivery">delivery and logistics</option>
<option value="seasonal">Seasonal</option>
</select>
</div>
<div class="form-control w-full">
<label class="label">
<span class="label-text">Salary type</span>
</label>
<select class="select select-bordered">
<option value="">Select Range</option>
<option value="Hourly">Hourly</option>
<option value="Daily">Daily</option>
</select>
</div>
<div class="form-control w-full">
<label class="label">
<span class="label-text">skills level</span>
</label>
<select class="select select-bordered">
<option value="">Select Level</option>
<option value="entry">Entry Level</option>
<option value="intermediate">Intermediate</option>
<option value="experienced">Experienced</option>
</select>
</div>
</div>
<div class="modal-action">
<button class="btn btn-ghost">Reset</button>
<button class="btn btn-primary">Apply Filters</button>
</div>
</form>
<form method="dialog" class="modal-backdrop">
<button>close</button>
</form>
</dialog>
<div class="container mx-auto p-8">
<h2 class="text-3xl font-bold mb-8 text-center">Recent Job Posts</h2>
<div class="grid grid-cols-1 gap-4">
<div class="card bg-base-200 shadow-xl hover:shadow-primary/10 transition-all">
<div class="card-body">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
<div>
<h3 class="card-title">Senior Care Specialist</h3>
<div class="flex flex-wrap gap-2 mt-2">
<span class="badge badge-outline">Full Time</span>
<span class="badge badge-outline">Kathmandu</span>
<span class="badge badge-primary">Rs. 3000/day</span>
</div>
<p class="mt-2">Looking for an experienced caregiver for elderly assistance. Medical
background preferred.</p>
</div>
<button class="btn btn-primary">Apply Now</button>
</div>
</div>
</div>
<div class="card bg-base-200 shadow-xl hover:shadow-primary/10 transition-all">
<div class="card-body">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
<div>
<h3 class="card-title">House Cleaning Expert</h3>
<div class="flex flex-wrap gap-2 mt-2">
<span class="badge badge-outline">Part Time</span>
<span class="badge badge-outline">Lalitpur</span>
<span class="badge badge-primary">Rs. 1500/day</span>
</div>
<p class="mt-2">Weekly house cleaning position available. Experience with modern cleaning
equipment required.</p>
</div>
<button class="btn btn-primary">Apply Now</button>
</div>
</div>
</div>
<div class="text-center mt-4">
<a href="alljobs"><button class="btn btn-outline btn-primary btn-sm">View More</button></a>
</div>
</div>
</div>
<h2 class="section-title1">Job Categories</h2>
<div class="categories">
<a href="#" class="category">
<div class="category-icon">
<img src="pic/Pet Care Taker.jpg" alt="Dog Care Taker">
<div class="container mx-auto p-8">
<h2 class="text-3xl font-bold mb-8 text-center">How It Works</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="card bg-base-200 shadow-xl">
<div class="card-body items-center text-center">
<div class="w-16 h-16 rounded-full bg-primary/20 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-primary">1</span>
</div>
<h3 class="card-title">Create Profile</h3>
<p>Sign up and create your professional profile with skills and experience</p>
</div>
</div>
<span>Dog Care Taker</span>
</a>
<a href="#" class="category">
<div class="category-icon">
<img src="pic/Care Taker.jpeg" alt="Elderly Care">
<div class="card bg-base-200 shadow-xl">
<div class="card-body items-center text-center">
<div class="w-16 h-16 rounded-full bg-secondary/20 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-secondary">2</span>
</div>
<h3 class="card-title">Find Jobs</h3>
<p>Search and filter jobs that match your skills and schedule</p>
</div>
</div>
<span>Old Aged Care Taker</span>
</a>
<a href="#" class="category">
<div class="category-icon">
<img src="pic/Cleaner.jpg" alt="Cleaner">
<div class="card bg-base-200 shadow-xl">
<div class="card-body items-center text-center">
<div class="w-16 h-16 rounded-full bg-accent/20 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-accent">3</span>
</div>
<h3 class="card-title">Start Working</h3>
<p>Apply, get hired, and start earning on your terms</p>
</div>
</div>
<span>Old Aged Care Taker</span>
</a>
<a href="#" class="category">
<div class="category-icon">
<img src="pic/Factoryworker.jpg" alt="Factory worker">
</div>
</div>
<div class="container mx-auto p-8">
<h2 class="text-3xl font-bold mb-8 text-center">Why to choose the temphire</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="card bg-base-200 shadow-xl">
<div class="card-body">
<div class="flex items-center gap-4 mb-4">
<div class="avatar placeholder">
<div class="bg-neutral-focus text-neutral-content rounded-full w-16">
<span class="text-xl"></span>
</div>
</div>
<div>
<h3 class="font-bold">FOR JOB SEEKERS</h3>
</div>
</div>
<p>Flexible job options</p>
<p>User-friendly platform</p>
<p>Diverse job Listings</p>
</div>
</div>
<span>Old Aged Care Taker</span>
</a>
<div class="card bg-base-200 shadow-xl">
<div class="card-body">
<div class="flex items-center gap-4 mb-4">
<div class="avatar placeholder">
<div class="bg-neutral-focus text-neutral-content rounded-full w-16">
<span class="text-xl"></span>
</div>
</div>
<div>
<h3 class="font-bold">FOR EMPLOYERS</h3>
</div>
</div>
<p>Access to a Wide Talent Pool</p>
<p>Efficient Hiring Process</p>
<p>Verified Job Seekers</p>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>

@ -38,101 +38,78 @@ $result = $stmt->get_result();
<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-white">
<body class="min-h-screen flex flex-col bg-base-200">
<?php include 'navbar.php';?>
<main class="flex-grow container mx-auto px-4 py-8">
<!-- Breadcrumb -->
<div class="text-sm breadcrumbs mb-6">
<ul>
<li><a href="index.php">Home</a></li>
<li class="text-primary">My Applications</li>
<li><a href="index.php" class="text-primary hover:text-primary-focus">Home</a></li>
<li class="text-base-content">My Job Applications</li>
</ul>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<h1 class="text-3xl font-bold mb-6 text-gray-800">My Job Applications</h1>
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<h1 class="card-title text-3xl mb-6">My Job Applications</h1>
<?php if ($result->num_rows > 0): ?>
<div class="overflow-x-auto">
<table class="table w-full">
<thead>
<tr class="bg-gray-50">
<th class="text-left px-6 py-3 text-gray-600">Job Title</th>
<th class="text-left px-6 py-3 text-gray-600">Location</th>
<th class="text-left px-6 py-3 text-gray-600">Salary</th>
<th class="text-left px-6 py-3 text-gray-600">Application Date</th>
<th class="text-left px-6 py-3 text-gray-600">Status</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
<?php while ($application = $result->fetch_assoc()): ?>
<tr class="hover:bg-gray-50 transition-colors">
<td class="px-6 py-4">
<div class="text-sm font-medium text-gray-900">
<?= htmlspecialchars($application['job_title']) ?>
</div>
</td>
<td class="px-6 py-4 text-sm text-gray-600">
<?= htmlspecialchars($application['location']) ?>
</td>
<td class="px-6 py-4 text-sm text-gray-600">
<?= htmlspecialchars($application['salary']) ?>
</td>
<td class="px-6 py-4 text-sm text-gray-600">
<?= date('F j, Y', strtotime($application['application_date'])) ?>
</td>
<td class="px-6 py-4">
<?php
$statusClass = match($application['status']) {
'Pending' => 'bg-yellow-100 text-yellow-800',
'Accepted' => 'bg-green-100 text-green-800',
default => 'bg-red-100 text-red-800'
};
?>
<span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full <?= $statusClass ?>">
<?= htmlspecialchars($application['status']) ?>
</span>
</td>
<?php if ($result->num_rows > 0): ?>
<div class="overflow-x-auto">
<table class="table table-zebra w-full">
<thead>
<tr>
<th class="bg-base-200">Job Title</th>
<th class="bg-base-200">Location</th>
<th class="bg-base-200">Salary</th>
<th class="bg-base-200">Application Date</th>
<th class="bg-base-200">Status</th>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="bg-blue-50 border-l-4 border-blue-400 p-4 mb-4">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-blue-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<p class="text-sm text-blue-700">
You haven't applied to any jobs yet.
</p>
</div>
</thead>
<tbody>
<?php while ($application = $result->fetch_assoc()): ?>
<tr class="hover">
<td>
<div class="font-medium">
<?= htmlspecialchars($application['job_title']) ?>
</div>
</td>
<td>
<?= htmlspecialchars($application['location']) ?>
</td>
<td>
<?= htmlspecialchars($application['salary']) ?>
</td>
<td>
<?= date('F j, Y', strtotime($application['application_date'])) ?>
</td>
<td>
<?php
$statusClass = match($application['status']) {
'Pending' => 'badge badge-warning',
'Accepted' => 'badge badge-success',
default => 'badge badge-error'
};
?>
<span class="<?= $statusClass ?>">
<?= htmlspecialchars($application['status']) ?>
</span>
</td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
</div>
<?php endif; ?>
<?php else: ?>
<div class="alert alert-info">
<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>You haven't applied to any jobs yet.</span>
</div>
<?php endif; ?>
</div>
</div>
</main>
<?php include 'footer.php';?>
<style>
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
footer {
flex-shrink: 0;
}
</style>
<?php include 'footer.php';?>
</body>
</html>

@ -58,7 +58,6 @@ if (isset($_POST['apply']) && $is_job_seeker) {
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -66,54 +65,88 @@ if (isset($_POST['apply']) && $is_job_seeker) {
<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';?>
<body class="min-h-screen bg-base-200">
<?php include 'navbar.php'; ?>
<main class="container mx-auto px-4 py-8">
<main class="flex-grow container mx-auto px-4 py-8">
<!-- Breadcrumb -->
<div class="text-sm breadcrumbs mb-6">
<ul>
<li><a href="index.php">Home</a></li>
<li class="text-primary">Job Details</li>
<li><a href="index.php" class="text-primary hover:text-primary-focus">Home</a></li>
<li class="text-base-content">Job Details</li>
</ul>
</div>
<div class="max-w-4xl mx-auto bg-base-100 shadow-xl p-6">
<h2 class="text-3xl font-bold mb-4"><?= htmlspecialchars($job['job_title']) ?></h2>
<p class="text-lg font-medium mb-2"><strong>Location:</strong> <?= htmlspecialchars($job['location']) ?></p>
<p class="text-lg font-medium mb-2"><strong>Salary:</strong> <?= htmlspecialchars($job['salary']) ?></p>
<p class="text-lg font-medium mb-2"><strong>Posted Date:</strong> <?= date('F j, Y', strtotime($job['posted_date'])) ?></p>
<div class="mt-4">
<h3 class="text-2xl font-semibold mb-3">Job Description</h3>
<p><?= nl2br(htmlspecialchars($job['job_description'])) ?></p>
</div>
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<h1 class="card-title text-3xl mb-6"><?= htmlspecialchars($job['job_title']) ?></h1>
<!-- 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>
<span><?= htmlspecialchars($application_message) ?></span>
</div>
<?php endif; ?>
<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>
<span class="font-medium"><?= htmlspecialchars($job['location']) ?></span>
</div>
<!-- Display Application Message -->
<?php if (isset($application_message)): ?>
<div class="mt-4 text-center text-lg font-medium">
<?= htmlspecialchars($application_message) ?>
<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['salary']) ?></span>
</div>
</div>
<?php endif; ?>
<!-- Apply Button for Job Seekers -->
<?php if ($is_job_seeker): ?>
<form method="POST">
<div class="mt-6">
<button type="submit" name="apply" class="btn btn-primary btn-block">Apply for Job</button>
<div class="divider"></div>
<div class="prose max-w-none">
<h2 class="text-2xl font-semibold mb-4">Job Description</h2>
<p class="whitespace-pre-line"><?= nl2br(htmlspecialchars($job['job_description'])) ?></p>
</div>
<div class="divider"></div>
<div class="flex justify-between items-center mt-6">
<div class="text-sm">
Posted on: <?= date('F j, Y', strtotime($job['posted_date'])) ?>
</div>
</form>
<?php else: ?>
<div class="mt-6">
<button class="btn btn-disabled btn-block" disabled>You must be a job seeker to apply</button>
<!-- Apply Button for Job Seekers -->
<?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>
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>
You must be a job seeker to apply
</button>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
</main>
<?php include 'footer.php'; ?>
<?php include 'footer.php';?>
</body>
</html>
<?php

@ -1,63 +0,0 @@
body {
margin: 0;
font-family: sans-serif;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.blue-box {
width: 100%;
height: 300px;
background-color: #8492e0;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-size: 2em;
}
.main-div {
width: 80%;
max-width: 800px;
margin-top: 50px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.button-div {
width: 30%;
height: 100px;
border: 1px solid #ddd;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
cursor: pointer;
}
.button-div:hover {
background-color: #f2f2f2;
}
.icon {
margin-right: 10px;
font-size: 2em;
}
.button-text {
font-size: 1.2em;
}
.button-div a{
text-decoration: none;
color: black;
}

@ -1,39 +1,52 @@
<!DOCTYPE html>
<html>
<html lang="en" data-theme="light">
<head>
<title>Job Seekers Dashboard</title>
<link rel="stylesheet" href="jobseekerdash.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Seekers Dashboard</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
</head>
<body>
<?php include 'navbar.php' ?>
<div class="container">
<div class="blue-box">
Dashboard
<p>HOME > DASHBOARD</p>
</div>
<div class="main-div">
<div class="button-div">
<a href="job_applications.php">
<span class="icon">📄</span>
<span class="button-text">My Job Applications</span>
</a>
</div>
<div class="button-div">
<a href="jobseekerprofile">
<span class="icon">👤</span>
<span class="button-text">My Profile</span>
</div>
</a>
<div class="button-div">
<a href="logout">
<span class="icon">🚪</span>
<span class="button-text">Logout</span>
<body class="min-h-screen bg-base-200 flex flex-col">
<?php include 'navbar.php'?>
<div class="container mx-auto px-4 py-8 flex-grow">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- My Job Applications -->
<a href="job_applications.php" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">📄</span>
</div>
<h2 class="card-title text-xl">My Job Applications</h2>
<p class="text-base-content/70">View your application status</p>
</div>
</a>
<!-- My Profile -->
<a href="jobseekerprofile" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-secondary/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">👤</span>
</div>
<h2 class="card-title text-xl">My Profile</h2>
<p class="text-base-content/70">View and edit your profile</p>
</div>
</a>
<!-- Logout -->
<a href="logout" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="card-body items-center text-center">
<div class="w-16 h-16 bg-error/10 rounded-full flex items-center justify-center mb-4">
<span class="text-3xl">🚪</span>
</div>
<h2 class="card-title text-xl">Logout</h2>
<p class="text-base-content/70">Exit your account</p>
</div>
</a>
</div>
</a>
</div>
</div>
<?php include 'footer.php' ?>
</body>
</html>
<?php include 'footer.php'?>
</body>
</html>

@ -1,113 +0,0 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.profile-container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
.profile-container h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.profile-upload-section {
display: flex;
justify-content: center;
margin: 20px 0;
}
.profile-circle {
width: 120px;
height: 120px;
border-radius: 50%;
border: 2px solid #ccc;
position: relative;
overflow: hidden;
background: #f5f5f5;
}
.profile-circle img {
width: 100%;
height: 100%;
object-fit: cover;
}
.upload-label {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
color: white;
text-align: center;
padding: 8px 0;
cursor: pointer;
font-size: 12px;
}
.upload-label input[type="file"] {
display: none;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: #555;
}
.form-group input {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.form-group input:focus {
outline: none;
border-color: #007bff;
}
.file-input {
border: 1px solid #ddd;
padding: 6px;
border-radius: 4px;
background: #fff;
}
.submit-btn {
width: 100%;
padding: 10px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
}
.submit-btn:hover {
background: #0056b3;
}
input::placeholder {
color: #999;
}
/* Add required field indicator */
label:after {
content: '*';
color:red;
}

@ -42,73 +42,138 @@ if ($result->num_rows > 0) {
}
?>
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Update Profile</title>
<link rel="stylesheet" href="jobseekerprofile.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
</head>
<body>
<body class="min-h-screen bg-base-200 flex flex-col">
<?php include 'navbar.php' ?>
<div class="profile-container">
<h2>Jobseeker Profile</h2>
<div class="profile-upload-section">
<div class="profile-circle">
<img id="profile-preview" src="" alt="Profile Picture">
<label for="profile-upload" class="upload-label">
<span>Profile Picture</span>
<input type="file" id="profile-upload" accept="image/*">
</label>
<div class="container mx-auto px-4 py-8 flex-grow">
<div class="card max-w-2xl mx-auto bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title text-2xl font-bold text-center mb-6">Jobseeker Profile</h2>
<form method="POST" action="updateprofile.php" enctype="multipart/form-data" class="space-y-6">
<!-- First Name -->
<div class="form-control">
<label class="label">
<span class="label-text">First Name</span>
</label>
<input
type="text"
name="first_name"
value="<?php echo isset($user['firstname']) ? htmlspecialchars($user['firstname']) : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Last Name -->
<div class="form-control">
<label class="label">
<span class="label-text">Last Name</span>
</label>
<input
type="text"
name="last_name"
value="<?php echo isset($user['lastname']) ? htmlspecialchars($user['lastname']) : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Email -->
<div class="form-control">
<label class="label">
<span class="label-text">Email</span>
</label>
<input
type="email"
name="email"
value="<?php echo isset($user['email']) ? htmlspecialchars($user['email']) : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Phone -->
<div class="form-control">
<label class="label">
<span class="label-text">Phone Number</span>
</label>
<input
type="tel"
name="phone"
value="<?php echo isset($user['phone']) ? htmlspecialchars($user['phone']) : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Location -->
<div class="form-control">
<label class="label">
<span class="label-text">Location</span>
</label>
<input
type="text"
name="location"
value="<?php echo isset($user['location']) ? htmlspecialchars($user['location']) : ''; ?>"
class="input input-bordered w-full"
required
>
</div>
<!-- Skills -->
<div class="form-control">
<label class="label">
<span class="label-text">Skills</span>
</label>
<textarea
name="skills"
class="textarea textarea-bordered h-24"
required
><?php echo isset($user['skills']) ? htmlspecialchars($user['skills']) : ''; ?></textarea>
</div>
<!-- Experience -->
<div class="form-control">
<label class="label">
<span class="label-text">Experience</span>
</label>
<textarea
name="experience"
class="textarea textarea-bordered h-24"
required
><?php echo isset($user['experience']) ? htmlspecialchars($user['experience']) : ''; ?></textarea>
</div>
<!-- Education -->
<div class="form-control">
<label class="label">
<span class="label-text">Education</span>
</label>
<textarea
name="education"
class="textarea textarea-bordered h-24"
required
><?php echo isset($user['education']) ? htmlspecialchars($user['education']) : ''; ?></textarea>
</div>
<!-- Submit Button -->
<div class="form-control mt-8">
<button type="submit" name="update" class="btn btn-primary w-full">Update Profile</button>
</div>
</form>
</div>
</div>
<form class="profile-form" method="POST" action="updateprofile.php" enctype="multipart/form-data">
<div class="form-group">
<label>First Name</label>
<input type="text" name="first_name" value="<?php echo isset($user['firstname']) ? $user['firstname'] : ''; ?>" required>
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="last_name" value="<?php echo isset($user['lastname']) ? $user['lastname'] : ''; ?>" required>
</div>
<div class="form-group">
<label>Email</label>
<input type="email" name="email" value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>" required>
</div>
<div class="form-group">
<label>Phone Number</label>
<input type="tel" name="phone" value="<?php echo isset($user['phone']) ? $user['phone'] : ''; ?>" required>
</div>
<div class="form-group">
<label>Location</label>
<input type="text" name="location" value="<?php echo isset($user['location']) ? $user['location'] : ''; ?>" required>
</div>
<div class="form-group">
<label>Skills</label>
<textarea name="skills" required><?php echo isset($user['skills']) ? $user['skills'] : ''; ?></textarea>
</div>
<div class="form-group">
<label>Experience</label>
<textarea name="experience" required><?php echo isset($user['experience']) ? $user['experience'] : ''; ?></textarea>
</div>
<div class="form-group">
<label>Education</label>
<textarea name="education" required><?php echo isset($user['education']) ? $user['education'] : ''; ?></textarea>
</div>
<button type="submit" class="submit-btn" name="update">Update</button>
</form>
</div>
<?php include 'footer.php'?>
<?php include 'footer.php' ?>
</body>
</html>

@ -1,12 +0,0 @@
.h-custom {
height: calc(100% - 73px);
}
@media (max-width: 450px) {
.h-custom {
height: 100%;
}
}
.vh-80{
padding: 90px 0;
}

@ -1,62 +1,87 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="login.css">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- font-awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<!-- Tailwind CSS and DaisyUI -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
<?php include 'navbar.php'; ?>
<section class="vh-80">
<div class="container-fluid h-custom">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-md-8 col-lg-6 col-xl-4 offset-xl-1">
<form method="post" action="register.php">
<!-- Email input -->
<div data-mdb-input-init class="form-outline mb-4">
<label class="form-label" for="email">Email address:</label>
<input type="email" id="email" name="email" class="form-control form-control-lg"
placeholder="Enter a valid email address" required />
</div>
<body class="min-h-screen bg-gradient-to-br from-base-200 to-base-300">
<?php include 'navbar.php'; ?>
<!-- Password input -->
<div data-mdb-input-init class="form-outline mb-3">
<label class="form-label" for="password">Password:</label>
<input type="password" id="password" name="password" class="form-control form-control-lg"
placeholder="Enter password" required />
</div>
<div class="hero min-h-screen">
<div class="hero-content flex-col">
<div class="card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100">
<div class="card-body">
<!-- Title with icon -->
<div class="text-center mb-4">
<i class="fas fa-user-circle text-4xl text-primary mb-2"></i>
<h2 class="text-2xl font-bold text-primary">Login</h2>
<div class="divider mt-2"></div>
</div>
<div class="d-flex justify-content-between align-items-center">
<!-- Checkbox -->
<div class="form-check mb-0">
<input class="form-check-input me-2" type="checkbox" value="" id="remember" />
<label class="form-check-label" for="remember">
Remember me
</label>
</div>
<a href="#!" class="text-body">Forgot password?</a>
</div>
<form method="post" action="register.php">
<div class="form-control">
<label class="label">
<span class="label-text font-medium">Email</span>
</label>
<div class="relative">
<div class="text-center text-lg-start mt-4 pt-2">
<button type="submit" name="Login" class="btn btn-primary btn-lg"
style="padding-left: 2.5rem; padding-right: 2.5rem;">Login</button>
<p class="small fw-bold mt-2 pt-1 mb-0">Don't have an account? <a href="createAccount.php"
class="link-danger">Register</a></p>
</div>
</form>
<input type="email" id="email" name="email"
placeholder="email@example.com"
class="input input-bordered pl-14 w-full hover:border-primary focus:border-primary transition-colors"
required />
</div>
</div>
<div class="form-control mt-4">
<label class="label">
<span class="label-text font-medium">Password</span>
</label>
<div class="relative">
<input type="password" id="password" name="password"
placeholder="Enter your password"
class="input input-bordered pl-10 w-full hover:border-primary focus:border-primary transition-colors"
required />
</div>
</div>
<div class="flex justify-between items-center mt-4">
<label class="label cursor-pointer">
<input type="checkbox" class="checkbox checkbox-primary checkbox-sm mr-2" id="remember" />
<span class="label-text">Remember me</span>
</label>
</div>
<div class="form-control mt-6">
<button type="submit" name="Login"
class="btn btn-primary hover:btn-primary-focus transition-all duration-200">
Login <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
<div class="divider mt-6">OR</div>
<div class="text-center">
<p class="text-sm">Don't have an account?
<a href="createAccount.php" class="link link-primary font-medium hover:link-hover">
Register now
</a>
</p>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<?php include 'footer.php'; ?>
<?php include 'footer.php'; ?>
</body>
</html>

@ -57,7 +57,6 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
}
}
?>
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
@ -66,122 +65,146 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
<title>View Applications</title>
<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>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body class="min-h-screen flex flex-col bg-white">
<body class="min-h-screen flex flex-col bg-base-100">
<?php include 'navbar.php';?>
<main class="flex-grow container mx-auto px-4 py-8">
<!-- Breadcrumbs with icons -->
<div class="text-sm breadcrumbs mb-6">
<ul>
<li><a href="index.php">Home</a></li>
<li class="text-primary">Applications Received</li>
<ul class="flex items-center space-x-2">
<li><a href="index.php" class="flex items-center text-gray-600 hover:text-primary">
<i class="fas fa-home mr-2"></i> Home
</a></li>
<li class="flex items-center text-primary">
<i class="fas fa-file-alt mr-2"></i> Applications Received
</li>
</ul>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<h1 class="text-3xl font-bold mb-6 text-gray-800">Applications Received</h1>
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<div class="flex items-center justify-between mb-6">
<h1 class="text-3xl font-bold text-base-content">
<i class="fas fa-inbox mr-3 text-primary"></i>Applications Received
</h1>
</div>
<?php if ($result->num_rows > 0): ?>
<div class="overflow-x-auto">
<table class="table w-full">
<thead>
<tr class="bg-gray-50">
<th class="text-left px-6 py-3 text-gray-600">Job Title</th>
<th class="text-left px-6 py-3 text-gray-600">Applicant Name</th>
<th class="text-left px-6 py-3 text-gray-600">Contact</th>
<th class="text-left px-6 py-3 text-gray-600">Application Date</th>
<th class="text-left px-6 py-3 text-gray-600">Status</th>
<th class="text-left px-6 py-3 text-gray-600">Actions</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
<?php while ($application = $result->fetch_assoc()): ?>
<tr class="hover:bg-gray-50 transition-colors">
<td class="px-6 py-4">
<div class="text-sm font-medium text-gray-900">
<?= htmlspecialchars($application['job_title']) ?>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-900">
<?= htmlspecialchars($application['firstname'] . ' ' . $application['lastname']) ?>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-600">
<div>Email: <?= htmlspecialchars($application['email']) ?></div>
<div>Phone: <?= htmlspecialchars($application['phone']) ?></div>
</div>
</td>
<td class="px-6 py-4 text-sm text-gray-600">
<?= date('F j, Y', strtotime($application['application_date'])) ?>
</td>
<td class="px-6 py-4">
<?php
$statusClass = match($application['status']) {
'Pending' => 'bg-yellow-100 text-yellow-800',
'Accepted' => 'bg-green-100 text-green-800',
'Rejected' => 'bg-red-100 text-red-800',
default => 'bg-gray-100 text-gray-800'
};
?>
<span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full <?= $statusClass ?>">
<?= htmlspecialchars($application['status']) ?>
</span>
</td>
<td class="px-6 py-4">
<form method="POST" class="inline">
<input type="hidden" name="application_id" value="<?= $application['application_id'] ?>">
<select name="new_status" class="select select-bordered select-sm w-32 mr-2">
<option value="Pending" <?= $application['status'] === 'Pending' ? 'selected' : '' ?>>Pending</option>
<option value="Accepted" <?= $application['status'] === 'Accepted' ? 'selected' : '' ?>>Accept</option>
<option value="Rejected" <?= $application['status'] === 'Rejected' ? 'selected' : '' ?>>Reject</option>
</select>
<button type="submit" name="update_status" class="btn btn-sm btn-primary">
Update
</button>
</form>
</td>
<?php if ($result->num_rows > 0): ?>
<div class="overflow-x-auto">
<table class="table table-zebra w-full">
<thead>
<tr class="bg-base-200">
<th class="text-base-content font-bold">
<i class="fas fa-briefcase mr-2"></i>Job Title
</th>
<th class="text-base-content font-bold">
<i class="fas fa-user mr-2"></i>Applicant
</th>
<th class="text-base-content font-bold">
<i class="fas fa-address-card mr-2"></i>Contact
</th>
<th class="text-base-content font-bold">
<i class="fas fa-calendar mr-2"></i>Date
</th>
<th class="text-base-content font-bold">
<i class="fas fa-tasks mr-2"></i>Status
</th>
<th class="text-base-content font-bold">
<i class="fas fa-cog mr-2"></i>Actions
</th>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="bg-blue-50 border-l-4 border-blue-400 p-4 mb-4">
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-blue-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
</svg>
</div>
<div class="ml-3">
<p class="text-sm text-blue-700">
No applications have been received yet for your job postings.
</p>
</thead>
<tbody>
<?php while ($application = $result->fetch_assoc()): ?>
<tr class="hover">
<td class="font-medium">
<div class="flex items-center space-x-2">
<span class="text-primary">
<?= htmlspecialchars($application['job_title']) ?>
</span>
</div>
</td>
<td>
<div class="font-medium">
<?= htmlspecialchars($application['firstname'] . ' ' . $application['lastname']) ?>
</div>
</td>
<td>
<div class="space-y-1">
<div class="flex items-center text-sm">
<i class="fas fa-envelope mr-2 text-gray-400"></i>
<?= htmlspecialchars($application['email']) ?>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-phone mr-2 text-gray-400"></i>
<?= htmlspecialchars($application['phone']) ?>
</div>
</div>
</td>
<td>
<div class="flex items-center">
<span class="text-sm">
<?= date('F j, Y', strtotime($application['application_date'])) ?>
</span>
</div>
</td>
<td>
<?php
$statusClass = match($application['status']) {
'Pending' => 'badge-warning',
'Accepted' => 'badge-success',
'Rejected' => 'badge-error',
default => 'badge-ghost'
};
?>
<div class="badge <?= $statusClass ?> badge-lg gap-2">
<?php if ($application['status'] === 'Pending'): ?>
<i class="fas fa-clock"></i>
<?php elseif ($application['status'] === 'Accepted'): ?>
<i class="fas fa-check"></i>
<?php elseif ($application['status'] === 'Rejected'): ?>
<i class="fas fa-times"></i>
<?php endif; ?>
<?= htmlspecialchars($application['status']) ?>
</div>
</td>
<td>
<form method="POST" class="flex items-center gap-2">
<input type="hidden" name="application_id" value="<?= $application['application_id'] ?>">
<select name="new_status" class="select select-bordered select-sm">
<option value="Pending" <?= $application['status'] === 'Pending' ? 'selected' : '' ?>>Pending</option>
<option value="Accepted" <?= $application['status'] === 'Accepted' ? 'selected' : '' ?>>Accept</option>
<option value="Rejected" <?= $application['status'] === 'Rejected' ? 'selected' : '' ?>>Reject</option>
</select>
<button type="submit" name="update_status" class="btn btn-primary btn-sm">
<i class="fas fa-save mr-1"></i> Update
</button>
</form>
</td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="alert alert-info shadow-lg">
<div>
<i class="fas fa-info-circle text-2xl"></i>
<div>
<h3 class="font-bold">No Applications Yet</h3>
<div class="text-sm">No applications have been received yet for your job postings.</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</main>
<footer class="mt-auto bg-white border-t">
<footer class="mt-auto">
<?php include 'footer.php';?>
</footer>
<style>
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
footer {
flex-shrink: 0;
}
</style>
</body>
</html>

@ -48,32 +48,116 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
?>
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manage Jobs</title>
<link rel="stylesheet" href="ManageJob.css">
<title>Post a New Job</title>
<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>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
<body class="min-h-screen bg-base-100">
<?php include 'navbar.php'; ?>
<div class="container">
<div class="post-job">
<form method="Post" action="">
<input type="text" name="job_title" placeholder="Job Title" required>
<textarea name="job_description" placeholder="Job Description" required></textarea>
<input type="text" name="location" placeholder="Location" required>
<input type="text" name="salary" placeholder="Salary" required>
<textarea name="requirements" placeholder="Requirements" required></textarea>
<button type="submit">Post Job</button>
</form>
<main class="container mx-auto px-4 py-8">
<!-- Breadcrumbs -->
<div class="text-sm breadcrumbs mb-6">
<ul class="flex items-center space-x-2">
<li><a href="index.php" class="flex items-center text-gray-600 hover:text-primary">
<i class="fas fa-home mr-2"></i> Home
</a></li>
<li class="flex items-center text-primary">
<i class="fas fa-plus-circle mr-2"></i> Post a New Job
</li>
</ul>
</div>
</div>
<!-- Main Card -->
<div class="card bg-base-100 shadow-xl max-w-3xl mx-auto">
<div class="card-body">
<h2 class="card-title text-2xl font-bold mb-6 flex items-center">
<i class="fas fa-briefcase text-primary mr-3"></i>
Post a New Job Opportunity
</h2>
<form method="Post" action="" class="space-y-6">
<!-- Job Title -->
<div class="form-control">
<label class="label">
<span class="label-text font-medium flex items-center">
<i class="fas fa-heading text-gray-400 mr-2"></i>
Job Title
</span>
</label>
<input type="text" name="job_title" placeholder="Enter job title"
class="input input-bordered w-full focus:input-primary" required />
</div>
<!-- Job Description -->
<div class="form-control">
<label class="label">
<span class="label-text font-medium flex items-center">
<i class="fas fa-align-left text-gray-400 mr-2"></i>
Job Description
</span>
</label>
<textarea name="job_description" placeholder="Enter detailed job description"
class="textarea textarea-bordered h-32 focus:textarea-primary" required></textarea>
</div>
<!-- Location -->
<div class="form-control">
<label class="label">
<span class="label-text font-medium flex items-center">
<i class="fas fa-location-dot text-gray-400 mr-2"></i>
Location
</span>
</label>
<input type="text" name="location" placeholder="Enter job location"
class="input input-bordered w-full focus:input-primary" required />
</div>
<!-- Salary -->
<div class="form-control">
<label class="label">
<span class="label-text font-medium flex items-center">
<i class="fas fa-dollar-sign text-gray-400 mr-2"></i>
Salary
</span>
</label>
<input type="text" name="salary" placeholder="Enter salary range or fixed amount"
class="input input-bordered w-full focus:input-primary" required />
</div>
<!-- Requirements -->
<div class="form-control">
<label class="label">
<span class="label-text font-medium flex items-center">
<i class="fas fa-list-check text-gray-400 mr-2"></i>
Requirements
</span>
</label>
<textarea name="requirements" placeholder="Enter job requirements"
class="textarea textarea-bordered h-32 focus:textarea-primary" required></textarea>
</div>
<!-- Submit Button -->
<div class="form-control mt-8">
<button type="submit" class="btn btn-primary">
<i class="fas fa-paper-plane mr-2"></i>
Post Job
</button>
</div>
</form>
</div>
</div>
</main>
<?php include 'footer.php'; ?>
<script>
document.addEventListener('DOMContentLoaded', function () {
fetchJobs();

@ -9,9 +9,9 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
padding: 20px 20px;
border-bottom: 2px solid #eee;
background-color: white;
background-color: #7986b2;
}
.logo {
@ -20,7 +20,7 @@
gap: 1rem;
font-size: 1.5rem;
font-weight: bolder;
color: #00416a;
color: #72c8fd;
}
.logo img {
@ -34,13 +34,13 @@
.nav-links a {
text-decoration: none;
color: #333;
font-size: 1rem;
color: #f2efef;
font-size: 1.25rem;
padding: 0.5rem 1rem;
}
.nav-links a:hover {
color: #00416a;
color: #5aabdd;
}
/* Dropdown container */
.dropdown {

@ -21,8 +21,9 @@ if (session_status() === PHP_SESSION_NONE) {
<body>
<header class="header">
<div class="logo">
<a href="index">
<img src="pic/TEMPHIRE_LOGO.png" alt="TEMPHIRE LOGO">
<span>Temphire</span>
</a>
</div>
<nav class="nav-links">
<a href="index">Home</a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 58 KiB

@ -68,7 +68,7 @@ if (isset($_POST['update'])) {
}
// Same binding for both UPDATE and INSERT
$stmt_job_seekers->bind_param("sssssi",
$stmt_job_seekers->bind_param("ssssi",
$skills,
$experience,
$education,

Loading…
Cancel
Save