TWM (Tradewell Management System) is an internal enterprise web application developed to streamline and centralize operations across multiple departments including Human Resources, Logistics, Sales, Uniform Inventory, and User Access Control.
The system is built using PHP and Microsoft SQL Server and is designed for real-world business workflows such as applicant processing, trucking coordination, fuel monitoring, inventory tracking, purchasing, and offline mobile sales synchronization.
| Category | Technology |
|---|---|
| ๐ง Backend | PHP |
| ๐๏ธ Database | Microsoft SQL Server (sqlsrv) |
| ๐ Environment | XAMPP / Apache |
| ๐ Authentication | Session-based Auth + RBAC |
| ๐ฆ Architecture | Modular PHP System |
Human resource management and applicant processing tools.
- Job application management
- Applicant status tracking
- Interview scheduling
- Applicant evaluation workflow
- Employee management
- Employee profile picture uploads
- Resume and attachment handling
- Fuel Dashboard Monitoring
- Fuel Graph Visualization
- Uniform Inventory
- RBAC-enabled admin management
Pending โ Evaluating โ For Interview โ For Final Interview โ Hired / Rejected
Fleet and delivery management system for monitoring vehicle operations and fuel usage.
- Vehicle Consumption Summary
- Fuel monitoring dashboard
- Fuel anomaly detection
- Area-based fuel reporting
- Monthly fuel checklist system
- Delivery scheduling support
- Vehicle consumption monitoring
- Graph analytics and reports
| Page | Description |
|---|---|
fuel_dashboard.php |
Fleet fuel summary dashboard |
Fuel-30Day.php |
30-day monitoring dashboard |
Fuel-Anomaly.php |
Suspicious fuel transaction detection |
Fuel-Area.php |
Area fuel consumption summary |
Fuel-Checklist.php |
Refuel schedule monitoring |
Fuel-Comparison.php |
Truck fuel efficiency comparison |
Fuel-Consumption.php |
Weekly/monthly fuel consumption tracking |
Fuel-Report.php |
Raw fuel transaction reporting |
graphs.php |
Charts and analytics |
Inventory and purchasing system for company uniform management.
- Uniform stock tracking
- Receiving transactions
- Purchase order report
- Release of uniforms
- Return of uniforms
- Stock movement history
- Real-time stock balance monitoring
- Printable reports
| Table |
|---|
UniformStock |
UniformRequests |
UniformReleased |
UniformPO |
UniformPOItems |
UniformReceiving |
UniformReceivingItems |
UniformReturns |
The system includes centralized RBAC handling.
- Shared PDO connection architecture
- Session-based authentication
- Dynamic page permissions
- Shared navigation and topbar handling
- Centralized auth checks
- Employee avatar uploads
- Fullscreen photo preview modal
- Automatic initials fallback
- Dynamic image rendering
- Admin-only photo change permissions
/uploads/
/uploads/employee_pics/
Database connections are centralized using:
test_sqlsrv.php- Shared
$pdoand$conn - Production/local environment switching
- Reduced duplicate SQL connection logic
- Easier deployment configuration
Install:
- XAMPP
- Microsoft SQL Server
- SQLSRV PHP Driver
Place the project inside:
C:/xampp/htdocs/TWM
Open XAMPP Control Panel and start:
- Apache
http://localhost/TWM
โ ๏ธ This project uses Microsoft SQL Server (sqlsrv) โ NOT MySQL.
- Open SQL Server Management Studio (SSMS)
- Create or restore the database
- Locate SQL files inside:
/TABLES/
- Run required
.sqlfiles - Configure:
test_sqlsrv.php
for local or production environments
cd /c/xampp/htdocs/TWM
git add .
git commit -m "Update Description"
git pushTWM/
โ
โโโ assets/ # CSS, JS, images
โโโ uploads/ # Uploaded files
โโโ TABLES/ # SQL schema and migration files
โโโ includes/ # Shared includes and components
โโโ HR/ # HR module
โโโ LOGISTICS/ # Logistics dashboard
โโโ SALES/ # Sales module
โโโ RBAC/ # Role-based access control
โโโ Android/ # Android-related resources
โโโ test_sqlsrv.php # Shared database connection
โโโ *.php # Core application pages
- Centralized PDO architecture
- Shared SQL connection handling
- Production-ready connection switching
- Removed hardcoded PDO connections
- Shared auth handling
- Cleaner permission management
- Fullscreen avatar preview
- Better image fallback handling
- Improved upload directory structure
- Production database migration completed
- Inventory tables standardized
- Stock views recreated
- Local environment configs
- Temporary files
- Uploaded user files
- Backup SQL dumps
- Sensitive credentials
This system is designed for:
- Internal company operations
- Multi-user environments
- Real-world enterprise workflows
- Logistics and inventory management
- HR and applicant processing
Planned future enhancements include:
- Advanced RBAC permissions
- Dashboard analytics improvements
- API integrations
- Mobile app enhancements
- UI/UX modernization
- Real-time notifications
- Centralized reporting dashboards
- Multi-warehouse inventory support
Tradewell System Developer
Private / Internal Company Use Only