Şuanki Dizin: /home/wwwdreamtechnolo/public_html/swamipolytechnic.org/old/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/swamipolytechnic.org/old/admin/grievance-report.php |
<?php require_once("lib/functions.php"); $db = new login_function(); $flag = 0; $actual_image_name=""; $success_msg = 0; $image_error=""; if(!isset($_SESSION['current_login_admin'])) { header("Location:/admin/index.php"); } if(isset($_SESSION['current_login_admin'])) { $email = $_SESSION['current_login_admin']; } if(isset($_GET['delete_id'])) { $del_id = $_GET['delete_id']; $db->delete_grievance($del_id); $success_msg = 2; } ?> <?php require_once('header.php'); ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Grievance Report</h1> <?php if($success_msg == 2) {?> <div class="alert alert-success"> <span class="alert-link">Successfully ! </span> Deleted Record </div> <?php } ?> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> Grievance Report </div> <!-- /.panel-heading --> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Sr No</th> <th>Applicant Type</th> <th>Enrollment No(if student)</th> <th>Qualification & Occupation(if Parents)</th> <th>Designation & Deparment(if Faculty)</th> <th>Fullname</th> <th>Mobile No</th> <th>Email ID</th> <th>Address</th> <th>College Name</th> <th>Grievance Category</th> <th>Grievance Subject</th> <th>Grievance Details</th> <th>Documents(if any)</th> <th>Date</th> <th>Time</th> <th>Action</th> </tr> </thead> <tbody> <?php $report_details = $db->get_all_grievance_report(); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $res_id = $record[0]; $firstname = $record[1]; $middlename = $record[2]; $lastname = $record[3]; $mobile_no = $record[4]; $email_id = $record[5]; $address = $record[6]; $district = $record[7]; $taluka = $record[8]; $applicant = $record[9]; $college_name = $record[10]; $grievance_category = $record[11]; $grievance_subj = $record[12]; $grievance_details = $record[13]; $documents = $record[14]; $date = $record[15]; $time = $record[16]; $enroll_no = $record[17]; $qualification_id = $record[18]; $occupation_id = $record[19]; $designation_id = $record[20]; $department_id = $record[21]; $name = $firstname." ".$middlename." ".$lastname; $date_data = explode("-",$date); $date = $date_data[2]."-".$date_data[1]."-".$date_data[0]; $staff = $designation_id." <br /> ".$department_id; $parents= $qualification_id." <br /> ".$occupation_id; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $applicant; ?></td> <td><?php echo $enroll_no; ?></td> <td><?php echo $parents; ?></td> <td><?php echo $staff; ?></td> <td><?php echo $name; ?></td> <td><?php echo $mobile_no; ?></td> <td><?php echo $email_id; ?></td> <td><?php echo $address; ?></td> <td><?php echo $college_name; ?></td> <td><?php echo $grievance_category; ?></td> <td><?php echo $grievance_subj; ?></td> <td><?php echo $grievance_details; ?></td> <td><?php echo $documents; ?></td> <td><?php echo $date; ?></td> <td><?php echo $time; ?></td> <td><a href="/admin/grievance-report.php?delete_id=<?php echo $res_id;?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter ++; } }else { ?> <td colspan="4">No Data Found...</td> <?php } ?> </tbody> </table> </div> <!-- /.table-responsive --> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div> <!-- /.col-lg-6 --> </div> </div> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4