A web-based Salesperson Management System that allows salespersons to submit client visit reports, track approvals, and manage users via an admin panel with email notifications.
- Login using email/username & password
- Two-Factor Authentication (2FA) via Email OTP (Admin-controlled)
- Submit client visit reports with photo uploads (1-3 images mandatory)
- Track report status (Pending, Approved, Rejected)
- Receive email notifications on submission, approval, or rejection
- View report submission history with filters (date range, status, etc.)
- Secure Login with optional 2FA for selected salespersons
- Dashboard with total visits, approvals, rejections, and pending approvals
- Manage salesperson reports (view, filter, approve/reject with comments)
- Add, Edit, Delete Salespersons (auto-email login credentials on creation)
- Export reports in CSV/PDF format
- Login Attempt Logs to track failed/successful logins
- SMTP Settings Management (Configure email notifications easily)
- Username - admin@example.com
- Password - admin123
/salesperson-management-system
│── /admin
│ ├── dashboard.php
│ ├── login.php
│ ├── manage_salespersons.php
│ ├── view_reports.php
│ ├── export_reports.php
│── /salesperson
│ ├── index.php
│ ├── submit_report.php
│ ├── view_reports.php
│── /uploads
│ ├── (Stores client visit images)
│── /includes
│ ├── config.php
│ ├── functions.php
│── installer.php # Auto-installer for database setup
│── database.sql # SQL schema file
│── .htaccess
│── README.md
git clone https://github.com/metahat/sellto.git
cd sellto- Create a MySQL Database manually (or let the installer create it).
- Open
database.sqland import it into your database using phpMyAdmin or CLI:mysql -u your_db_user -p your_db_name < database.sql - OR, use the automatic installer:
- Visit
http://yourdomain.com/installer.php - Enter database credentials and click Install System
- Visit
Edit smtp_settings.php after installation:
$smtp_host = "your_smtp_host";
$smtp_user = "your_email@example.com";
$smtp_pass = "your_password";
$smtp_port = 587; // or 465 for SSL- Localhost: Place files in
htdocsand access viahttp://localhost/salesperson-management-system/ - Live Server: Upload to a domain and access via
http://yourdomain.com/
- Password Hashing: Bcrypt encryption for login security.
- CSRF Protection: Secure form submissions.
- SQL Injection Protection: Uses prepared statements.
- Login Logs: Tracks login attempts and IP addresses.
This project is open-source under the MIT License. Feel free to modify and use it.
Pull requests are welcome! To contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-name) - Commit changes (
git commit -m "Added feature XYZ") - Push to the branch (
git push origin feature-name) - Submit a Pull Request
For queries or support, reach out to:
📩 Email: siddhartha69009@gmail.com
🌐 Website: tohost.in