forked from mentorchita/Blood-Bank-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
80 lines (72 loc) · 2.72 KB
/
login.php
1
2
3
4
5
6
7
8
9
10
11
12
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
session_start();
if (isset($_SESSION['hid'])) {
header("location:bloodrequest.php");
}elseif (isset($_SESSION['rid'])) {
header("location:sentrequest.php");
}else{
?>
<!DOCTYPE html>
<html>
<head>
<style>
body{
background: url(image/RBC11.jpg) no-repeat center;
background-size: cover;
min-height: 0;
height: 650px;
}
.login-form{
width: calc(100% - 20px);
max-height: 650px;
max-width: 450px;
background-color: white;
}
</style>
</head>
<?php $title="Bloodbank | Login"; ?>
<?php require 'head.php'; ?>
<body>
<?php require 'header.php'; ?>
<div class="container cont">
<?php require 'message.php'; ?>
<div class="row justify-content-center">
<div class="col-lg-4 col-md-5 col-sm-6 col-xs-7 mb-5">
<div class="card rounded">
<ul class="nav nav-tabs justify-content-center bg-light" style="padding: 20px;">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#hospitals">Hospitals</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#receivers">User</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane container active" id="hospitals">
<form action="file/hospitalLogin.php" class="login-form" method="post">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Hospital Email</label>
<input type="email" name="hemail" placeholder="Hospital Email" class="form-control mb-4">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Hospital Password</label>
<input type="password" name="hpassword" placeholder="Hospital Password" class="form-control mb-4">
<input type="submit" name="hlogin" value="Login" class="btn btn-primary btn-block mb-4">
</form>
</div>
<div class="tab-pane container fade" id="receivers">
<form action="file/receiverLogin.php" class="login-form" method="post">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">User Email</label>
<input type="email" name="remail" placeholder="User Email" class="form-control mb-4">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">User Password</label>
<input type="password" name="rpassword" placeholder="User Password" class="form-control mb-4">
<input type="submit" name="rlogin" value="Login" class="btn btn-primary btn-block mb-4">
</form>
</div>
</div>
<a href="register.php" class="text-center mb-4" title="Click here">Don't have account?</a>
</div>
</div>
</div>
</div>
<?php require 'footer.php' ?>
</body>
</html>
<?php } ?>