[ 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
/
mhsKrs
/
[
Home
]
File: bg_pilih_krs.php
<!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript"> $(document).ready(function(){ $("#semestr").change(function(){ loadSmt() }); }); $(document).ready(function(){ $("#thn_ajaran").change(function(){ loadSmt() }); }); function loadSmt() { var semestr=$("#semestr").val(); var thn_ajaran=$("#thn_ajaran").val(); $.ajax({ url:"<?php echo site_url('mhsKrs/inputKrs');?>", type:"get", data:"semestr=" + semestr +"&thn_ajaran=" + thn_ajaran, success: function(html) { $("#smt").html(html); } }); } $(function(){ loadSmt(); }) </script> </head> <body> <?php echo $this->session->flashdata('save_mk'); ?> <table class="table table-striped table-bordered data"> <tr> <td colspan="2">Tahun Ajaran : <select name="thn_ajaran" id="thn_ajaran"> <?php foreach ($dt_thn->result() as $key ) { $pilih = ''; if($key->keterangan==$this->session->userdata("thn")) $pilih="selected='selected'"; ?> <option value="<?php echo $key->keterangan;?>"<?php echo $pilih; ?>><?php echo $key->keterangan;?></option> <?php } ?> </select> </td> <td colspan="4">Semester : <select name="semestr" id="semestr"> <?php foreach ($dt_semester->result() as $key ) { $pilih = ''; if($key->semester==$this->session->userdata("kd_semester")) $pilih="selected='selected'"; ?> <option value="<?php echo $key->semester;?>"<?php echo $pilih; ?>><?php echo $key->nm_semester;?></option> <?php } ?> </select> </td> <td>Beban Study Maks</td> <td> <input name="beban_study" value="<?php echo $beban_studi; ?>" type="text" readonly="readonly" /> </td> </tr> </table> <div id="smt"> </div> </body> </html>