└── bloodbank ├── image ├── bg.png ├── user.png ├── covid19.png ├── favicon.jpg ├── hospital.png ├── hospital1.jpg └── hospital3.png ├── logout.php ├── file ├── connection.php ├── delete.php ├── cancel.php ├── accept.php ├── reject.php ├── receiverLogin.php ├── hospitalLogin.php ├── infoAdd.php ├── hospitalReg.php ├── request.php ├── receiverReg.php └── updateprofile.php ├── footer.php ├── README.md ├── message.php ├── head.php ├── css └── style.css ├── sentrequest.php ├── hprofile.php ├── bloodrequest.php ├── login.php ├── header.php ├── rprofile.php ├── bloodinfo.php ├── register.php ├── abs.php ├── sql └── bloodbank.sql └── index.php /bloodbank/image/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/bg.png -------------------------------------------------------------------------------- /bloodbank/image/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/user.png -------------------------------------------------------------------------------- /bloodbank/image/covid19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/covid19.png -------------------------------------------------------------------------------- /bloodbank/image/favicon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/favicon.jpg -------------------------------------------------------------------------------- /bloodbank/image/hospital.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/hospital.png -------------------------------------------------------------------------------- /bloodbank/image/hospital1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/hospital1.jpg -------------------------------------------------------------------------------- /bloodbank/image/hospital3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madhumitha1702/Blood-Perfusion-System/HEAD/bloodbank/image/hospital3.png -------------------------------------------------------------------------------- /bloodbank/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/file/connection.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/footer.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/README.md: -------------------------------------------------------------------------------- 1 | # bloodbank 2 | This project was created for Receivers and Hospitals where a Hospital user can add blood sample to their blood bank and Receiver users can request for the blood sample. Skills has used like HTML, CSS, Bootstrap, JavaScript as a frontend, PHP as a backend and MySQL for the database. 3 | -------------------------------------------------------------------------------- /bloodbank/file/delete.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/file/cancel.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/file/accept.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/file/reject.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/file/receiverLogin.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/file/hospitalLogin.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/message.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 | 14 | -------------------------------------------------------------------------------- /bloodbank/file/infoAdd.php: -------------------------------------------------------------------------------- 1 | 0){ 14 | $error= 'You have already added this blood sample.'; 15 | header( "location:../bloodinfo.php?error=".$error ); 16 | }else{ 17 | $sql = "INSERT INTO bloodinfo (bg, hid) VALUES ('$bg', '$hid')"; 18 | if ($conn->query($sql) === TRUE) { 19 | $msg = "You have added record successfully."; 20 | header( "location:../bloodinfo.php?msg=".$msg ); 21 | } else { 22 | $error = "Error: " . $sql . "
" . $conn->error; 23 | header( "location:../bloodinfo.php?error=".$error ); 24 | } 25 | $conn->close(); 26 | } 27 | } 28 | } 29 | ?> -------------------------------------------------------------------------------- /bloodbank/file/hospitalReg.php: -------------------------------------------------------------------------------- 1 | 0){ 11 | $error= 'Email Already exists. Please try another Email.'; 12 | header( "location:../register.php?error=".$error ); 13 | }else{ 14 | $sql = "INSERT INTO hospitals (hname, hemail, hpassword, hphone, hcity) 15 | VALUES ('$hname','$hemail', '$hpassword', '$hphone', '$hcity')"; 16 | if ($conn->query($sql) === TRUE) { 17 | $msg = 'You have successfully registered. Please, login to continue.'; 18 | header( "location:../login.php?msg=".$msg ); 19 | } else { 20 | $error = "Error: " . $sql . "
" . $conn->error; 21 | header( "location:../register.php?error=".$error ); 22 | } 23 | $conn->close(); 24 | } 25 | } 26 | ?> -------------------------------------------------------------------------------- /bloodbank/file/request.php: -------------------------------------------------------------------------------- 1 | 0){ 15 | $error= 'You have already requested for blood sample from this Hospital.'; 16 | header( "location:../abs.php?error=".$error ); 17 | }else{ 18 | $sql="INSERT INTO bloodrequest (bg, hid, rid) VALUES ('$bg', '$hid', '$rid')"; 19 | if ($conn->query($sql) === TRUE) { 20 | $msg = 'You have requested for blood group '.$bg.'. Our team will contact you soon.'; 21 | header( "location:../sentrequest.php?msg=".$msg); 22 | } else { 23 | $error = "Error: " . $sql . "
" . $conn->error; 24 | header( "location:../abs.php?error=".$error ); 25 | } 26 | $conn->close(); 27 | } 28 | } 29 | } 30 | ?> -------------------------------------------------------------------------------- /bloodbank/file/receiverReg.php: -------------------------------------------------------------------------------- 1 | 0){ 12 | $error= 'Email Already exists. Please try another Email.'; 13 | header( "location:../register.php?error=".$error ); 14 | }else{ 15 | $sql = "INSERT INTO receivers (rname, remail, rpassword, rphone, rcity, rbg) 16 | VALUES ('$rname','$remail', '$rpassword', '$rphone', '$rcity', '$rbg')"; 17 | if ($conn->query($sql) === TRUE) { 18 | $msg = "You have successfully registered. Please, login to continue."; 19 | header( "location:../login.php?msg=".$msg); 20 | } else { 21 | $error = "Error: " . $sql . "
" . $conn->error; 22 | header( "location:../register.php?error=".$error ); 23 | } 24 | $conn->close(); 25 | } 26 | } 27 | ?> -------------------------------------------------------------------------------- /bloodbank/head.php: -------------------------------------------------------------------------------- 1 | 2 | <?php echo $title ?> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /bloodbank/css/style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | 3 | } 4 | .cont{ 5 | padding-top: 40px; 6 | text-align: justify; 7 | font-size: 1em; 8 | } 9 | 10 | .fas{ 11 | color: #5851DB; 12 | } 13 | 14 | .card ,nav, .footer,tr,video{ 15 | border-radius: 3px; 16 | transition: all 200ms ease-out; 17 | box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.2); 18 | } 19 | 20 | tr,th,td{ 21 | border:0.1px solid silver; 22 | text-align: center; 23 | } 24 | 25 | .nav-item{ 26 | margin-left: 10px; 27 | } 28 | 29 | .navbar-brand{ 30 | text-shadow: 1px 1px 2px red, 0 0 50px black, 0 0 5px white; 31 | font-weight: bold; 32 | font-size: 1.5em; 33 | } 34 | 35 | .title{ 36 | font-weight: bold; 37 | font-size: 1.7em; 38 | text-transform: capitalize; 39 | text-align: center; 40 | } 41 | 42 | .brand{ 43 | text-shadow: 1px 1px 2px red, 0 0 50px black, 0 0 5px white; 44 | } 45 | 46 | .rounded-circle{ 47 | margin-top: -2.5px; 48 | } 49 | 50 | .card-header{ 51 | font-weight: bolder; 52 | font-size: 1.5em; 53 | } 54 | 55 | .dark-mode { 56 | background-color: black; 57 | color: black; 58 | } 59 | 60 | form{ 61 | padding-top: 20px; 62 | } 63 | 64 | a:link{ 65 | text-decoration: none; 66 | } 67 | 68 | .footer{ 69 | padding: 14px; 70 | } 71 | 72 | .alert{ 73 | border:1px solid #5cb85c; 74 | border-left: 5px solid #5cb85c; 75 | border-right: 5px solid #5cb85c; 76 | } 77 | 78 | .error{ 79 | border:1px solid red; 80 | border-left: 5px solid red; 81 | border-right: 5px solid red; 82 | } 83 | 84 | -------------------------------------------------------------------------------- /bloodbank/file/updateprofile.php: -------------------------------------------------------------------------------- 1 | query($update) === TRUE) { 15 | $msg = "Your profile is updated successfully."; 16 | header( "location:../rprofile.php?msg=".$msg); 17 | } else { 18 | $error = "Error: " . $sql . "
" . $conn->error; 19 | header( "location:../rprofile.php?error=".$error ); 20 | } 21 | $conn->close(); 22 | } 23 | 24 | 25 | }elseif (isset($_SESSION['hid'])) { 26 | if(isset($_POST['update'])){ 27 | $id=$_SESSION['hid']; 28 | $hname = $_POST['hname']; 29 | $hemail = $_POST['hemail']; 30 | $hphone = $_POST['hphone']; 31 | $hcity = $_POST['hcity']; 32 | $hpassword = $_POST['hpassword']; 33 | $update = "UPDATE hospitals SET hname='$hname', hemail='$hemail', hpassword='$hpassword', hphone='$hphone', hcity='$hcity' WHERE id='$id'"; 34 | if ($conn->query($update) === TRUE) { 35 | $msg= "Your profile is updated successfully."; 36 | header( "location:../hprofile.php?msg=".$msg); 37 | } else { 38 | $error= "Error: " . $sql . "
" . $conn->error; 39 | header( "location:../hprofile.php?error=".$error); 40 | } 41 | $conn->close(); 42 | } 43 | }else{ 44 | header("location:../login.php"); 45 | } 46 | ?> -------------------------------------------------------------------------------- /bloodbank/sentrequest.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 | Total ".$row." "; 42 | }else echo 'You have not requested yet. '; 43 | } 44 | ?> 45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 |
Sent requests
#NameEmailCityPhoneBlood GroupStatusAction
58 | 60 | Cancel 61 | 62 |
66 |
67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /bloodbank/hprofile.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 |
30 |
31 |
32 |
33 | profile 34 |
35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
49 |
50 | Cancel
51 |
52 |
53 |
54 |
55 | 56 | 57 | -------------------------------------------------------------------------------- /bloodbank/bloodrequest.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 | Total ".$row." "; 42 | }else echo 'No one has requested yet. '; 43 | } 44 | ?> 45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 62 | 67 | 68 | 69 | 70 |
Blood requests
#NameEmailCityPhoneBlood GroupStatusAction
Accepted 59 | Accept 60 | 61 | Rejected 64 | Reject 65 | 66 |
71 |
72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /bloodbank/login.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 | 23 |
24 | 32 | 33 |
34 |
35 |
36 | 37 | 38 | 39 | 40 | 41 |
42 |
43 | 44 | 45 |
46 |
47 | 48 | 49 | 50 | 51 | 52 |
53 |
54 | 55 |
56 | Don't have account? 57 |
58 |
59 |
60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /bloodbank/header.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bloodbank/rprofile.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 |
30 |
31 |
32 |
33 | profile 34 |
35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 59 | 60 |
61 |
62 | Cancel
63 |
64 |
65 |
66 |
67 | 68 | 69 | -------------------------------------------------------------------------------- /bloodbank/bloodinfo.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 |
22 | 23 |
24 |
25 |
Add blood group available in your hospital
26 |
27 |
28 |
29 |
30 | If you have a blood sample tested by your doctor’s, nurse, or trained phlebotomist , at a pathology collection centre, clinic or hospital. Blood samples are most commonly taken from the inside of the elbow where the veins are usually closer to the surface. If before the needle is inserted, the area had been cleaned with an antiseptic cloth and blood sample is transferred into tubes containing the correct preservatives then add your blood group available in your hospital to your blood bank.

31 |
32 | Agree

33 |
44 |
45 | Cancel 46 |
47 |
48 |
49 |
50 | 51 | 57 |
58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | Total ".$row." "; 71 | }else echo 'Nothing to show.'; 72 | } 73 | ?> 74 |
75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 |
Blood Bank
#Blood SamplesAction
Delete
84 |
85 | 86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /bloodbank/register.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 31 | 32 |
33 | 34 |
35 | 36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 |
44 | 45 |
46 | 47 | 48 |
49 | 50 |
51 | 52 | 63 | 64 | 65 | 66 | 67 | 68 |
69 | 70 |
71 |
72 | Already have account? 73 |
74 |
75 |
76 |
77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /bloodbank/abs.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 |
24 |
25 | 26 |
37 | Reset 38 | 39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
55 | Total ".$row." "; 59 | }else echo 'Nothing to show.'; 60 | } 61 | ?> 62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 |
Available Blood Samples
#Hospital NameHospital CityHospital EmailHospital PhoneBlood GroupAction
Request Sample
93 |
94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /bloodbank/sql/bloodbank.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.0.1 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: localhost 6 | -- Generation Time: Oct 24, 2020 at 08:29 PM 7 | -- Server version: 10.4.11-MariaDB 8 | -- PHP Version: 7.4.3 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Database: `bloodbank` 23 | -- 24 | 25 | -- -------------------------------------------------------- 26 | 27 | -- 28 | -- Table structure for table `bloodinfo` 29 | -- 30 | 31 | CREATE TABLE `bloodinfo` ( 32 | `bid` int(11) NOT NULL, 33 | `hid` int(11) NOT NULL, 34 | `bg` varchar(10) NOT NULL 35 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 36 | 37 | -- 38 | -- Dumping data for table `bloodinfo` 39 | -- 40 | 41 | INSERT INTO `bloodinfo` (`bid`, `hid`, `bg`) VALUES 42 | (1, 1, 'B+'), 43 | (2, 2, 'A+'); 44 | 45 | -- -------------------------------------------------------- 46 | 47 | -- 48 | -- Table structure for table `bloodrequest` 49 | -- 50 | 51 | CREATE TABLE `bloodrequest` ( 52 | `reqid` int(11) NOT NULL, 53 | `hid` int(11) NOT NULL, 54 | `rid` int(11) NOT NULL, 55 | `bg` varchar(11) NOT NULL, 56 | `status` varchar(100) NOT NULL DEFAULT 'Pending' 57 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 58 | 59 | -- 60 | -- Dumping data for table `bloodrequest` 61 | -- 62 | 63 | INSERT INTO `bloodrequest` (`reqid`, `hid`, `rid`, `bg`, `status`) VALUES 64 | (1, 1, 1, 'B+', 'Pending'); 65 | 66 | -- -------------------------------------------------------- 67 | 68 | -- 69 | -- Table structure for table `hospitals` 70 | -- 71 | 72 | CREATE TABLE `hospitals` ( 73 | `id` int(11) NOT NULL, 74 | `hname` varchar(100) NOT NULL, 75 | `hemail` varchar(100) NOT NULL, 76 | `hpassword` varchar(100) NOT NULL, 77 | `hphone` varchar(100) NOT NULL, 78 | `hcity` varchar(100) NOT NULL 79 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 80 | 81 | -- 82 | -- Dumping data for table `hospitals` 83 | -- 84 | 85 | INSERT INTO `hospitals` (`id`, `hname`, `hemail`, `hpassword`, `hphone`, `hcity`) VALUES 86 | (1, 'Gandhi hospital', 'gandhi@gmail.com', 'gandhi', '7865376358', 'Delhi'), 87 | (2, 'Unknown hospital', 'unknown@gmail.com', 'unknown', '9876543267', 'unknown'); 88 | 89 | -- -------------------------------------------------------- 90 | 91 | -- 92 | -- Table structure for table `receivers` 93 | -- 94 | 95 | CREATE TABLE `receivers` ( 96 | `id` int(11) NOT NULL, 97 | `rname` varchar(100) NOT NULL, 98 | `remail` varchar(100) NOT NULL, 99 | `rpassword` varchar(100) NOT NULL, 100 | `rphone` varchar(100) NOT NULL, 101 | `rbg` varchar(10) NOT NULL, 102 | `rcity` varchar(100) NOT NULL 103 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 104 | 105 | -- 106 | -- Dumping data for table `receivers` 107 | -- 108 | 109 | INSERT INTO `receivers` (`id`, `rname`, `remail`, `rpassword`, `rphone`, `rbg`, `rcity`) VALUES 110 | (1, 'test', 'test@gmail.com', 'test', '8875643456', 'A+', 'lucknow'), 111 | (2, 'xyz', 'xyz@gmail.com', 'xyz', '8875643456', 'AB+', 'Punjab'); 112 | 113 | -- 114 | -- Indexes for dumped tables 115 | -- 116 | 117 | -- 118 | -- Indexes for table `bloodinfo` 119 | -- 120 | ALTER TABLE `bloodinfo` 121 | ADD PRIMARY KEY (`bid`), 122 | ADD KEY `hid` (`hid`); 123 | 124 | -- 125 | -- Indexes for table `bloodrequest` 126 | -- 127 | ALTER TABLE `bloodrequest` 128 | ADD PRIMARY KEY (`reqid`), 129 | ADD KEY `hid` (`hid`); 130 | 131 | -- 132 | -- Indexes for table `hospitals` 133 | -- 134 | ALTER TABLE `hospitals` 135 | ADD PRIMARY KEY (`id`), 136 | ADD UNIQUE KEY `hemail` (`hemail`); 137 | 138 | -- 139 | -- Indexes for table `receivers` 140 | -- 141 | ALTER TABLE `receivers` 142 | ADD PRIMARY KEY (`id`), 143 | ADD UNIQUE KEY `remail` (`remail`); 144 | 145 | -- 146 | -- AUTO_INCREMENT for dumped tables 147 | -- 148 | 149 | -- 150 | -- AUTO_INCREMENT for table `bloodinfo` 151 | -- 152 | ALTER TABLE `bloodinfo` 153 | MODIFY `bid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 154 | 155 | -- 156 | -- AUTO_INCREMENT for table `bloodrequest` 157 | -- 158 | ALTER TABLE `bloodrequest` 159 | MODIFY `reqid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 160 | 161 | -- 162 | -- AUTO_INCREMENT for table `hospitals` 163 | -- 164 | ALTER TABLE `hospitals` 165 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 166 | 167 | -- 168 | -- AUTO_INCREMENT for table `receivers` 169 | -- 170 | ALTER TABLE `receivers` 171 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 172 | 173 | -- 174 | -- Constraints for dumped tables 175 | -- 176 | 177 | -- 178 | -- Constraints for table `bloodinfo` 179 | -- 180 | ALTER TABLE `bloodinfo` 181 | ADD CONSTRAINT `bloodinfo_ibfk_1` FOREIGN KEY (`hid`) REFERENCES `hospitals` (`id`); 182 | COMMIT; 183 | 184 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 185 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 186 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 187 | -------------------------------------------------------------------------------- /bloodbank/index.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 |
17 |
18 |
19 | 20 |
21 |
22 | 23 |
24 |
25 |
26 |
27 |
A+
28 |
29 | If you are A+: You can give blood to A+ and AB+. You can receive blood from A+, A-, O+ and O- 30 |
31 |
32 |
33 |
34 |
35 |
A-
36 |
37 | If you are A-: You can give blood to A-, A+, AB- and AB+. You can receive blood from A- and O-. 38 |
39 |
40 |
41 |
42 |
43 |
B+
44 |
45 | You can give blood to A+ and AB+. You can receive blood from A+, A-, O+ and O-. 46 |
47 |
48 |
49 |
50 |
51 |
B-
52 |
53 | If you are B-: You can give blood to B-, B+, AB+ and AB-, You can receive blood from B- and O-.You can give blood to B+ and AB+. 54 |
55 |
56 |
57 |
58 |
59 |
AB+
60 |
61 | People with AB+ blood can receive red blood cells from any blood type. This means that demand for AB+ can donate with AB only. 62 |
63 |
64 |
65 |
66 |
67 |
AB-
68 |
69 | AB- patients can receive red blood cells from all negative blood types. 70 | AB- can give red blood cells to both AB- and AB+ blood types. 71 |
72 |
73 |
74 |
75 |
76 |
O+
77 |
78 | Blood O+ can donate to A+, B+, AB+ and O+ Blood 79 | Group O can donate red blood cells to anybody. It's the universal donor. 80 |
81 |
82 |
83 |
84 |
85 |
O-
86 |
87 | O- can donate to A+, A-, B+, B-, AB+, AB-, O+ and O- Blood 88 | People with O negative blood can only receive red cell donations from O negative donors. 89 |
90 |
91 |
92 |
93 |
94 |
Admin contact
95 | 99 |
100 |
101 |
102 |
103 | 104 |
105 | 106 |
107 |
108 | 109 |
110 |
111 |
112 |
113 | 114 |
115 |
116 |
117 |
Health tips
118 |
119 |
Eat a healthy diet
120 |
Eat a combination of different foods, including fruit, vegetables, legumes, nuts and whole grains. Adults should eat at least five portions (400g) of fruit and vegetables per day. You can improve your intake of fruits and vegetables by always including veggies in your meal; eating fresh fruit and vegetables as snacks; eating a variety of fruits and vegetables; and eating them in season. By eating healthy, you will reduce your risk of malnutrition and noncommunicable diseases (NCDs) such as diabetes, heart disease, stroke and cancer.
121 |
Consume less salt and sugar
122 |
On the other hand, consuming excessive amounts of sugars increases the risk of tooth decay and unhealthy weight gain. In both adults and children, the intake of free sugars should be reduced to less than 10% of total energy intake. This is equivalent to 50g or about 12 teaspoons for an adult. WHO recommends consuming less than 5% of total energy intake for additional health benefits. You can reduce your sugar intake by limiting the consumption of sugary snacks, candies and sugar-sweetened beverages.
123 |
Be active
124 |
Physical activity is defined as any bodily movement produced by skeletal muscles that requires energy expenditure. This includes exercise and activities undertaken while working, playing, carrying out household chores, travelling, and engaging in recreational pursuits. The amount of physical activity you need depends on your age group but adults aged 18-64 years should do at least 150 minutes of moderate-intensity physical activity throughout the week. Increase moderate-intensity physical activity to 300 minutes per week for additional health benefits.
125 |
Don’t smoke
126 |
Smoking tobacco causes NCDs such as lung disease, heart disease and stroke. Tobacco kills not only the direct smokers but even non-smokers through second-hand exposure. Currently, there are around 15.9 million Filipino adults who smoke tobacco but 7 in 10 smokers are interested or plan to quit. 127 | If you are currently a smoker, it’s not too late to quit. Once you do, you will experience immediate and long-term health benefits. If you are not a smoker, that’s great! Do not start smoking and fight for your right to breathe tobacco-smoke-free air.
128 |
Drink only safe water
129 |
Get tested
130 |
Follow traffic laws
131 |
Talk to someone you trust if you're feeling down
132 |
Clean your hands properly
133 |
Have regular check-ups
134 | Visit here to get more health tips. 135 | World Health Organisation 136 |
137 |
138 |
139 |
140 |
141 | 142 | 143 | 144 | 145 | --------------------------------------------------------------------------------