Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/report-issue-book.php |
<?php require_once('header.php'); require_once('header-left-section.php'); $success_flag =0; if(isset($_GET['delete_id'])) { $del_id = $_GET['delete_id']; if($db->delete_book_issued_details($del_id)) { $success_flag = 1; } } if(isset($_GET['st_returned'])) { $st_returned = $_GET['st_returned']; $db->update_returned_status($st_returned); } if(isset($_GET['st_issued'])) { $st_issued = $_GET['st_issued']; $db->update_issued_status($st_issued); } ?> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- DataTables --> <link rel="stylesheet" href="plugins/datatables-bs4/css/dataTables.bootstrap4.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- Google Font: Source Sans Pro --> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>BOOK ISSUED REPORT</h1> </div> </div> </div><!-- /.container-fluid --> </section> <div class="card"> <div class="card-header"> <h3 class="card-title"><span>Book Issued : <i class="fas fa-pause" style="color:green;"></i><br /> Book Returned : <i class="fas fa-check" style="color:red;"></i> </span></h3> </div> <?php if($success_flag==1) { ?> <div class="alert alert-success"> <span class="alert-link">Success ! </span>Books Deleted Successfully. </div> <?php } ?> <!-- /.card-header --> <div class="card-body" style="overflow-x:auto;"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Sr.No</th> <th>Student Details</th> <th>Book Details</th> <th>Return Date</th> <th>Status</th> <th>Date</th> <th>Time</th> <th>Action</th> <th>Action</th> </tr> </thead> <tbody> <?php $book_record =""; $data = array(); $data = $db->get_all_issued_books_details($acd_year); if(!empty($data)) { $counter = 0; foreach($data as $record) { $res_id = $data[$counter][0]; $res_stud_id = $data[$counter][1]; $res_book_id = $data[$counter][2]; $return_date = $data[$counter][3]; $status = $data[$counter][4]; $date = $data[$counter][5]; $time = $data[$counter][6]; $res_acd_year = $data[$counter][7]; $date_data = explode("-",$date); $date_dt = $date_data[2]."-".$date_data[1]."-".$date_data[0]; $book_details = array(); $book_details = $db->get_all_books_info_by_id($res_book_id,$res_acd_year); if(!empty($book_details)) { $id = $book_details[0]; $accession_no = $book_details[1]; $author = $book_details[2]; $title = $book_details[3]; $edition = $book_details[4]; if($author!="" || $title!="" || $edition!="") { $book_record = $title."-".$author."-".$edition; } } $student=""; $student_details = array(); $student_details = $db->get_all_student_info_by_id($res_stud_id,$res_acd_year); if(!empty($book_details)) { $id = $student_details[0]; $res_class = $student_details[1]; $res_medium = $student_details[2]; $res_division = $student_details[3]; $res_roll_no = $student_details[4]; $res_surname = $student_details[5]; $res_student_name = $student_details[6]; $res_father_name = $student_details[7]; $res_student_contact_no = $student_details[8]; $res_student_image = $student_details[9]; if($res_surname!="" || $res_student_name!="" || $res_father_name!="") { $student_data = $res_student_name."-".$res_father_name."-".$res_surname; } $student = $student_data."<br />".$res_class." - ".$res_medium." - ".$res_division." <br /> Contact No - ".$res_student_contact_no; } ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $student; ?></td> <td><?php echo $book_record; ?></td> <td><?php echo $return_date; ?></td> <td><?php echo $status; ?></td> <td><?php echo $date_dt; ?></td> <td><?php echo $time; ?></td> <td> <a class="btn btn-info btn-sm" href="edit-issue-book.php?edit_id=<?php echo $res_id; ?>"> <i class="fas fa-pencil-alt"> </i> Edit </a> <a class="btn btn-danger btn-sm" href="<?php echo $_SERVER['PHP_SELF']."?delete_id=".$res_id; ?>" onclick="return confirm('Are you Sure to Delete This record?');" > <i class="fas fa-trash"> </i> Delete </a> </td> <td> <?php if($status=="Issued") { ?> <center><a href="report-issue-book.php?st_returned=<?php echo $res_id;?>"><i class="fas fa-pause" style="color:green; margin-top:55px;"></i></a></center> <?php } else { ?> <center><a href="report-issue-book.php?st_issued=<?php echo $res_id;?>"><i class="fas fa-check" style="color:red; margin-top:55px;"></i></a></center> <?php } ?> </td> </tr> <?php $counter++; } } else { ?> <tr> <td colspan="20">Books Record Not Available</td> </tr> <?php } ?> <tbody> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> </div> </section> <?php require_once('footer.php'); ?> <script src="plugins/jquery/jquery.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- DataTables --> <script src="plugins/datatables/jquery.dataTables.js"></script> <script src="plugins/datatables-bs4/js/dataTables.bootstrap4.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="dist/js/demo.js"></script> <script> $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false, }); }); </script>
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