-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-education.php
244 lines (147 loc) · 6.34 KB
/
my-education.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
<?php
session_start();
//Database Configuration File
include('includes/config.php');
//error_reporting(0);
//verifying Session
if(strlen($_SESSION['jsid'])==0)
{
header('location:logout.php');
}
else{ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jobseekers | Profile </title>
<!--CUSTOM CSS-->
<link href="css/custom.css" rel="stylesheet" type="text/css">
<!--BOOTSTRAP CSS-->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<!--COLOR CSS-->
<link href="css/color.css" rel="stylesheet" type="text/css">
<!--RESPONSIVE CSS-->
<link href="css/responsive.css" rel="stylesheet" type="text/css">
<!--OWL CAROUSEL CSS-->
<link href="css/owl.carousel.css" rel="stylesheet" type="text/css">
<!--FONTAWESOME CSS-->
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--SCROLL FOR SIDEBAR NAVIGATION-->
<link href="css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css">
<!--FAVICON ICON-->
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<!--GOOGLE FONTS-->
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,500,700,900' rel='stylesheet' type='text/css'>
</head>
<body class="theme-style-1">
<!--WRAPPER START-->
<div id="wrapper">
<!--HEADER START-->
<?php include('includes/header.php');?>
<!--HEADER END-->
<!--INNER BANNER START-->
<section id="inner-banner">
<div class="container">
<h1><?php echo htmlentities($_SESSION['jsfname']);?>'s Profile</h1>
</div>
</section>
<!--INNER BANNER END-->
<!--MAIN START-->
<div id="main">
<!--RECENT JOB SECTION START-->
<section class="resumes-section padd-tb">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-8">
<div class="resumes-content">
<div class="box">
<div class="frame"><a href="#"><img src="images/resumes/resumes-img-1.jpg" alt="img"></a></div>
<?php
//Getting Employer Id
$jsid=$_SESSION['jsid'];
// Fetching jobs
$sql = "SELECT * from tbljobseekers where id=:jid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':jid', $jsid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
foreach($results as $result)
{
?>
<div class="text-box">
<h2><a href="#"><?php echo htmlentities($_SESSION['jsfname']);?></a></h2>
<h4>Reg Date: <?php echo htmlentities($result->RegDate);?></h4>
<div class="clearfix"> <strong><i class="fa fa-envelope"></i><?php echo htmlentities($result->EmailId);?></strong> <strong>
<i class="fa fa-phone"></i><a href="#"><?php echo htmlentities($result->ContactNumber);?></a></strong> </div>
<div class="btn-row"> <a href="Jobseekersresumes/<?php echo htmlentities($result->Resume);?>" class="resume" target="_blank"><i class="fa fa-file-text-o"></i>Resume</a> <a href="#" class="login">Edit Profile</a> </div>
</div>
<?php } ?>
</div>
<div class="summary-box">
<h4>Summary About Me</h4>
<form name="add_name" id="add_name">
<div class="table-responsive">
<table class="table table-bordered" id="dynamic_field">
<tr>
<td><input type="text" name="name[]" placeholder="Enter Qualification Name" class="form-control name_list" /></td>
<td><input type="text" name="fromyear[]" placeholder="From year" class="form-control name_list" /></td>
<td><input type="text" name="toyear[]" placeholder="To year" class="form-control name_list" /></td>
<td><input type="text" name="toyear[]" placeholder="School / College name" class="form-control name_list" />
<td><input type="text" name="percentage[]" placeholder="Percentage" class="form-control name_list" /></td>
<td><button type="button" name="add" id="add" class="btn btn-success">Add More</button></td>
</tr>
</table>
<input type="button" name="submit" id="submit" class="btn btn-info" value="Submit" />
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!--RECENT JOB SECTION END-->
</div>
<!--MAIN END-->
<!--FOOTER START-->
<?php include('includes/footer.php');?>
<!--FOOTER END-->
</div>
<!--WRAPPER END-->
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.velocity.min.js"></script>
<script src="js/jquery.kenburnsy.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/form.js"></script>
<script src="js/custom.js"></script>
<script>
$(document).ready(function(){
var i=1;
$('#add').click(function(){
i++;
$('#dynamic_field').append('<tr id="row'+i+'"><td><input type="text" name="name[]" placeholder="Enter Qualification Name" class="form-control name_list" /></td><td><input type="text" name="fromyear[]" placeholder="From year" class="form-control name_list" /></td><td><input type="text" name="toyear[]" placeholder="To year" class="form-control name_list" /></td> <td><input type="text" name="toyear[]" placeholder="School / College name" class="form-control name_list" /></td><td><input type="text" name="percentage[]" placeholder="Percentage" class="form-control name_list" /></td><td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></td></tr>');
});
$(document).on('click', '.btn_remove', function(){
var button_id = $(this).attr("id");
$('#row'+button_id+'').remove();
});
$('#submit').click(function(){
$.ajax({
url:"name.php",
method:"POST",
data:$('#add_name').serialize(),
success:function(data)
{
alert(data);
$('#add_name')[0].reset();
}
});
});
});
</script>
</body>
</html>
<?php } ?>