-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemployerstart.html
88 lines (85 loc) · 4.07 KB
/
employerstart.html
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
<html>
<head>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<script type="text/javascript">
function check()
{
document.getElementById("loginForm").onsubmit = function () {
if (!document.getElementById("username").value) {
alert('Username cant be empty');
return false;
}
if (!document.getElementById("password").value) {
alert('Password cannot be empty')
return false;
}
}
}
function ValidateEmail(inputText)
{
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(inputText.value.match(mailformat))
{
document.loginForm.username.focus();
return true;
}
else
{
alert("You have entered an invalid email address!Enter again");
document.getElementById("loginForm").reset();
return false;
}
}
</script>
<body>
<div id="login-overlay" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Login as an Employer</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-6">
<div class="well">
<form id="loginForm" method="POST" action="login_employer.php"novalidate="novalidate">
<div class="form-group">
<label for="username" class="control-label">Username</label>
<input type="email" class="form-control" id="username" name="username" title="Please enter your username" placeholder="example@gmail.com" required>
<span class="help-block"></span>
</div>
<div class="form-group">
<label for="password" class="control-label">Password</label>
<input type="password" class="form-control" id="password" name="password" required="required" title="Please enter your password" onblur="checkTextField(this);" required>
<span class="help-block"></span>
</div>
<div id="loginErrorMsg" class="alert alert-error hide">Wrong username or password</div>
<!--<div class="checkbox">
<label>
<input type="checkbox" name="remember" id="remember"> Remember login
</label>
<p class="help-block">(if this is a private computer)</p>
</div>-->
<button type="submit" class="btn btn-success btn-block" id="btnSubmit" onclick="check(); ValidateEmail(document.formLogin.username);">Login</button>
<a href="/forgot/" class="btn btn-default btn-block">Help to login</a>
</form>
</div>
</div>
<div class="col-xs-6">
<p class="lead">Register now for <span class="text-success">FREE</span></p>
<ul class="list-unstyled" style="line-height: 2">
<li><span class="fa fa-check text-success"></span> See all your job posts</li>
<li><span class="fa fa-check text-success"></span> Shortlist suitable candidates</li>
<li><a href="/read-more/"><u>Read more</u></a></li>
</ul>
<p><a href="employer.html" class="btn btn-info btn-block">Yes please, register now!</a></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>