Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
require('Common/Header.php');
if (isset($_GET['verify'])) {
$get_certi_id = $_GET['certi_id'];
$update = "UPDATE `certi_verification` SET `verify_dep`='Verified', `fw_fo`= 'YES', `verify_fo` = 'Pending' , `status`='Pending' WHERE certi_id = '$get_certi_id'
";
$update2 = "UPDATE `certificatedata` SET `status`='Pending' WHERE certi_id = '$get_certi_id'";
$check = mysqli_query($conn, "SELECT * FROM `certi_verification` where certi_id = '$get_certi_id' and fw_fo = 'YES'");
if (mysqli_num_rows($check) == 0) {
if (mysqli_query($conn, $update)) {
mysqli_query($conn, $update2);
echo "<script>
alert('Certificate Verified Successfully')
window.location.href='character_certificate.php'
</script>";
} else {
echo "<script>
alert('Failed to verify certificate')
window.location.href='character_certificate.php'
</script>";
}
} else {
echo "<script>
alert('Certificate had forwarded to finance office. You can not verify this certificate')
window.location.href='character_certificate.php'
</script>";
}
}
?>
<!-- Begin Page Content -->
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card shadow">
<div class="card-header">
<h4 class="text-primary row-weight-bold" style="font-size:15px">Character Certificate</h4>
</div>
<div class="card-body">
<table class="table table-bordered DataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center">Sr.No.</th>
<th class="text-center">Pro.Pic.</th>
<th class="text-center">Student's<i class="invisible">_</i>Name</th>
<th class="text-center">Enroll<i class="invisible">_</i>No.</th>
<th class="text-center">Roll<i class="invisible">_</i>No.<i class="invisible">_</i></th>
<th class="text-center">Course</th>
<th class="text-center">Father's<i class="invisible">_</i>Name</th>
<th class="text-center">Mother's<i class="invisible">_</i>Name</th>
<th class="text-center">Date<i class="invisible">_</i>Of<i class="invisible">_</i>Admission</th>
<th class="text-center">Admission<i class="invisible">_</i>Session</th>
<th class="text-center">Date<i class="invisible">_</i>Of<i class="invisible">_</i>Leaving<i class="invisible">_</i>University</th>
<th class="text-center">Email</th>
<th class="text-center">Phone</th>
<th class="text-center">Address</th>
<th class="text-center">10th<i class="invisible">_</i>Marksheet</th>
<th class="text-center">Last<i class="invisible">_</i>Sem<i class="invisible">_</i>Marksheet</th>
<th class="text-center">Status</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php
$select = mysqli_query($conn, "SELECT * FROM `certi_verification` where fw_dep = 'YES' and certi_name = 'Character Certificate' order by verify_dep ASC");
$n = 1;
while ($f1 = mysqli_fetch_assoc($select)) {
if ($f1['verify_dep'] == 'Unverified') {
$status = $f1['verify_dep'] . "<br><b>Reason :- </b>" . str_replace("Rejected By Department :-", "", $f1['status']);
} else {
$status = $f1['verify_dep'];
}
$certi_data = mysqli_query($conn, "SELECT * FROM `certificatedata` where certi_name = 'Character Certificate' and certi_id='$f1[certi_id]'");
if (mysqli_num_rows($certi_data) != 0) {
$f2 = mysqli_fetch_assoc($certi_data);
$uni_leaving = $f2['cc_date_of_lu'];
$l_sem_m = $f2['l_sem_marksheet'];
} else {
$uni_leaving = 'Not Found';
$l_sem_m = 'Not Found';
}
$get_stu_data = mysqli_query($conn, "SELECT * FROM `student_data` where enroll_no = '$f1[enroll_no]'");
$get_stu_data_r = mysqli_num_rows($get_stu_data);
if ($get_stu_data_r != 0) {
$stu_f = mysqli_fetch_assoc($get_stu_data);
$stu_name = $stu_f['full_name'];
$father = $stu_f['father'];
$mother = $stu_f['mother'];
$address = $stu_f['address'];
$email = $stu_f['email'];
$roll_no = $stu_f['roll_no'];
$phone = $stu_f['phone'];
$course = $stu_f['course'];
$session = $stu_f['session'];
$pass_img = $stu_f['pass_img'];
$marksheet = $stu_f['marksheet'];
$admi_date = $stu_f['admi_date'];
} else {
$stu_name = 'Not Found';
$father = 'Not Found';
$mother = 'Not Found';
$address = 'Not Found';
$email = 'Not Found';
$roll_no = 'Not Found';
$phone = 'Not Found';
$course = 'Not Found';
$session = 'Not Found';
$pass_img = '#';
$marksheet = '#';
$admi_date = 'Not Found';
}
echo "
<tr>
<td class='text-center'>$n</td>
<td class='text-center'>
<img src='../Files/student/$pass_img' class='pro-pic table-pro-pic'>
</td>
<td class='text-center'>$stu_name</td>
<td class='text-center'>$f1[enroll_no]</td>
<td class='text-center'>$roll_no</td>
<td class='text-center'>$course</td>
<td class='text-center'>$father</td>
<td class='text-center'>$mother</td>
<td class='text-center'>$admi_date</td>
<td class='text-center'>$session</td>
<td class='text-center'>$uni_leaving</td>
<td class='text-center'>$email</td>
<td class='text-center'>$phone</td>
<td class='text-center'>$address</td>
<td class='text-center'>
<img src='../Files/10th_marksheet/$marksheet' class='table-pro-pic' height='100'>
</td>
<td class='text-center'>
<img src='../Files/student/$l_sem_m' class='table-pro-pic' height='100'>
</td>
<td class='text-center'>$status</td>
<td class = 'text-center'>
<div class='dropdown no-arrow'>
<a class='dropdown-toggle' href='#' role='button' id='dropdownMenuLink'
data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
<i class='fas fa-ellipsis-v fa-sm fa-fw text-gray-400'></i>
</a>
<div class='dropdown-menu dropdown-menu-right shadow animated--fade-in'
aria-labelledby='dropdownMenuLink'>
<div class='dropdown-header'>Action</div>
<a class='dropdown-item' href='character_certificate.php?verify=1&certi_id=$f1[certi_id]' ><i class = 'fas fa-check text-primary'></i> Verify</a>
<a class='dropdown-item' href='reject_cc.php?enroll_no=$f1[enroll_no]&certi_id=$f1[certi_id]' ><i class = 'fas fa-times text-primary'></i> Reject</a>
</div>
</div>
</td>
</tr>
";
$n++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php require('Common/Footer.php') ?>
</body>
</html>
