a system designed to enable farmers to track their payments after delivering their cattle to Botswana Meat Commission. This also enable the administrators to automaticall appove payment.
# Integrated Livestock Procurement and Compliance Management System (ILPCMS)
A fully functional web-based system for managing livestock procurement, compliance, and payments.
## Tech Stack
- **Frontend:** HTML5, CSS3, Vanilla JavaScript
- **Backend:** PHP (Plain/Vanilla)
- **Database:** MySQL
- **Authentication:** PHP Sessions
## Features
- **Role-Based Access Control:** Farmer, Field Officer, and Admin roles.
- **Farmer Portal:** View delivery history and payment status.
- **Field Officer Portal:** Record cattle deliveries, tag IDs, and health status.
- **Admin Dashboard:** Approve/Reject deliveries, monitor system logs, and process payments.
- **Automated Logic:** Grading based on weight and payment calculation upon approval.
## Setup Instructions
### 1. Prerequisites
- Install **XAMPP** or **WAMP** on your local machine.
- Ensure Apache and MySQL services are running.
### 2. Database Setup
1. Open **phpMyAdmin** (usually at `
localhost`).
2. Create a new database named `ilpcms`.
3. Click on the `ilpcms` database, go to the **Import** tab.
4. Choose the `database.sql` file provided in this package and click **Go**.
### 3. File Placement
1. Copy the entire `ilpcms` folder.
2. Paste it into your local server's root directory:
- For XAMPP: `C:\xampp\htdocs\ilpcms`
- For WAMP: `C:\wamp64\www\ilpcms`
### 4. Configuration
- If your MySQL `root` user has a password, update it in `config.php`:
```php
define('DB_PASSWORD', 'your_password_here');
```
### 5. Running the Application
1. Open your browser and navigate to `
localhost`.
2. Use the following sample credentials to test:
- **Farmer:** Username: `farmer1`, Password: `password`
- **Officer:** Username: `officer1`, Password: `password`
- **Admin:** Username: `admin1`, Password: `password`
## File Structure
- `index.html`: Login/Register page
- `dashboard.html`: Role-based redirector
- `farmer.html`: Farmer dashboard
- `officer.html`: Field Officer dashboard
- `admin.ht …