Engineering ProjectsBsc-ITDiplomaIT ProjectsMsc-IT Projects

Employee Transport Management System Project

Introduction

Employee transportation is a cornerstone service provided by many organizations. While beneficial, managing it effectively can be a herculean task. Our innovative Transport Management System Project is specifically designed to solve these challenges, offering a user-friendly platform for organizing pick-ups and drop-offs for employees.

System Architecture

The system architecture is dual-faceted: one side focuses on administrative functions, while the other concentrates on user functionalities.

  • Admin Panel: Once logged in, the admin has a range of functionalities at their disposal including:
    • Adding drivers
    • Adding vehicles
    • Viewing and managing time slots
    • Viewing bookings
  • Employee Interface: After registering and logging in, employees can:
    • View available time slots
    • Select time slots according to their shift timings

Advantages

  • User-Friendly Interface: Easy navigation for both admins and employees.
  • Data Flexibility: Simple data alteration and reliable data storage.
  • Efficiency: Reduced manual work, making the process more efficient.
  • Report Generation: Timely and accurate reports can be generated at will.

Disadvantages

The system requires an active internet connection to function.

Conclusion

The Transport Management System Project is a powerful tool designed to bring ease and efficiency to the logistical challenges of employee transportation. With features catering to both administrators and employees, the system offers a one-stop solution for all transportation needs.

Sample Code

pip install Flask

File Structure

/EmployeeTransportManagement
|-- /templates
|   |-- admin.html
|   |-- employee.html
|   |-- login.html
|-- app.py

app.py (Flask Backend)

from flask import Flask, render_template, request, redirect, url_for

app = Flask(__name__)

# Sample Data: Replace these with database
admin_data = {"username": "admin", "password": "admin"}
employee_data = {}
time_slots = ["9:00 AM", "11:00 AM", "1:00 PM"]

@app.route('/')
def login():
    return render_template("login.html")

@app.route('/login', methods=['POST'])
def handle_login():
    username = request.form["username"]
    password = request.form["password"]
    if username == admin_data["username"] and password == admin_data["password"]:
        return redirect(url_for('admin'))
    elif username in employee_data and password == employee_data[username]:
        return redirect(url_for('employee'))
    else:
        return "Invalid Credentials"

@app.route('/admin')
def admin():
    return render_template("admin.html", time_slots=time_slots)

@app.route('/employee')
def employee():
    return render_template("employee.html", time_slots=time_slots)

@app.route('/add_slot', methods=['POST'])
def add_slot():
    new_slot = request.form["new_slot"]
    time_slots.append(new_slot)
    return redirect(url_for('admin'))

if __name__ == '__main__':
    app.run(debug=True)

login.html (Login Page)

<!DOCTYPE html>
<html>
<head>
  <title>Login</title>
</head>
<body>
  <form method="post" action="/login">
    Username: <input type="text" name="username"><br>
    Password: <input type="password" name="password"><br>
    <input type="submit" value="Login">
  </form>
</body>
</html>

admin.html (Admin Page)

<!DOCTYPE html>
<html>
<head>
  <title>Admin</title>
</head>
<body>
  <h1>Admin Panel</h1>
  <form method="post" action="/add_slot">
    Add Time Slot: <input type="text" name="new_slot">
    <input type="submit" value="Add">
  </form>
  <p>Time Slots:</p>
  {% for slot in time_slots %}
    <li>{{ slot }}</li>
  {% endfor %}
</body>
</html>

employee.html (Employee Page)

<!DOCTYPE html>
<html>
<head>
  <title>Employee</title>
</head>
<body>
  <h1>Employee Panel</h1>
  <p>Available Time Slots:</p>
  {% for slot in time_slots %}
    <li>{{ slot }}</li>
  {% endfor %}
</body>
</html>
Click to rate this post!
[Total: 0 Average: 0]

Download Employee Transport Management System Project PDF


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button