-
Notifications
You must be signed in to change notification settings - Fork 0
/
newdperson.php
140 lines (121 loc) · 3.95 KB
/
newdperson.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
<?php
include 'config.php';
if(isset($_POST['submit'])){
$name=$_POST['name'];
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$licenceno=$_POST['licenceno'];
$sql="insert into `dperson` (`name`,`email`,`mobile`,`licenceno`)
values('$name','$email','$mobile','$licenceno')";
$result=mysqli_query($con,$sql);
if($result){
//echo "Data inserted successfully";
header('location:updateh.php');
}else{
die(mysqli_error($con));
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Manage Staff</title>
<link rel="stylesheet" type="text/css" href="styles.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>
<div class="buttonset">
<div>
<button type="button" onclick="location class="userregiste"><a href="home.php">Log out</a></button>
</div>
</div>
</section>
<section class="treenavbar">
<a href="home.php">Home</a>
</section>
</header>
<!-- finish -->
<!-- slide bar -->
<div class="sidebar">
<div class="profile">
<img src="admin_girl.png">
<br>
<br>
<h2>Admin</h2>
<h3>Himeshika De Silva</h3>
<br>
<br>
<br>
</div>
<ul>
<li><center><a href="dashboard.php">Dashboard</a></center></li>
<br>
<br>
<br>
<li><center>Staff Details</center></li>
<div class="dropdown">
<ul> <button><a href="manage.php">Pharmacist</a></button></ul>
<div class="dropdown-options">
<a href="manage.php">Add Pharmacist</a><br>
<a href="submit.php">Update Pharmacist</a>
</div>
</div>
<br>
<br>
<br>
<div class="dropdown">
<ul> <button><a href="add.php">Assistant Pharmacist</a></button></ul>
<div class="dropdown-options">
<a href="add.php">Add Assistant Pharmacist</a><br>
<a href="update@.php">Update Assistant Pharmacist</a>
</div>
</div>
<br>
<br>
<br>
<br>
<div class="dropdown">
<ul> <button><a href="#">Delivery Person</a></button></ul>
<div class="dropdown-options">
<a href="#">Add Delivery Person</a><br>
<a href="update#.php">Update Delivery Person</a>
</div>
</div>
<br>
<br>
<br>
<br>
</ul>
</div>
<!--Delivery Person Details-->
<div class="Delivery Person details">
<div class="main-form">
<form method="post" class="FRM">
<p>Delivery Person 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>
<label for="licenceno">Licence Number :</label><br>
<input type="text" name="licenceno" placeholder="*Enter Licence 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>