⚝
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
/
Mhs
/
Views
/
Viewing : 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="#sync">Sycn</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>Nim</th> <th>Smt</th> <th>Jurusan</th> <th>Kontak</th> <th>Aksi</th> </tr> </thead> <tbody> <?php $no =1; foreach ($table as $k) { echo ' <tr> <td>'.$no++.'</td> <td>'.$k->nama.'</td> <td>'.$k->nim.'</td> <td>'.$k->smt.'</td> <td>'.jur($k->jurusan).'</td> <td>'.$k->kontak.'</td> <td></td> </tr> '; } ?> </tbody> </table> </div> </div> </div> </div> <div class="modal fade" id="sync" 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('mhs/sync')?>"> <div class="modal-header"> <h5 class="modal-title">Form Sync <?=$title?></h5> <button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <input type="text" name="data_id" class="d-none" id="data_id"> <?php echo csrf_field(); for($i = 2023; $i < 2031; $i++){ $ta1 = $i; $ta2 = $i + 1; for($x = 1; $x<3; $x++){ if($x == 1){ $gg = 'Ganjil'; }else{ $gg = 'Genap'; } $f['options'][] = $ta1.'/'.$ta2.' '.$gg; $f['value'][] = $ta1.$x; } } echo form_select('tahun akademik', $f); ?> </div> <div class="modal-footer"><button class="btn btn-primary" type="submit">Save</button></div> </form> </div> </div> </div> <script type="text/javascript"> $(document).ready(function(){ var table = $('#myTable').DataTable({ dom: 'Bfrtip', buttons: [ // Tombol Excel { extend: 'excelHtml5', exportOptions: { columns: ':not(:last-child)' // Pengecualian kolom terakhir }, className: 'btn btn-primary btn-sm', }, // Tombol PDF { extend: 'pdfHtml5', exportOptions: { columns: ':not(:last-child)' // Pengecualian kolom terakhir }, className: 'btn btn-primary btn-sm', }, // Tombol Print (Sering juga ditambahkan pengecualian untuk kolom yang tidak terlihat) { extend: 'print', exportOptions: { columns: ':visible:not(:last-child)' // Pengecualian kolom terakhir & kolom tersembunyi }, className: 'btn btn-primary btn-sm', } ] }); table.buttons().container().appendTo('#export'); $('.show_pass').on('click', function() { var currentType = $('.password_form').attr('type'); if (currentType === 'text') { $('.password_form').attr('type', 'password'); } else { $('.password_form').attr('type', 'text'); } }); }) </script>