function TampilkanHeaderExportDikti() { $optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['ProdiID'], "KodeID='" . KodeID . "'", 'ProdiID'); CheckFormScript('TahunID'); echo <<<ESD <p> <table class=box cellspacing=1 align=center width=800> <form name='frmHeader' action='?' method=POST onSubmit='return CheckForm(this)'> <tr><td class=wrn width=2></td> <td class=inp width=80>Tahun Akd:</td> <td class=ul> <input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=6 maxlength=6 /> <input type=submit name='SetParam' value='Set' /> </td> <td class=inp width=80>Program Studi:</td> <td class=ul nowrap> <select name='ProdiID' onChange='this.form.submit()'>{$optprodi}</select> <font color=red>*) Kosongkan jika ingin diproses semua </td> </tr> </form> </table> </p> ESD; }
function KurEdt() { global $mnux, $pref, $arrID; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('kurikulum', 'KurikulumID', $_REQUEST['kurid'], '*'); $jdl = "Edit Kurikulum"; } else { $w = array(); $w['KurikulumID'] = 0; $w['ProdiID'] = $_SESSION['prodi']; $w['KodeID'] = $arrID['Kode']; $w['KurikulumKode'] = ''; $w['Nama'] = ''; $w['Sesi'] = ''; $w['JmlSesi'] = ''; $w['NA'] = 'N'; $jdl = "Tambah Kurikulum"; } $_na = $w['NA'] == 'Y' ? 'checked' : ''; $snm = session_name(); $sid = session_id(); // Tampilkan form CheckFormScript("KurikulumKode,Nama,Sesi,JmlSesi"); echo "<table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='sub' value='KurSav'>\r\n <input type=hidden name='prodi' value='{$_SESSION['prodi']}'>\r\n <input type=hidden name='KurikulumID' value='{$w['KurikulumID']}'>\r\n <input type=hidden name='KodeID' value='{$w['KodeID']}'>\r\n <input type=hidden name='BypassMenu' value='1' />\r\n \r\n <tr><td class=ul colspan=2><b>{$arrID['Nama']}</b></td></tr>\r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp>Kode/Tahun:</td><td class=ul><input type=text name='KurikulumKode' value='{$w['KurikulumKode']}' size=20 maxlength=20></td></tr>\r\n <tr><td class=inp>Nama Kurikulum:</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp>Nama Sesi:</td><td class=ul><input type=text name='Sesi' value='{$w['Sesi']}' size=20 maxlength=20></td></tr>\r\n <tr><td class=inp>Jumlah Sesi/Tahun:</td><td class=ul><input type=text name='JmlSesi' value='{$w['JmlSesi']}' size=5 maxlength=2></td></tr>\r\n <tr><td class=inp>Tidak aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$_na}></td></tr>\r\n <tr><td colspan=2 align=center>\r\n <input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&{$snm}={$sid}'\"></td></tr>\r\n </form></table>"; }
function PilEdt() { global $mnux, $pref; $md = $_REQUEST['md'] + 0; if ($md == 0) { $JenisPilihanID = $_REQUEST['JenisPilihanID'] + 0; $w = GetFields('jenispilihan', "JenisPilihanID", $JenisPilihanID, '*'); $jdl = "Edit Jenis Pilihan Wajib"; } else { $w = array(); $w['JenisPilihanID'] = 0; $w['KodeID'] = $_SESSION['KodeID']; $w['Singkatan'] = ''; $w['Nama'] = ''; $w['ProdiID'] = $_SESSION['prodi']; $w['TA'] = 'N'; $w['NA'] = 'N'; $jdl = "Tambah Jenis Pilihan Wajib"; } $ta = $w['TA'] == 'Y' ? 'checked' : ''; $na = $w['NA'] == 'Y' ? 'checked' : ''; // Tampilkan CheckFormScript("Singkatan,Nama"); echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='{$pref}' value='Pil'>\r\n <input type=hidden name='sub' value='PilSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='JenisPilihanID' value='{$w['JenisPilihanID']}'>\r\n \r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp>Kode</td><td class=ul><input type=text name='Singkatan' value='{$w['Singkatan']}' size=5 maxlength=10></td></tr>\r\n <tr><td class=inp>Nama</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Tugas Akhir/Skripsi/Tesis/Disertasi?</td><td class=ul><input type=checkbox name='TA' value='Y' {$ta}><br />\r\n Digunakan untuk pengecekan pendaftaran skripsi & wisuda</td></tr>\r\n <tr><td class=inp>Tidak Aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$na}></td></tr>\r\n \r\n <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}=Pil'\"></td></tr>\r\n </table></p>"; }
function NilEdt() { global $mnux, $pref; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('nilai', "NilaiID", $_REQUEST['NID'], '*'); $jdl = "Edit Nilai"; } else { $w = array(); $w['NilaiID'] = 0; $w['KodeID'] = $_SESSION['KodeID']; $w['ProdiID'] = $_SESSION['prodi']; $w['Nama'] = ''; $w['Bobot'] = 0; $w['Lulus'] = 'N'; $w['NilaiMin'] = 0; $w['NilaiMax'] = 0; $w['MaxSKS'] = 0; $w['HitungIPK'] = 'N'; $w['Deskripsi'] = ''; $w['NA'] = 'N'; $jdl = "Tambah Nilai"; } $_na = $w['NA'] == 'Y' ? 'checked' : ''; $_Lulus = $w['Lulus'] == 'Y' ? 'checked' : ''; $_HitungIPK = $w['HitungIPK'] == 'Y' ? 'checked' : ''; $snm = session_name(); $sid = session_id(); // Tampilkan formulir CheckFormScript("Nama,Bobot,NilaiMin,NilaiMax"); echo "<p><table class=box cellspacing=1 cellpadding=4>\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\n <input type=hidden name='mnux' value='{$mnux}'>\n <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\n <input type=hidden name='sub' value='NilSav'>\n <input type=hidden name='md' value='{$md}'>\n <input type=hidden name='NilaiID' value='{$w['NilaiID']}'>\n <input type=hidden name='KodeID' value='{$w['KodeID']}'>\n <input type=hidden name='ProdiID' value='{$w['ProdiID']}'>\n\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\n <tr><td class=inp1>Nilai</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=5 maxlength=5></td></tr>\n <tr><td class=inp1>Bobot</td><td class=ul><input type=text name='Bobot' value='{$w['Bobot']}' size=5 maxlength=5></td></tr>\n <tr><td class=inp1>Lulus?</td><td class=ul><input type=checkbox name='Lulus' value='Y' {$_Lulus}></td></tr>\n <tr><td class=inp1>Batas Bawah</td><td class=ul><input type=text name='NilaiMin' value='{$w['NilaiMin']}' size=5 maxlength=5></td></tr>\n <tr><td class=inp1>Batas Atas</td><td class=ul><input type=text name='NilaiMax' value='{$w['NilaiMax']}' size=5 maxlength=5></td></tr>\n <tr><td class=inp1>Max Pengambilan SKS</td><td class=ul><input type=text name='MaxSKS' value='{$w['MaxSKS']}' size=4 maxlength=3></td></tr>\n <tr><td class=inp1>Hitung dlm IPK?</td><td class=ul><input type=checkbox name='HitungIPK' value='Y' {$_HitungIPK}></td></tr>\n <tr><td class=inp1>Deskripsi</td><td class=ul><input type=text name='Deskripsi' value='{$w['Deskripsi']}' size=50 maxlength=200></td></tr>\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\n <input type=reset name='Reset' value='Reset'>\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&{$snm}={$sid}'\"></td></tr>\n\n </form></table></p>"; }
function Edit($MhswID, $KHSID, $md, $BayarID) { $mhsw = GetFields('mhsw', "KodeID='" . KodeID . "' and MhswID", $MhswID, '*'); $khs = GetFields('khs', 'KHSID', $KHSID, '*'); if ($md == 0) { $jdl = "Edit Pembayaran"; $w = GetFields('bayarmhsw', 'BayarMhswID', $BayarID, '*'); } elseif ($md == 1) { $jdl = "Tambah Penarikan"; $w = array(); $rekening_def = GetaField('rekening', "Def = 'Y' and NA", 'N', 'RekeningID'); $w['RekeningID'] = $rekening_def; $w['Tanggal'] = date('Y-m-d'); } else { die(ErrorMsg('Error', "Mode edit <b>{$md}</b> tidak dikenali.<br />\r\n Hubungi Sysadmin untuk informasi lebih lanjut.\r\n <hr size=1 color=silver />\r\n <input type=button name='Tutup' value='Tutup' onClick=\"window.close()\" />")); } // Tampilkan BayarScript(); CheckFormScript('RekeningID,Bank'); $optrek = GetOption2('rekening', "concat(RekeningID, ' - ', Nama)", 'RekeningID', $w['RekeningID'], "KodeID='" . KodeID . "'", 'RekeningID'); $optTanggal = GetDateOption($w['Tanggal'], 'Tanggal'); TampilkanJudul($jdl); echo "\r\n <table class=box cellspacing=1 width=100%>\r\n <form name='frmBayar' action='../{$_SESSION['mnux']}.tarik.php' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='gos' value='Simpan' />\r\n <input type=hidden name='MhswID' value='{$MhswID}' />\r\n <input type=hidden name='KHSID' value='{$KHSID}' />\r\n <input type=hidden name='md' value='{$md}' />\r\n <input type=hidden name='BayarID' value='{$BayarID}' />\r\n \r\n <tr><td class=inp>Ditarik oleh:</td>\r\n <td class=ul1 colspan=3>\r\n <font size=+1>{$mhsw['Nama']}</font> <sup>(NIM: {$MhswID})</sup>\r\n </td>\r\n </tr>\r\n <tr><td class=inp>Dari Rekening:</td>\r\n <td class=ul1><select name='RekeningID'>{$optrek}</select></td>\r\n <td class=inp>Tgl Setor:</td>\r\n <td class=ul1>{$optTanggal}</td>\r\n </tr>\r\n <tr><td class=inp>Ditarik Dari:</td>\r\n <td class=ul1><input type=text name='Bank' value='{$w['Bank']}' size=30 maxlength=50 /> <a href='#' onClick=\"javascript:SetCash()\">Set CASH</a><br />\r\n <sup>Isi dengan `CASH` bila dibayarkan dengan Tunai</sup>\r\n </td>\r\n <td class=inp>No. Bukti Tarik:</td>\r\n <td class=ul1><input type=text name='BuktiSetoran' value='{$w['BuktiSetoran']}'\r\n size=30 maxlength=50 /><br />\r\n <sup>Kosongkan jika pembayaran cash</sup>\r\n </td>\r\n </tr>\r\n <tr><td class=inp>Catatan:</td>\r\n <td class=ul1 colspan=3><input type=text name='Keterangan' value='{$w['Keterangan']}'\r\n size=90 maxlength=50 />\r\n </td>\r\n </tr>\r\n </table>"; TampilkanDetailBiaya($MhswID, $mhsw, $khs, $md); }
function KampEdt() { global $_Identitas; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('kampus', 'KampusID', $_REQUEST['KampID'], '*'); $jdl = "Edit Kampus"; $strid = "<input type=hidden name='KampusID' value='{$w['KampusID']}'><b>{$w['KampusID']}</b>"; } else { $w = array(); $w['KampusID'] = ''; $w['Nama'] = ''; $w['Alamat'] = ''; $w['Kota'] = ''; $w['KodeID'] = $_Identitas; $w['Telepon'] = ''; $w['Fax'] = ''; $w['NA'] = 'N'; $jdl = "Tambah Kampus"; $strid = "<input type=text name='KampusID' size=20 maxlength=20>"; } $snm = session_name(); $sid = session_id(); $optkodid = GetOption2('identitas', "concat(Kode, ' - ', Nama)", 'Kode', $w['KodeID'], '', 'Kode'); $na = $w['NA'] == 'Y' ? 'checked' : ''; $c1 = 'class=inp1'; $c2 = 'class=ul'; CheckFormScript('KampusID,Nama,KodeID'); // Tampilkan echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='kampus'>\r\n <input type=hidden name='gos' value='KampSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <tr><th colspan=2 class=ttl>{$jdl}</th></tr>\r\n <tr><td {$c1}>Kode Kampus</td><td {$c2}>{$strid}</td></tr>\r\n <tr><td {$c1}>Nama</td><td {$c2}><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td {$c1}>Institusi</td><td {$c2}><select name='KodeID'>{$optkodid}</select></td></tr>\r\n <tr><td {$c1}>Alamat</td><td {$c2}><textarea name='Alamat' cols=30 rows=2>{$w['Alamat']}</textarea></td></tr>\r\n <tr><td {$c1}>Kota</td><td {$c2}><input type=text name='Kota' value='{$w['Kota']}' size=40 maxlength=50></td></tr>\r\n <tr><td {$c1}>Telepon</td><td {$c2}><input type=text name='Telepon' value='{$w['Telepon']}' size=40 maxlength=50></td></tr>\r\n <tr><td {$c1}>Fax</td><td {$c2}><input type=text name='Fax' value='{$w['Fax']}' size=40 maxlength=50></td></tr>\r\n <tr><td {$c1}>NA (tidak aktif)?</td><td {$c2}><input type=checkbox name='NA' value='Y' {$na}></td></tr>\r\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=Reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=kampus&gos=&{$snm}={$sid}'\"></td></tr>\r\n \r\n </form></table></p>"; }
function Edit($md, $Kode, $bck) { if ($md == 0) { $jdl = "Edit Komponen"; $w = GetFields('pmbusm', "KodeID='" . KodeID . "' and PMBUSMID", $Kode, "*"); $_usm = "<input type=hidden name='Kode' value='{$w['PMBUSMID']}' /><b>{$w['PMBUSMID']}</b>"; } elseif ($md == 1) { $jdl = "Tambah Komponen"; $w = array(); $w['NA'] = 'N'; $_usm = "<input type=text name='Kode' size=10 maxlength=10 />"; } else { die(ErrorMsg('Error', "Mode edit tidak dikenali.")); } TampilkanJudul($jdl); // Parameters $na = $w['NA'] == 'Y' ? 'checked' : ''; if (empty($w['CaraPenempatan'])) { $Urut = 'checked'; } else { $Urut = $w['CaraPenempatan'] == 'Urut' ? 'checked' : ''; $Acak = $w['CaraPenempatan'] == 'Acak' ? 'checked' : ''; $Manual = $w['CaraPenempatan'] == 'Manual' ? 'checked' : ''; } CheckFormScript('Kode,Nama'); echo "<p><table class=bsc cellspacing=1 align=center width=100%>\n <form action='../{$_SESSION['mnux']}.usm.edit.php' method=POST onSubmit='return CheckForm(this)'>\n <input type=hidden name='gos' value='Simpan' />\n <input type=hidden name='md' value='{$md}' />\n <input type=hidden name='bck' value='{$bck}' />\n \n <tr><td class=inp>Kode USM:</td>\n <td class=ul1>{$_usm}</td>\n </tr>\n <tr><td class=inp>Nama Ujian:</td>\n <td class=ul1><input type=text name='Nama' value='{$w['Nama']}'\n size=30 maxlength=50 /></td>\n </tr>\r\n <tr><td class=inp>Cara Penempatan Cama:</td>\r\n\t <td class=ul1><input type=radio name='CaraPenempatan' value='Urut' {$Urut}>Urut\r\n\t\t\t\t<br><input type=radio name='CaraPenempatan' value='Acak' {$Acak}>Acak\r\n\t\t\t\t<br><input type=radio name='CaraPenempatan' value='Manual' {$Manual}>Manual</td>\r\n\t </tr>\n <tr><td class=inp>Keterangan:</td>\n <td class=ul1>\n <textarea name='Keterangan' cols=30 rows=4>{$w['Keterangan']}</textarea>\n </td></tr>\n <tr><td class=inp>NA (tidak aktif)?</td>\n <td class=ul1>\n <input type=checkbox name='NA' value='Y' {$na} /> *) Beri centang jika tidak aktif\n </td>\n </tr>\n \n <tr><td class=ul1 colspan=2 align=center>\n <input type=submit name='Simpan' value='Simpan' />\n <input type=button name='Batal' value='Batal'\n onClick=\"window.close()\" />\n </td>\n </tr>\n </form>\n </table></p>"; }
function DendaEdt() { $ProdiID = $_REQUEST['ProdiID']; $prd = GetFields('prodi', 'ProdiID', $ProdiID, '*'); CheckFormScript('Denda1,Denda2'); echo "<p><table class=box cellspacing=1>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='denda'>\r\n <input type=hidden name='gos' value='DendaSav'>\r\n <input type=hidden name='ProdiID' value='{$ProdiID}'>\r\n \r\n <tr><th class=ttl colspan=2>Edit Denda Program Studi</th></tr>\r\n <tr><td class=inp>Kode Prodi</td><td class=ul><b>{$prd['ProdiID']}</b></td></tr>\r\n <tr><td class=inp>Program Studi</td><td class=ul><b>{$prd['Nama']}</b></td></tr>\r\n <tr><td class=inp>Denda Terlambat</td>\r\n <td class=ul><input type=text name='Denda1' value='{$prd['Denda1']}' size=3 maxlength=3> %</td></tr>\r\n <tr><td class=inp>Sampai Akhir Semester</td>\r\n <td class=ul><input type=text name='Denda2' value='{$prd['Denda2']}' size=3 maxlength=3> %</td></tr>\r\n <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=denda'\"></td></tr>\r\n </form></table></p>"; }
function MKSTREDT($m) { $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('mhswpindahansetara', "KRSID", $_REQUEST['KRSID'], '*'); $jdl = "Edit Matakuliah yg Disetarakan"; } else { $w = array(); $w['KRSID'] = 0; $w['MhswPindahanID'] = $_SESSION['MPID']; $w['TahunID'] = '00000'; $w['MKID'] = 0; $w['MKKode'] = ''; $w['SKS'] = -1; $w['GradeNilai'] = ''; $w['SetaraKode'] = ''; $w['SetaraGrade'] = ''; $w['SetaraNama'] = ''; $w['SetaraSKS'] = 0; $w['NilaiAkhir'] = 0; $jdl = "Tambah Matakuliah yg Disetarakan"; } CheckFormScript('SetaraKode,SetaraGrade,SetaraNama'); TampilkanJudul($jdl); $optn = GetOption2("nilai", "concat(Nama, ' (', Bobot, ')')", "Bobot desc", $w['GradeNilai'], "ProdiID='{$m['ProdiID']}'", 'Nama'); $kurid = GetaField('kurikulum', "NA='N' and ProdiID", $m['ProdiID'], 'KurikulumID'); $optm = GetOption2("mk", "concat(MKKode, ' - ', Nama, ' (', SKS, ')')", 'MKKode', $w['MKID'], "KurikulumID={$kurid}", 'MKID'); echo "<p><table class=box cellspacing=1>\r\n <form action='?' name='data' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='gos' value='MKSTRSAV'>\r\n <input type=hidden name='md' value={$md}>\r\n <input type=hidden name='MPID' value='{$w['MhswPindahanID']}'>\r\n <input type=hidden name='KRSID' value='{$w['KRSID']}'>\r\n \r\n <tr><th class=ttl colspan=2>Matakuliah Asli</th>\r\n <th class=ul><img src='img/kanan.gif'></th>\r\n <th class=ttl colspan=2>Matakuliah {$_SESSION['KodeID']} (Setara)</th></tr>\r\n <tr><td class=inp>Kode Asli</td>\r\n <td class=ul><input type=text name='SetaraKode' value='{$w['SetaraKode']}' size=20 maxlength=30></td>\r\n <td class=ul><img src='img/kanan.gif'></td>\r\n <td class=inp>Kode MK</td>\r\n <td class=ul><select name='MKID'>{$optm}</select></td>\r\n </tr>\r\n <tr><td class=inp>Nama MK</td>\r\n <td class=ul><input type=text name='SetaraNama' value='{$w['SetaraNama']}' size=30 maxlength=50></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr><td class=inp>SKS Asli</td>\r\n <td class=ul><input type=text name='SetaraSKS' value='{$w['SetaraSKS']}' size=10 maxlength=5>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr><td class=inp>Nilai Asli</td>\r\n <td class=ul><input type=text name='NilaiAkhir' value='{$w['NilaiAkhir']}' size=10 maxlength=5>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr><td class=inp>Grade Nilai Asli</td>\r\n <td class=ul><input type=text name='SetaraGrade' value='{$w['SetaraGrade']}' size=10 maxlength=5>\r\n <td class=ul><img src='img/kanan.gif'></td>\r\n <td class=inp>Grade</td>\r\n <td class=ul><select name='GradeNilai'>{$optn}</select></td>\r\n </tr>\r\n <tr><td class=ul colspan=5>\r\n <input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=pindahan.setara'\"></td></tr>\r\n </form></table></p>"; }
function edtAplikan() { $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('aplikan', 'AplikanID', $_REQUEST['aplikan'], '*'); $jdl = "Edit Form Aplikan"; $_pmbid = "<input type=hidden name='AplikanID' value='{$w['AplikanID']}'><b>{$w['AplikanID']}</b>"; } else { $w = ResetAplikan(); $jdl = "Tambah Form Aplikan"; $_pmbid = "<input type=hidden name='AplikanID' value='' /><font color=red>[AutoNumber]</font>"; } $prdchkS1 = GetCheckboxes2('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['ProdiID'], ',', "JenjangID='C'", " "); $prdchkD3 = GetCheckboxes2('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['ProdiID'], ',', "JenjangID='E'", " "); // Asal Sekolah $NamaSekolah = GetaField('asalsekolah', 'SekolahID', $w['AsalSekolah'], "concat(Nama, ', ', Kota)"); // Kelamin $optkelamin = GetRadio("select * from kelamin where NA='N'", 'Kelamin', 'Nama', 'Kelamin', $w['Kelamin'], ' '); $_TanggalLahir = GetDateOption($w['TanggalLahir'], 'TanggalLahir'); $_Agama = GetOption2('agama', "concat(Agama, ' - ', Nama)", '', $w['Agama'], '', 'Agama'); $_PendidikanAyah = GetOption2('pendidikanortu', "concat(Pendidikan, ' - ', Nama)", 'Pendidikan', $w['PendidikanAyah'], '', 'Pendidikan'); $_PekerjaanAyah = GetOption2('pekerjaanortu', "concat(Pekerjaan, ' - ', Nama)", 'Pekerjaan', $w['PekerjaanAyah'], '', 'Pekerjaan'); $_PendidikanIbu = GetOption2('pendidikanortu', "concat(Pendidikan, ' - ', Nama)", 'Pendidikan', $w['PendidikanIbu'], '', 'Pendidikan'); $_PekerjaanIbu = GetOption2('pekerjaanortu', "concat(Pekerjaan, ' - ', Nama)", 'Pekerjaan', $w['PekerjaanIbu'], '', 'Pekerjaan'); $_JurusanSekolah = GetOption2('jurusansekolah', "concat(Nama, ' - ', NamaJurusan)", 'Nama', $w['JurusanSekolah'], '', 'JurusanSekolahID'); CariSekolahScript(); // Tampilkan formulir Aplikan $cekfields = "Nama,PMBFormJualID,ProgramID,Pilihan1,TempatLahir"; CheckFormScript($cekfields); echo "\r\n <form name='data' action='{$act}' method=POST onSubmit=\"return CheckForm(this);\">\r\n <input type=hidden name='BypassMenu' value=1>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='gos' value='{$pmbgos}'>\r\n <input type=hidden name='pmbaktif' value='{$_SESSION['pmbaktif']}'>\r\n \r\n\t<fieldset style='width:80%'>\r\n\t <legend>{$jdl}</legend>\r\n\t\t<ol>\r\n\t\t <li>\r\n\t\t\t<label for='AplikanID'>Nomor Aplikan:</label>\r\n\t\t\t<input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength='50' class=text />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='Nama'>Nama:</label>\r\n\t\t\t<input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength='50' class=text />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=TempatLahir>Tempat Lahir:</label>\r\n\t\t\t<input type=text name='TempatLahir' value='{$w['TempatLahir']}' size=30 maxlength=50 class=text />\r\n\t\t\t<label for=TanggalLahir class=none>Tanggal Lahir:</label>\r\n\t\t\t{$_TanggalLahir}\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='Nama'>Jenis Kelamin:</label>\r\n\t\t\t{$optkelamin}\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='Nama'>Agama:</label>\r\n\t\t\t<select name='Agama'>{$_Agama}</select>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='Alamat'>Alamat:</label>\r\n\t\t\t<textarea name='Alamat' cols=40 rows=2>{$w['Alamat']}</textarea>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='RT'>RT:</label>\r\n\t\t\t<input type=text name='RT' value='{$w['RT']}' size=8 maxlength=8 class=text />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='RW'>RW:</label>\r\n\t\t\t<input type=text name='RW' value='{$w['RW']}' size=8 maxlength=8 class=text />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='KodePos'>Kode Pos:</label>\r\n\t\t\t<input type=text name='KodePos' value='{$w['KodePos']}' size=25 maxlength=50 class=text />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='Email'>Email:</label>\r\n\t\t\t<input type=text name='Email' value='{$w['Email']}' size=25 maxlength=100 class=text />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='Telepon'>Telepon:</label>\r\n\t\t\t<input type=text name='Telepon' value='{$w['Telepon']}' size=25 maxlength=50 />\r\n\t\t\t<label for='Handphone' class=none>Handphone:</label>\r\n\t\t\t<input type=text name='Handphone' value='{$w['Handphone']}' size=25 maxlength=50 />\r\n\t\t </li>\r\n\t\t</ol>\r\n\t </fieldset>\r\n\t <fieldset style='width:80%'>\r\n\t\t<legend>Pendidikan Terakhir</legend>\r\n\t\t<ol>\r\n\t\t <li>\r\n\t\t\t<label for='NamaSekolah'>Sekolah:</label>\r\n\t\t\t<input type=text name='NamaSekolah' value='{$NamaSekolah}' size=50 maxlength=255 /><a href='javascript:carisekolah(data)'> Cari</a>\r\n\t\t\t<input type=hidden name='AsalSekolah' value='{$w['AsalSekolah']}' />\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=TahunLulus>Lulus Tahun:</label>\r\n\t\t\t<input type=text name='TahunLulus' value='{$w['TahunLulus']}' size=10 maxlength=5>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=Jurusan>Jurusan:</label>\r\n\t\t\t<select name='JurusanSekolah'>{$_JurusanSekolah}</select>\r\n\t\t </li>\r\n\t\t</ol>\r\n\t </fieldset>\r\n\t <fieldset style='width:80%'>\r\n\t\t<legend>Orang Tua</legend>\r\n\t\t<ol>\r\n\t\t <li>\r\n\t\t\t<label for='NamaAyah'>Nama Ayah:</label>\r\n\t\t\t<input type=text name='NamaAyah' value='{$w['NamaAyah']}' size=40 maxlength=50>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=PendidikanAyah>Pendidikan Ayah:</label>\r\n\t\t\t<select name='PendidikanAyah'>{$_PendidikanAyah}</select>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=PekerjaanAyah>Pekerjaan Ayah:</label>\r\n\t\t\t<select name='PekerjaanAyah'>{$_PekerjaanAyah}</select>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='NamaIbu's>Nama Ibu:</label>\r\n\t\t\t<input type=text name='NamaIbu' value='{$w['NamaIbu']}' size=40 maxlength=50>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=PendidikanIbu>Pendidikan Ibu:</label>\r\n\t\t\t<select name='PendidikanIbu'>{$_PendidikanIbu}</select>\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for=PekerjaanIbu>Pekerjaan Ibu</label>\r\n\t\t\t<select name='PekerjaanIbu'>{$_PekerjaanIbu}</select>\r\n\t\t </li>\r\n\t\t</ol>\r\n\t </fieldset>\r\n\t <fieldset style='width:80%'>\r\n\t\t<legend>Pilihan Program Studi</legend>\r\n\t\t<ol>\r\n\t\t <li>\r\n\t\t\t<label for='Diploma'>Diploma Tiga (D3):</label>\r\n\t\t\t{$prdchkD3}\r\n\t\t </li>\r\n\t\t <li>\r\n\t\t\t<label for='strata'>Strata Satu (S1):</label>\r\n\t\t\t{$prdchkS1}\r\n\t\t </li>\r\n\t\t</ol>\r\n\t </fieldset>\r\n\t <fieldset class=submit style='width:80%'>\r\n\t\t<input class=submit type=submit value=Submit />\r\n\t </fieldset>\r\n\t</form>"; }
function FrmEdt() { global $mnux, $pref, $_PMBMaxPilihan, $arrID; $md = $_REQUEST['md'] + 0; $PMBFormulirID = $_REQUEST['fid'] + 0; if ($md == 0) { $w = GetFields('pmbformulir', 'PMBFormulirID', $PMBFormulirID, '*'); $jdl = 'Edit Formulir PMB'; } else { $w = array(); $w['PMBFormulirID'] = 0; $w['Nama'] = ''; $w['KodeID'] = $arrID['Kode']; $w['Harga'] = 0; $w['JumlahPilihan'] = 1; $w['HanyaProdi1'] = ''; $w['KecualProdi1'] = ''; $w['HanyaProdi2'] = ''; $w['KecualProdi2'] = ''; $w['HanyaProdi3'] = ''; $w['KecualProdi3'] = ''; $w['NA'] = 'N'; $w['Keterangan'] = ''; $jdl = 'Tambah Formulir PMB'; } $na = $w['NA'] == 'Y' ? 'checked' : ''; $pil = GetNumberOption(1, $_PMBMaxPilihan, $w['JumlahPilihan']); $optKID = GetOption2('identitas', "concat(Kode, ' - ', Nama)", 'Kode', $w['KodeID'], '', 'Kode'); $snm = session_name(); $sid = session_id(); CheckFormScript("_KodeID,Nama,JumlahPilihan,Harga"); echo "<table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='{$pref}' value='Hrg'>\r\n <input type=hidden name='sub' value='FrmSav'>\r\n <input type=hidden name='PMBFormulirID' value='{$w['PMBFormulirID']}'>\r\n \r\n <tr><th colspan=2 class=ttl>{$jdl}</th></tr>\r\n <tr><td class=inp1>Institusi</td><td class=ul><select name='_KodeID'>{$optKID}</select></td></tr>\r\n <tr><td class=inp1>Nama Formulir</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp1>Jumlah Pilihan</td><td class=ul><select name='JumlahPilihan'>{$pil}</select></td></tr>\r\n <tr><td class=inp1>Harga Formulir</td><td class=ul><input type=text name='Harga' value='{$w['Harga']}' size=15 maxlength=15></td></tr>\r\n <tr><td class=inp1>Tidak aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$na}></td></tr>\r\n <tr><td class=inp1>Keterangan</td><td class=ul><textarea name='Keterangan' cols=40 rows=4>{$w['Keterangan']}</textarea></td></tr>\r\n \r\n <tr><td class=ul colspan=2><b>Setup Pilihan 1</td></tr>\r\n <tr><td class=inp1>Hanya Prodi <font color=red>*)</td><td class=ul><input type=text name='HanyaProdi1' value='{$w['HanyaProdi1']}' size=50 maxlength=100></td></tr>\r\n <tr><td class=inp1>Kecuali Prodi <font color=red>**)</td><td class=ul><input type=text name='KecualiProdi1' value='{$w['KecualiProdi1']}' size=50 maxlength=100></td></tr>\r\n \r\n <tr><td class=ul colspan=2><b>Setup Pilihan 2</td></tr>\r\n <tr><td class=inp1>Hanya Prodi <font color=red>*)</td><td class=ul><input type=text name='HanyaProdi2' value='{$w['HanyaProdi2']}' size=50 maxlength=100></td></tr>\r\n <tr><td class=inp1>Kecuali Prodi <font color=red>**)</td><td class=ul><input type=text name='KecualiProdi2' value='{$w['KecualiProdi2']}' size=50 maxlength=100></td></tr>\r\n \r\n <tr><td class=ul colspan=2><b>Setup Pilihan 3</td></tr>\r\n <tr><td class=inp1>Hanya Prodi <font color=red>*)</td><td class=ul><input type=text name='HanyaProdi3' value='{$w['HanyaProdi3']}' size=50 maxlength=100></td></tr>\r\n <tr><td class=inp1>Kecuali Prodi <font color=red>**)</td><td class=ul><input type=text name='KecualiProdi3' value='{$w['KecualiProdi3']}' size=50 maxlength=100></td></tr>\r\n \r\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}=Hrg&sub=&{$snm}={$sid}'\"></td></tr>\r\n \r\n </form></table><br>"; // Keterangan echo "<table class=box cellspacing=0 cellpadding=4>\r\n <tr><td class=ul><font color=red>*)</td><td class=ul>Jika formulir ini hanya berlaku untuk prodi ini.</td></tr>\r\n <tr><td class=ul><font color=red>**)</td><td class=ul>Jika formulir ini tidak berlaku untuk prodi ini.</td></tr>\r\n <tr><td colspan=2>Masing-masing Prodi diapit tanda titik (.)</td></tr>\r\n </table>"; }
function StawalEdt() { global $mnux, $pref, $CatatanStatusAwal; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('statusawal', "StatusAwalID", $_REQUEST['stawalid'], '*'); $jdl = "Edit Status Awal Mahasiswa"; $_strstawalid = "<input type=hidden name='stawalid' value='{$w['StatusAwalID']}'><b>{$w['StatusAwalID']}</b>"; } else { $w = array(); $w['StatusAwalID'] = ''; $w['Nama'] = ''; $w['BeliFormulir'] = 'Y'; $w['JalusKhusus'] = 'N'; $w['TanpaTest'] = 'N'; $w['Catatan'] = ''; $w['NA'] = 'N'; $jdl = "Tambah Status Awal Mahasiswa"; $_strstawalid = "<input type=text name='stawalid' size=5 maxlength=5>"; } $NA = $w['NA'] == 'Y' ? 'checked' : ''; $BeliFormulir = $w['BeliFormulir'] == 'Y' ? 'checked' : ''; $JalurKhusus = $w['JalusKhusus'] == 'Y' ? 'checked' : ''; $TanpaTest = $w['TanpaTest'] == 'Y' ? 'checked' : ''; $snm = session_name(); $sid = session_id(); // Tampilkan formulir CheckFormScript("stawalid,Nama"); echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='{$pref}' value='Stawal'>\r\n <input type=hidden name='sub' value='StawalSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp1>ID</td><td class=ul>{$_strstawalid}</td></tr>\r\n <tr><td class=inp1>Nama Status Awal</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp1>Harus Beli Formulir?</td><td class=ul><input type=checkbox name='BeliFormulir' value='Y' {$BeliFormulir}> Jika harus beli, maka akan dilakukan pemeriksaan terhadap Bukti Setoran pembelian formulir.</td></tr>\r\n <tr><td class=inp1>Jalur Khusus?</td><td class=ul><input type=checkbox name='JalurKhusus' value='Y' {$JalurKhusus}></td></tr>\r\n <tr><td class=inp1>Tanpa Test (USM)?</td><td class=ul><input type=checkbox name='TanpaTest' value='Y' {$TanpaTest}></td></tr>\r\n <tr><td class=inp1>Tidak Aktif (NA)?</td><td class=ul><input type=checkbox name='NA' value='Y' {$NA}></td></tr>\r\n <tr><td class=inp1>Catatan</td><td class=ul><input type=text name='Catatan' value='{$w['Catatan']}' size=50 maxlength=100></td></tr>\r\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}=Stawal&{$snm}={$sid}'\"></td></tr>\r\n </form></table></p>"; echo $CatatanStatusAwal; }
function TampilkanHeader() { $optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['ProdiID']); CheckFormScript('TahunID,ProdiID,Angkatan'); $Sekarang = date('Y-m-d-H-i'); echo <<<SELESAI <table class=box cellspacing=1 align=center> <form action='{$_SESSION['mnux']}.cetak.php' method=POST target=_blank onSubmit='return CheckForm(this)'> <input type=hidden name='gos' value='CetakKHS' /> <input type=hidden name='BypassMenu' value='1' /> <input type=hidden name='Sekarang' value='{$Sekarang}' /> <tr><td class=wrn width=2 rowspan=3></td> <td class=inp>Tahun Akademik:</td> <td class=ul><input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=5 maxlength=5 /></td> <td class=inp>Program Studi:</td> <td class=ul><select name='ProdiID'>{$optprodi}</select></td> </tr> <tr><td class=inp>Angkatan Mhsw:</td> <td class=ul><input type=text name='Angkatan' value='{$_SESSION['Angkatan']}' size=5 maxlength=5 /> atau:</td> <td class=inp>Mahasiswa:</td> <td class=ul colspan=2 nowrap> <input type=text name='MhswID' value='{$_SESSION['MhswID']}' size=20 maxlength=50 /> <input type=submit name='Cetak' value='Cetak KHS' /><br /> *) Kosongkan jika ingin mencetak 1 angkatan </td> </tr> </form> </table> </p> SELESAI; }
function Edit($md, $id, $bck) { if ($md == 0) { $jdl = "Edit Formulir"; $w = GetFields('pmbformulir', "KodeID='" . KodeID . "' and PMBFormulirID", $id, "*"); } elseif ($md == 1) { $jdl = "Tambah Formulir"; $w = array(); $w['JumlahPilihan'] = 1; $w['USM'] = 'N'; $w['Wawancara'] = 'N'; $w['Prasyarat'] = 'N'; $w['NA'] = 'N'; } else { die(ErrorMsg('Error', "Mode edit tidak dikenali.")); } TampilkanJudul($jdl); // Parameters $optjml = GetNumberOption(1, 3, $w['JumlahPilihan']); $na = $w['NA'] == 'Y' ? 'checked' : ''; $usmchecked = $w['USM'] == 'Y' ? 'checked' : ''; $wawancarachecked = $w['Wawancara'] == 'Y' ? 'checked' : ''; $prasyaratchecked = $w['Prasyarat'] == 'Y' ? 'checked' : ''; $prasyaratvisibility = $w['Prasyarat'] == 'Y' ? 'visible' : 'hidden'; $Prasyarat = GetPrasyarat($w['PrasyaratExtra']); $webdefchecked = $w['WebDef'] == 'Y' ? 'checked' : ''; CheckFormScript('Nama,Harga'); //$TestMasuk = GetTestMasuk($w['USM']); echo "<p><table class=bsc cellspacing=1 align=center width=100%>\r\n <form action='../{$_SESSION['mnux']}.formulir.edit.php' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='gos' value='Simpan' />\r\n <input type=hidden name='md' value='{$md}' />\r\n <input type=hidden name='id' value='{$id}' />\r\n <input type=hidden name='bck' value='{$bck}' />\r\n \r\n <tr><td class=inp>Formulir:</td>\r\n <td class=ul1><input type=text name='Nama' value='{$w['Nama']}'\r\n size=30 maxlength=50 />\r\n </td></tr>\r\n <tr><td class=inp>Jumlah Pilihan:</td>\r\n <td class=ul1><select name='JumlahPilihan'>{$optjml}</select></td>\r\n </tr>\r\n <tr><td class=inp>Harga:</td>\r\n <td class=ul1><input type=text name='Harga' value='{$w['Harga']}' size=10 maxlength=15 /></td>\r\n </tr>\r\n <tr><td class=inp>Ada USM?</td>\r\n <td class=ul1><input type=checkbox name='USM' value='Y' {$usmchecked}></td>\r\n </tr>\r\n <tr><td class=inp>Ada Wawancara?</td>\r\n\t <td class=ul1><input type=checkbox name='Wawancara' value='Y' {$wawancarachecked}></td>\r\n\t </tr>\r\n <tr><td class=inp>Ada Prasyarat?</td>\r\n\t <td class=ul1>\r\n\t <div style='float:left'><input type=checkbox name='Prasyarat' value='Y' {$prasyaratchecked} onClick=\"toggleDiv('PrasyaratPlus');\"></div>\r\n\t <div id='PrasyaratPlus' style='float:left; padding-left:15px; padding-right:15px; background-color:#DDDDDD; visibility:{$prasyaratvisibility};'>\r\n\t\t{$Prasyarat}\r\n\t </div>\r\n\t </td>\r\n\t </tr>\r\n <tr><td class=inp>Keterangan:</td>\r\n <td class=ul1>\r\n <textarea name='Keterangan' cols=30 rows=3>{$w['Keterangan']}</textarea>\r\n </td></tr>\r\n <tr><td class=inp>NA (tidak aktif)?</td>\r\n <td class=ul1>\r\n <input type=checkbox name='NA' value='Y' {$na} /> *) Beri centang jika tidak aktif\r\n </td>\r\n </tr>\r\n \r\n <tr><td class=ul1 colspan=2 align=center>\r\n <input type=submit name='Simpan' value='Simpan' />\r\n <input type=button name='Batal' value='Batal'\r\n onClick=\"window.close()\" />\r\n </td>\r\n </tr>\r\n </form>\r\n </table></p>\r\n <script>\r\n\tfunction toggleDiv(name)\r\n\t{\tif(document.getElementById(name).style.visibility == 'hidden')\r\n\t\t\tdocument.getElementById(name).style.visibility = 'visible';\r\n\t\telse\r\n\t\t\tdocument.getElementById(name).style.visibility = 'hidden';\r\n\t}\r\n </script>"; }
function DataQuota($gel) { $optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['ProdiID']); $whr_prodi = empty($_SESSION['ProdiID']) ? '' : "and ProdiID='{$_SESSION['ProdiID']}'"; EditQuotaScript(); CheckFormScript('TahunID,ProdiID'); echo "<p>\n <table class=box cellspacing=1 align=center>\n <form action='?' method=POST onSubmit='return CheckForm(this)'>\n <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\n <input type=hidden name='gos' value='' />\n <tr><td class=wrn width=2 rowspan=4></td>\n <td class=inp>Gelombang:</td>\n <td class=ul>{$gel}</td>\n </tr>\n <tr>\n <td class=inp>Program Studi:</td>\n <td class=ul><select name='ProdiID'>{$optprodi}</select></td>\n </tr>\n <tr><td></td>\n\t </tr>\n <tr><td class=ul colspan=2>\n <input type=submit name='AmbilData' value='Ambil Data' />\n </td></tr>\n </form>\n </table>\n </p>"; $maxLast = 100; echo "<p>\n <table class=box cellspacing=1 align=center>\n <form action='?' method=POST>\n <input type=hidden name='gos' value='ProsesQuota' />\n <input type=hidden name='gel' value='{$gel}' />\n <input type=hidden name='prodi' value='{$_SESSION['ProdiID']}' />\n <input type=hidden name='BypassMenu' value=1 />\n <tr>\n\t<th class=ttl>100.00</th>\n\t<th class=ttl colspan=3></th>\n\t<th class=ttl><input type=button name='Tambah' value='+' onClick='EditQuota(1, 0, 100)'></th>\n </tr>"; $whr_prodi = empty($_SESSION['ProdiID']) ? '' : "and ProdiID='{$_SESSION['ProdiID']}'"; $s = "select * from quotabeasiswa where PMBPeriodID='{$gel}' {$whr_prodi} and KodeID='" . KodeID . "' order by DariNilai DESC"; $r = _query($s); while ($w = _fetch_array($r)) { $s1 = "select PMBID, Nama, NilaiSekolah from pmb where PMBPeriodID='{$gel}' {$whr_prodi} \n\t\t\t\tand {$w['DariNilai']} <= NilaiSekolah and NilaiSekolah < {$maxLast} and LulusUjian='Y' and KodeID='" . KodeID . "' order by NilaiSekolah DESC"; $r1 = _query($s1); $optpeserta = "<option value=''>-- Lihat List Calon Mahasiswa di Sini --</option>"; $n1 = 0; while ($w1 = _fetch_array($r1)) { $n1++; $optpeserta .= "<option value='{$n1}'>{$w1['PMBID']} - {$w1['Nama']} ( {$w1['NilaiSekolah']} )</option>"; } echo "\n\t <tr>\n\t\t<td class=ul rowspan=2></td>\n\t\t<td class=ul rowspan=2 align=center><font size=3><b>{$w['Diskon']} %</b></font></td>\n\t\t<td class=inp>Calon<sup>2</sup> Mahasiswa:</td>\n\t\t<td class=ul><select name='Nama{$w['MaxQuotaID']}'>{$optpeserta}</select></td>\n\t\t<td class=ul rowspan=2 align=center><a href='#' onClick=\"EditQuota(0, {$w['MaxQuotaID']}, '{$maxLast}')\"><img src='img/edit.png'></a></td>\n\t </tr>\n\t <tr>\n\t\t<td class=inp>Jumlah:</td>\n\t\t<td class=ul><b>{$n1}</b></td>\n\t </tr>\n\t <tr>\n\t\t<th class=ttl>{$w['DariNilai']}</th>\n\t\t<th class=ttl colspan=3></th>\n\t\t<th class=ttl><input type=button name='Tambah' value='+' onClick=\"EditQuota(1, 0, '{$w['DariNilai']}')\"></th>\n\t </tr>"; $maxLast = $w['DariNilai']; } $s1 = "select PMBID, Nama, NilaiSekolah from pmb where PMBPeriodID='{$gel}' {$whr_prodi} \n\t\t\t\tand NilaiSekolah < {$maxLast} and LulusUjian='Y' and KodeID='" . KodeID . "' order by NilaiSekolah DESC"; $r1 = _query($s1); $optpeserta = "<option value=''>-- Lihat List Calon Mahasiswa di Sini --</option>"; $n1 = 0; while ($w1 = _fetch_array($r1)) { $n1++; $optpeserta .= "<option value='{$n1}'>{$w1['PMBID']} - {$w1['Nama']} ( {$w1['NilaiSekolah']} )</option>"; } echo "\n <tr>\n\t<td class=ul rowspan=2></td>\n\t<td class=ul rowspan=2 align=center><font size=3><b>0.00 %</b></font></td>\n\t<td class=inp>Calon<sup>2</sup> Mahasiswa:</td>\n\t<td class=ul><select name='NamaLast'>{$optpeserta}</select></td>\n </tr>\n <tr>\n\t<td class=inp>Jumlah:</td>\n\t<td class=ul><b>{$n1}</b></td>\n </tr>\n <tr>\n\t<th class=ttl>0.00</th>\n\t<th class=ttl colspan=3></th>\n\t<th class=ttl></th>\n </tr>\n <tr>\n\t<td colspan=8><input type=submit name='Proses' value='Proses Quota Beasiswa'></td>\n </tr>\n </form> \n </table>\n </p>"; }
function Edit($tanggal, $md, $id) { if ($md == 0) { $jdl = "Edit Hari Libur"; $w = GetFields('harilibur', "HariLiburID='{$id}' and KodeID", KodeID, '*'); } else { if ($md == 1) { $jdl = "Tambah Hari Libur"; $w = array(); $w['Warna'] = '#'; $w['TidakAdaKuliah'] = 'Y'; $w['NA'] = 'N'; $w['TanggalMulai'] = $tanggal; $w['TanggalSelesai'] = $tanggal; } else { die(ErrorMsg("Error", "Mode penyimpanan tidak diketahui")); } } CheckFormScript('Keterangan'); $opttanggalmulai = GetDateOption($w['TanggalMulai'], 'TanggalMulai'); $opttanggalselesai = GetDateOption($w['TanggalSelesai'], 'TanggalSelesai'); $optjenislibur = GetOption2('jenislibur', 'Nama', 'JenisLiburID', $w['JenisLiburID'], "KodeID='" . KodeID . "'", 'JenisLiburID', 0, 1); $checkadakuliah = $w['TidakAdaKuliah'] == 'Y' ? 'checked' : ''; $NA = $w['NA'] == 'Y' ? 'checked' : ''; echo "<table class=bsc cellspacing=1 width=100%>\r\n\t\t\t<form name='datalibur' id='datalibur' action='?mnux={$_SESSION['mnux']}&gos=SavData' method=POST onSubmit=\"return CheckForm(this)\">\r\n\t\t\t<input type=hidden name='md' value='{$md}'>\r\n\t\t\t<input type=hidden name='id' value='{$id}'>\r\n\t\t\t<tr><td class=inp>Tanggal Mulai:</td>\r\n\t\t\t <td class=ul1>{$opttanggalmulai}</td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Tanggal Selesai:</td>\r\n\t\t\t <td class=ul1>{$opttanggalselesai}</td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Keterangan:</td>\r\n\t\t\t <td class=ul1><textarea name='Keterangan' cols=30 row=2>{$w['Keterangan']}</textarea></td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Jenis Libur:</td>\r\n\t\t\t <td class=ul1><select name='JenisLiburID'>{$optjenislibur}</select></td></tr>\r\n\t\t\t<tr><td class=inp>Tidak ada kuliah/ujian?</td>\r\n\t\t\t <td class=ul1><input type=checkbox name='TidakAdaKuliah' value='Y' {$checkadakuliah}></td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Tidak Aktif?</td>\r\n\t\t\t <td class=u1l><input type=checkbox name='NA' value='Y' {$NA}></td></tr>\r\n\t\t\t<tr><td colspan=2 align=center><input type=submit name='Simpan' value='Simpan Hari Libur' onClick=\"return CekTanggal(this.form)\">\r\n\t\t\t\t\t\t\t\t\t\t <input type=button name='Batal' value='Batal' onClick=\"window.close()\"></td>\r\n\t\t\t </tr>\r\n\t\t\t </form>\r\n\t\t </table>\r\n\t\t <script>\r\n\t\t\tfunction CekTanggal(frm)\r\n\t\t\t{\tvar mulai = new Date(frm.TanggalMulai_y.value, frm.TanggalMulai_m.value, frm.TanggalMulai_d.value);\r\n\t\t\t\tvar selesai = new Date(frm.TanggalSelesai_y.value, frm.TanggalSelesai_m.value, frm.TanggalSelesai_d.value);\r\n\t\t\t\r\n\t\t\t\tif(selesai < mulai) \r\n\t\t\t\t{\talert('Tanggal Mulai tidak boleh melebihi Tanggal Selesai');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t </script>\r\n\t\t "; }
function BuatKoreksi($mhsw) { $md = $_REQUEST['md'] + 0; $krs = GetFields('krs', 'KRSID', $_REQUEST['KRSID'], '*'); if ($md == 0) { $w = GetFields('koreksinilai', "KoreksiNilaiID", $_REQUEST['KNID'], '*'); $jdl = "Edit SK Koreksi Nilai"; } else { $w = array(); $w['KoreksiNilaiID'] = 0; $w['Tanggal'] = date('Y-m-d'); $w['SK'] = ''; $w['Perihal'] = ''; $w['TahunID'] = $krs['TahunID']; $w['KRSID'] = $krs['KRSID']; $w['MhswID'] = $mhsw['MhswID']; $w['MKID'] = $krs['MKID']; $w['GradeLama'] = $krs['GradeNilai']; $w['GradeNilai'] = $krs['GradeNilai']; $w['Pejabat'] = ''; $w['Jabatan'] = ''; $w['Lampiran'] = ''; $w['Keterangan'] = ''; $w['NA'] = 'N'; $jdl = "Tambah SK Koreksi Nilai"; } $mk = GetFields('mk', 'MKID', $w['MKID'], "MKKode, Nama"); $tgl = GetDateOption($w['Tanggal'], "TGL"); $optnilai = GetOption2('nilai', "concat(Nama, ' (', Bobot, ')')", "Bobot desc", $w['GradeNilai'], "ProdiID='{$mhsw['ProdiID']}'", "Nama"); // Tampilkan form CheckFormScript("SK,Perihal,GradeNilai,Keterangan,Pejabat,Jabatan"); echo "<p><table class=box cellspacing=1>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='koreksi.nilai'>\r\n <input type=hidden name='gos' value='KoreksiSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='KoreksiNilaiID' value='{$w['KoreksiNilaiID']}'>\r\n <input type=hidden name='TahunID' value='{$w['TahunID']}'>\r\n <input type=hidden name='KRSID' value='{$w['KRSID']}'>\r\n <input type=hidden name='MKID' value='{$w['MKID']}'>\r\n <input type=hidden name='MhswID' value='{$w['MhswID']}'>\r\n <input type=hidden name='GradeLama' value='{$w['GradeLama']}'>\r\n <tr><td class=ul colspan=2><font size=+1>{$jdl}</font></td></tr>\r\n <tr><td class=inp>Nomer SK</td><td class=ul><input type=text name='SK' value='{$w['SK']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Tanggal SK</td><td class=ul>{$tgl}</td></tr>\r\n <tr><td class=inp>Perihal</td><td class=ul><input type=text name='Perihal' value='{$w['Perihal']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Matakuliah</td><td class=ul><font size=+1>{$mk['Nama']}</font> ({$mk['MKKode']})</td></tr>\r\n <tr><td class=inp>Nilai/Grade Lama</td><td class=ul><font size=+1>{$w['GradeLama']}</font></td></tr>\r\n <tr><td class=inp>Nilai/Grade Baru</td><td class=ul><select name='GradeNilai'>{$optnilai}</select></td></tr>\r\n <tr><td class=inp>Keterangan (Sebab2)</td><td class=ul><textarea name='Keterangan' cols=30 rows=3>{$w['Keterangan']}</textarea></td></tr>\r\n <tr><td class=inp>Dibuat oleh</td><td class=ul><input type=text name='Pejabat' value='{$w['Pejabat']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Jabatan</td><td class=ul><input type=text name='Jabatan' value='{$w['Jabatan']}' size=30 maxlenght=50></td></tr>\r\n <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=koreksi.nilai&gos=TampilkanNilaiMhsw'\"></td></tr>\r\n </form></table></p>"; }
function Edit($md, $prd, $id) { $gelombang = GetaField('pmbperiod', "KodeID='" . KodeID . "' and NA", 'N', "PMBPeriodID"); if ($md == 0) { $jdl = "Edit Wawancara USM"; $w = GetFields('wawancarausm', 'WawancaraUSMID', $id, '*'); } elseif ($md == 1) { $jdl = "Tambah Wawancara"; $w = array(); $w['Tanggal'] = GetaField('pmbperiod', "KodeID='" . KodeID . "' and PMBPeriodID", $gelombang, 'UjianMulai'); $w['JamMulai'] = '09:00'; $w['JamSelesai'] = '09:50'; $w['PanjangWaktu'] = 0; $w['Kapasitas'] = 0; } else { die(ErrorMsg('Error', "Terjadi kesalahan.<br />\r\n Mode edit <b>{$md}</b> tidak dikenali.<br />\r\n Hubungi Sysadmin untuk informasi lebih lanjut.\r\n <hr size=1 color=silver />\r\n <input type=button name='Tutup' value='Tutup' onClick=\"window.close()\" />")); } // Tampilkan TampilkanJudul($jdl); $s1 = "select r.RuangID, r.KapasitasUjian, k.Nama as NamaKampus \r\n\t\t\tfrom ruang r left outer join kampus k on r.KampusID=k.KampusID\r\n\t\t\twhere r.UntukUSM = 'Y' \r\n\t\t\torder by r.KampusID, r.RuangID"; $r1 = _query($s1); if (!empty($_SESSION['prodi'])) { $gelombang = GetaField('pmbperiod', "KodeID='" . KodeID . "' and NA", 'N', "PMBPeriodID"); } $jml = GetaField('pmb', "PMBPeriodID='{$gelombang}' and Pilihan1", $_SESSION['prodi'], "count(PMBID)"); $ruangopt = GetOption2('ruang', 'RuangID', 'RuangID', $w['RuangID'], "KodeID='" . KodeID . "'", 'RuangID'); $Tanggal = GetDateOption($w['Tanggal'], 'Tanggal'); $JamMulai = GetTimeOption($w['JamMulai'], 'JamMulai'); $JamSelesai = GetTimeOption($w['JamSelesai'], 'JamSelesai'); CheckFormScript('Ruang,Kapasitas,PanjangWaktu'); echo "<p><table class=bsc cellspacing=1 width=100%>\r\n <form name='wawancaraedit' action='../{$_SESSION['mnux']}.wawancarausm.edit.php' method=POST onSubmit='return CheckForm(this)'>\r\n <input type=hidden name='md' value='{$md}' />\r\n <input type=hidden name='prd' value='{$prd}' />\r\n <input type=hidden name='id' value='{$id}' />\r\n <input type=hidden name='gos' value='Simpan' />\r\n \r\n <tr><td class=inp>Mata Uji:</td>\r\n <td class=ul1 colspan=3><input type=text name='xMataUji' value='Wawancara' disabled>\r\n\t\t\t\t\t\t\t <input type=hidden name='MataUji' value='Wawancara'></td>\r\n </tr>\r\n <tr><td class=inp>Tanggal Wawancara:</td>\r\n <td class=ul1 colspan=3>{$Tanggal}</td>\r\n </tr>\r\n <tr><td class=inp>Jam Wawancara:</td>\r\n <td class=ul1 colspan=3>{$JamMulai} s/d {$JamSelesai}</td>\r\n\t </tr>\r\n <tr><td class=inp>Panjang Waktu Wawancara:<br>(Per Cama)</td>\r\n\t <td class=ul1 colspan=3><input type=text name='PanjangWaktu' value='{$w['PanjangWaktu']}' size=2 maxlength=3 > menit \r\n\t\t\t<font color=red>*) Masukkan 0 untuk tidak ada pembatasan waktu</font></td>\r\n\t </tr>\r\n <tr><td class=inp>Kapasitas Cama:</td>\r\n <td class=ul1 colspan=3><input type=text name='Kapasitas' value='{$w['Kapasitas']}' size=2 maxlength=3 > orang \r\n\t\t\t<font color=red>*) Masukkan 0 untuk tidak ada pembatasan kuota</font></td>\r\n\t </tr>\r\n <tr><td class=inp>Ruang Wawancara:</td>\r\n\t <td class=ul1 colspan=3><select name='Ruang'>{$ruangopt}</select></td></tr>\r\n <tr><td class=ul1 colspan=4 align=center>\r\n <input type=submit name='Simpan' value='Simpan' onClick=\"return (CekJam() && CekPanjangWaktu()) \"/>\r\n <input type=button name='Batal' value='Batal' onClick=\"window.close()\" />\r\n </td></tr>\r\n </form>\r\n </table>\r\n <script>\r\n\tfunction CekJam()\r\n\t{\tcek = true;\r\n\t\tjammulai = wawancaraedit.JamMulai_h.value;\r\n\t\tmenitmulai = wawancaraedit.JamMulai_n.value;\r\n\t\tjamselesai = wawancaraedit.JamSelesai_h.value;\r\n\t\tmenitselesai = wawancaraedit.JamSelesai_n.value;\r\n\t\tif(jammulai > jamselesai)\r\n\t\t{\talert('Jam Mulai tidak boleh lebih telat dari atau sama dengan Jam Selesai');\r\n\t\t\tcek = false;\r\n\t\t}\r\n\t\telse if(jammulai == jamselesai)\r\n\t\t{\tif(menitmulai >= menitselesai)\r\n\t\t\t{\talert('Jam Mulai tidak boleh lebih telat dari atau sama dengan Jam Selesai');\r\n\t\t\t\tcek = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cek;\r\n\t}\r\n\tfunction CekPanjangWaktu()\r\n\t{\tcek = true;\r\n\t\tjammulai = wawancaraedit.JamMulai_h.value;\r\n\t\tmenitmulai = wawancaraedit.JamMulai_n.value;\r\n\t\tjamselesai = wawancaraedit.JamSelesai_h.value;\r\n\t\tmenitselesai = wawancaraedit.JamSelesai_n.value;\r\n\t\tpanjangwaktu = wawancaraedit.PanjangWaktu.value;\r\n\t\t\r\n\t\trentangmenit = ((jamselesai - jammulai)*60)+(menitselesai-menitmulai);\r\n\t\tif(panjangwaktu > rentangmenit)\r\n\t\t{\talert('Panjang Waktu Wawancara tidak boleh lebih kecil dari selisih Jam Selesai dan Jam Mulai');\r\n\t\t\tcek = false;\r\n\t\t}\r\n\t\t\r\n\t\treturn cek;\r\n\t}\r\n </script>"; }
function JenAdd() { global $arrID, $mnux, $pref; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('jenismk', "JenisMKID", $_REQUEST['jmkid'], '*'); $jdl = "Edit Jenis Mata Kuliah"; } else { $w = array(); $w['JenisMKID'] = 0; $w['KodeID'] = $arrID['Kode']; $w['Urutan'] = 0; $w['Singkatan'] = ''; $w['Nama'] = ''; $w['ProdiID'] = $_SESSION['prodi']; $w['NA'] = 'N'; $jdl = "Tambah Jenis Mata Kuliah"; } $snm = session_name(); $sid = session_id(); $_NA = $w['NA'] == 'Y' ? 'checked' : ''; $_prd = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['prodi'], '', 'ProdiID'); // tampilkan formulir CheckFormScript("Singkatan,Nama,prodi"); echo "<table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\r\n <input type=hidden name='sub' value='JenSav'>\r\n <input type=hidden name='KodeID' value='{$arrID['Kode']}'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='JenisMKID' value='{$w['JenisMKID']}'>\n <input type=hidden name='BypassMenu' value='1' />\n \r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp>Urutan Tampilan</td><td class=ul><input type=text name='Urutan' value='{$w['Urutan']}' size=5 maxlength=5></td></tr>\r\n <tr><td class=inp>Singkatan</td><td class=ul><input type=text name='Singkatan' value='{$w['Singkatan']}' size=30 maxlength=20></td></tr>\r\n <tr><td class=inp>Jenis Matakuliah</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Program Studi</td><td class=ul><select name='prodi'>{$_prd}</select></td></tr>\r\n <tr><td class=inp>Tidak aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$_NA}></td></tr>\r\n <tr><td colspan=2 align=center>\n <input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}'\"></td></tr>\r\n </form></table>"; }
function KonsEdt() { global $mnux, $pref, $arrID; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('konsentrasi', "KonsentrasiID", $_REQUEST['konsid'], '*'); $jdl = "Edit Konsentrasi"; } else { $w = array(); $w['KonsentrasiID'] = 0; $w['KonsentrasiKode'] = ''; $w['Nama'] = ''; $w['KodeID'] = $arrID['Kode']; $w['ProdiID'] = $_SESSION['prodi']; $w['Keterangan'] = ''; $w['NA'] = 'N'; $jdl = "Tambah Konsentrasi"; } $_na = $w['NA'] == 'Y' ? 'checked' : ''; $snm = session_name(); $sid = session_id(); // Tampilkan form CheckFormScript("KonsentrasiKode,Nama"); echo "<table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\r\n <input type=hidden name='sub' value='KonsSav'>\r\n <input type=hidden name='KodeID' value='{$w['KodeID']}'>\r\n <input type=hidden name='prodi' value='{$w['ProdiID']}'>\r\n <input type=hidden name='KonsentrasiID' value='{$w['KonsentrasiID']}'>\r\n \r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp1>Kode Konsentrasi</td><td class=ul><input type=text name='KonsentrasiKode' value='{$w['KonsentrasiKode']}' size=20 maxlength=20></td></tr>\r\n <tr><td class=inp1>Nama</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp1>Keterangan</td><td class=ul><textarea name='Keterangan' cols=30 rows=4>{$w['Keterangan']}</textarea></td></tr>\r\n <tr><td class=inp1>Tidak Aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$_na}></td></tr>\r\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&{$snm}={$sid}'\"></td></tr>\r\n </form></table>"; }
function BugsEdt() { global $arrPrioritas, $arrStatus; $md = $_REQUEST['md'] + 0; if ($md == 0) { $bid = $_REQUEST['bid']; $be = GetFields('bugserror', 'ID', $bid, '*'); $judul = "Edit Catatan Bugs & Error"; } else { $be = array(); $be['ID'] = 0; $be['Judul'] = ''; $be['Bugs'] = ''; $be['Prioritas'] = 1; $be['StatusID'] = 1; $be['Keterangan'] = ''; $be['NA'] = 'N'; $judul = "Tambah Catatan Bugs & Error"; } $_na = $be['NA'] == 'Y' ? 'checked' : ''; //$optprio = BuatOpsi("Prioritas", $arrPrioritas, $be['Prioritas']); //$optstat = BuatOpsi("StatusID", $arrStatus, $be['StatusID']); CheckFormScript('Judul,Bugs'); if (strpos('.1.2.', ".{$_SESSION['_LevelID']}.") === false) { $prio = GetaField('bugsprioritas', 'ID', $be['Prioritas'], 'Nama'); $stat = GetaField('bugsstatus', 'ID', $be['StatusID'], 'Nama'); $str = "<tr><td class=inp>Prioritas</td><td class=ul>{$prio} <input type=hidden name='Prioritas' value='{$be['Prioritas']}'></td></tr>\r\n <tr><td class=inp>Status</td><td class=ul>{$stat} <input type=hidden name='StatusID' value='{$be['StatusID']}'></td></tr>"; } else { $optprio = GetOption2('bugsprioritas', "concat(ID, ' - ', Nama)", "ID", $be['Prioritas'], '', "ID"); $optstat = GetOption2('bugsstatus', "concat(ID, ' - ', Nama)", 'ID', $be['StatusID'], '', 'ID'); $str = "<tr><td class=inp>Prioritas</td><td class=ul><select name='Prioritas'>{$optprio}</select></td></tr>\r\n <tr><td class=inp>Status</td><td class=ul><select name='StatusID'>{$optstat}</select></td></tr>\r\n <tr><td class=ul colspan=2>Keterangan Developer:<br />\r\n <textarea name='Keterangan' cols=100 rows=10>{$be['Keterangan']}</textarea></td></tr>"; } echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST name='BugsErrorRec' onSubmit='return CheckForm(this)'>\r\n <input type=hidden name='mnux' value='bugserror'>\r\n <input type=hidden name='gos' value='BugsSav'>\r\n <input type=hidden name='bid' value='{$be['ID']}'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='BypassMenu' value='1'>\r\n <tr><td class=ul colspan=2><font size=+1>{$judul}</font></td></tr>\r\n <tr><td class=inp>Judul Catatan</td><td class=ul><input type=text name='Judul' value='{$be['Judul']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp>Bugs/Error</td><td class=ul><textarea name='Bugs' cols=40 rows=6>{$be['Bugs']}</textarea></td></tr>\r\n {$str}\r\n <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=bugserror'\"></td></tr>\r\n </form></table></p>"; }
function PerEdt() { global $mnux, $pref; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('pmbperiod', 'PMBPeriodID', $_SESSION['pmbperiod'], '*'); $edtpmbperiod = "<input type=hidden name='pmbperiod' value='{$w['PMBPeriodID']}'><b>{$w['PMBPeriodID']}</b>"; $jdl = "Edit Periode PMB"; } else { $w['PMBPeriodID'] = $_REQUEST['pmbperiod']; $w['Nama'] = ''; $w['TglMulai'] = date('Y-m-d'); $w['TglSelesai'] = date('Y-m-d'); $w['UjianMulai'] = date('Y-m-d'); $w['UjianSelesai'] = date('Y-m-d'); $w['BayarMulai'] = date('Y-m-d'); $w['BayarSelesai'] = date('Y-m-d'); $w['TelitiBayarProdi'] = ''; $w['NA'] = 'N'; $edtpmbperiod = "<input type=text name='pmbperiod' value='{$w['PMBPeriodID']}' size=20 maxlength=20>"; $jdl = "Tambah Periode PMB"; } $mul = GetDateOption($w['TglMulai'], 'TglMulai'); $sel = GetDateOption($w['TglSelesai'], 'TglSelesai'); $umul = GetDateOption($w['UjianMulai'], 'UjianMulai'); $usel = GetDateOption($w['UjianSelesai'], 'UjianSelesai'); $bmul = GetDateOption($w['BayarMulai'], 'BayarMulai'); $bsel = GetDateOption($w['BayarSelesai'], 'BayarSelesai'); $_prodi = GetCheckboxes('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['TelitiBayarProdi']); $yn = $w['NA'] == 'Y' ? 'checked' : ''; CheckFormScript("pmbperiod,Nama"); echo "<table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='{$pref}' value='Per'>\r\n <input type=hidden name='sub' value='PerSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <tr><th colspan=2 class=ttl>{$jdl}</th></tr>\r\n <tr><td class=inp1>Kode Periode</td><td class=ul>{$edtpmbperiod}</td></tr>\r\n <tr><td class=inp1>Nama Periode</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength=100></td></tr>\r\n <tr><td class=inp1>Tidak Aktif</td><td class=ul><input type=checkbox name='NA' value='Y' {$yn}></td></tr>\r\n \r\n <tr><th colspan=2 class=ttl>Pendaftaran</th></tr>\r\n <tr><td class=inp1>Tgl Mulai</td><td class=ul>{$mul}</tr>\r\n <tr><td class=inp1>Tgl Selesai</td><td class=ul>{$sel}</td></tr>\r\n \r\n <tr><th colspan=2 class=ttl>Ujian Saringan Masuk</th></tr>\r\n <tr><td class=inp1>Tgl Mulai</td><td class=ul>{$umul}</tr>\r\n <tr><td class=inp1>Tgl Selesai</td><td class=ul>{$usel}</td></tr>\r\n \r\n <tr><th colspan=2 class=ttl>Pembayaran & Pendaftaran Ulang</th></tr>\r\n <tr><td class=inp1>Tgl Mulai</td><td class=ul>{$bmul}</tr>\r\n <tr><td class=inp1>Tgl Selesai</td><td class=ul>{$bsel}</td></tr>\r\n <tr><td class=inp1>Terapkan pada Prodi</td><td class=ul>{$_prodi}</td></tr>\r\n \r\n <tr><td colspan=2><input type=submit name='Simpan' Value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}=Per'\">\r\n </td></tr>\r\n </table>"; }
function TampilkanHeaderNilaiMhsw() { global $arrID; CheckFormScript("tahun"); $optprd = GetOption2("prodi", "concat(ProdiID, ' - ', Nama)", "ProdiID", $_SESSION['prodi'], '', "ProdiID"); echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$_SESSION['mnux']}'>\r\n <input type=hidden name='gos' value='CreateDBFNilaiMhsw'>\r\n <tr><th class=ttl colspan=5>{$arrID['Nama']}</th></tr>\r\n\t<tr><td class=inp>Tahun Akademik</td><td class=ul colspan=4><input type=text name=tahun value='{$_SESSION['tahun']}' size=15></td></tr>\r\n\t<tr><td class=inp>Prodi</td><td class=ul colspan=4><select name='prodi'>{$optprd}</td></tr> \r\n <tr></tr> <td class=inp>Dari NIM:</td>\r\n <td class=ul><input type=text name='DariNPM' value='{$_SESSION['DariNPM']}' size=20 maxlength=50></td>\r\n <td class=inp>Sampai NIM:</td>\r\n <td class=ul><input type=text name='SampaiNPM' value='{$_SESSION['SampaiNPM']}' size=20 maxlength=50></td>\r\n <td class=ul><input type=submit name='Cetak' value='Proses'></td>\r\n \r\n </form></table></p>"; }
function PktEdt() { global $mnux, $pref; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('mkpaket', 'MKPaketID', $_REQUEST['mpid'], '*'); $jdl = "Edit Paket Matakuliah"; } else { $w = array(); $w['MKPaketID'] = 0; $w['KodeID'] = $_SESSION['KodeID']; $w['ProdiID'] = $_SESSION['prodi']; $w['KurikulumID'] = 0; $w['Nama'] = ''; $w['Deskripsi'] = ''; $w['NA'] = 'N'; $jdl = "Tambah Paket Matakuliah"; } $_na = $w['NA'] == 'Y' ? 'checked' : ''; $snm = session_name(); $sid = session_id(); $optkurid = GetOption2("kurikulum", "concat(KurikulumKode, ' - ', Nama)", "KurikulumKode", $w['KurikulumID'], "KodeID='{$w['KodeID']}' and ProdiID='{$w['ProdiID']}'", "KurikulumID", 1); $NamaProdi = GetaField('prodi', 'ProdiID', $_SESSION['prodi'], 'Nama'); // Tampilkan CheckFormScript("Nama,KurikulumID"); echo "<p><table class=box cellspacing=1 cellpadding=4>\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\n <input type=hidden name='mnux' value='{$mnux}'>\n <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\n <input type=hidden name='md' value='{$md}'>\n <input type=hidden name='sub' value='PktSav'>\n <input type=hidden name='MKPaketID' value='{$w['MKPaketID']}'>\n \n <input type=hidden name='KodeID' value='{$w['KodeID']}'>\n <input type=hidden name='ProdiID' value='{$w['ProdiID']}'>\n \n <tr><td colspan=2 class=ul>{$_SESSION['prodi']} <b>{$NamaProdi}</b></td></tr>\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\n <tr><td class=inp1>Nama Paket</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\n <tr><td class=inp1>Kurikulum</td><td class=ul><select name='KurikulumID'>{$optkurid}</select></td></tr>\n <tr><td class=inp1>Deskripsi</td><td class=ul><textarea name='Deskripsi'>{$w['Deskripsi']}</textarea></td></tr>\n <tr><td class=inp1>Tidak aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$_na}></td></tr>\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\n <input type=reset name='Reset' value='Reset'>\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&{$snm}={$sid}'\"></td></tr>\n </form></table></p>"; }
function TampilkanPembayaranDariDeposit($mhsw, $krs, $byr) { $optrek = GetOption2('rekening', "concat(RekeningID, ' - ', Nama)", 'RekeningID', '', '', 'RekeningID'); CheckFormScript("RekeningID"); echo "<p><font size=+2>» Pembayaran Dari Deposit</font></p>"; $s = "select dep.*, date_format(dep.Tanggal, '%d-%m-%Y') as TGL\r\n from depositmhsw dep\r\n where dep.MhswID='{$mhsw['MhswID']}'\r\n order by Tanggal"; $r = _query($s); $n = 0; echo "<blockquote><table class=box>\r\n <tr><th class=ttl>#</th>\r\n <th class=ttl>Tanggal</th>\r\n <th class=ttl>Jumlah</th>\r\n <th class=ttl>Dipakai</th>\r\n <th class=ttl>Sisa</th>\r\n <th class=ttl>Opsi</th>\r\n </tr>"; while ($w = _fetch_array($r)) { $n++; if ($w['Tutup'] == 'Y') { $c = "class=nac"; $byrkn = "<td class=ul> </td>"; } else { $c = "class=ul"; $byrkn = "<form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='klinik.biyar.trx'>\r\n <input type=hidden name='gos' value='DariDeposit'>\r\n <input type=hidden name='DMID' value='{$w['DepositMhswID']}'>\r\n <input type=hidden name='MhswID' value='{$_SESSION['MhswID']}'>\r\n <input type=hidden name='KRS' value='{$krs['KRSID']}'>\r\n <td class=ul><select name='RekeningID'>{$optrek}</select>\r\n <input type=submit name='Bayarkan' value='Bayarkan'></td>\r\n </form>"; } $jml = number_format($w['Jumlah']); $pki = number_format($w['Dipakai']); $ssa = number_format($w['Jumlah'] - $w['Dipakai']); echo "<tr><td class=inp>{$n}</td>\r\n <td {$c}>{$w['TGL']}</td>\r\n <td {$c} align=right>{$jml}</td>\r\n <td {$c} align=right>{$pki}</td>\r\n <td {$c} align=right>{$ssa}</td>\r\n {$byrkn}\r\n </tr>"; } echo "</table></blockquote>"; }
function LokasiAssetEdt() { global $KodeID; $md = $_REQUEST['md']+0; if($md==0) { $w = GetFields('lokasiasset', 'LokasiID', $_REQUEST['jid'], '*'); $nm = "<input type=hidden name='Nama' value='$w[Nama]' size=50 maxlength=50> $w[Nama]"; $jdl="Edit Data"; } else{ $w = array(); $w['LokasiID'] = GetaField('lokasiasset', 'KodeID', $KodeID, "max(LokasiID)+1"); $nm = "<input type=text name='Nama' value='$w[Nama]' size=50 maxlength=50>"; $jdl="Tambah Data"; } $na = ($w['NA'] == 'Y')? 'checked' : ''; CheckFormScript("LokasiID, Nama"); echo "<p><table class=box cellspacing=1 cellpadding=4> <form action='?' method=POST onSubmit=\"return CheckForm(this)\"> <input type=hidden name='mnux' value='lokasi.asset'> <input type=hidden name='gos' value='LokasiAssetSav'> <input type=hidden name='md' value='$md'> <tr><th class=ttl colspan=2>$jdl</th></tr> <tr><td class=inp>Ranking/Urutan</td> <td class=ul><input type=text name='LokasiID' value='$w[LokasiID]' size=5 maxlength=5></td></tr> <tr><td class=inp>Nama</td> <td class=ul><b>$nm</b></td></tr> <tr><td class=inp>NA (tidak aktif)?</td> <td class=ul><input type=checkbox name='NA' value='Y' $na></td></tr> <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'> <input type=reset name='Reset' value='Reset'> <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=lokasi.asset'\"></td></tr> </form></table></p>"; }
function EditKelas() { $md = $_REQUEST['md'] + 0; $kid = $_REQUEST['kid']; if ($md == 0) { $jdl = 'Edit Kelas'; $w = GetFields('kelas', 'KelasID', $kid, '*'); $strkid = "\r\n\t\t\t<tr>\r\n\t\t\t\t<td class=inp>Kelas ID: </td>\r\n\t\t\t\t<td class=ul1><input type=text name='dkid' value='{$kid}' size=2 disabled>\r\n\t\t\t\t\t\t\t<input type=hidden name='kid' value='{$kid}'></td>\t\t\t\t\r\n\t\t\t</tr>"; } else { if ($md == 1) { $jdl = 'Tambah Kelas'; $w = array(); $strkid = ""; } else { die(ErrorMsg('Error', "Mode edit tidak dikenali. Hubungi Sysadmin untuk informasi lebih lanjut.")); } } TampilkanJudul($jdl); echo "<br>"; $optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $w['ProdiID'], "KodeID='" . KodeID . "'", 'ProdiID'); $optprogram = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $w['ProgramID'], "KodeID='" . KodeID . "'", 'ProgramID'); $opttahun = GetOption2('tahun', "concat(TahunID, ' (', ProdiID, if(ProdiID='','','-'), ProgramID, ')')", 'TahunID', $w['TahunID'], "NA='N'", 'TahunID'); CheckFormScript("InputNama,InputTahun,InputProdi,InputProgram,InputKapMax"); echo "<table class=box cellspacing=1 align=center>\r\n\t\t\t\t<form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n\t\t\t\t\t<input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\r\n\t\t\t\t\t<input type=hidden name='gos' value='SavKelas' />\r\n\t\t\t\t\t<input type=hidden name='md' value='{$md}'/>\r\n\t\t\t\t\t<input type=hidden name='kid' value='{$kid}' />\r\n\t\t\t\t\t\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=inp>Nama Kelas:</td>\r\n\t\t\t\t\t\t<td class=ul1><input type=text name='InputNama' value='{$w['Nama']}'></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=inp>Tahun Akademik:</td>\r\n\t\t\t\t\t\t<td class=ul1><input type=text name='InputTahun' value='{$_SESSION['opk_tahun']}' size=3 maxlength=10></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=inp>Program Studi:</td>\r\n\t\t\t\t\t\t<td class=ul1><select name='InputProdi'>{$optprodi}</select></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=inp>Program:</td>\r\n\t\t\t\t\t\t<td class=ul1><select name='InputProgram'>{$optprogram}</select></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=inp>Kapasitas Maksimum Kelas: </td>\r\n\t\t\t\t\t\t<td class=ul1><input type=text name='InputKapMax' value='{$w['KapasitasMaksimum']}' size=2 maxlength=4></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class=ul1 colspan=2 align=center>\r\n\t\t\t\t\t\t\t<input type=submit name='SimpanKelas' value='Simpan Kelas' />\r\n\t\t\t\t\t\t\t<input type=reset name='Reset' value='Reset' />\r\n\t\t\t\t\t\t\t<input type=button name='Batal' value='Batal'\r\n\t\t\t\t\t\t\t\tonClick=\"self.close();\" /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t</form>"; }
function TampilkanDaftarKelulusan() { // Tampilkan Tombol Proses $TglSKKeluar = GetDateOption($_SESSION['TglSKKeluar'], 'TglSKKeluar'); CheckFormScript('SKKeluar'); echo " <script language='Javascript'> \r\n function CheckAll(){\r\n \$(\".chk input[@type='checkbox']\").each(function() {\r\n\t this.checked = !this.checked;\r\n });\r\n \r\n return false;\r\n }\r\n </script>"; echo " <form action='?' method=POST onSubmit=\"return CheckForm(this);\">\r\n <input type=hidden name='mnux' value='wisuda.nomer'>\r\n <input type=hidden name='gos' value='ProsesNomerKelulusan'>"; echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <tr>\r\n <td class=inp>No SK Rektor</td>\r\n <td class=ul><input type=text name='SKKeluar' value='{$_SESSION['SKKeluar']}' size=50 maxlength=100 colspan=2></td>\r\n </tr>\r\n <tr>\r\n <td class=inp>Tanggal SK Rektor</td>\r\n <td class=ul>{$TglSKKeluar}</td>\r\n <td class=ul><input type=submit name='ProsesNomer' value='Proses Nomer Kelulusan'>\r\n \r\n <input type=button name='dbf' Value='Buat File Ijazah' onClick=\"location='?mnux=wisuda.nomer&gos=BuatDBFIjazah&prodi={$_SESSION['prodi']}&bulan1={$_SESSION['bulan1']}&bulan2={$_SESSION['bulan2']}&tahun1={$_SESSION['tahun1']}&tahun2={$_SESSION['tahun2']}'\">\r\n \r\n <input type=button name='cetak' Value='Cetak' onClick=\"location='?mnux=wisuda.nomer&gos=cetak&prodi={$_SESSION['prodi']}&bulan1={$_SESSION['bulan1']}&bulan2={$_SESSION['bulan2']}&tahun1={$_SESSION['tahun1']}&tahun2={$_SESSION['tahun2']}'\"></td>\r\n </tr>\r\n <tr>\r\n <td class=wrn colspan=3>Mahasiswa yg diproses hanya yg belum memiliki nomer Univ, Fakultas dan Prodi.\r\n Jika sudah, maka tidak akan diproses lagi.</td>\r\n </tr>\r\n </table></p>"; echo "<span class=inp2><a href=# onClick=CheckAll()>Check All</a></span>"; $whr = ''; $whr .= empty($_SESSION['prodi']) ? '' : "and m.ProdiID='{$_SESSION['prodi']}'"; $s = "select m.MhswID, m.Nama, m.NoIdentitas, m.NoFakultas, m.NoProdi,\r\n m.SKKeluar, date_format(m.TglSKKeluar, '%d/%m/%Y') as TglSKKeluar, NoIjazah,\r\n ta.SKYudisium, date_format(ta.TglSKYudisium, '%d/%m/%Y') as TglSKYudisium\r\n from ta ta\r\n left outer join mhsw m on m.MhswID=ta.MhswID\r\n where ta.Lulus='Y'\r\n and ('{$_SESSION['tahun1']}-{$_SESSION['bulan1']}-01' <= ta.TglSKYudisium)\r\n and (ta.TglSKYudisium <= '{$_SESSION['tahun2']}-{$_SESSION['bulan2']}-31')\r\n \r\n {$whr}\r\n order by m.MhswID, ta.TglSKYudisium"; $r = _query($s); $n = 0; echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <tr><th class=ttl>#</th>\r\n <th class=ttl>N.P.M</th>\r\n <th class=ttl>Nama Mahasiswa</th>\r\n <th class=ttl>SK Yudisium</th>\r\n <th class=ttl>Tgl Yudisium</th>\r\n <th class=ttl>SK Rektor</th>\r\n <th class=ttl>Tgl SK Rektor</th>\r\n <th class=ttl>No Ijazah</th>\r\n <th class=ttl>No Univ</th>\r\n <th class=ttl>No Prodi/Fak</th>\r\n <th class=ttl>Proses</th>\r\n </tr>"; while ($w = _fetch_array($r)) { $chk = $w['SKKeluar'] == NULL || $w['SKKeluar'] == '' ? "checked" : ''; $dsbl = !empty($w['NoIjazah']) ? "disabled=true" : ''; $n++; $_ni = $w['NoIdentitas'] == 0 ? 'class=ul' : 'class=nac'; $_nf = $w['NoFakultas'] == 0 ? 'class=ul' : 'class=nac'; $_np = $w['NoProdi'] == 0 ? 'class=ul' : 'class=nac'; echo "<tr><td class=inp>{$n}</td\r\n <td class=ul>{$w['MhswID']}</td>\r\n <td class=ul>{$w['Nama']}</td>\r\n <td class=ul>{$w['SKYudisium']} </td>\r\n <td class=ul>{$w['TglSKYudisium']}</td>\r\n <td class=ul>{$w['SKKeluar']} </td>\r\n <td class=ul>{$w['TglSKKeluar']}</td>\r\n <td class=ul>{$w['NoIjazah']} </td>\r\n <td {$_ni} align=right>{$w['NoIdentitas']}</td>\r\n <td {$_np} align=right>{$w['NoProdi']}</td>\r\n <td id=dt class=ul align=center><input class=chk type=checkbox name='dtMhswID[]' value='{$w['MhswID']}' {$chk} {$dsbl}></td>\r\n </tr>"; } echo "</table></p></form>"; }
function BipotNamaEdt() { global $mnux, $tok; $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('bipotnama', 'BIPOTNamaID', $_REQUEST['bnid'], '*'); $Jdl = "Edit Nama Biaya dan Potongan"; } else { $w = array(); $w['BIPOTNamaID'] = 0; $w['Urutan'] = 0; $w['Nama'] = ''; $w['RekeningID'] = ''; $w['TrxID'] = 1; $w['Baris'] = 0; $w['DipotongBeasiswa'] = 'N'; $w['Catatan'] = ''; $w['NA'] = 'N'; $Jdl = "Tambah Nama Biaya & Potongan"; } $NA = $w['NA'] == 'Y' ? 'checked' : ''; $Detil = $w['Detil'] == 'Y' ? 'checked' : ''; $Denda = $w['KenaDenda'] == 'Y' ? 'checked' : ''; $DipotongBeasiswa = $w['DipotongBeasiswa'] == 'Y' ? 'checked' : ''; $opttrx = GetOption2('trx', "Concat(TrxID, '. ', Nama)", 'TrxID, Nama', $w['TrxID'], '', 'TrxID'); $optrek = GetOption2('rekening', "concat(RekeningID, ' - ', Nama)", 'RekeningID', $w['RekeningID'], "KodeID='{$_SESSION['KodeID']}'", 'RekeningID'); // Tampilkan CheckFormScript("Nama,TrxID"); echo "<p><table class=box cellspacing=1 cellpadding=4 width=600>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='tok' value='{$tok}'>\r\n <input type=hidden name='sub' value='BipotNamaSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='bnid' value='{$w['BIPOTNamaID']}'>\r\n <tr><th class=ttl colspan=2>{$Jdl}</th></tr>\r\n <tr><td class=inp>Urutan</td><td class=ul><input type=text name='Urutan' value='{$w['Urutan']}' size=3 maxlength=3> <font color=red>*)</font></td></tr>\r\n <tr><td class=inp>Nama</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp>Masukkan ke rekening</td><td class=ul><select name='RekeningID'>{$optrek}</select></td></tr>\r\n <tr><td class=inp>Jenis Transaksi</td><td class=ul><select name='TrxID'>{$opttrx}</select></td></tr>\r\n <tr><td class=inp>Di baris</td>\r\n <td class=ul><input type=text name='Baris' value='{$w['Baris']}' size=3 maxlength=3> Pada baris ke berapa dalam cetakan.</td></tr>\r\n <tr><td class=inp>Dipotong Beasiswa</td>\r\n <td class=ul><input type=checkbox name='DipotongBeasiswa' value='Y' {$DipotongBeasiswa}> Apakah dapat dipotong beasiswa?</td></tr>\r\n <tr><td class=inp>Tidak aktif (NA)?</td><td class=ul><input type=checkbox name='NA' value='Y' {$NA}></td></tr>\r\n <tr><td class=inp>Catatan</td><td class=ul><textarea name='Catatan' cols=30 rows=2>{$w['Catatan']}</textarea></td></tr>\r\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&tok={$tok}&sub='\"></td></tr>\r\n </form></table></p>"; echo CatatanBipotNama(); }
function BuatPanitera() { global $prodi_asal, $prodi_panitera; $sked = $_REQUEST['sked']; $mhsw = GetFields('mhsw', "MhswID", $sked, '*'); if (!empty($mhsw)) { if ($mhsw['ProdiID'] == $prodi_asal) { $ada = GetFields('mhsw', "ProdiID='{$prodi_panitera}' and PMBID", $sked, '*'); if (!empty($ada)) { die(ErrorMsg("Mhsw Sudah Terdaftar", "Mahasiswa dengan NPM S.Ked <b>{$sked}</b> telah terdaftar di program Kepaniteraan.\r\n <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>")); } //if ($mhsw['LulusUjian'] == 'N') if ($mhsw['StatusMhswID'] != 'L') { die(ErrorMsg("Mhsw Belum Lulus", "Mahasiswa dengan NPM S.Ked <b>{$sked}</b> belum lulus S.Ked.\r\n <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>")); } $tgl = FormatTanggal($mhsw['TanggalLulus']); CheckFormScript("SKMasuk"); $TGL = GetDateOption(date('Y-m-d'), 'TGL'); echo Konfirmasi("Pembuatan NPM Kepaniteraan", "<p><form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='mhsw.panitera.baru'>\r\n <input type=hidden name='sked' value='{$sked}'>\r\n <input type=hidden name='gos' value='BuatPanitera1'>\r\n <table class=bsc>\r\n\t\t <tr><td class=ul>NPM SKed</td>\r\n\t\t <td class=ul><b>{$mhsw['MhswID']}</td></tr>\r\n\t\t <tr><td class=ul>Nama Mhsw</td>\r\n\t\t <td class=ul><b>{$mhsw['Nama']}</td></tr>\r\n\t\t <tr><td class=ul>Lulus Tanggal</td>\r\n\t\t <td class=ul><b>{$tgl}</td></tr>\r\n\t\t <tr><td class=ul>Nilai Akhir</td>\r\n\t\t <td class=ul><b>{$mhsw['GradeNilai']} ({$mhsw['NilaiUjian']})</td></tr>\r\n\t\t <tr><td class=ul>SK Masuk Panitera</td>\r\n\t\t <td class=ul><input type=text name='SKMasuk' size=30 maxlength=50></td></tr>\r\n\t\t <tr><td class=ul>Tanggal SK Masuk</td>\r\n\t\t <td class=ul>{$TGL}</td></tr>\r\n\t\t </table></p>\r\n\t\t\r\n\t Pilihan: <input type=submit name='Simpan' value='Simpan'>\r\n\t <input type=button name='Batal' value='Batalkan Proses' onClick=\"location='?mnux=mhsw.panitera.baru&gos='\">\r\n </form>"); } else { echo ErrorMsg("Mhsw Bukan Dari Kedokteran", "Mahasiswa dengan Nama <b>{$mhsw['Nama']}</b> (<b>{$sked}</b>) bukan dari Fakultas Kedokteran.<br />\r\n\t Mahasiswa ini tidak dapat diproses menjadi mahasiswa Kepaniteraan.\r\n\t <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>"); } } else { echo ErrorMsg("Mhsw Tidak Ditemukan", "Mhsw dengan NPM <b>{$sked}</b> tidak ditemukan, atau bukan dari fakultas Kedokteran.\r\n\t <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>"); } }