Şuanki Dizin: /home/wwwdreamtechnolo/www/kpmim.org/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/kpmim.org/admin/parents-feedback-report.php |
<?php require_once("lib/functions.php"); $db = new login_function(); $flag = 0; $actual_image_name=""; $success_msg = 0; $image_error = ""; $date_to = ""; $date_from = ""; 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_parents_feedback($del_id); $success_msg = 2; } if($date_to == "") { $date_to = Date("d-m-Y"); } if($date_from == "") { $date_from = Date("d-m-Y"); } ?> <?php require_once('header.php'); ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> ParentsFeedback Report</h1> <?php if($success_msg == 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> <?php if(isset($_POST['add_btn'])) { $date_from = $_POST['date_from']; $date_to = $_POST['date_to']; } ?> <form role="form" method="post" enctype="multipart/form-data"> <div class="col-lg-3"> <input class="form-control" placeholder="Enter From Date" name="date_from" type="text" id="datepicker" value="<?php echo $date_from; ?>" > </div> <div class="col-lg-3"> <input class="form-control" placeholder="Enter To Date" name="date_to" type="text" id="datepicker1" value="<?php echo $date_to; ?>" > </div> <div class="col-lg-3"> <button type="submit" class="btn btn-success" name="add_btn">search</button> </div> </form> <br /><br /><br /> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> Parents 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>Name</th> <th>Contact No</th> <th>Ward</th> <th>Department</th> <th>Academic Year</th> <th>Course & Class</th> <th>Admission Procedure</th> <th>Infrastructure</th> <th>Sports</th> <th>Teaching</th> <th>Student Counselling</th> <th>Library</th> <th>Communication</th> <th>Career</th> <th>Other Facilities</th> <th>Suggestion</th> <th>Action</th> </tr> </thead> <tbody> <?php $report_details = $db->get_all_parents_feedback($date_from,$date_to); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $name = $report_details[$counter][1]; $contact = $report_details[$counter][2]; $ward = $report_details[$counter][3]; $department = $report_details[$counter][4]; $academic_year = $report_details[$counter][5]; $course = $report_details[$counter][6]; $admission_procedure= $report_details[$counter][7]; $infrastructure = $report_details[$counter][8]; $sports = $report_details[$counter][9]; $teaching_learning = $report_details[$counter][10]; $student_counselling= $report_details[$counter][11]; $library = $report_details[$counter][12]; $communication = $report_details[$counter][13]; $career = $report_details[$counter][14]; $other_facilities = $report_details[$counter][15]; $suggestion = $report_details[$counter][16]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $name; ?></td> <td><?php echo $contact; ?></td> <td><?php echo $ward; ?></td> <td><?php echo $department; ?></td> <td><?php echo $academic_year; ?></td> <td><?php echo $course; ?></td> <td><?php echo $admission_procedure; ?></td> <td><?php echo $infrastructure; ?></td> <td><?php echo $sports; ?></td> <td><?php echo $teaching_learning; ?></td> <td><?php echo $student_counselling; ?></td> <td><?php echo $library; ?></td> <td><?php echo $communication; ?></td> <td><?php echo $career; ?></td> <td><?php echo $other_facilities; ?></td> <td><?php echo $suggestion; ?></td> <td><a href="parents-feedback-report.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter ++; } }else { ?> <td colspan="22">No Data Found...</td> <?php } ?> </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