Skip to content
engrshuvodasPublic

About

An initiative under Parul Sevashram Hospital — connecting donors and patients for a faster, smarter blood donation system.

Resources

Stars

64 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation


       

   


A Modern Blood Bank Management System | Parul Sevashram Hospital Initiative

Saving lives, one donation at a time. ❤️




🩹 About the Project

RaktSeva (রক্তসেবা — Service of Blood) is a web-based Blood Bank & Donor Management System built with PHP and MySQL. It digitizes and streamlines blood donor registration, blood group searching, and query/contact management for Parul Sevashram Hospital.

The system offers two separate portals:

  • 🧑 User Portal — for donors and the public to register, search for blood, and contact the team
  • 🛡️ Admin Portal — for hospital staff to manage donors, queries, and page content


✨ Features

👤 User Side

Feature
🔐 User Registration & Secure Session Login
🩸 Register as a Blood Donor
🔍 Search Donors by Blood Group
🏥 Submit Blood Request (Need Blood)
📩 Contact Us / Send Queries
📊 Personal User Dashboard

🛡️ Admin Side

Feature
🔑 Secure Admin Login with Session Guard
📋 Dashboard — Live Donor & Query Stats
👥 Manage Donor List (Add / Delete)
💬 View & Manage User Queries
⏳ Pending Query Tracker
📝 CMS — Edit Page Content (Rich Text)
📞 Update Contact Information
🔒 Change Admin Password

🌐 General

📱 Responsive UI (Bootstrap 4.6)  |  🎠 Image Slider on Home  |  📰 Live News Ticker  |  🩺 Blood Group Education  |  🎨 Custom Red/Maroon Theme  |  ✏️ NicEdit Rich Text Editor



🛠 Tech Stack

Layer Technology
🔵 Backend Language PHP (MySQLi extension)
🟠 Database MySQL — blood_donation
🌐 Frontend HTML5, CSS3 (Vanilla), JavaScript
💜 CSS Framework Bootstrap 4.6
⚡ JavaScript Library jQuery 3.5.1
🎨 Icons Font Awesome 6
✏️ Rich Text Editor NicEdit.js
🖥️ Local Server XAMPP (Apache + MySQL)


📁 Project Structure

🩸 RaktSeva/
│
├── 📄 home.php                   ← Homepage: carousel, donors, blood groups
├── 📄 about_us.php               ← About Us page
├── 📄 why_donate_blood.php       ← Why Donate Blood
├── 📄 donate_blood.php           ← Donor registration form (public)
├── 📄 need_blood.php             ← Blood request / need blood
├── 📄 search_blood_group.php     ← Search donors by blood group
├── 📄 contact_us.php             ← Contact & Query form
├── 📄 user_register.php          ← User account registration
├── 📄 user_login.php             ← User login
├── 📄 user_dashboard.php         ← User profile & donor status
├── 📄 user_logout.php            ← Session logout
├── 📄 savedata.php               ← Donor form submission handler
├── 📄 conn.php                   ← DB connection (mysqli)
├── 📄 head.php                   ← Shared HTML head + navbar
├── 📄 footer.php                 ← Shared footer
├── 📄 slider.php                 ← Homepage slider component
├── 📄 ticker.php                 ← News ticker component
│
├── 📂 admin/                     ← Admin panel (session protected)
│   ├── 📄 login.php              ← Admin login
│   ├── 📄 dashboard.php          ← Live stats dashboard
│   ├── 📄 donor_list.php         ← Manage donors
│   ├── 📄 add_donor.php          ← Add donor manually
│   ├── 📄 delete.php             ← Delete donor
│   ├── 📄 query.php              ← All user queries
│   ├── 📄 pending_query.php      ← Pending queries
│   ├── 📄 delete_query.php       ← Delete query
│   ├── 📄 pages.php              ← CMS page list
│   ├── 📄 update_page_details.php← Save page content
│   ├── 📄 update_contact.php     ← Update contact info
│   ├── 📄 change_password.php    ← Change admin password
│   ├── 📄 logout.php             ← Admin logout
│   ├── 📄 session.php            ← Session guard
│   ├── 📄 sidebar.php            ← Admin sidebar
│   ├── 📄 header.php             ← Admin header
│   ├── 🎨 admin.css              ← Admin styles
│   └── 📜 nicedit.js             ← Rich text editor
│
├── 📂 css/
│   └── 🎨 style.css              ← Main frontend stylesheet
│
├── 📂 image/                     ← Project images & assets
│
├── 📂 sql/
│   └── 📄 blood_bank_database.sql← Full DB schema + seed data
│
└── 📄 how_to_run.txt             ← Step-by-step local setup guide


🚀 Getting Started

⚠️ This is a PHP + MySQL project. No Node.js or npm needed. Just XAMPP!


Step 1 — Download & Install XAMPP

After installing, open XAMPP Control Panel → Start Apache + MySQL ✅


Step 2 — Copy Project to htdocs

📁 C:\xampp\htdocs\RaktSeva\

Step 3 — Import the Database

1. Open  →  http://localhost/phpmyadmin
2. Click "New"  →  Name it: blood_donation  →  Create
3. Select the database  →  Click "Import" tab
4. Choose file  →  RaktSeva\sql\blood_bank_database.sql
5. Click "Import" ✅

Step 4 — Open in Browser 🎉

http://localhost/RaktSeva/home.php


🗄️ Database Tables

Table Description
donor_details All registered blood donors
admin_info Admin login credentials
blood Blood groups — A+, A−, B+, B−, O+, O−, AB+, AB−
pages CMS content (About, Why Donate, Blood Tips, etc.)
contact_info Site contact details
contact_query User-submitted queries / messages
query_stat Query status — Read / Pending


🧪 Demo Login Credentials

⚠️ For testing only. Change credentials before deploying to production.

🎭 Role 👤 Username / Email 🔑 Password 🔗 Login URL
🛡️ Admin admin admin /admin/login.php
👤 User Shuvo@gmail.com password /user_login.php

💡 New users can register at /user_register.php — passwords are hashed with PHP password_hash().



📖 How to Use

👤 As a User

  1. Go to http://localhost/RaktSeva/home.php
  2. Register at /user_register.php
  3. Login at /user_login.php
  4. Donate Blood → /donate_blood.php
  5. Need Blood → /need_blood.php
  6. Contact → /contact_us.php

🛡️ As an Admin

  1. Login at /admin/login.php
  2. Dashboard → view live stats
  3. Donors → manage donor records
  4. Queries → read & manage messages
  5. Pages → edit content via rich editor
  6. Settings → update contact / password


🗺️ Roadmap

✅Admin Login with Session Protection
✅User Registration & Login (Password Hashed)
✅Personal User Dashboard
✅Public Donor Registration Form
✅Admin Donor Management (Add / Delete)
✅Search Donors by Blood Group
✅Contact & Query System (Read / Pending)
✅CMS — Admin-Editable Page Content
✅Responsive UI with Bootstrap 4.6
🔜Email Notifications for Query Replies
🔜SMS Alerts for Blood Requests
🔜Blood Inventory / Stock Tracking
🔜Printable Donor Cards


🤝 Contributing

# 1. Fork this repository
# 2. Create your feature branch
git checkout -b feature/AmazingFeature

# 3. Commit your changes
git commit -m "Add AmazingFeature"

# 4. Push to the branch
git push origin feature/AmazingFeature

# 5. Open a Pull Request 🎉


📄 License

Distributed under the MIT License. See LICENSE for more details.



👨‍💻 Developed By

Engr Shuvo Das

     

       


🧑‍💻 Developed with ❤️ and dedication by Engr Shuvo Das


About

An initiative under Parul Sevashram Hospital — connecting donors and patients for a faster, smarter blood donation system.

Resources

Stars

64 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages