A Modern Blood Bank Management System | Parul Sevashram Hospital Initiative
Saving lives, one donation at a time. ❤️
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
|
|
||||||||||||||||||||||||||||||||
|
📱 Responsive UI (Bootstrap 4.6) | 🎠 Image Slider on Home | 📰 Live News Ticker | 🩺 Blood Group Education | 🎨 Custom Red/Maroon Theme | ✏️ NicEdit Rich Text Editor |
|||||||||||||||||||||||||||||||||
| 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) |
🩸 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
⚠️ 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
| 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 |
⚠️ 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 PHPpassword_hash().
|
|
| ✅ | 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 |
# 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 🎉Distributed under the MIT License. See LICENSE for more details.