Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

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

<?php
require('Common/Header.php');
if (isset($_GET['col_id'])) {
    $col_id = $_GET['col_id'];
    $update = "UPDATE `scrutiny` SET `status`='Done' WHERE col_id = '$col_id'";
    mysqli_query($conn, $update);
    echo "<script>alert('Status updated successfully')
     window.location.href = 'scrutiny_data.php'
    </script>";
}
?>

<!-- Content Wrapper -->


<!-- ----------Top bar start------------  -->


<!-- ----------Top bar End------------  -->

<!-- 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">Scrutiny Data</h4>
                </div>
                <div class="card-body">
                    <table class="table table-bordered DataTable" width="100%" cellspacing="0">
                        <thead>
                            <tr>
                                <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">Semester</th>
                                <th class="text-center">Marksheet</th>
                                <th class="text-center">Paper<i class="invisible">_</i>Code</th>
                                <th class="text-center">Dated</th>
                                <th class="text-center">Status</th>
                                <th class="text-center">Action</th>



                            </tr>
                        </thead>

                        <tbody>
                            <?php
                            $select = mysqli_query($conn, "SELECT * FROM `scrutiny` order by col_id desc");
                            $n = 1;
                            while ($f1 = mysqli_fetch_assoc($select)) {

                                $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'];
                                    $roll_no = $stu_f['roll_no'];
                                    $course = $stu_f['course'];
                                    $pass_img = $stu_f['pass_img'];
                                } else {
                                    $stu_name = 'Not Found';
                                    $roll_no = 'Not Found';
                                    $course = 'Not Found';
                                    $pass_img = 'Not Found';
                                }

                                $paper_codes =   show_json_string($f1['paper_code']);

                                echo "
                                    <tr>
                                    
                                    <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'>$f1[sem]</td>
                                    <td class='text-center'>
                                      <img src='../Files/scrutiny/$f1[marksheet]' class='table-pro-pic' height='100'>
                                    </td>
                                     <td class='text-center'>$paper_codes</td>
                                     
                                    <td class='text-center'>$f1[date], $f1[time]</td>
                                    <td class='text-center'>$f1[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='scrutiny_data.php?col_id=$f1[col_id]' ><i class = 'fas fa-check text-primary'></i> Done</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.