Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/sugam.kmclu.ac.in/public_html/library/
Dosya Yükle :
Current File : /home/u866425823/domains/sugam.kmclu.ac.in/public_html/library/migration.php

<?php
require('Common/Header.php');
if (isset($_GET['verify'])) {
    $get_certi_id = $_GET['certi_id'];
    $update = "UPDATE `certi_verification` SET `verify_lib`='Verified',  `status`='Verified' WHERE certi_id = '$get_certi_id'
     ";

    $update2 = "UPDATE `certificatedata` SET  `status`='Verified'  WHERE certi_id = '$get_certi_id'";
    $check = mysqli_query($conn, "SELECT * FROM `certi_verification` where certi_id = '$get_certi_id' and verify_lib='Verified'");
    if (mysqli_num_rows($check) == 0) {
        if (mysqli_query($conn, $update)) {
            mysqli_query($conn, $update2);
            echo "<script>
             alert('Certificate Verified Successfully')
            window.location.href='migration.php'
            </script>";
        } else {
            echo "<script>
            alert('Failed to verify certificate')
           window.location.href='migration.php'
           </script>";
        }
    } else {
        echo "<script>
        alert('Already Verified')
       window.location.href='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">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">Migration<i class="invisible">_</i>Reason</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_lib = 'YES' and certi_name = 'Migration' order by verify_lib ASC");

                            $n = 1;
                            while ($f1 = mysqli_fetch_assoc($select)) {

                                if ($f1['verify_lib'] == 'Unverified') {
                                    $status = $f1['verify_lib'] . "<br><b>Reason :- </b>" . str_replace("Rejected By Library Office :-", "", $f1['status']);
                                } else {
                                    $status = $f1['verify_lib'];
                                }

                                $certi_data =  mysqli_query($conn, "SELECT * FROM `certificatedata` where certi_name = 'Migration' and certi_id='$f1[certi_id]'");
                                if (mysqli_num_rows($certi_data) != 0) {
                                    $f2 = mysqli_fetch_assoc($certi_data);
                                    $mi_reason = html_entity_decode($f2['migration_reason']);
                                } else {
                                    $mi_reason  = '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'>$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'>$mi_reason</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='migration.php?verify=1&certi_id=$f1[certi_id]' ><i class = 'fas fa-check text-primary'></i> Verify</a>
                                          <a class='dropdown-item' href='reject_migration.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>

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.