-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
113 lines (90 loc) · 2.75 KB
/
Copy pathtest.html
File metadata and controls
113 lines (90 loc) · 2.75 KB
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
<!DOCTYPE html>
<head>
<title>add</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
function isSet(){
var username="prai";
var email2= document.getElementById("email").value;
var EmailId = sessionStorage.getItem("emailid");
console.log(EmailId);
if(EmailId!=="cronjit")
window.location="loginpage.html";
else
sessionStorage.removeItem("emailid");
}
</script>
</head>
<body onload="isSet()">
<div class="navbar">
<a href="test.html">ADD EMPLOYEE</a>
<a href="list.html">DISPLAY</a>
<a href="edit.html">SEARCH</a>
<a href="edit2.html">EDIT</a>
</div>
<div class="container">
<div class="row main">
<div class="main-login main-center">
<h1>Add Employee</h1>
<form class="" name="myform">
<div class="form-group">
<label for="name" class="cols-sm-2 control-label">Name</label>
<div class="cols-sm-10">
<div class="input-group">
<input type="text" class="form-control" name="name" id="name"
placeholder="Employee Name" />
<p id="namecheck"> </p>
<!-- <p id="result"> </p> -->
</div>
</div>
</div>
<div class="form-group">
<label for="email" class="cols-sm-2 control-label">Email</label>
<div class="cols-sm-10">
<div class="input-group">
<input type="email" class="form-control" name="email" id="email"
placeholder="Email" />
<p id="emailcheck"></p>
</div>
</div>
</div>
<div class="form-group">
<label for="age" class="cols-sm-2 control-label">Age</label>
<div class="cols-sm-10">
<div class="input-group">
<input type="age" class="form-control" name="age" id="age" placeholder="Employee Age" />
<p id="agecheck"></p>
</div>
</div>
</div>
<div class="form-group">
<label for="salary" class="cols-sm-2 control-label">Salary</label>
<div class="cols-sm-10">
<div class="input-group">
<input type="salary" class="form-control" name="salary" id="salary"
placeholder="Employee Salary" />
<p id="salcheck"></p>
</div>
</div>
</div>
<div class="form-group">
<label for="remark" class="cols-sm-2 control-label">Remarks</label>
<div class="cols-sm-10">
<div class="input-group">
<input type="remark" class="form-control" name="remark" id="remark"
placeholder="Remark" />
<p id="remcheck"></p>
</div>
</div>
</div>
<div class="form-group ">
<input type="button" id="button" value="Submit" onClick="emp()">
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript" src="./create.js"> </script>
</body>
</html>