[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
05122024
/
htdocs
/
tracer
/
application
/
views
/
b
/
[
Home
]
File: br_khs.php
<!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript"> $(document).ready(function(){ $("#semester").change(function(){ loadSmt() }); }); </script> <script type="text/javascript"> function loadSmt() { var semester=$("#semester").val(); var nim=$("#nim").val(); $.ajax({ url:"<?php echo base_url();?>dosen/inpunNilai", data:"semester=" + semester +"&nim=" + nim, cache:false, success: function(msg) { $("#smt").html(msg); } }); } $(function(){ loadSmt(); }) </script> <style> table { border-collapse: collapse; width: 100%; } table.sam { border-collapse: collapse; width: 100%; background-color:#f5f5f5; } th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; } tr:hover{background-color:#f5f5f5} input[type=text] { width: 70%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 8px; font-size: 12px; background-color: white; padding: 5px 5px 5px 5px; } td { font-size: 14px; } </style> </head> <body> <table> <tr> <th> Nama</th><td> <input type="text" name="" value=" <?php echo $nama_mhs;?>" readonly="readonly"> </td> <th> Program Studi</th> <td> <input type="text" name="" value="<?php echo $program;?>" readonly="readonly"> </td> </tr> <tr> <th> NIM </th> <td><input type="text" id="nim" name="" value="<?php echo $nim;?>" readonly="readonly"> </td> <th> Angkatan </th> <td><input type="text" name="" value="<?php echo $angkatan;?>" readonly="readonly"> </td> </tr> </table> <p> </p> <p><strong>Input Nilai</strong></p> <select style="width:100px;" id="semester"> <option value=""></option> <?php foreach($dt_pelanggan->result_array() as $dp) { $pilih=''; if($dp['semester']==$this->session->userdata("kd_pemesan")) { $pilih='selected="selected"'; ?> <option value="<?php echo $dp['semester']; ?>" <?php echo $pilih; ?>><?php echo $dp['nm_semester']; ?></option> <?php } else { ?> <option value="<?php echo $dp['semester']; ?>"><?php echo $dp['nm_semester']; ?></option> <?php } } ?> </select> <p> </p> <div id="smt"> </div> </body> </html>