-
Notifications
You must be signed in to change notification settings - Fork 0
/
employer-registration.php
172 lines (158 loc) · 8.91 KB
/
employer-registration.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
include('./partials/session-manager.php');
include('./config/db.php');
include('./action/core.php');
// Create Instance of core class
$obj = new dataOperaion;
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Selec2 Plugin -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/css/select2.min.css" rel="stylesheet" />
<!-- custom stylesheet -->
<link rel="stylesheet" href="./assets/css/style.css">
<title>Intern-Connect | Internships that matter</title>
</head>
<body>
<!-- Include Nav -->
<?php include('./partials/nav.php'); ?>
<div class="container">
<?php if (isset($_SESSION['employer_registration']) && $_SESSION['employer_registration'] == 1) {
echo '<div class="row">
<div class="col-md-12 my-4">
<div class="alert alert-success" role="alert">
<h4 class="alert-heading">Registration Succesful!</h4>
<p>You successfully registered with us.</p>
<hr>
<p class="mb-0">You can now move to login and post internships ! <a href="employer-auth.php"> Login</a></p>
</div>
</div>
</div>';
unset($_SESSION['employer_registration']);
}
// IF there is any error
if (isset($_SESSION['duplicate_mobile']) || isset($_SESSION['duplicate_email'])) {
echo '<div class="row">
<div class="col-md-12 my-4">
<div class="alert alert-danger" role="alert">
<h4 class="alert-heading">Oops!</h4>
<p>There are one or more errors in your request</p>
<hr>
<p class="mb-0">Please cross check your email and mobile</p>
</div>
</div>
</div>';
} ?>
<div class="row">
<div class="col-md-12">
<h3 class="pt-3 text-center text-muted">Register with us as Employer</h3>
</div>
</div>
<div class="row py-3">
<div class="col-md-10 m-auto">
<div class="card">
<div class="card-body">
<form method="post" action="action/action.php">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="first_name">First Name</label>
<input type="text" class="form-control" id="first_name" name="first_name" placeholder="First Name" required maxlength="100">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="last_name">Last Name</label>
<input type="type" class="form-control" id="last_name" name="last_name" placeholder="Last Name" required maxlength="50">
</div>
</div>
</div>
<div class="row">
<div class="col-md-7">
<div class="form-group">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" name="email_id" placeholder="Email ID" required maxlength="100">
<?php if (isset($_SESSION['duplicate_email']) && $_SESSION['duplicate_email'] == 1) { ?>
<small class="text-danger">Email ID is already registered!</small>
<?php unset($_SESSION['duplicate_email']);
} ?>
</div>
</div>
<div class="col-md-5">
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required maxlength="250" minlength="6">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="mobile">Mobile</label>
<input type="text" class="form-control" id="mobile" name="mobile" placeholder="Mobile" required maxlength="15">
<?php if (isset($_SESSION['duplicate_mobile']) && $_SESSION['duplicate_mobile'] == 1) { ?>
<small class="text-danger">Mobile Number is already registered!</small>
<?php unset($_SESSION['duplicate_mobile']);
} ?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="company_name">Company Name</label>
<input type="text" name="company_name" id="company_name" class="form-control" placeholder="Name of Company" required maxlength="100">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="company_url">Company Url</label>
<input type="text" name="company_url" id="company_url" class="form-control" placeholder="http://your-awesome-company.com" required maxlength="250">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="about_company">About Company</label>
<textarea name="about" id="about_company" class="form-control" rows="7" placeholder="Write a bit about your company" required ></textarea>
</div>
</div>
</div>
<button type="submit" name="add_employer" class="btn btn-primary my-3 float-right">Save Details</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Container -->
<?php include('./partials/footer.php'); ?>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- Select2 Plugin -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/js/select2.min.js"></script>
<!-- Jquery Validation -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/additional-methods.min.js"></script>
<script>
$(document).ready(function() {
$('.select2').select2();
$('.select2-selection--single').css({
"padding-top": "3px",
"height": "38px"
})
});
</script>
</body>
</html>