⚝
One Hat Cyber Team
⚝
Your IP:
192.168.31.6
Server IP:
192.168.1.11
Server:
Linux pams 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
PHP Version:
8.2.28
Buat File
|
Buat Folder
Upload File
Eksekusi
Dir :
~
/
var
/
www
/
apik
/
modules
/
Kelompok
/
Views
/
Edit File: list.php
<div class="d-flex justify-content-between align-items-sm-center flex-column flex-sm-row mb-3"> <div class="me-4 mb-3 mb-sm-0"> <h1 class="mb-0"><?=$title?></h1> </div> </div> <div class="row"> <div class="col-12 mb-4"> <div class="card border-start-lg border-start-primary h-100 card card-header-actions"> <div class="card-header"> <div id="export"></div> <div class="card-tools"> <a class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#add">Tambah</a> <a class="btn btn-warning btn-sm" href="<?=base_url('form/form-kelompok-mhs.xlsx')?>">Download Form</a> </div> </div> <div class="card-body"> <table id="myTable" class="table table-striped table-bordered" style="width:100%"> <thead> <tr> <th>No</th> <th>Nama</th> <th>Aksi</th> </tr> </thead> <tbody> <?php $no =1; foreach ($table as $k) { echo ' <tr> <td>'.$no++.'</td> <td>'.$k->nama.'</td> <td align="center"><a onclick="detail(`'.$k->id_kelompok.'`)" class="btn btn-sm btn-primary">Detail</a> <a class="btn btn-sm btn-danger" onclick="hapus(`kelompok/hapusKelompok/'.dc($k->id_kelompok).'`)">Hapus</a></td> </tr> '; } ?> </tbody> </table> </div> </div> </div> </div> <div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <form method="post" id="form_<?=$title?>" action="<?=base_url('kelompok/verifikasi')?>" enctype="multipart/form-data"> <div class="modal-header"> <h5 class="modal-title">Form Tambah <?=$title?></h5> <button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <?php echo form_file('file'); ?> </div> <div class="modal-footer"><button class="btn btn-primary btn-sm" type="submit">Save</button></div> </form> </div> </div> </div> <div class="modal fade" id="detail" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-body"> <table id="detail-kelompok" class="table table-striped table-bordered" style="width:100%"> <thead> <tr> <th>No</th> <th>NIM</th> <th>Nama</th> <th>Jurusan</th> <th>Aksi</th> </tr> </thead> <tbody id="isi-kelompok"></tbody> </table> </div> </div> </div> </div> <script type="text/javascript"> let tableKelompok; $(document).ready(function(){ var table = $('#myTable').DataTable(); }) function detail(id){ $.ajax({ url : '<?=base_url('kelompok/get/')?>' + id, dataType : "JSON", success : function(r){ if ($.fn.DataTable.isDataTable('#detail-kelompok')) { tableKelompok.destroy(); console.log('Table Tagihan di Hancurkan'); $('#isi-kelompok').html(''); } console.log(r) $('#isi-kelompok').html(r.table); tableKelompok = $('#detail-kelompok').DataTable(); $('#detail').modal('show') } }) } </script>
Simpan