function tampiljadwal() { $konsentrasi = $_GET['konsentrasi']; $tahun_akademik = $_GET['tahun_akademik']; $semester = $_GET['semester']; echo "<table class='table table-bordered' id='jadwal'>\n <tr><th width=7>No</th>\n <th width=120>Hari</th>\n <th>Kode</th>\n <th>Matakuliah</th>\n <th width=5>SKS</th>\n <th width=115>Ruang</th>\n <th width=154>Jam</th>\n <th>Dosen</th>\n <th></th></tr>"; $i = 1; if ($semester == 0) { // looping semester $smt = getField('akademik_konsentrasi', 'jml_semester', 'konsentrasi_id', $konsentrasi); for ($j = 1; $j <= $smt; $j++) { echo "<tr class='success'><th colspan=9>SEMESTER {$j}</th></tr>"; $sql = " SELECT jk.*,mm.jam,mm.nama_makul,mm.kode_makul,mm.sks,mm.semester,jk.jam_mulai,jk.jam_selesai\n FROM akademik_jadwal_kuliah as jk,makul_matakuliah as mm\n WHERE mm.makul_id=jk.makul_id and jk.tahun_akademik_id={$tahun_akademik} and jk.konsentrasi_id={$konsentrasi} and jk.semester={$j}"; $data = $this->db->query($sql)->result(); $class = "class='form-control'"; foreach ($data as $r) { echo "<tr><td>{$i}</td>\n <td>"; echo editcombo('hari', 'app_hari', 'col-sm-14', 'hari', 'hari_id', '', array('onchange' => 'simpanhari(' . $r->jadwal_id . ')', 'id' => 'hariid' . $r->jadwal_id), $r->hari_id); echo "</td>\n <td>" . strtoupper($r->kode_makul) . "</td>\n <td>" . strtoupper($r->nama_makul) . "</td>\n <td align='center'>{$r->sks}</td>\n <td>"; echo editcombo('ruang', 'app_ruangan', 'col-sm-14', 'nama_ruangan', 'ruangan_id', '', array('onchange' => 'simpanruang(' . $r->jadwal_id . ')', 'id' => 'ruangid' . $r->jadwal_id), $r->ruangan_id); echo "</td>\n <td>"; echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_mulai, array('onKeyup' => 'simpanjam(' . $r->jadwal_id . ')', 'id' => 'jamid' . $r->jadwal_id)); echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_selesai, array('disabled' => 'disabled')); //echo editcombo('waktu_kuliah','akademik_waktu_kuliah','col-sm-13','keterangan','waktu_id','',array('onchange'=>'simpanjam('.$r->jadwal_id.')','id'=>'jamid'.$r->jadwal_id),$r->waktu_id); echo "</td>\n <td>"; echo editcombo('dosen', 'app_dosen', 'col-sm-13', 'nama_lengkap', 'dosen_id', '', array('onchange' => 'simpandosen(' . $r->jadwal_id . ')', 'id' => 'dosenid' . $r->jadwal_id), $r->dosen_id); echo "</td>\n <td><i class='gi gi-print' title='cetak absen'></i></td></tr>"; $i++; } } } else { $sql = " SELECT jk.*,mm.jam,mm.nama_makul,mm.kode_makul,mm.sks,mm.semester,jk.jam_mulai,jk.jam_selesai\n FROM akademik_jadwal_kuliah as jk,makul_matakuliah as mm\n WHERE mm.makul_id=jk.makul_id and jk.tahun_akademik_id={$tahun_akademik} and jk.konsentrasi_id={$konsentrasi} and jk.semester={$semester}"; $data = $this->db->query($sql)->result(); $class = "class='form-control'"; foreach ($data as $r) { echo "<tr><td>{$i}</td>\n <td>"; echo editcombo('hari', 'app_hari', 'col-sm-14', 'hari', 'hari_id', '', array('onchange' => 'simpanhari(' . $r->jadwal_id . ')', 'id' => 'hariid' . $r->jadwal_id), $r->hari_id); echo "</td>\n <td>" . strtoupper($r->kode_makul) . "</td>\n <td>" . strtoupper($r->nama_makul) . "</td>\n <td align='center'>{$r->sks}</td>\n <td>"; echo editcombo('ruang', 'app_ruangan', 'col-sm-14', 'nama_ruangan', 'ruangan_id', '', array('onchange' => 'simpanruang(' . $r->jadwal_id . ')', 'id' => 'ruangid' . $r->jadwal_id), $r->ruangan_id); echo "</td>\n <td>"; echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_mulai, array('onKeyup' => 'simpanjam(' . $r->jadwal_id . ')', 'id' => 'jamid' . $r->jadwal_id)); echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_selesai, array('disabled' => 'disabled')); //echo editcombo('waktu_kuliah','akademik_waktu_kuliah','col-sm-13','keterangan','waktu_id','',array('onchange'=>'simpanjam('.$r->jadwal_id.')','id'=>'jamid'.$r->jadwal_id),$r->waktu_id); echo "</td>\n <td>"; echo editcombo('dosen', 'app_dosen', 'col-sm-13', 'nama_lengkap', 'dosen_id', '', array('onchange' => 'simpandosen(' . $r->jadwal_id . ')', 'id' => 'dosenid' . $r->jadwal_id), $r->dosen_id); echo "</td>\n <td><i class='gi gi-print' title='cetak absen'></i></td></tr>"; $i++; } } echo "</table>"; }
function loadform() { $konsentrasi = $_GET['konsentrasi']; $tahun_angkatan_id = $this->db->get_where('student_angkatan', array('aktif' => 'y'))->row_array(); $tahun_ajaran = $tahun_angkatan_id['angkatan_id']; $no = 1; $keuangan_jenis_bayar = $this->db->get('keuangan_jenis_bayar')->result(); echo "<table class='table table-bordered'>\n <tr><th width=10>No</th><th>Jenis Biaya Kuliah</th><th width=150>Jumlah Bayar</th></tr>"; foreach ($keuangan_jenis_bayar as $r) { $a = $this->chek_data_biaya_kuliah($konsentrasi, $r->jenis_bayar_id); $jumlah = $this->get_biaya_kuliah($tahun_ajaran, $r->jenis_bayar_id, $konsentrasi, 'jumlah'); $id = $this->get_biaya_kuliah($tahun_ajaran, $r->jenis_bayar_id, $konsentrasi, 'biaya_kuliah_id'); echo "<tr>\n <td>{$no}</td>\n <td> " . strtoupper($r->keterangan) . "</td>\n <td> " . inputan('text', 'jumlah', 'col-sm-12', '', 1, $jumlah, array('id' => 'test', 'onkeyup' => "simpan({$id})", 'id' => "jumlah{$id}")) . "</td>\n </tr>"; $no++; } echo "</table>"; }
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Entry Record</h3> </div> <div class="panel-body"> <table class="table table-bordered"> <tr> <td width="150">Kode</td><td> <?php echo inputan('text', 'kode', 'col-sm-4', 'Kode ..', 1, '', ''); ?> </td> </tr> <tr> <td width="150">Nama</td><td> <?php echo inputan('text', 'nama', 'col-sm-4', 'Nama Kelompok ..', 1, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
<tr> <td width="150">Alamat</td><td> <?php echo textarea('alamat', '', 'col-sm-5', 2, $r['alamat']); ?> </td> </tr> <tr> <td width="150">No Hp ,Email</td><td> <?php echo inputan('text', 'hp', 'col-sm-2', 'No HP ..', 1, $r['hp'], ''); ?> <?php echo inputan('email', 'email', 'col-sm-4', 'Email ..', 1, $r['email'], ''); ?> </td> </tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div> </form>
</td> </tr> <tr><td>Alamat</td> <td><?php echo textarea('institusi_alamat', '', 'col-sm-02', 0, $r['institusi_alamat']); ?> </td> <td>Alamat/ Mulai Bekerja</td> <td> <?php echo textarea('instansi_alamat', '', 'col-sm-6', 2, $r['instansi_alamat']); ?> <?php echo inputan('text', 'instansi_mulai', 'col-sm-3', 'Mulai ..', 0, $r['instansi_mulai'], ''); ?> <?php echo inputan('text', 'instansi_sampai', 'col-sm-3', 'Sampai ..', 0, $r['instansi_sampai'], ''); ?> </td> </tr> <td></td><td colspan="4"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </form>
<li class="active">Entry Record</li> </ol> </div> <?php echo form_open_multipart($this->uri->segment(1) . '/post'); ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Entry Record</h3> </div> <div class="panel-body"> <table class="table table-bordered"> <tr> <td width="150">Tahun Akademik</td><td> <?php echo inputan('text', 'tahun', 'col-sm-4', 'Tahun Akademik ..', 1, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
?> </td> </tr> <tr> <td width="150">Link</td><td> <?php echo inputan('text', 'link', 'col-sm-5', 'Link ...', 1, $r['link'], ''); ?> </td> </tr> <tr> <td width="150">Icon</td><td> <?php echo inputan('text', 'icon', 'col-sm-2', 'Icon', 0, $r['icon'], ''); ?> </td> </tr> <tr> <td width="150">Level</td><td> <div class="col-sm-3"> <?php echo form_dropdown('level', $level, $r['level'], $class); ?> </div> </td> </tr> <tr><td></td><td> <input type="submit" name="submit" value="simpan" class="btn btn-danger"> <?php
<?php echo inputan('text', 'hp', 'col-sm-2', 'No HP ..', 0, '', ''); ?> <?php echo inputan('email', 'email', 'col-sm-4', 'Email ..', 0, '', ''); ?> </td> </tr> <tr> <td width="150">username & Password</td><td> <?php echo inputan('text', 'username', 'col-sm-4', 'Username ..', 1, '', ''); ?> <?php echo inputan('password', 'password', 'col-sm-3', 'Password ..', 1, '', ''); ?> </td> </tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
</ol> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Entry Record</h3> </div> <div class="panel-body"> <?php echo form_open_multipart($this->uri->segment(1) . '/post'); ?> <table class="table table-bordered"> <tr> <td width="150">Jenis Bayar</td><td> <?php echo inputan('text', 'jenis', 'col-sm-8', 'Jenis Pembayaran ..', 1, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
<td width="150">Nama Prodi</td><td> <?php echo inputan('text', 'nama', 'col-sm-4', 'Nama prodi ..', 1, '', ''); ?> </td> </tr> <tr> <td width="150">Ketua</td><td> <?php echo inputan('text', 'ketua', 'col-sm-4', 'Ketua ..', 0, '', ''); ?> </td> </tr> <tr> <td width="150">No Izin</td><td> <?php echo inputan('text', 'izin', 'col-sm-4', 'No Izin ..', 0, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
<tr> <td width="150">Kode / Nama Matakuliah</td><td> <?php echo inputan('text', 'kode', 'col-sm-2', 'Kode Matakuliah ..', 1, $r['kode_makul'], ''); ?> <?php echo inputan('text', 'nama', 'col-sm-4', 'Nama Matakuliah ..', 1, $r['nama_makul'], ''); ?> </td> </tr> <tr> <td width="150">SKS / Semester</td><td> <?php echo inputan('text', 'sks', 'col-sm-1', 'SKS ..', 1, $r['sks'], ''); ?> <div class="col-sm-2"> <?php echo form_dropdown('semester', $semester, $r['semester'], "class='form-control'"); ?> </div> </td> </tr> <tr> <td width="150">Kelompok Matakuliah</td><td> <div class="col-sm-6"> <?php echo editcombo('kelompok', 'makul_kelompok', '', 'nama', 'kelompok_id', '', '', $r['kelompok_id']); ?>
<td width="150">Nama Kampus</td><td> <?php echo inputan('text', 'nama', 'col-sm-4', 'Nama Lengkap ..', 1, $r['nama_kampus'], ''); ?> </td> </tr> <tr> <td width="150">Alamat</td><td> <?php echo textarea('alamat', '', 'col-sm-5', 2, $r['alamat_kampus']); ?> </td> </tr> <tr> <td width="150">No Telpon</td><td> <?php echo inputan('text', 'telpon', 'col-sm-4', 'No Telpon ..', 1, $r['telpon'], ''); ?> </td> </tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </form>
<!-- Modal itself --> <div id="example-modal" class="modal"> <!-- Modal Dialog --> <div class="modal-dialog"> <!-- Modal Content --> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4>Autosave</h4> </div> <div class="modal-body"> <table class="table table-bordered"> <tr><td>Tanggal</td><td><?php echo inputan('text', 'tanggal2', 'col-md-4', 'Tanggal', 1, '', array('id' => 'datepicker2')); ?> </td><tr> <tr><td>Matakuliah</td><td> <select name="jadwal" class="form-control"> <?php foreach ($kelas as $k) { echo "<option value='{$k->jadwal_id}'>" . strtoupper($k->nama_makul) . "</option>"; } ?> </select> </td><tr> <tr><td colspan="2"><textarea class="form-control" placeholder="Judul Materi" name="materi"></textarea></td></tr> </table>
<?php $status = array(0 => 'Lunas', 1 => 'Pembayaran Ke 1', 2 => 'Pembayaran Ke 2', 3 => 'Pembayaran Ke 3', 4 => 'Pembayaran Ke 4'); echo form_open('keuangan/jurnalkhusus'); ?> <table class="table table-bordered"> <tr class="success"><td colspan="2">JURNAL KHUSUS</td></tr> <tr><td width="150">Tanggal Mulai</td><td><?php echo inputan('text', 'tanggal1', 'col-sm-3', 'Tanggal Awal ..', 1, $tanggal1, array('id' => 'datepicker')); ?> </td></tr> <tr><td>Tanggal Sampai</td><td><?php echo inputan('text', 'tanggal2', 'col-sm-3', 'Tanggal Akhir ..', 1, $tanggal2, array('id' => 'datepicker1')); ?> </td></tr> <tr><td colspan="2"><input type="submit" name="submit" value="Preview" class="btn btn-danger btn-sm"> <?php echo anchor(base_url() . 'keuangan/cetakjurnalkhusus/' . $tanggal1 . '/' . $tanggal2 . '/cetak', 'cetak', array('class' => 'btn btn-danger btn-sm', 'target' => '_blank')); ?> <?php echo anchor(base_url() . 'keuangan/cetakjurnalkhusus/' . $tanggal1 . '/' . $tanggal2 . '/download', 'Export Ke Ms.Word', array('class' => 'btn btn-danger btn-sm', 'target' => '_blank')); ?> </td></tr> </table> </form> <?php if (isset($_POST['submit'])) { ?> <table class="table table-bordered"> <tr> <th width="15" rowspan="2">No</th>
</div> <?php echo form_open($this->uri->segment(1) . '/edit'); echo "<input type='hidden' name='id' value='{$r['angkatan_id']}'>"; ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Edit Record</h3> </div> <div class="panel-body"> <table class="table table-bordered"> <tr> <td width="150">Tahun Akademik</td><td> <?php echo inputan('text', 'tahun', 'col-sm-4', 'Tahun Akademik ..', 1, $r['keterangan'], ''); ?> </td> </tr> <tr><td>Status</td><td> <div class="col-sm-2"> <?php $status = array('y' => 'Open', 'n' => 'Closed'); echo form_dropdown('status', $status, $r['aktif'], "class='form-control'"); ?> </div> </td></tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php
</tr> <tr> <td width="150">Dari ,Sampai</td><td> <?php echo inputan('text', 'dari', 'col-sm-3', 'Example 7.9 ..', 1, $r['dari'], ''); ?> <?php echo inputan('text', 'sampai', 'col-sm-3', 'Example 6.0', 1, $r['sampai'], ''); ?> </td> </tr> <tr> <td width="150">Keterangan</td><td> <?php echo inputan('text', 'keterangan', 'col-sm-14', 'Keterangan ..', 1, $r['keterangan'], ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div> </div> </form>
<td width="150">Nama Prodi</td><td> <?php echo inputan('text', 'nama', 'col-sm-4', 'Nama prodi ..', 1, $r['nama_prodi'], ''); ?> </td> </tr> <tr> <td width="150">Ketua</td><td> <?php echo inputan('text', 'ketua', 'col-sm-4', 'Ketua ..', 0, $r['ketua'], ''); ?> </td> </tr> <tr> <td width="150">No Izin</td><td> <?php echo inputan('text', 'izin', 'col-sm-4', 'No Izin ..', 0, $r['no_izin'], ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
?> </div> </td> </tr> <tr> <td width="150">Gelar</td><td> <?php echo inputan('text', 'gelar', 'col-sm-2', 'Gelar ..', 0, '', ''); ?> </td> </tr> <tr> <td width="150">Kode No</td><td> <?php echo inputan('text', 'kode', 'col-sm-3', 'Kode Nomor ..', 0, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
echo combodumy('konsentrasi', 'konsentrasi2'); ?> </td></tr> </table> </div> <div class="modal-footer"> <button class="btn btn-danger" data-dismiss="modal">Tutup</button> <button class="btn btn-danger">Mulai Proses Autosetup</button> </div> </div> <!-- END Modal Content --> </div> <!-- END Modal Dialog --> </div> <!-- END Modal itself --> </form> <!-- <table class="table table-borderedb"> <tr><th>Matakuliah</th><th>Jam Mulai</th><th>Jumlah Jam</th><th>Jam selesai</th></tr> <tr><td>Pemograman Web</td> <td><?php echo inputan('text', 'nama_ayah', 'col-sm-6', 'Nama Ayah ..', 0, '', ''); ?> </td> <td>4</td> <td><?php echo inputan('text', 'nama_ayah', 'col-sm-6', 'Nama Ayah ..', 0, '', ''); ?> </td></tr> </table>END Modal itself -->
echo form_open_multipart($this->uri->segment(1) . '/post'); ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Entry Record</h3> </div> <div class="panel-body"> <table class="table table-bordered"> <tr> <td width="150">Nama Gedung</td><td> <?php echo inputan('text', 'nama', 'col-sm-4', 'Nama ..', 1, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div> </div> </form>
<div class="col-sm-2"> <?php echo anchor($this->uri->segment(1) . '/post', 'Tambah Data', array('class' => 'btn btn-danger')); ?> </div> <div class="col-sm-9"> <?php echo form_open('submenu'); echo inputan('text', 'key', 'col-sm-4', 'Kata Kunci Pencarian', 1, '', ''); ?> <input type="submit" name="submit" value="Cari Data" class="btn btn-danger"> </form> </div> <hr> <hr> <div class="table-responsive"> <?php echo $table; ?> </div> <?php echo $pagination;
echo "<input type='hidden' name='id' value='{$r['gedung_id']}'>"; ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Edit Record</h3> </div> <div class="panel-body"> <table class="table table-bordered"> <tr> <td width="150">Nama Gedung</td><td> <?php echo inputan('text', 'nama', 'col-sm-4', 'Agama ..', 1, $r['nama_gedung'], ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div> </div> </form>
<div class="panel-heading"> <h3 class="panel-title">Edit Record</h3> </div> <div class="panel-body"> <table class="table table-bordered"> <tr> <td width="150">Tahun Akademik</td><td> <?php echo inputan('text', 'tahun', 'col-sm-4', 'Tahun Akademik ..', 1, $r['keterangan'], ''); ?> </td> </tr> <tr> <td width="150">Batas Registrasi</td><td> <?php echo inputan('text', 'batas', 'col-sm-4', 'Batas Registrasi ..', 1, $r['batas_registrasi'], array('id' => 'datepicker')); ?> </td> </tr> <tr> <tr><td>Status</td><td> <div class="col-sm-2"> <?php $status = array('y' => 'Open', 'n' => 'Closed'); echo form_dropdown('status', $status, $r['status'], "class='form-control'"); ?> </div> </td></tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm">
</ol> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Edit Record</h3> </div> <div class="panel-body"> <?php echo form_open($this->uri->segment(1) . '/edit'); echo "<input type='hidden' name='id' value='{$r['jenis_bayar_id']}'>"; ?> <table class="table table-bordered"> <tr> <td width="150">Jenis bayar</td><td> <?php echo inputan('text', 'jenis', 'col-sm-4', 'Jenis Pembayaran ..', 1, $r['keterangan'], ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
<?php echo buatcombo('jenis', 'keuangan_jenis_bayar', 'col-sm-6', 'keterangan', 'jenis_bayar_id', '', array('id' => 'jenis_pembayaran')); ?> <div class="col-md-6"> <select name="semester" id="semester" class="form-control"> <?php for ($sms = 1; $sms <= 8; $sms++) { echo "<option VALUE='{$sms}'>SEMESTER {$sms}</option>"; } ?> </select> </div> </td></tr> <tr><td>Jumlah Bayar</td><td><?php echo inputan('text', 'jumlah', 'col-sm-8', 'Jumlah ..', 1, '', ''); ?> <input type="submit" name="submit2" value="Simpan" class="btn btn-danger"></td></tr> </table> </div> </form> <?php if ($statuss != "kosong") { ?> <table class="table table-bordered"> <tr class="success"><th colspan="7">Riwayat Transaksi</th></tr> <tr><th width="10">No</th> <th width="240">Jenis Pembayaran</th> <th width="180">Harus Dibayar</th> <th width="180">Sudah Dibayar</th> <th width="80">Sisa</th>
<?php echo buatcombo('gedung', 'app_gedung', 'col-sm-7', 'nama_gedung', 'gedung_id', '', ''); ?> </td> </tr> <tr> <td width="150">Kapasitas</td><td> <?php echo inputan('text', 'kapasitas', 'col-sm-3', 'Kapastitas ..', 0, '', ''); ?> </td> </tr> <tr> <td width="150">Keterangan</td><td> <?php echo inputan('text', 'keterangan', 'col-sm-10', 'Keterangan ..', 0, '', ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div> </div> </form>
?> </div> </td> </tr> <tr> <td width="150">Gelar</td><td> <?php echo inputan('text', 'gelar', 'col-sm-2', 'Gelar ..', 0, $r['gelar'], ''); ?> </td> </tr> <tr> <td width="150">Kode No</td><td> <?php echo inputan('text', 'kode', 'col-sm-3', 'Kode Nomor ..', 0, $r['kode_nomor'], ''); ?> </td> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
<tr> <td width="150">Konsentrasi /Prodi</td><td> <div class="col-sm-3"> <?php echo buatcombo('prodi', 'akademik_prodi', '', 'nama_prodi', 'prodi_id', $param, array('id' => 'prodi')); ?> </div> <div class="col-sm-3"> <?php echo combodumy('konsentrasi', 'konsentrasi'); ?> </div> </td> <tr><td>Jumlah Jam</td><td> <?php echo inputan('text', 'jam', 'col-sm-1', 'Jam ..', 1, '', ''); ?> </td></tr> </tr> <tr> <td></td><td colspan="2"> <input type="submit" name="submit" value="simpan" class="btn btn-danger btn-sm"> <?php echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm')); ?> </td></tr> </table> </div></div> </form>
function form_berinilai() { $jadwal_id = $_GET['jadwal_id']; $thn = get_tahun_ajaran_aktif('tahun_akademik_id'); $d = $this->db->query("SELECT ad.nama_lengkap,mm.nama_makul \n FROM app_dosen as ad,makul_matakuliah as mm,akademik_jadwal_kuliah as jk \n WHERE jk.makul_id=mm.makul_id and jk.dosen_id=ad.dosen_id and jk.jadwal_id={$jadwal_id}")->row_array(); $sql = " SELECT sm.nim,sm.nama,kh.mutu,kh.khs_id,kh.tugas,kh.kehadiran,kh.grade\n FROM akademik_krs as ak,student_mahasiswa as sm,akademik_khs as kh,akademik_jadwal_kuliah as jk\n WHERE kh.krs_id=ak.krs_id and sm.nim=ak.nim and ak.jadwal_id='{$jadwal_id}' and jk.jadwal_id=ak.jadwal_id and jk.tahun_akademik_id='{$thn}'"; echo " <table class='table table-bordered'>\n <tr class='success'><th colspan=2>MATAKULIAH</th></tr>\n <tr><td width=120>Matakuliah</td><td>" . strtoupper($d['nama_makul']) . "</td></tr>\n <tr><td>Dosen Pengapu</td><td>" . strtoupper($d['nama_lengkap']) . "</td></tr>\n </table>\n <table class='table table-bordered'>\n <tr class='success'><th colspan=7>FORM NILAI MAHASISWA</th></tr>\n <tr><th>No</th><th>NIM</th><th>NAMA MAHASISWA</th><th width=90>Kehadiran</th><th width=90>Tugas</th><th width=90>Mutu</th><th>Grade</th></tr>"; $data = $this->db->query($sql)->result(); $no = 1; foreach ($data as $r) { echo "<tr>\n <td width='7'>{$no}</td>\n <td width='70'>" . strtoupper($r->nim) . "</td>\n <td>" . strtoupper($r->nama) . "</td>\n <td align='center' width='90'>"; echo inputan('text', '', 'col-sm-12', 'Kehadiran', 0, $r->kehadiran, array('onkeyup' => 'simpankehadiran(' . $r->khs_id . ')', 'id' => 'ambilkehadiran' . $r->khs_id)) . '</td><td>'; echo inputan('text', '', 'col-sm-12', 'Tugas ..', 0, $r->tugas, array('onkeyup' => 'simpantugas(' . $r->khs_id . ')', 'id' => 'ambiltugas' . $r->khs_id)) . '</td><td>'; echo inputan('text', 'link', 'col-sm-12', 'Link ...', 1, $r->mutu, array('onkeyup' => 'simpan(' . $r->khs_id . ')', 'id' => 'ambil' . $r->khs_id)); echo "</td>\n <td width='80'>"; echo editcombo('grade', 'app_nilai_grade', 'col-sm-14', 'grade', 'grade', '', array('onChange' => 'simpangrade(' . $r->khs_id . ')', 'id' => 'ambilgrade' . $r->khs_id), $r->grade); echo "</td>\n </tr>"; $no++; } echo " </table>"; }