-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput1.php
290 lines (261 loc) · 12.4 KB
/
output1.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<?php
require_once("connection.php");
$sql = "SELECT * FROM jobs LIMIT 27";
$result = $conn->query($sql);
if($result->num_rows > 0){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Letho - Job Portal</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/logo.png" rel="icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
<!-- ======= Top Bar ======= -->
<section id="topbar" class="d-flex align-items-center">
<div class="container d-flex justify-content-center justify-content-md-between">
<div class="contact-info d-flex align-items-center">
<i class="bi bi-envelope-fill"></i><a href="mailto:mayankshandilya1@gmail.com">mayankshandilya1@gmail.com</a>
<i class="bi bi-phone-fill phone-icon"></i> +91 9739946347
</div>
<div class="social-links d-none d-md-block">
<a href="#" class="twitter"><i class="bi bi-twitter"></i></a>
<a href="#" class="facebook"><i class="bi bi-facebook"></i></a>
<a href="#" class="instagram"><i class="bi bi-instagram"></i></a>
<a href="#" class="linkedin"><i class="bi bi-linkedin"></i></i></a>
</div>
</div>
</section>
<!-- ======= Header ======= -->
<header id="header" class="d-flex align-items-center">
<div class="container d-flex align-items-center justify-content-between">
<h1 class="logo"><a href="index.php">Day</a></h1>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="index.php" class="logo"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>-->
<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link scrollto active" href="index.php #hero">Home</a></li>
<li><a class="nav-link scrollto" href="index.php #about">About</a></li>
<li><a class="nav-link scrollto" href="output1.php">Jobs</a></li>
<li><a class="nav-link scrollto" href="index.php #contact">Contact</a></li>
<li><a class="nav-link" data-bs-toggle="modal" data-bs-target="#signinModal" href="">Sign In</a></li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<!-- modals section-->
<div id="signinModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="signinModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role = "document">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h5 class = "modal-title" id = "signinModalLabel"> Sign In</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="checklogin.php" method="post">
<div class = "form-group">
<label for="email">Email:</label>
<input type="email" name="email" id="email" class = "form-control" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class = "form-group">
<label for="pass">Password</label>
<input type="password" name="pass" id="pass" class="form-control" placeholder="Password">
</div>
<div class="form-group">
<a class = "text-primary" data-bs-toggle="modal" data-bs-target="#signupModal" href="">Don't have an account? Sign Up</a>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type = "submit" class = "btn btn-primary" name ="submit">Sign In </button>
</div>
</form>
</div>
</div>
</div>
<div id="signupModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="signupModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role = "document">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h5 class = "modal-title" id = "signupModalLabel">Sign Up</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="add.php" method="post">
<div class = "form-group">
<label for="signupemail">Email:</label>
<input type="email" name="signupemail" id="signupemail" class = "form-control" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class = "form-group">
<label for="signuppass">Password</label>
<input type="password" name="signuppass" id="signuppass" class="form-control" placeholder="Password">
</div>
<div class="form-check">
<input type="checkbox" name="check" id="check" class="form-check-input" id="exampleCheck1" required>
<label for="check" class="form-check-label"> I agree to the terms & conditions</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary" name ="submit">Sign Up </button>
</div>
</form>
</div>
</div>
</div>
<main id="main">
<!-- ======= Breadcrumbs ======= -->
<section id="breadcrumbs" class="breadcrumbs">
<div class="container">
<ol>
<li><a href="index.php">Home</a></li>
<li>Jobs</li>
</ol>
<h2>All Jobs</h2>
</div>
</section><!-- End Breadcrumbs -->
<div class="container">
<div class="row">
<?php while($row = $result->fetch_assoc()){ ?>
<div class="col-4 my-3 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="100">
<div class="card shadow p-3 mb-5 rounded">
<div class="card-body d-flex flex-column">
<h4 class = "card-title"><?php echo "".$row['posts']."" ;?></h4>
<span class="text-primary">Company : <?php echo $row['companys'] ;?></span>
<span><i class='bx bxs-map' ></i><?php echo $row['location']; ?></span>
<span><i class='bx bxs-briefcase-alt-2'></i><?php echo $row['experience']; ?></span>
<p class = "card-text"><?php echo $row['description'];?></p>
<a class = "btn btn-outline-primary" href="<?php echo $row['links'];?>" role = "button" >Apply </a>
</div>
</div>
</div>
<?php } }?>
</div>
</div>
<div class = container><div class="d-flex flex-row-reverse"><a href="output2.php" class = "btn btn-lg btn-danger" role = "button"> Next ></a></div></div>
</main>
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="footer-info">
<h3>Day</h3>
<p>
#62, Sri Rama RMR PG <br>
Ambedkar Nagar, Whitefield,Bangalore,<br>
Karnataka, 560066 <br><br>
<strong>Phone:</strong> +91 9739946347<br>
<strong>Email:</strong> mayankshandilya1@gmail.com<br>
</p>
<div class="social-links mt-3">
<a href="#" class="twitter"><i class="bx bxl-twitter"></i></a>
<a href="#" class="facebook"><i class="bx bxl-facebook"></i></a>
<a href="#" class="instagram"><i class="bx bxl-instagram"></i></a>
<a href="#" class="google-plus"><i class="bx bxl-skype"></i></a>
<a href="#" class="linkedin"><i class="bx bxl-linkedin"></i></a>
</div>
</div>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Useful Links</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Home</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">About us</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Services</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Terms of service</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Privacy policy</a></li>
</ul>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Our Services</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Web Design</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Web Development</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Product Management</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Marketing</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Graphic Design</a></li>
</ul>
</div>
<div class="col-lg-4 col-md-6 footer-newsletter">
<h4>Our Newsletter</h4>
<p>Tamen quem nulla quae legam multos aute sint culpa legam noster magna</p>
<form action="" method="post">
<input type="email" name="email"><input type="submit" value="Subscribe">
</form>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
© Copyright <strong><span>Day</span></strong>. All Rights Reserved
</div>
<div class="credits">
Designed by Mayank Shandilya
</div>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$("#signup_form").on("submit", function (e) {
e.preventDefault();
$.ajax({
url: "add.php", //PHP FILE HERE
type: "post",
data: $(this).serialize(),
beforeSend: function () {
$("#success_person").show();
$("#success_person").html("Adding data to database...")
},
complete: function () {
$("#success_person").delay(3e3).fadeOut()
},
success: function (e) {
$("#success_person").show();
$("#success_person").html(e);
$("#success_person").delay(3e3).fadeOut();
$("#signup_form")[0].reset()
},
error: function (e, t, n) {
alert(e.status);
alert(n)
}
})
});
</script>
</body>
</html>