Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/books-report.php |
<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"> <?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_record($del_id)) { $success_flag = 1; } } ?> <!-- 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>BOOKS REPORT</h1> </div> </div> </div><!-- /.container-fluid --> </section> <div class="card"> <div class="card-header"> <h3 class="card-title">Book Table</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>Date</th> <th>Accession No.</th> <th>Author</th> <th>Title</th> <th>Edition</th> <th>Add Details</th> <th>Place & Publisher</th> <th>Year</th> <th>Pages</th> <th>Volume</th> <th>Barcode No</th> <th>Type</th> <th>Action</th> </tr> </thead> <tbody> <?php $data = array(); $data = $db->get_books_record($acd_year); if(!empty($data)) { $counter = 0; foreach($data as $record) { $res_id = $data[$counter][0]; $accession_no = $data[$counter][1]; $author = $data[$counter][2]; $title = $data[$counter][3]; $edition = $data[$counter][4]; $place_publisher = $data[$counter][5]; $year = $data[$counter][6]; $pages = $data[$counter][7]; $volume = $data[$counter][8]; $book_date = $data[$counter][9]; $type = $data[$counter][10]; $date = $data[$counter][11]; $time = $data[$counter][12]; $barcode_no = $data[$counter][13]; $data_format = explode("-",$book_date); $book_date = $data_format[0]."-".$data_format[1]."-".$data_format[2]; $data_date = explode("-",$date); $date = $data_date[0]."-".$data_date[1]."-".$data_date[2]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $book_date; ?></td> <td><?php echo $accession_no; ?></td> <td><?php echo $author; ?></td> <td><?php echo $title; ?></td> <td><?php echo $edition; ?></td> <td><a class="btn btn-info btn-sm" href="add-quantity-book.php?edit_id=<?php echo $res_id; ?>"><i class="fas fa-pencil-alt"></i>Add</a></td> <td><?php echo $place_publisher; ?></td> <td><?php echo $year; ?></td> <td><?php echo $pages; ?></td> <td><?php echo $volume; ?></td> <td><?php echo $barcode_no; ?></td> <td><?php echo $type; ?></td> <td> <a class="btn btn-info btn-sm" href="edit-books.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> </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