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 27
/
rprofile.php
83 lines (79 loc) · 3.11 KB
/
rprofile.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
<?php
require 'file/connection.php';
session_start();
if(!isset($_SESSION['rid']))
{
header('location:login.php');
}
else {
if(isset($_SESSION['rid'])){
$id=$_SESSION['rid'];
$sql = "SELECT * FROM receivers WHERE id='$id'";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_array($result);
}
}
?>
<!DOCTYPE html>
<html>
<?php $title="Bloodbank | Receiver Profile"; ?>
<?php require 'head.php';?>
<style>
body{
background: url(jastimage/bb8.jpg) no-repeat center;
background-size: cover;
min-height: 0;
height: 800px;
}
.login-form{
width: calc(100% - 20px);
max-height: 650px;
max-width: 450px;
background-color: white;
}
</style>
<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-6 col-sm-8 mb-5">
<div class="card">
<div class="media justify-content-center mt-1">
<img src="image/user.png" alt="profile" class="rounded-circle" width="60" height="60">
</div>
<div class="card-body">
<form action="file/updateprofile.php" method="post">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Receiver Name</label>
<input type="text" name="rname" value="<?php echo $row['rname']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Receiver Email</label>
<input type="email" name="remail" value="<?php echo $row['remail']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Receiver Password</label>
<input type="text" name="rpassword" value="<?php echo $row['rpassword']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Receiver Phone Number</label>
<input type="text" name="rphone" value="<?php echo $row['rphone']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Receiver City</label>
<input type="text" name="rcity" value="<?php echo $row['rcity']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold" class="text-muted font-weight-bold">Receiver Blood Group</label>
<select class="form-control mb-3" name="bg" required>
<option selected><?php echo $row['rbg']; ?></option>
<option>A-</option>
<option>A+</option>
<option>B-</option>
<option>B+</option>
<option>AB-</option>
<option>AB+</option>
<option>O-</option>
<option>O+</option>
</select>
<input type="submit" name="update" class="btn btn-block btn-primary" value="Update">
</form>
</div>
<a href="Userpage.html" class="text-center">Cancel</a><br>
</div>
</div>
</div>
</div>
<?php require 'footer.php'; ?>
</body>
</html>