forked from Chandana047/Blood-Bank-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 14
/
hprofile.php
71 lines (67 loc) · 2.3 KB
/
hprofile.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
<?php
require 'file/connection.php';
session_start();
if(!isset($_SESSION['hid']))
{
header('location:login.php');
}
else {
if(isset($_SESSION['hid'])){
$id=$_SESSION['hid'];
$sql = "SELECT * FROM hospitals WHERE id='$id'";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_array($result);
}
}
?>
<!DOCTYPE html>
<html>
<?php $title="Bloodbank | My Profile"; ?>
<?php require 'head.php';?>
<style>
body{
background: url(jastimage/bb18.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>
<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-4 col-sm-6 mb-5">
<div class="card">
<div class="media justify-content-center mt-1">
<img src="image/hospital.png" alt="profile" class="rounded-circle" width="70" 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">Hospital Name</label>
<input type="text" name="hname" value="<?php echo $row['hname']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold">Hospital Email</label>
<input type="email" name="hemail" value="<?php echo $row['hemail']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold">Hospital Password</label>
<input type="text" name="hpassword" value="<?php echo $row['hpassword']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold">Hospital Phone Number</label>
<input type="text" name="hphone" value="<?php echo $row['hphone']; ?>" class="form-control mb-3">
<label class="text-muted font-weight-bold">Hospital City</label>
<input type="text" name="hcity" value="<?php echo $row['hcity']; ?>" class="form-control mb-3">
<input type="submit" name="update" class="btn btn-block btn-primary" value="Update">
</form>
</div>
<a href="hospitalpage.html" class="text-center">Cancel</a><br>
</div>
</div>
</div>
</div>
<?php require 'footer.php'; ?>
</body>
</html>