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. 106
      aboutus.php
  5. 50
      contactus.css
  6. 49
      contactus.php
  7. 8
      createAccount.css
  8. 118
      createAccount.php
  9. 65
      employe.css
  10. 81
      employerdash.php
  11. 103
      employerprofile.php
  12. 6
      footer.css
  13. 16
      home.php
  14. 144
      index.css
  15. 268
      index.php
  16. 81
      job_applications.php
  17. 85
      job_details.php
  18. 63
      jobseekerdash.css
  19. 65
      jobseekerdash.php
  20. 113
      jobseekerprofile.css
  21. 151
      jobseekerprofile.php
  22. 12
      login.css
  23. 109
      login.php
  24. 151
      manage_applications.php
  25. 114
      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 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} !-d
RewriteCond %{REQUEST_FILENAME}.php -f 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,34 +1,98 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us - Part-Time Job</title> <title>About Us - TempHire</title>
<link rel="stylesheet" href="aboutus.css">
<!-- 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> </head>
<body> <body class="bg-white">
<?php include 'navbar.php'?> <?php include 'navbar.php'?>
<div class="content"> <!-- Hero Section -->
<h1>Welcome to Temphire</h1> <div class="hero min-h-[50vh] bg-base-200 relative overflow-hidden">
<p> <div class="hero-content text-center">
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. <div class="max-w-3xl">
</p> <h1 class="text-5xl font-bold text-primary mb-8">Welcome to TempHire</h1>
<p> <p class="text-xl leading-relaxed text-neutral">
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. Your gateway to flexible employment opportunities. We connect talented individuals with meaningful part-time work that fits their lifestyle.
</p> </p>
<h2>Our Mission</h2> </div>
<p> </div>
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. </div>
</p>
<h2>Why Choose Us?</h2> <!-- Main Content -->
<p> <div class="container mx-auto px-4 py-12">
- A wide variety of part-time job listings across multiple sectors.<br> <div class="grid gap-12 max-w-4xl mx-auto">
- User-friendly platform for easy navigation and application.<br> <!-- About Cards -->
- Tools to filter and customize your job search to find the perfect fit.<br> <div class="grid md:grid-cols-2 gap-6">
- Dedicated support to assist you every step of the way. <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> </p>
</div> </div>
</div>
</div>
</div>
<?php include 'footer.php'?> <?php include 'footer.php'?>
</body> </body>

@ -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,30 +1,51 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - Temphire</title> <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> </head>
<body> <body class="min-h-screen bg-base-200">
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<div class="content"> <div class="hero min-h-screen bg-base-200">
<h3><b>Please provide the feed back about your problem</h3> <div class="hero-content flex-col lg:flex-row-reverse">
<form> <div class="card flex-shrink-0 w-full max-w-lg shadow-2xl bg-base-100">
<label for="name">Your Name:</label> <div class="card-body">
<input type="text" id="name" name="name" placeholder="Enter your name" required> <h3 class="text-2xl font-bold text-center mb-4">Please provide the feedback about your problem</h3>
<label for="email">Your Email:</label> <form class="space-y-4">
<input type="email" id="email" name="email" placeholder="Enter your email" required> <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="message">Your Message:</label> <div class="form-control">
<textarea id="message" name="message" placeholder="Type your message here" required></textarea> <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>
<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> <div class="form-control mt-6">
<button class="btn btn-primary">Send Message</button>
</div>
</form> </form>
</div> </div>
</div>
</div>
</div>
<?php include 'footer.php' ?> <?php include 'footer.php' ?>
</body> </body>

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

@ -1,77 +1,91 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Create Account - Temphire</title>
<!-- Bootstrap 5 CSS --> <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.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">
</head> </head>
<body class="min-h-screen bg-base-200">
<body>
<?php include 'navbar.php'; ?> <?php include 'navbar.php'; ?>
<form method="post" action="register.php">
<div class="forms-container"> <div class="hero min-h-screen bg-base-200">
<div class="row mb-4"> <div class="hero-content flex-col lg:flex-row-reverse">
<div class="col"> <div class="card flex-shrink-0 w-full max-w-lg shadow-2xl bg-base-100">
<div class="form-outline"> <div class="card-body">
<input type="text" id="fname" name="fname" class="form-control" required /> <h2 class="card-title text-2xl font-bold text-center mb-6">Create Account</h2>
<label class="form-label" for="fname">First name</label>
</div> <form method="post" action="register.php" class="space-y-4">
</div> <!-- Name Fields -->
<div class="col"> <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="form-outline"> <div class="form-control">
<input type="text" id="lname" name="lname" class="form-control" required /> <label class="label">
<label class="form-label" for="lname">Last name</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>
<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>
</div> </div>
<!-- Job type --> <!-- User Type -->
<div class="form-outline mb-4"> <div class="form-control">
<select name="user_type" id="user_type" class="form-control" required> <label class="label">
<option value="Job seeker" >Job seeker</option> <span class="label-text">User Type</span>
<option value="Employer" ">Employer</option> </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> </select>
<label class="form-label" for="user_type">User Type</label> </div>
</div>
<!-- Contact input --> <!-- Contact -->
<div class="form-outline mb-4"> <div class="form-control">
<input type="number" name="contact" id="contact" class="form-control" /> <label class="label">
<label class="form-label" for="contact">Contact</label> <span class="label-text">Contact</span>
</label>
<input type="number" name="contact" id="contact" class="input input-bordered w-full" />
</div> </div>
<!-- Email input --> <!-- Email -->
<div class="form-outline mb-4"> <div class="form-control">
<input type="email" id="email" name="email" class="form-control" required /> <label class="label">
<label class="form-label" for="email">Email address</label> <span class="label-text">Email address</span>
</label>
<input type="email" id="email" name="email" class="input input-bordered w-full" required />
</div> </div>
<!-- Username input --> <!-- Username -->
<div class="form-outline mb-4"> <div class="form-control">
<input type="text" name="username" id="username" class="form-control" /> <label class="label">
<label class="form-label" for="username">Username</label> <span class="label-text">Username</span>
</label>
<input type="text" name="username" id="username" class="input input-bordered w-full" />
</div> </div>
<!-- Password input --> <!-- Password -->
<div class="form-outline mb-4"> <div class="form-control">
<input type="password" name="password" id="password" class="form-control" required /> <label class="label">
<label class="form-label" for="password">Password</label> <span class="label-text">Password</span>
</label>
<input type="password" name="password" id="password" class="input input-bordered w-full" required />
</div> </div>
<!-- Submit button --> <!-- Submit Button -->
<button type="submit" class="btn btn-primary btn-block mb-4" name="signup">Sign up</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> </div>
</form>
<?php include 'footer.php'; ?> <?php include 'footer.php'; ?>
</body> </body>
</html> </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> <!DOCTYPE html>
<html> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Employee Dashboard</title> <title>Employee Dashboard</title>
<link rel="stylesheet" href="employe.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> </head>
<body> <body class="min-h-screen bg-base-200">
<?php include 'navbar.php'?> <?php include 'navbar.php'?>
<div class="container"> <div class="container mx-auto px-4 py-8">
<div class="button-div"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<span class="icon">📄</span> <!-- Manage Applications -->
<span class="button-text">Manage Job Applications</span> <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> </div>
<div class="button-div"> <h2 class="card-title text-xl">Manage Job Applications</h2>
<a href="managejob"> <p class="text-base-content/70">Review and process applications</p>
<span class="icon">💼</span>
<span class="button-text">post Jobs</span>
</div> </div>
</a> </a>
<div class="button-div"> <!-- Post Jobs -->
<a href="viewjobs"> <a href="managejob" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<span class="icon">💼</span> <div class="card-body items-center text-center">
<span class="button-text">View Jobs</span> <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> </div>
</a> </a>
<div class="button-div"> <!-- View Jobs -->
<a href="employerprofile"> <a href="viewjobs" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<span class="icon">👤</span> <div class="card-body items-center text-center">
<span class="button-text">My Profile</span> <div class="w-16 h-16 bg-accent/10 rounded-full flex items-center justify-center mb-4">
</a> <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> </div>
<div class="button-div">
<a href="logout">
<span class="icon">🚪</span>
<span class="button-text">Logout</span>
</a> </a>
<!-- 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> </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> </div>
</a>
</div> </div>
</div>
<?php include 'footer.php'?> <?php include 'footer.php'?>
</body> </body>
</html> </html>

@ -38,47 +38,102 @@ if ($result->num_rows > 0) {
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Update Profile</title> <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> </head>
<body> <body class="min-h-screen bg-base-200">
<?php include 'navbar.php' ?> <?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"> <div class="container mx-auto px-4 py-8">
<label>Last Name</label> <div class="card max-w-2xl mx-auto bg-base-100 shadow-xl">
<input type="text" name="last_name" value="<?php echo isset($user['lastname']) ? $user['lastname'] : ''; ?>" required> <div class="card-body">
<h2 class="card-title text-2xl font-bold text-center mb-6">Employer Profile</h2>
<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>
<div class="form-group"> <!-- Last Name -->
<label>Email</label> <div class="form-control">
<input type="email" name="email" value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>" required> <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>
<div class="form-group"> <!-- Email -->
<label>Phone Number</label> <div class="form-control">
<input type="tel" name="phone" value="<?php echo isset($user['phone']) ? $user['phone'] : ''; ?>" required> <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> </div>
<div class="form-group"> <!-- Phone Number -->
<label>Company Address</label> <div class="form-control">
<input type="text" name="company_address" value="<?php echo isset($user['company_address']) ? $user['company_address'] : ''; ?>" required> <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> </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> <!-- Submit Button -->
</form> <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>
</div>
<?php include 'footer.php'?> <?php include 'footer.php'?>
</body> </body>
</html> </html>

@ -1,6 +1,6 @@
footer { footer {
padding: 50px; padding: 50px;
background-color: #28709c; background-color: #7986b2;
} }
.quicklinks { .quicklinks {
@ -22,11 +22,11 @@ footer {
.quicklinks a { .quicklinks a {
text-decoration: none; text-decoration: none;
color: black; color: rgb(245, 239, 239);
} }
.copyright-section { .copyright-section {
text-align: center; text-align: center;
font-size: 14px; 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> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Temphire</title> <title>TempHire • Future of Work</title>
<link rel="stylesheet" href="index.css">
</head> </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">
<?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>
<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>
<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>
<div class="centered-image"> </select>
<img src="pic/Job seek.jpg" alt="Image"/>
</div> </div>
<div class="search-container"> <div class="form-control w-full">
<input type="text" class="search-bar" placeholder="Search for part-time jobs..."> <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>
<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>
<h2 class="section-title">Featured Jobs</h2>
<div class="featured-jobs">
<div class="job-card"> <div class="container mx-auto p-8">
<h3 class="job-title">Care Taker</h3> <h2 class="text-3xl font-bold mb-8 text-center">Recent Job Posts</h2>
<div class="job-location">Location: Balaju, Kathmandu</div> <div class="grid grid-cols-1 gap-4">
<p class="job-description">Take care of dogs for two days. Experience with pets required.</p> <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> </div>
<div class="job-card1"> <p class="mt-2">Looking for an experienced caregiver for elderly assistance. Medical
<h3 class="job-title">Old Aged Helper</h3> background preferred.</p>
<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>
<div class="job-card2"> <button class="btn btn-primary">Apply Now</button>
<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> </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> </div>
</div> </div>
<h2 class="section-title1">Job Categories</h2> <div class="card bg-base-200 shadow-xl hover:shadow-primary/10 transition-all">
<div class="categories"> <div class="card-body">
<a href="#" class="category"> <div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
<div class="category-icon"> <div>
<img src="pic/Pet Care Taker.jpg" alt="Dog Care Taker"> <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> </div>
<span>Dog Care Taker</span> <p class="mt-2">Weekly house cleaning position available. Experience with modern cleaning
</a> equipment required.</p>
<a href="#" class="category">
<div class="category-icon">
<img src="pic/Care Taker.jpeg" alt="Elderly Care">
</div> </div>
<span>Old Aged Care Taker</span> <button class="btn btn-primary">Apply Now</button>
</a>
<a href="#" class="category">
<div class="category-icon">
<img src="pic/Cleaner.jpg" alt="Cleaner">
</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>
<span>Old Aged Care Taker</span>
</a>
</div> </div>
<?php include 'footer.php'; ?> <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>
<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>
<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>
<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>
</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>
<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> </body>
</html> </html>

@ -38,59 +38,60 @@ $result = $stmt->get_result();
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.7.2/dist/full.min.css" rel="stylesheet" type="text/css" /> <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> <script src="https://cdn.tailwindcss.com"></script>
</head> </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';?> <?php include 'navbar.php';?>
<main class="flex-grow container mx-auto px-4 py-8"> <main class="flex-grow container mx-auto px-4 py-8">
<!-- Breadcrumb --> <!-- Breadcrumb -->
<div class="text-sm breadcrumbs mb-6"> <div class="text-sm breadcrumbs mb-6">
<ul> <ul>
<li><a href="index.php">Home</a></li> <li><a href="index.php" class="text-primary hover:text-primary-focus">Home</a></li>
<li class="text-primary">My Applications</li> <li class="text-base-content">My Job Applications</li>
</ul> </ul>
</div> </div>
<div class="bg-white rounded-lg shadow-md p-6"> <div class="card bg-base-100 shadow-xl">
<h1 class="text-3xl font-bold mb-6 text-gray-800">My Job Applications</h1> <div class="card-body">
<h1 class="card-title text-3xl mb-6">My Job Applications</h1>
<?php if ($result->num_rows > 0): ?> <?php if ($result->num_rows > 0): ?>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="table w-full"> <table class="table table-zebra w-full">
<thead> <thead>
<tr class="bg-gray-50"> <tr>
<th class="text-left px-6 py-3 text-gray-600">Job Title</th> <th class="bg-base-200">Job Title</th>
<th class="text-left px-6 py-3 text-gray-600">Location</th> <th class="bg-base-200">Location</th>
<th class="text-left px-6 py-3 text-gray-600">Salary</th> <th class="bg-base-200">Salary</th>
<th class="text-left px-6 py-3 text-gray-600">Application Date</th> <th class="bg-base-200">Application Date</th>
<th class="text-left px-6 py-3 text-gray-600">Status</th> <th class="bg-base-200">Status</th>
</tr> </tr>
</thead> </thead>
<tbody class="divide-y divide-gray-200"> <tbody>
<?php while ($application = $result->fetch_assoc()): ?> <?php while ($application = $result->fetch_assoc()): ?>
<tr class="hover:bg-gray-50 transition-colors"> <tr class="hover">
<td class="px-6 py-4"> <td>
<div class="text-sm font-medium text-gray-900"> <div class="font-medium">
<?= htmlspecialchars($application['job_title']) ?> <?= htmlspecialchars($application['job_title']) ?>
</div> </div>
</td> </td>
<td class="px-6 py-4 text-sm text-gray-600"> <td>
<?= htmlspecialchars($application['location']) ?> <?= htmlspecialchars($application['location']) ?>
</td> </td>
<td class="px-6 py-4 text-sm text-gray-600"> <td>
<?= htmlspecialchars($application['salary']) ?> <?= htmlspecialchars($application['salary']) ?>
</td> </td>
<td class="px-6 py-4 text-sm text-gray-600"> <td>
<?= date('F j, Y', strtotime($application['application_date'])) ?> <?= date('F j, Y', strtotime($application['application_date'])) ?>
</td> </td>
<td class="px-6 py-4"> <td>
<?php <?php
$statusClass = match($application['status']) { $statusClass = match($application['status']) {
'Pending' => 'bg-yellow-100 text-yellow-800', 'Pending' => 'badge badge-warning',
'Accepted' => 'bg-green-100 text-green-800', 'Accepted' => 'badge badge-success',
default => 'bg-red-100 text-red-800' default => 'badge badge-error'
}; };
?> ?>
<span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full <?= $statusClass ?>"> <span class="<?= $statusClass ?>">
<?= htmlspecialchars($application['status']) ?> <?= htmlspecialchars($application['status']) ?>
</span> </span>
</td> </td>
@ -100,39 +101,15 @@ $result = $stmt->get_result();
</table> </table>
</div> </div>
<?php else: ?> <?php else: ?>
<div class="bg-blue-50 border-l-4 border-blue-400 p-4 mb-4"> <div class="alert alert-info">
<div class="flex"> <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>
<div class="flex-shrink-0"> <span>You haven't applied to any jobs yet.</span>
<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>
</div>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div>
</main> </main>
<?php include 'footer.php';?> <?php include 'footer.php';?>
<style>
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
footer {
flex-shrink: 0;
}
</style>
</body> </body>
</html> </html>

@ -58,7 +58,6 @@ if (isset($_POST['apply']) && $is_job_seeker) {
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" data-theme="light"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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" /> <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> <script src="https://cdn.tailwindcss.com"></script>
</head> </head>
<body class="min-h-screen flex flex-col bg-base-200">
<?php include 'navbar.php';?>
<body class="min-h-screen bg-base-200"> <main class="flex-grow container mx-auto px-4 py-8">
<?php include 'navbar.php'; ?>
<main class="container mx-auto px-4 py-8">
<!-- Breadcrumb --> <!-- Breadcrumb -->
<div class="text-sm breadcrumbs mb-6"> <div class="text-sm breadcrumbs mb-6">
<ul> <ul>
<li><a href="index.php">Home</a></li> <li><a href="index.php" class="text-primary hover:text-primary-focus">Home</a></li>
<li class="text-primary">Job Details</li> <li class="text-base-content">Job Details</li>
</ul> </ul>
</div> </div>
<div class="max-w-4xl mx-auto bg-base-100 shadow-xl p-6"> <div class="card bg-base-100 shadow-xl">
<h2 class="text-3xl font-bold mb-4"><?= htmlspecialchars($job['job_title']) ?></h2> <div class="card-body">
<p class="text-lg font-medium mb-2"><strong>Location:</strong> <?= htmlspecialchars($job['location']) ?></p> <h1 class="card-title text-3xl mb-6"><?= htmlspecialchars($job['job_title']) ?></h1>
<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>
<!-- Display Application Message --> <!-- Display Application Message -->
<?php if (isset($application_message)): ?> <?php if (isset($application_message)): ?>
<div class="mt-4 text-center text-lg font-medium"> <div class="alert alert-success mb-4">
<?= htmlspecialchars($application_message) ?> <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> </div>
<?php endif; ?> <?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>
<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>
<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>
<!-- Apply Button for Job Seekers --> <!-- Apply Button for Job Seekers -->
<?php if ($is_job_seeker): ?> <?php if ($is_job_seeker): ?>
<form method="POST"> <form method="POST">
<div class="mt-6"> <button type="submit" name="apply" class="btn btn-primary">
<button type="submit" name="apply" class="btn btn-primary btn-block">Apply for Job</button> <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
</div> <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> </form>
<?php else: ?> <?php else: ?>
<div class="mt-6"> <button class="btn btn-disabled" disabled>
<button class="btn btn-disabled btn-block" disabled>You must be a job seeker to apply</button> <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
</div> <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; ?> <?php endif; ?>
</div> </div>
</div>
</div>
</main> </main>
<?php include 'footer.php'; ?> <?php include 'footer.php';?>
</body> </body>
</html> </html>
<?php <?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> <!DOCTYPE html>
<html> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Seekers Dashboard</title> <title>Job Seekers Dashboard</title>
<link rel="stylesheet" href="jobseekerdash.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> </head>
<body> <body class="min-h-screen bg-base-200 flex flex-col">
<?php include 'navbar.php' ?> <?php include 'navbar.php'?>
<div class="container">
<div class="blue-box"> <div class="container mx-auto px-4 py-8 flex-grow">
Dashboard <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<p>HOME > DASHBOARD</p> <!-- My Job Applications -->
</div> <a href="job_applications.php" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<div class="main-div"> <div class="card-body items-center text-center">
<div class="button-div"> <div class="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-4">
<a href="job_applications.php"> <span class="text-3xl">📄</span>
<span class="icon">📄</span> </div>
<span class="button-text">My Job Applications</span> <h2 class="card-title text-xl">My Job Applications</h2>
<p class="text-base-content/70">View your application status</p>
</div>
</a> </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> </div>
<div class="button-div"> <h2 class="card-title text-xl">My Profile</h2>
<a href="jobseekerprofile"> <p class="text-base-content/70">View and edit your profile</p>
<span class="icon">👤</span>
<span class="button-text">My Profile</span>
</div> </div>
</a> </a>
<div class="button-div">
<a href="logout"> <!-- Logout -->
<span class="icon">🚪</span> <a href="logout" class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-200">
<span class="button-text">Logout</span> <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> </div>
</a> </a>
</div> </div>
</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> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Update Profile</title> <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> </head>
<body> <body class="min-h-screen bg-base-200 flex flex-col">
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<div class="profile-container">
<h2>Jobseeker Profile</h2> <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="profile-upload-section"> <div class="card-body">
<div class="profile-circle"> <h2 class="card-title text-2xl font-bold text-center mb-6">Jobseeker Profile</h2>
<img id="profile-preview" src="" alt="Profile Picture">
<label for="profile-upload" class="upload-label"> <form method="POST" action="updateprofile.php" enctype="multipart/form-data" class="space-y-6">
<span>Profile Picture</span> <!-- First Name -->
<input type="file" id="profile-upload" accept="image/*"> <div class="form-control">
<label class="label">
<span class="label-text">First Name</span>
</label> </label>
</div> <input
type="text"
name="first_name"
value="<?php echo isset($user['firstname']) ? htmlspecialchars($user['firstname']) : ''; ?>"
class="input input-bordered w-full"
required
>
</div> </div>
<form class="profile-form" method="POST" action="updateprofile.php" enctype="multipart/form-data"> <!-- Last Name -->
<div class="form-group"> <div class="form-control">
<label>First Name</label> <label class="label">
<input type="text" name="first_name" value="<?php echo isset($user['firstname']) ? $user['firstname'] : ''; ?>" required> <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> </div>
<div class="form-group"> <!-- Email -->
<label>Last Name</label> <div class="form-control">
<input type="text" name="last_name" value="<?php echo isset($user['lastname']) ? $user['lastname'] : ''; ?>" required> <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> </div>
<div class="form-group"> <!-- Phone -->
<label>Email</label> <div class="form-control">
<input type="email" name="email" value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>" required> <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> </div>
<div class="form-group"> <!-- Location -->
<label>Phone Number</label> <div class="form-control">
<input type="tel" name="phone" value="<?php echo isset($user['phone']) ? $user['phone'] : ''; ?>" required> <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> </div>
<div class="form-group"> <!-- Skills -->
<label>Location</label> <div class="form-control">
<input type="text" name="location" value="<?php echo isset($user['location']) ? $user['location'] : ''; ?>" required> <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> </div>
<!-- Experience -->
<div class="form-group"> <div class="form-control">
<label>Skills</label> <label class="label">
<textarea name="skills" required><?php echo isset($user['skills']) ? $user['skills'] : ''; ?></textarea> <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> </div>
<div class="form-group"> <!-- Education -->
<label>Experience</label> <div class="form-control">
<textarea name="experience" required><?php echo isset($user['experience']) ? $user['experience'] : ''; ?></textarea> <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> </div>
<div class="form-group"> <!-- Submit Button -->
<label>Education</label> <div class="form-control mt-8">
<textarea name="education" required><?php echo isset($user['education']) ? $user['education'] : ''; ?></textarea> <button type="submit" name="update" class="btn btn-primary w-full">Update Profile</button>
</div> </div>
</form>
<button type="submit" class="submit-btn" name="update">Update</button>
</form>
</div> </div>
<?php include 'footer.php'?> </div>
</div>
<?php include 'footer.php' ?>
</body> </body>
</html> </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> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Login</title>
<link rel="stylesheet" href="login.css"> <!-- Tailwind CSS and DaisyUI -->
<!-- Bootstrap 5 CSS --> <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/2.6.0/full.css" rel="stylesheet">
<!-- font-awesome icons --> <!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head> </head>
<body> <body class="min-h-screen bg-gradient-to-br from-base-200 to-base-300">
<?php include 'navbar.php'; ?> <?php include 'navbar.php'; ?>
<section class="vh-80">
<div class="container-fluid h-custom"> <div class="hero min-h-screen">
<div class="row d-flex justify-content-center align-items-center h-100"> <div class="hero-content flex-col">
<div class="col-md-8 col-lg-6 col-xl-4 offset-xl-1"> <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>
<form method="post" action="register.php"> <form method="post" action="register.php">
<!-- Email input --> <div class="form-control">
<div data-mdb-input-init class="form-outline mb-4"> <label class="label">
<label class="form-label" for="email">Email address:</label> <span class="label-text font-medium">Email</span>
<input type="email" id="email" name="email" class="form-control form-control-lg"
placeholder="Enter a valid email address" required />
</div>
<!-- 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="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> </label>
<div class="relative">
<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>
<a href="#!" class="text-body">Forgot password?</a>
</div> </div>
<div class="text-center text-lg-start mt-4 pt-2"> <div class="form-control mt-4">
<button type="submit" name="Login" class="btn btn-primary btn-lg" <label class="label">
style="padding-left: 2.5rem; padding-right: 2.5rem;">Login</button> <span class="label-text font-medium">Password</span>
<p class="small fw-bold mt-2 pt-1 mb-0">Don't have an account? <a href="createAccount.php" </label>
class="link-danger">Register</a></p> <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>
</form>
</div> </div>
</div> </div>
</div> </div>
</section>
<?php include 'footer.php'; ?> <?php include 'footer.php'; ?>
</body> </body>
</html> </html>

@ -57,7 +57,6 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
} }
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" data-theme="light"> <html lang="en" data-theme="light">
<head> <head>
@ -66,79 +65,121 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
<title>View Applications</title> <title>View Applications</title>
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.7.2/dist/full.min.css" rel="stylesheet" type="text/css" /> <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> <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> </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';?> <?php include 'navbar.php';?>
<main class="flex-grow container mx-auto px-4 py-8"> <main class="flex-grow container mx-auto px-4 py-8">
<!-- Breadcrumbs with icons -->
<div class="text-sm breadcrumbs mb-6"> <div class="text-sm breadcrumbs mb-6">
<ul> <ul class="flex items-center space-x-2">
<li><a href="index.php">Home</a></li> <li><a href="index.php" class="flex items-center text-gray-600 hover:text-primary">
<li class="text-primary">Applications Received</li> <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> </ul>
</div> </div>
<div class="bg-white rounded-lg shadow-md p-6"> <div class="card bg-base-100 shadow-xl">
<h1 class="text-3xl font-bold mb-6 text-gray-800">Applications Received</h1> <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): ?> <?php if ($result->num_rows > 0): ?>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="table w-full"> <table class="table table-zebra w-full">
<thead> <thead>
<tr class="bg-gray-50"> <tr class="bg-base-200">
<th class="text-left px-6 py-3 text-gray-600">Job Title</th> <th class="text-base-content font-bold">
<th class="text-left px-6 py-3 text-gray-600">Applicant Name</th> <i class="fas fa-briefcase mr-2"></i>Job Title
<th class="text-left px-6 py-3 text-gray-600">Contact</th> </th>
<th class="text-left px-6 py-3 text-gray-600">Application Date</th> <th class="text-base-content font-bold">
<th class="text-left px-6 py-3 text-gray-600">Status</th> <i class="fas fa-user mr-2"></i>Applicant
<th class="text-left px-6 py-3 text-gray-600">Actions</th> </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> </tr>
</thead> </thead>
<tbody class="divide-y divide-gray-200"> <tbody>
<?php while ($application = $result->fetch_assoc()): ?> <?php while ($application = $result->fetch_assoc()): ?>
<tr class="hover:bg-gray-50 transition-colors"> <tr class="hover">
<td class="px-6 py-4"> <td class="font-medium">
<div class="text-sm font-medium text-gray-900"> <div class="flex items-center space-x-2">
<span class="text-primary">
<?= htmlspecialchars($application['job_title']) ?> <?= htmlspecialchars($application['job_title']) ?>
</span>
</div> </div>
</td> </td>
<td class="px-6 py-4"> <td>
<div class="text-sm text-gray-900"> <div class="font-medium">
<?= htmlspecialchars($application['firstname'] . ' ' . $application['lastname']) ?> <?= htmlspecialchars($application['firstname'] . ' ' . $application['lastname']) ?>
</div> </div>
</td> </td>
<td class="px-6 py-4"> <td>
<div class="text-sm text-gray-600"> <div class="space-y-1">
<div>Email: <?= htmlspecialchars($application['email']) ?></div> <div class="flex items-center text-sm">
<div>Phone: <?= htmlspecialchars($application['phone']) ?></div> <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> </div>
</td> </td>
<td class="px-6 py-4 text-sm text-gray-600"> <td>
<div class="flex items-center">
<span class="text-sm">
<?= date('F j, Y', strtotime($application['application_date'])) ?> <?= date('F j, Y', strtotime($application['application_date'])) ?>
</span>
</div>
</td> </td>
<td class="px-6 py-4"> <td>
<?php <?php
$statusClass = match($application['status']) { $statusClass = match($application['status']) {
'Pending' => 'bg-yellow-100 text-yellow-800', 'Pending' => 'badge-warning',
'Accepted' => 'bg-green-100 text-green-800', 'Accepted' => 'badge-success',
'Rejected' => 'bg-red-100 text-red-800', 'Rejected' => 'badge-error',
default => 'bg-gray-100 text-gray-800' default => 'badge-ghost'
}; };
?> ?>
<span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full <?= $statusClass ?>"> <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']) ?> <?= htmlspecialchars($application['status']) ?>
</span> </div>
</td> </td>
<td class="px-6 py-4"> <td>
<form method="POST" class="inline"> <form method="POST" class="flex items-center gap-2">
<input type="hidden" name="application_id" value="<?= $application['application_id'] ?>"> <input type="hidden" name="application_id" value="<?= $application['application_id'] ?>">
<select name="new_status" class="select select-bordered select-sm w-32 mr-2"> <select name="new_status" class="select select-bordered select-sm">
<option value="Pending" <?= $application['status'] === 'Pending' ? 'selected' : '' ?>>Pending</option> <option value="Pending" <?= $application['status'] === 'Pending' ? 'selected' : '' ?>>Pending</option>
<option value="Accepted" <?= $application['status'] === 'Accepted' ? 'selected' : '' ?>>Accept</option> <option value="Accepted" <?= $application['status'] === 'Accepted' ? 'selected' : '' ?>>Accept</option>
<option value="Rejected" <?= $application['status'] === 'Rejected' ? 'selected' : '' ?>>Reject</option> <option value="Rejected" <?= $application['status'] === 'Rejected' ? 'selected' : '' ?>>Reject</option>
</select> </select>
<button type="submit" name="update_status" class="btn btn-sm btn-primary"> <button type="submit" name="update_status" class="btn btn-primary btn-sm">
Update <i class="fas fa-save mr-1"></i> Update
</button> </button>
</form> </form>
</td> </td>
@ -148,40 +189,22 @@ if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($
</table> </table>
</div> </div>
<?php else: ?> <?php else: ?>
<div class="bg-blue-50 border-l-4 border-blue-400 p-4 mb-4"> <div class="alert alert-info shadow-lg">
<div class="flex"> <div>
<div class="flex-shrink-0"> <i class="fas fa-info-circle text-2xl"></i>
<svg class="h-5 w-5 text-blue-400" viewBox="0 0 20 20" fill="currentColor"> <div>
<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" /> <h3 class="font-bold">No Applications Yet</h3>
</svg> <div class="text-sm">No applications have been received yet for your job postings.</div>
</div>
<div class="ml-3">
<p class="text-sm text-blue-700">
No applications have been received yet for your job postings.
</p>
</div> </div>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div>
</main> </main>
<footer class="mt-auto bg-white border-t"> <footer class="mt-auto">
<?php include 'footer.php';?> <?php include 'footer.php';?>
</footer> </footer>
<style>
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
footer {
flex-shrink: 0;
}
</style>
</body> </body>
</html> </html>

@ -48,32 +48,116 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['job_title'])) {
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" data-theme="light">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manage Jobs</title> <title>Post a New Job</title>
<link rel="stylesheet" href="ManageJob.css"> <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> </head>
<body> <body class="min-h-screen bg-base-100">
<?php include 'navbar.php'; ?> <?php include 'navbar.php'; ?>
<div class="container">
<div class="post-job"> <main class="container mx-auto px-4 py-8">
<form method="Post" action=""> <!-- Breadcrumbs -->
<input type="text" name="job_title" placeholder="Job Title" required> <div class="text-sm breadcrumbs mb-6">
<textarea name="job_description" placeholder="Job Description" required></textarea> <ul class="flex items-center space-x-2">
<input type="text" name="location" placeholder="Location" required> <li><a href="index.php" class="flex items-center text-gray-600 hover:text-primary">
<input type="text" name="salary" placeholder="Salary" required> <i class="fas fa-home mr-2"></i> Home
<textarea name="requirements" placeholder="Requirements" required></textarea> </a></li>
<button type="submit">Post Job</button> <li class="flex items-center text-primary">
</form> <i class="fas fa-plus-circle mr-2"></i> Post a New Job
</li>
</ul>
</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> </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> </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'; ?> <?php include 'footer.php'; ?>
<script> <script>
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
fetchJobs(); fetchJobs();

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

@ -21,8 +21,9 @@ if (session_status() === PHP_SESSION_NONE) {
<body> <body>
<header class="header"> <header class="header">
<div class="logo"> <div class="logo">
<a href="index">
<img src="pic/TEMPHIRE_LOGO.png" alt="TEMPHIRE LOGO"> <img src="pic/TEMPHIRE_LOGO.png" alt="TEMPHIRE LOGO">
<span>Temphire</span> </a>
</div> </div>
<nav class="nav-links"> <nav class="nav-links">
<a href="index">Home</a> <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 // Same binding for both UPDATE and INSERT
$stmt_job_seekers->bind_param("sssssi", $stmt_job_seekers->bind_param("ssssi",
$skills, $skills,
$experience, $experience,
$education, $education,

Loading…
Cancel
Save