[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
tracer
/
application
/
views
/
dosen
/
[
Home
]
File: bg_dosen_all.php
<style type="text/css"> .user { width: 55px; height: 55px; border-radius: 50%; margin-right: 10px; } </style> <style> .tabl { border-collapse: collapse; width: 100%; } .tabl th, td { padding: 8px; text-align: center; border-bottom: 1px solid #ddd; } </style> <style> .pagination { display: inline-block; } .pagination a { color: black; float: center; padding: 8px 16px; text-decoration: none; } .pagination a.active { background-color: #4CAF50; color: white; } .pagination a:hover:not(.active) {background-color: #ddd;} </style> <script type="text/javascript"> function myFunction(sul) { var seme= sul; $.ajax({ url:"<?php echo base_url();?>dosen_krs/riwayatNgajar", data:"seme=" + seme, success: function(msg) { $("#tampilRiwayat").html(msg); } }); } $(function(){ myFunction(); }) </script> <div class="row"> <div class="col-sm-6 widget-container-col ui-sortable"> <div> <h4>Daftar Dosen dan Staf</h4> <table class="tabl"> <thead> <tr> <th align="center">PHOTO</th> <th align="center">NAMA</th> </tr> </thead> <?php foreach ($dosen->result_array() as $value) { if ($value['foto']=='') { $foto = "<img class='user' src='".base_url('assets/avatars/abnus4.png')."' >" ; } else if ($value['foto']!=='') { $foto = "<img class='user' src='".base_url('assets/uploads/'.$value['foto'])."' >" ; } echo '<tr class="content"> <td>'.$foto.'</td> <th><a href="#" id="'.$value['kd_dosen'].'" onclick="myFunction(this.id)">'.$value['nama_dosen'].'</a><br>NIP : '.$value['nidn'].'</th> </tr>'; } ?> </table> <div class="pagination"><?php echo $paginator;?></div> </div> </div> <div class="col-sm-6 widget-container-col ui-sortable"> <div id="tampilRiwayat"><h4>Riwayat Mengajar</h4></div> </div> </div>