This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
register.php
96 lines (85 loc) · 3.8 KB
/
register.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
session_start();
if (isset($_SESSION['hid'])) {
header("location:bloodrequest.php");
}elseif (isset($_SESSION['rid'])) {
header("location:sentrequest.php");
}else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body{
background: url(jastimage/bb1.jpg) no-repeat center;
background-size: cover;
min-height: 0;
height: 530px;
}
.login-form{
width: calc(100% - 20px);
max-height: 650px;
max-width: 450px;
background-color: white;
}
</style>
</head>
<?php $title="Bloodbank | Register"; ?>
<?php require 'head.php'; ?>
<body>
<?php include '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/hospitalReg.php" method="post" enctype="multipart/form-data">
<input type="text" name="hname" placeholder="Hospital Name" class="form-control mb-3" required>
<input type="text" name="hcity" placeholder="Hospital City" class="form-control mb-3" required>
<input type="tel" name="hphone" placeholder="Hospital Phone Number" class="form-control mb-3" required pattern="[0,6-9]{1}[0-9]{9,11}" title="Password must have start from 0,6,7,8 or 9 and must have 10 to 12 digit">
<input type="email" name="hemail" placeholder="Hospital Email" class="form-control mb-3" required>
<input type="password" name="hpassword" placeholder="Hospital Password" class="form-control mb-3" required minlength="6">
<input type="submit" name="hregister" value="Register" class="btn btn-primary btn-block mb-4">
</form>
</div>
<div class="tab-pane container fade" id="receivers">
<form action="file/receiverReg.php" method="post" enctype="multipart/form-data">
<input type="text" name="rname" placeholder="User Name" class="form-control mb-3" required>
<select name="rbg" class="form-control mb-3" required>
<option disabled="" selected="">Blood Group</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
</select>
<input type="text" name="rcity" placeholder="User City" class="form-control mb-3" required>
<input type="tel" name="rphone" placeholder="User Phone Number" class="form-control mb-3" required pattern="[0,6-9]{1}[0-9]{9,11}" title="Password must have start from 0,6,7,8 or 9 and must have 10 to 12 digit">
<input type="email" name="remail" placeholder="User Email" class="form-control mb-3" required>
<input type="password" name="rpassword" placeholder="User Password" class="form-control mb-3" required minlength="6">
<input type="submit" name="rregister" value="Register" class="btn btn-primary btn-block mb-4">
</form>
</div>
</div>
<a href="login.php" class="text-center mb-4" title="Click here">Already have account?</a>
</div>
</div>
</div>
</div>
<?php require 'footer.php' ?>
</body>
</html>
<?php } ?>