-
Notifications
You must be signed in to change notification settings - Fork 0
/
display$.php
157 lines (133 loc) · 4.42 KB
/
display$.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
include 'config.php';
$id = $_GET['updateid'];
$sql = "SELECT * FROM `assistantdetails` WHERE id=$id";
$result = mysqli_query($con, $sql);
$row = mysqli_fetch_assoc($result);
$id = $row['id'];
$name = $row['name'];
$email = $row['email'];
$mobile = $row['mobile'];
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$email = $_POST['email'];
$mobile = $_POST['mobile'];
$sql = "UPDATE `assistantdetails` SET name='$name', email='$email', mobile='$mobile' WHERE id=$id";
$result = mysqli_query($con, $sql);
if ($result) {
header('location: add.php');
exit();
} else {
die(mysqli_error($con));
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Manage Staff</title>
<link rel="stylesheet" type="text/css" href="add.css">
</head>
<body>
<!-- header part -->
<header>
<section class="logoschbar">
<a href="https://www.wix.com/blog/best-fonts-for-logos#viewer-adtuf" class="Logo">HelthDoc</a>
<dev class="buttonset">
<div>
<button type="button" onclick="location.href=''" class="userregiste">Log out</button>
</div>
</dev>
</section>
<section class="treenavbar">
<a href="">Home</a>
</section>
</header>
<!-- finish -->
<!-- slide bar -->
<div class="sidebar">
<div class="profile">
<img src="\Website1\images\admin_girl.png">
<br>
<br>
<h2>Admin</h2>
<h3>Himeshika De Silva</h3>
<br>
<br>
<br>
</div>
<ul>
<li>
<center><a href="\Website1\Administrator\dashboard.php">Dashboard</a></center>
</li>
<br>
<br>
<br>
<li>
<center><a href="#">Staff Details</a></center>
</li>
<br>
</ul>
<div class="dropdown">
<ul> <button><a href="\Website1\Slide bar\Staff\Pharmacist\manage.php">Pharmacist</a></button></ul>
<div class="dropdown-options">
<a href="\Website1\Slide bar\Staff\Pharmacist\manage.php">Add Pharmacist</a><br>
<a href="\Website1\Slide bar\Staff\Pharmacist\submit.php">Update Pharmacist</a>
</div>
</div>
<br>
<br>
<br>
<div class="dropdown">
<ul> <button><a href="#">Assistant Pharmacist</a></button></ul>
<div class="dropdown-options">
<a href="#">Add Assistant Pharmacist</a><br>
<a href="\Website1\Slide bar\Staff\AssistantPharmacist\display$.php">Update Assistant Pharmacist</a>
</div>
</div>
<br>
<br>
<br>
<br>
<div class="dropdown">
<ul> <button><a href="\Website1\Slide bar\Staff\DeliveryPerson\newdperson.php">Delivery Person</a></button>
</ul>
<div class="dropdown-options">
<a href="\Website1\Slide bar\Staff\DeliveryPerson\newdperson.php">Add Delivery Person</a><br>
<a href="\Website1\Slide bar\Staff\DeliveryPerson\display#.php">Update Delivery Person</a>
</div>
</div>
<br>
<br>
<br>
<br>
</ul>
<!--main-content-start-->
</div class="Customer-details">
<div class="main-form">
<h2>Manage Users</h2>
<form method="post" class="FRM">
<p>Update Assistant Pharmacist Details</p>
<br>
<label for="name">Name :</label><br>
<input type="text" name="name" placeholder="*Enter name" class="nam" required>
<br>
<label for="email">Email :</label><br>
<input type="text" name="email" placeholder="*Enter Email address" class="Mil" maxlength="25" minlength="15"
required>
<br>
<label for="mobile">Mobile :</label><br>
<input type="text" name="mobile" placeholder="*Enter Phone Number" class="con" maxlength="10" minlength="10"
required>
<br>
<br>
<br>
<div class="buttonset">
<button type="submit" name="submit" class="userregiste">Submit </button>
<button type="reset" name="reset" class="userregiste">Reset </button>
</div>
</form>
</div>
</div>
</body>
</html>