Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
require('Common/Header.php');
if (isset($_GET['certi_id'])) {
$get_certi_id = $_GET['certi_id'];
$get_certi_data = mysqli_query($conn, "SELECT * FROM `certificatedata` where certi_id='$get_certi_id'");
$f_certi = mysqli_fetch_assoc($get_certi_data);
$check_certi = mysqli_query($conn, "SELECT * FROM `certi_verification` where certi_id = '$get_certi_id'");
if (mysqli_num_rows($check_certi) == 0) {
$certi_name = $f_certi['certi_name'];
$date = date('Y-m-d');
$time = date('H:i:s');
$enroll_no = $f_certi['enroll_no'];
$insert = "INSERT INTO `certi_verification`(`certi_name`, `certi_id`, `date`, `time`, `enroll_no`, `fw_proctor`,`verify_proctor`, `status`)
VALUES ('$certi_name','$get_certi_id','$date','$time','$enroll_no','YES','Pending','Pending')";
if (mysqli_query($conn, $insert)) {
echo "<script>
alert('Certificate Forwarded Successfully')
window.location.href='pending_migration.php'
</script>";
} else {
echo "<script>
alert('Failed to forward certificate')
window.location.href='pending_migration.php'
</script>";
}
} else {
echo "<script>
alert('Certificate Already Forwarded ')
window.location.href='pending_migration.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">Pending Migration</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">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">Date<i class="invisible">_</i>&<i class="invisible">_</i>Time</th>
<th class="text-center">Migration<i class="invisible">_</i>Reason</th>
<th class="text-center text-nowrap">Application Fee</th>
<th class="text-center">Status</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php
$select = mysqli_query($conn, "SELECT * FROM `certificatedata` where certi_name = 'Migration' and status = 'Pending'");
$n = 1;
if (mysqli_num_rows($select) != 0) {
while ($f1 = mysqli_fetch_assoc($select)) {
$select_2 = mysqli_query($conn, "SELECT * FROM `certi_verification` where certi_id='$f1[certi_id]' ");
if (mysqli_num_rows($select_2) == 0) {
$status = "Not Forwarded";
} else {
$f2 = mysqli_fetch_assoc($select_2);
$status = "
<ul style='list-style:none;text-align:left;width:200px'>
<li><b>Proctor : </b> $f2[verify_proctor]</li>
<li><b>Department : </b> $f2[verify_dep]</li>
<li><b>F.O : </b> $f2[verify_fo]</li>
<li><b>Library : </b> $f2[verify_lib]</li>
<li><b>Final Status : </b> $f2[status]</li>
</ul>";
}
$migration_reason = html_entity_decode($f1['migration_reason']);
$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'>$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/$f1[l_sem_marksheet]' class='table-pro-pic' height='100'>
</td>
<td class='text-center'>$f1[date], $f1[time]</td>
<td class='text-center'>$migration_reason</td>
<td class='text-center'>$f1[fee]</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='pending_migration.php?certi_id=$f1[certi_id]' ><i class = 'fas fa-share text-primary'></i> Forward To Proctor</a>
<a class='dropdown-item' href='reject_cc.php?certi_id=$f1[certi_id]&&enroll_no=$f1[enroll_no]' ><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>
