-
Notifications
You must be signed in to change notification settings - Fork 3
/
edit_hod_shortlisted.php
198 lines (137 loc) · 5.13 KB
/
edit_hod_shortlisted.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
<?php
require 'vendor\autoload.php';
$client = new MongoDB\Client;
$companydb = $client->hrmis;
$empcollection = $companydb->shortlisted_candidate;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HOD and ADMIN DASHBOARD</title>
<!-- Google font cdn file imported here -->
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<!-- bootstrap cdn files for the Tables and other contents -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- Link the External Css here And please see name Its a Styles.css -->
<link rel="stylesheet" href="styles.css">
</head>
<style>
</style>
<body>
<?php
include 'hodnavbar.php';
?>
<br><br><br>
<!-- Next Div that contains the title of the INTERVIEW SCHEDULE Start here -->
<div class="interview">
<div class="block">
<center>
<h2>OPEN POSITION
</h2>
<hr class="line">
<br>
<h5>
Resume
</h5>
<br>
</center>
</div>
</div>
<!-- INTERVIEW SCHEDULE Div Close here -->
<div class="shortlist">
<span style="border-bottom: 1px black; margin-left: 20px; font-family: 'Hind Siliguri', sans-serif;;">
</span>
<br>
<br>
<!-- bootstrap table start here Add and remove containt in table according to your task -->
<div class="table">
<table class="table table-bordered">
<thead>
<tr>
<!-- table header -->
<th scope="col">Name</th>
<th scope="col">Current Position
</th>
<th scope="col">Contact
</th>
<th scope="col">Exp.
</th>
<th scope="col">Current CTC
</th>
<th scope="col">Expected CTC
</th>
<th scope="col">Notice Period
</th>
<th scope="col">Remark
</th>
<th scope="col">Resume
</th>
<th scope="col">REMARK
</th>
<th scope="col">SUBMIT</th>
</tr>
</thead>
<tbody>
<!-- <form action="hod_short_listing.php" method="post"> -->
<?php
if(isset($_POST['submit']))
{
$hod_remark = $_POST['hod_remark'];
$id = $_POST['uniqueid'];
// echo $id;
// echo $hod_remark;
// Update one data
$updateResult = $empcollection->updateOne(
['unique_id' => $id ],
['$set' => ['hod_remark' => $hod_remark, 'hr_edited'=>true]]
);
}
require 'vendor\autoload.php';
$client = new MongoDB\Client;
$companydb = $client->hrmis;
$empcollection = $companydb->shortlisted_candidate;
$counter = $empcollection->find();
foreach($counter as $row) {
echo '<form action="hod_short_listing.php" method="post">';
$id=$row['unique_id'];
echo "<tr>";
echo "<td>" . $row['name'] ."'</td>";
echo "<td>" . $row['current_position'] ."</td>";
echo "<td>" . $row['contact'] ."</td>";
echo "<td>" . $row['exp'] ."</td>";
echo "<td>" . $row['current_ctc'] ."</td>";
echo "<td>" . $row['expected_ctc'] ."</td>";
echo "<td>" . $row['notice_period'] ."</td>";
echo "<td>" . $row['remark'] ."</td>";
echo ' <td><a target="__blank" href="'. $row['resume'] .'" style="text-decoration:none;">Open</a></td>';
echo "<td><select name='hod_remark' id=''>
<option selected>".$row['hod_remark']."</option>
<option value='Shortlist'>Shortlist</option>
<option value='Hold'>Hold</option>
<option value='Reject'>Reject</option></select></td>
";
?>
<input type="hidden" name="uniqueid" value="<?php echo $id ?>">
<?php
echo '<td><button name="submit" class="btn btn-block btn-primary">Submit</button></td>';
// echo "<td><a href='viewrequision.php?variable1=".$id."'>View Requisition</a>" ."</td>";
#add just this line whenever you create viewrequisition
//getting values in page2.php file by $_GET function:
//$x=$_GET['variable1'];
echo "</tr>";
echo '</form>';
}
?>
<!-- table body -->
</tr>
</tbody>
<!-- </form> -->
</table>
</div>
<br><br><br>
</div>
</body>
</html>