// *** Functions *** function bipot() { include "bipot.nama.php"; $sub = empty($_REQUEST['sub']) ? 'DftrBipotNama' : $_REQUEST['sub']; $sub(); } function bipotmhsw() { include "bipot.master.php"; $sub = empty($_REQUEST['sub']) ? 'DftrBipotMaster' : $_REQUEST['sub']; $sub(); } function bipotdef() { } // *** Konst *** $arrBipot = array("Master Biaya & Potongan->bipot", "Biaya & Potongan Mahasiswa->bipotmhsw"); // "Default Biaya & Potongan->bipotdef"); // *** Parameters *** $prodi = GetSetVar('prodi'); $prid = GetSetVar('prid'); $bipotid = GetSetVar('bipotid'); $tok = empty($_REQUEST['tok']) ? "bipot" : $_REQUEST['tok']; // *** Main *** TampilkanJudul("Master Biaya dan Potongan Mahasiswa"); TampilkanPilihanInstitusi($mnux); if (!empty($tok) && !empty($_SESSION['KodeID'])) { TampilkanSubMenu('bipot', $arrBipot, 'tok', $tok); $tok(); }
function Def() { global $mnux, $pref, $token; include_once "{$mnux}.{$_SESSION[$pref]}.php"; $sub = !empty($_REQUEST['sub']) ? $_REQUEST['sub'] : "Def{$_SESSION[$pref]}"; $sub(); } // *** Parameters *** $pref = 'mk'; $mnux = 'matakuliah'; $arrMK = array('Mata Kuliah->MK', 'MK Setara->MKSet', 'Kurikulum->Kur', 'Konsentrasi->Kons', 'Jenis Mata Kuliah->Jen', 'Pilihan Wajib->Pil', 'Jenis Kurikulum->JenKur', 'Nilai->Nil', 'MaxSKS->MaxSKS', 'Paket Matakuliah->Pkt', "Predikat->pred"); $tokendef = 'MK'; $token = GetSetVar($pref, $tokendef); $prodi = GetSetVar('prodi'); $kurid = GetSetVar("kurid_{$prodi}"); $mkkode = GetSetVar("mkkode_{$prodi}"); if (empty($kurid) && !empty($prodi)) { $_kurid = GetaField("kurikulum", "NA='N' and ProdiID", $prodi, "KurikulumID"); $_SESSION["kurid_{$prodi}"] = $_kurid; $kurid = $_kurid; } // *** Main *** TampilkanJudul("Administrasi Mata Kuliah"); if (empty($_SESSION['_ProdiID'])) { echo ErrorMsg('Tidak Ada Hak Akses', "Anda tidak memiliki hak akses terhadap modul ini.<br>\r\n Hubungi Superuser/Administrator untuk memberikan hak akses terhadap program studi."); } else { TampilkanSubMenu($mnux, $arrMK, $pref, $token); if (!empty($token)) { Def(); } }
$sub = !empty($_REQUEST['sub']) ? $_REQUEST['sub'] : 'frmPT'; $sub(); } function mb() { include_once "mhsw.edt.masterbipot.php"; $sub = !empty($_REQUEST['sub']) ? $_REQUEST['sub'] : 'BPTEDT'; $sub(); } // *** Parameters *** $arrmhswpg = array('Pribadi->pri', 'Alamat Tetap->almt', 'Akademik->akd', 'Orang Tua->ortu', 'Asal Sekolah->sek', 'Asal Perguruan Tinggi->pt', 'Bank->bank'); //'Master Bipot->mb'); $mhswid = GetSetVar('mhswid'); $mhswpg = GetSetVar('mhswpg', 'pri'); $mnux = 'mhsw.edt'; $pref = 'mhswedt'; $token = GetSetVar($pref, 'pri'); // *** Main *** TampilkanJudul("Data Mahasiswa"); if (!empty($_SESSION['mhswid'])) { $datamhsw = GetFields("mhsw m\r\n left outer join prodi prd on m.ProdiID=prd.ProdiID\r\n left outer join program prg on m.ProgramID=prg.ProgramID", 'm.MhswID', $mhswid, "m.*, prd.Nama as PRD, prg.Nama as PRG"); if (!empty($datamhsw)) { TampilkanHeaderMhsw($datamhsw); TampilkanSubMenu($mnux, $arrmhswpg, $pref, $token); if (!empty($token)) { $token(); } } else { echo ErrorMsg("Kesalahan", "Terjadi kesalahan. Mahasiswa dengan NPM: <b>{$mhswid}</b> tidak ditemukan."); } }
$_pres = -125; echo "<p><table class=box cellspacing=1>"; while ($w = _fetch_array($r)) { if ($_pres != $w['JenisPrestasi']) { $_pres = $w['JenisPrestasi']; $JenisPrestasi = $arrPrestasi[$_pres]; echo "<tr><td class=ul colspan=5><font size=+1>{$JenisPrestasi}</font></td></tr>"; echo "<tr><th class=ttl>#</th>\r\n <th class=ttl>Judul</th>\r\n <th class=ttl>Keterangan</th>\r\n <th class=ttl>Tanggal</th>\r\n </tr>"; $n = 0; } $n++; $tgl = FormatTanggal($w['Tanggal']); echo "<tr>\r\n <td class=inp>{$n}</td>\r\n <td class=ul>{$w['Judul']}</td>\r\n <td class=ul>{$w['Keterangan']}</td>\r\n <td class=ul>{$tgl}</td>\r\n </tr>"; } echo "</table></p>"; } } // *** Sub Menu *** $arrMenuInqMhsw = array("Data Pribadi->inqMhswPribadi", "Orang Tua->inqMhswOrtu", "Data Akademik->inqMhswAkademik", "History Semester->inqMhswSemester", "History Matakuliah->inqMhswMK", "Prestasi & Wanprestasi->inqMhswPres", "Tugas Akhir->inqTugasAkhir", "Keuangan->inqMhswKeuangan"); // *** Parameters *** $mhswid = GetSetVar('mhswid'); $UkuranHeader = GetSetVar('UkuranHeader', 'Besar'); $inqMhsw = GetSetVar('inqMhsw', 'inqMhswPribadi'); $gos = empty($_REQUEST['gos']) ? 'inqMhswPribadi' : $_REQUEST['gos']; // *** Main *** TampilkanJudul("Detail Mahasiswa"); if (!empty($_SESSION['mhswid'])) { $m = MhswDet(); TampilkanSubMenu('mhsw.inq.det', $arrMenuInqMhsw, 'inqMhsw', $inqMhsw); $inqMhsw($m); }
// Tampilkan //if ($dosen == $jdwl['DosenID'] || !empty($assisten)) { // Jika nilai sudah final, maka data sudah tidak dapat diubah if ($jdwl['Final'] == 'Y') { echo "<p><table class=box cellspacing=1 cellpadding=4 width=100%>\n <tr><td class=wrn>Nilai sudah final. Data sudah tidak dapat diubah lagi.</td></tr>\n </table></p>"; } // Extract program $_prg = TRIM($jdwl['ProgramID'], '.'); $_arrprg = explode('.', $_prg); $_prg = $_arrprg[0]; // Extract prodi $_prd = TRIM($jdwl['ProdiID'], '.'); $_arrprd = explode('.', $_prd); $_prd = $_arrprd[0]; $_prd = GetaField('mk', "MKID", $jdwl['MKID'], 'ProdiID'); $thn = GetFields('tahun', "TahunID='{$tahun}' and ProgramID = 'REG' and ProdiID", $_prd, '*'); $Sekarang = date('Y-m-d'); $Exp = $thn['TglNilai'] < $Sekarang; if ($Exp) { echo ErrorMsg("Tanggal Pengisian Nilai Telah Lewat", "Tanggal batas pengisian nilai sudah terlampaui, yaitu tanggal: {$thn['TglNilai']}.<br />\n Silakan hubungi bagian SIM untuk memasukkan nilai."); } if (!Exp || $_SESSION['_LevelID'] == 1 || $_SESSION['_LevelID'] == 100 || $_SESSION['_LevelID'] == 41) { TampilkanSubMenu($mnux, $arrnilaipg, $pref, $token); if (!empty($token)) { $token($jdwl); } } //} } else { echo ErrorMsg("Data Nilai Tidak Dapat Ditampilkan", "Data nilai matakuliah ini tidak dapat ditampilkan karena:\n <ol>\n <li>Matakuliah belum dipilih, atau</li>\n <li>Matakuliah belum diset Dosen/Penanggung jawabnya.</li>\n </ol>"); }
} function JenisBeasiswa() { if (strpos(".1.20.50.", '.' . $_SESSION['_LevelID'] . '.') === false) { echo Konfirmasi1("Anda tidak dapat mengakses modul ini."); } else { include_once "beasiswa.jen.php"; $sub = !empty($_REQUEST['sub']) ? $_REQUEST['sub'] : 'DftrJenisBeasiswa'; $sub(); } } // *** Parameters *** $arrBeasiswa = array("Daftar Penerima Beasiswa->DftrBeasiswa", "Query IPK Mahasiswa->QueryKinerja", "Jenis Beasiswa->JenisBeasiswa"); $tahun = GetSetVar('tahun'); $prodi = GetSetVar('prodi'); $prid = GetSetVar('prid'); $BeasiswaID = GetSetVar('BeasiswaID'); $beaMhswID = GetSetVar('beaMhswID'); $beaBesar = GetSetVar('beaBesar', 0); $IPKMin = GetSetVar('IPKMin', 3); $IPSMin = GetSetVar('IPSMin', 3); $IPUrut = GetSetVar('IPUrut', 'IPS'); $pref = "Bea22"; $tokendef = "DftrBeasiswa"; $token = GetSetVar($pref, $tokendef); // *** Main *** TampilkanJudul("Beasiswa Mahasiswa"); TampilkanSubMenu('beasiswa', $arrBeasiswa, $pref, $token); if (!empty($token)) { $token(); }
function PresDel1($m) { $presid = $_REQUEST['presid']; $s = "delete from prestasi where PrestasiID='{$presid}' "; $r = _query($s); // kembalikan echo "<script>window.location='?mnux={$_SESSION['mnux']}';</script>"; } // *** Parameters *** $mhswid = GetSetVar('mhswid'); $mhswPrestasi = GetSetVar('mhswPrestasi', 'mhswPrestasi'); //if (empty($mhswPrestasi)) $mhswPrestasi = 'mhswPrestasi'; $gos = empty($_REQUEST['gos']) ? "" : $_REQUEST['gos']; $arrPrestasi = array("Prestasi Mhsw->mhswPrestasi", "Sangsi/Wanprestasi Mhsw->mhswWan"); // *** Main *** TampilkanJudul("Catatan Prestasi dan Wanprestasi Mhsw"); if (!empty($mhswid)) { $m = GetFields("mhsw m \r\n left outer join program prg on m.ProgramID=m.ProgramID\r\n left outer join prodi prd on m.ProdiID=prd.ProdiID\r\n left outer join bipot bpt on m.BIPOTID=bpt.BIPOTID", 'MhswID', $mhswid, "m.*, prg.Nama as PRG, prd.Nama as PRD, bpt.Nama as BPT"); if (!empty($m)) { include_once "mhsw.hdr.php"; TampilkanHeaderBesar($m, 'mhsw.prestasi', '', 1); TampilkanSubMenu('mhsw.prestasi.det', $arrPrestasi, 'mhswPrestasi', $mhswPrestasi); if (empty($gos)) { if (!empty($mhswPrestasi)) { $mhswPrestasi($m); } } else { $gos($m); } } }
<?php function jabatan() { include "jabatan.jenis.php"; $sub = empty($_REQUEST['sub']) ? 'DftrJenisJabatan' : $_REQUEST['sub']; $sub(); } function detailJabatan() { include "jabatan.detail.php"; $sub = empty($_REQUEST['sub']) ? 'DftrJabatanMaster' : $_REQUEST['sub']; $sub(); } // *** Konst *** $arrJabatan = array("Master Jabatan->jabatan", "Detail Jabatan->detailJabatan"); // *** Parameters *** $jbtnperiod = GetSetVar('jbtnperiod'); $tok = empty($_REQUEST['tok']) ? "jabatan" : $_REQUEST['tok']; // *** Main *** TampilkanJudul("Master Jabatan Perguruan Tinggi"); TampilkanPilihanInstitusi($mnux); if (!empty($tok) && !empty($_SESSION['KodeID'])) { TampilkanSubMenu('jabatan', $arrJabatan, 'tok', $tok); $tok(); }
function Def() { global $mnux, $pref, $token; include_once "{$mnux}.{$_SESSION[$pref]}.php"; $sub = !empty($_REQUEST['sub']) ? $_REQUEST['sub'] : "Def{$_SESSION[$pref]}"; $sub(); } // *** Parameters *** $pref = 'mk'; $arrMK = array('Kurikulum->Kur', 'Konsentrasi->Kons', 'Jenis Mata Kuliah->Jen', 'Pilihan Wajib->Pil', 'Jenis Kurikulum->JenKur', 'Mata Kuliah->MK', 'Mata Kuliah Setara->MKSet', 'Nilai->Nil', 'MaxSKS->MaxSKS', 'Kehadiran SKS->HadirSKS', 'Paket Matakuliah->Pkt', "Predikat->pred"); $tokendef = 'MK'; $mnux = $_SESSION['mnux']; $token = GetSetVar($pref, $tokendef); $prodi = GetSetVar('prodi'); $kurid = GetSetVar("kurid_{$prodi}"); $mkkode = GetSetVar("mkkode_{$prodi}"); if (empty($kurid) && !empty($prodi)) { $_kurid = GetaField("kurikulum", "NA='N' and ProdiID", $prodi, "KurikulumID"); $_SESSION["kurid_{$prodi}"] = $_kurid; $kurid = $_kurid; } // *** Main *** TampilkanJudul("Administrasi Mata Kuliah"); if (empty($_SESSION['_ProdiID'])) { echo ErrorMsg('Tidak Ada Hak Akses', "Anda tidak memiliki hak akses terhadap modul ini.<br>\r\n Hubungi Superuser/Administrator untuk memberikan hak akses terhadap program studi."); } else { TampilkanSubMenu($_SESSION['mnux'], $arrMK, $pref, $token); if (!empty($token)) { Def(); } }
} function bipotmhsw() { include "bipot.master.php"; $sub = empty($_REQUEST['sub']) ? 'DftrBipotMaster' : $_REQUEST['sub']; $sub(); } function gradeipk() { include "bipot.gradeipk.php"; $sub = empty($_REQUEST['sub']) ? 'SetupGradeIPK' : $_REQUEST['sub']; $sub(); } function bipotdef() { } // *** Konst *** $arrBipot = array("Master Biaya & Potongan->bipot", "Biaya & Potongan Mahasiswa->bipotmhsw", "Setup Beasiswa->gradeipk"); // "Default Biaya & Potongan->bipotdef"); // *** Parameters *** $prodi = GetSetVar('prodi'); $prid = GetSetVar('prid'); $bipotid = GetSetVar('bipotid'); $tok = empty($_REQUEST['tok']) ? "bipot" : $_REQUEST['tok']; // *** Main *** TampilkanJudul("Master Biaya dan Potongan Mahasiswa"); //TampilkanPilihanInstitusi($mnux); if (!empty($tok) && !empty($_SESSION['KodeID'])) { TampilkanSubMenu($_SESSION['mnux'], $arrBipot, 'tok', $tok); $tok(); }
$_pres = -125; echo "<p><table class=box cellspacing=1>"; while ($w = _fetch_array($r)) { if ($_pres != $w['JenisPrestasi']) { $_pres = $w['JenisPrestasi']; $JenisPrestasi = $arrPrestasi[$_pres]; echo "<tr><td class=ul colspan=5><font size=+1>{$JenisPrestasi}</font></td></tr>"; echo "<tr><th class=ttl>#</th>\n <th class=ttl>Judul</th>\n <th class=ttl>Keterangan</th>\n <th class=ttl>Tanggal</th>\n </tr>"; $n = 0; } $n++; $tgl = FormatTanggal($w['Tanggal']); echo "<tr>\n <td class=inp>{$n}</td>\n <td class=ul>{$w['Judul']}</td>\n <td class=ul>{$w['Keterangan']}</td>\n <td class=ul>{$tgl}</td>\n </tr>"; } echo "</table></p>"; } } // *** Sub Menu *** $arrMenudataMhsw = array("Data Pribadi->dataMhswPribadi", "Orang Tua->dataMhswOrtu", "Data Akademik->dataMhswAkademik", "History Semester->dataMhswSemester", "History Matakuliah->dataMhswMK", "Prestasi & Wanprestasi->dataMhswPres", "Tugas Akhir->dataTugasAkhir", "Keuangan->dataMhswKeuangan"); // *** Parameters *** $mhswid = GetSetVar('mhswid'); $UkuranHeader = GetSetVar('UkuranHeader', 'Besar'); $dataMhsw = GetSetVar('dataMhsw', 'dataMhswPribadi'); $gos = empty($_REQUEST['gos']) ? 'dataMhswPribadi' : $_REQUEST['gos']; // *** Main *** TampilkanJudul("Detail Mahasiswa"); if (!empty($_SESSION['_Login'])) { $m = MhswDet(); TampilkanSubMenu('modules/mhsw.dataku.det', $arrMenudataMhsw, 'dataMhsw', $dataMhsw); $dataMhsw($m); }