Şuanki Dizin: /home/wwwdreamtechnolo/www/kpmim.org/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/kpmim.org/admin/teacher-feedback-report.php |
<?php require_once("lib/functions.php"); $db = new login_function(); $flag = 0; $actual_image_name=""; $success_msg = 0; $image_error=""; $department_error=""; $succ_flag= 0 ; $department = ""; $description=""; $succ_flag = 0; 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_evaluation_feedback($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"> Teacher Feedback Report</h1> <?php if($succ_flag == 1) { ?> <div class="alert alert-success"> Images Saved Successfully. </div> <?php } ?> <?php if($success_msg == 2) {?> <div class="alert alert-danger"> Images Deleted Successfully. </div> <?php } ?> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> Feedback Report </div> <!-- /.panel-heading --> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th width="20">Sr.No</th> <th width="40">Name Of Teacher</th> <th width="40">Email</th> <th width="50">Contact</th> <th width="20">Department</th> <th width="20">Subject</th> <th width="40">View</th> <th width="40">Delete</th> </tr> </thead> <tbody> <?php $total_amount = 0; $data = array(); $data = $db->get_all_teacher_data(); if(!empty($data)) { $counter = 0; foreach($data as $record) { $res_id = $data[$counter][0]; $teacher_name = $data[$counter][1]; $email = $data[$counter][2]; $contact = $data[$counter][3]; $department = $data[$counter][4]; $subject = $data[$counter][5]; ?> <tr class="odd gradeX" style="text-align:center"> <td><?php echo $counter+1; ?></td> <td><?php echo $teacher_name; ?></td> <td><?php echo $email; ?></td> <td><?php echo $contact; ?></td> <td><?php echo $department; ?></td> <td><?php echo $subject; ?></td> <td><a href="teacher_view_report.php?edit_id=<?php echo $res_id; ?>" target="_blank">view</a></td> <td><a href="<?php echo $_SERVER['PHP_SELF']."?delete_id=".$res_id; ?>" class="delete_opt" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter++; } } else { echo "no data found."; } ?> </tbody> </table> </div> <!-- /.table-responsive --> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div> <!-- /.col-lg-6 --> </div> </div> </div> </div> </div> </div> </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