Skip to content

imranmalakzai/student-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

108 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Student Management Dashboard

A complete and fully modular Student Management Dashboard built with PHP, MySQL, Bootstrap 5, JavaScript, and AJAX, designed for managing school data with modern UI, advanced reporting tools, automated backups, and multi-language support.


Features

1. Secure Admin Login

  • Password encrypted in database
  • PHP sessions
  • Auto-redirect protection
  • Logout confirmation with SweetAlert2

2. Modern Dashboard

Includes:

  • Total students
  • Total teachers
  • Total classes
  • Fees collected
  • Latest registration
  • Latest payment
  • Active students
  • Student gender chart
  • Fee collection chart
  • Real-time statistics using Chart.js

3. Fully Modular Architecture

Each module has:

  • UI file (PHP)
  • API file (PHP backend)
  • JS controller (AJAX logic)
  • Validation
  • Export (PDF/CSV)
  • Client-side search

Modules included:

  • Students
  • Teachers
  • Classes
  • Subjects
  • Fees
  • Districts
  • Provinces -Qualifications
  • Genders

4. Backup & Restore System

  • Create SQL backup (auto timestamped)
  • Download backup file
  • Restore backup from uploaded SQL
  • Backup folder auto-organized

5. Light / Dark Theme

  • Theme preference saved in localStorage
  • Smooth UI switch

6. Multi-Language Support

Languages included:

  • English
  • Pashto

Dynamic translation using JSON + JavaScript.

7. Export Tools

  • PDF export using jsPDF + html2canvas
  • CSV export for every table

8. Client-side Search

Instant search for all modules with clean highlighting.


πŸ—Technology Stack

Layer Technology
Frontend HTML5, CSS3, Bootstrap 5
Scripting JavaScript (Vanilla + AJAX)
Backend PHP (Modular API architecture)
Database MySQL
Charts Chart.js
Alerts SweetAlert2
Exports jsPDF, html2canvas, CSV
Icons FontAwesome
Multi-language JSON-based system

Project Directory Structure

dashboard/
 β”œβ”€β”€ Admin/
 β”œβ”€β”€ api/
 β”œβ”€β”€ assets/
 β”œβ”€β”€ backups/
 β”œβ”€β”€ common/
 β”œβ”€β”€ config/
 β”œβ”€β”€ css/
 β”œβ”€β”€ js/
 β”œβ”€β”€ languages/
 β”œβ”€β”€ schema/
 β”œβ”€β”€ util/
 β”œβ”€β”€ validation/
 β”œβ”€β”€ webfonts/
 β”œβ”€β”€ index.php
 └── ...

Each directory contains dedicated and modular components for scalability and easy maintenance.


πŸ—„ Database Setup

  1. Import the schema located at:

    schema/school.sql
    
  2. Update database credentials in:

    config/db.php
    
  3. Default username and password

    username : admin@gmail.com
    password : admin123
    

After that, login with your created admin credentials.


Installation & Deployment

1. Requirements

  • PHP 7+
  • MySQL 5.7+
  • Apache / Nginx
  • mod_rewrite enabled
  • Write permissions for /backups/

2. Installation Steps

git clone https://github.com/imranmalakzai/student-management-system
cd student-management-system
  • Import database
  • Configure /config/db.php
  • Deploy on local or live server (XAMPP / WAMP / cPanel / VPS)

Dashboard Preview

(You can add screenshots here)

![Dashboard Screenshot](assets/img/dashboard_preview.png)

πŸ”Œ API Structure Example

Get Students

GET api/student.php?action=getAll

Create Teacher

POST api/teacher.php?action=create

Delete Class

POST api/class.php?action=delete&id=5

Every module follows consistent API patterns.


πŸ“¦ Export Features

CSV Export

  • Converts table rows to downloadable CSV
  • Works offline
  • Lightweight and fast

PDF Export

Powered by:

  • jsPDF
  • html2canvas

One-click PDF download for reports.


πŸ” Backup System

Backups stored automatically in:

backups/

Each file contains:

backup_YYYY-MM-DD_hh-mm-ss.sql

You can also restore backups inside the app.


🌐 Languages

languages/
 β”œβ”€β”€ english.json
 └── pashto.json

Language switching handled by:

js/language.js

✨ Future Improvements

  • Attendance module
  • Student portal
  • Role-based user system
  • Exam & results module
  • Email/SMS notifications
  • Complete REST API version

πŸ‘€ Author

Developer: Imran Malakzai Country: Afghanistan Profession: MERN Stack Developer & IT Specialist Languages: Pashto, English Skills: React, Node.js, PHP, MySQL, TailwindCSS, Docker, Git


πŸ“ License

This project can include any license you prefer (MIT recommended).


Dashboard Preview

About

A complete and fully modular Student Management Dashboard built with PHP, MySQL, Bootstrap 5, JavaScript, and AJAX, designed for managing school data with modern UI, advanced reporting tools, automated backups, and multi-language support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors