-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemp.php
286 lines (135 loc) · 6.6 KB
/
emp.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
<?php
session_start();
require_once('config.php');
//phpinfo();
if(!isset($_SESSION['empusername']))
{
header("location: emplogin.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VisitorPass</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/w3.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
<header class="w3-container w3-red">
<h1> <img height = 80px width = 65px src="assets/rcf.png" > Visitor Management System</h1>
</header>
<div class="w3-container w3-padding">
<nav class="w3-topnav ">
<span class="w3-xlarge">Book New Appointment</span>
<span class="w3-right">
<a>Welcome,<span style="font-size:18px;"><i> <?php echo $_SESSION['empusername']; ?></i></span></a>
<a align="right" href="logout.php"><button class="w3-btn w3-light-blue w3-round-xlarge" type="submit">Log Out</button></a>
</span>
</nav>
</div>
<nav align="right">
<a class="w3-text-orange w3-hover-text-red w3-round-xlarge " href="updateinfo.php">Update personal information</a>
<a class="w3-text-orange w3-hover-text-red w3-round-xlarge " href="changepass.php">change password</a>
</nav>
<div class="w3-row-padding w3-margin-top">
<div class="w3-card-2">
<form id='ui' action="createappointment.php" method="post" >
<table id='userinput' class="w3-table w3-bordered w3-striped" >
<tr>
<th colspan="2" class="w3-light-blue" style="padding:15px">
APPOINTMENT INFORMATION
</th>
</tr>
<tr>
<td>
Date
</td>
<td>
<input style='width: 200px;' id='date' name='date' type='date' required >
</td>
</tr>
<tr class="trStyle">
<td>
Name
</td>
<td>
<input style='width: 200px;' id='uname' name='uname' type='text' required >
</td>
</tr>
<tr>
<td>
Company Name
</td>
<td>
<input style='width: 200px;' id='cname' name='cname' type='text' required />
</td>
</tr>
<tr>
<td>
Representing
</td>
<td>
<select id='representinglist' name='representinglist' style='width: 200px; ' >
<option value='Vendor'>Vendor</option>
<option value='Friend'>Friend</option>
<option value='Family'>Family</option>
<option value='Interview'>Interview</option>
<option value='Customer'>Customer</option>
<option value='Customer'>Trainee</option>
</select>
</td>
</tr>
<tr>
<td>
Mobile No
</td>
<td>
<input style='width: 200px;' id='mobileno' name='mobileno' type='text' required/>
</td>
</tr>
<tr >
<td>
Email-Id
</td>
<td>
<input style='width: 200px;' id='email' name='email' type='email' required/>
</td>
</tr>
<tr>
<th colspan="2" class="w3-light-blue" style="padding:15px">EMPLOYEE DETAILS</th>
</tr>
<tr>
<td>
Employee-Id
</td>
<td style='width: 300px;'>
<?php echo $_SESSION['emp_no']?>
</td>
</tr>
<tr>
<td>
Employee mob. no
</td>
<td>
<input style='width: 200px;' id='empmob' name='empmob' type='text' value="<?php echo $_SESSION['mob_no']?>" required/>
</td>
</tr>
<tr>
<td align='center' style='width: 200px;'></td>
<td align="left" style='width: 300px;'>
<button class="w3-btn w3-red w3-round-xlarge" id='submit' name ='submit'>SUBMIT</button>
</td>
</tr>
</table>
</form>
</div>
<br><br>
</div>
</div>
</body>
<footer class="w3-container w3-light-grey w3-border-top">
<p class=" w3-right">Copyright © 2017 All rights reserved</p>
</footer>
</html>