# Delmas Apparels Career / Job Posting Module — Install Guide

## What's new in this update
- **New job fields**: Vacancy, Age, Experience, Salary
- **Skills & Expertise**: click existing skills to add them, or type a brand
  new one and press Enter/comma — it's saved automatically so it shows up
  as a clickable option next time you post a job
- **Read Before Apply** and **Apply Procedure** — optional free-text boxes
  shown on the job page (e.g. hardcopy CV instructions)
- **Cover Note is now required** — applicants must write one to submit
- **Manage Accounts**: each account now has an **Edit** button (change
  name, email, role, or reset password)
- The job list in the admin dashboard now shows **Posted By** — who
  created each job post

If you already installed the previous version, your existing database
will upgrade itself automatically the next time any page loads — no
action needed, and no data is lost.

## What's in this package
- `index-with-career-link.html` — your ACTUAL homepage (delmasapparelsbd.com
  design) with one new "Career" menu link added (desktop + mobile menu).
  Nothing else was changed — review it, then rename it to `index.html` and
  upload it to replace your current one.
- `career.php` — public page listing all open jobs (restyled to match your
  site's dark/gold theme and fonts)
- `job.php` — public page: single job details + apply form (same styling)
- `apply-submit.php` — handles application form submissions
- `career/` — the whole engine: admin panel, database, file storage
  (self-contained, uses SQLite — no MySQL setup needed)

All branding has been updated to "Delmas Apparels (Pvt.) Limited" —
none of the original "Technical Apparels / TAPL" text remains.
Right-click (context menu) is disabled on all career + admin pages, as
requested.

⚠️ Before uploading anything, please secure your hosting account first —
see the security warning sent separately. Uploading a new module to an
already-compromised account risks the attacker getting access to your
job applicants' CVs and personal data too.

## 1. Upload
Upload `career.php`, `job.php`, `apply-submit.php`, and the `career/` folder
to your website's root (same place as your current `index.html`, `style.css`,
etc.) via cPanel File Manager or FTP. Then rename
`index-with-career-link.html` to `index.html` and upload it too, replacing
your current one (it only adds the "Career" menu link — nothing else changed).

## 2. Run the one-time setup
Visit this URL in your browser:

    https://delmasapparelsbd.com/career/setup.php

Fill in your name, a username, and a password — this creates your
**Super Admin** account (the only account that can create other accounts).

⚠️ **Immediately after this, delete `career/setup.php` from the server.**
It locks itself once a Super Admin exists, but delete it anyway for safety.

## 3. Log in
Admin login page:

    https://delmasapparelsbd.com/career/admin/login.php

From here you can:
- **New Job Post** — add a job (title, department, location, type,
  description, deadline) and optionally add external "Apply via" links
  (BDJobs, LinkedIn, or any other job site — add as many as you like)
- **Manage Accounts** (Super Admin only) — create login accounts for your
  colleagues so they can log in and post/manage their own jobs
- Click a job's **applicant count** to see everyone who applied, with a
  one-click CV / document download for each person

## How it behaves for visitors
- The "Career" menu on your homepage links to `career.php`, which lists
  every published job
- Each job has a "View & Apply" page with your own apply form (name,
  email, phone, CV upload, optional extra document, cover note) plus any
  external links you added (BDJobs, LinkedIn, etc.)
- Once a job's deadline date passes, the apply form automatically locks
  itself and shows "Applications are now closed" — no action needed from
  you, it checks the date on every page load
- Uploaded CVs/documents are stored in a protected folder that can't be
  accessed directly from the web — only downloadable by logged-in admins

## Notes
- Max upload size per file: 5 MB. Allowed formats: PDF, DOC, DOCX.
- The database is a single file at `career/data/careers.db` — back this
  up periodically (e.g. download it via FTP once a week) since it holds
  all your job posts and applications.
- If you ever want to reset a forgotten Super Admin password, let me know
  and I'll give you a small script to do it directly.
