function doImport() { $prodi = $_SESSION['prodi']; $s = "SELECT * FROM _golongan order by GolonganID"; $r = _query($s); while ($w = _fetch_array($r)) { $s1 = "insert into golongan (GolonganID, KategoriID, KodeID, ProdiID, Pangkat, Nama)\r\n VALUES ('{$w['GolonganID']}', '{$w['KategoriID']}', '{$_SESSION['_KodeID']}', '{$_SESSION['prodi']}', '{$w['Pangkat']}', '{$w['Nama']}')"; $r1 = _query($s1); } DaftarGolongan(); }
function GolEdt() { $md = $_REQUEST['md'] + 0; if ($md == 0) { $w = GetFields('golongan', 'GolonganID', $_REQUEST['golid'], '*'); $jdl = "Golongan"; $dis = 'disabled'; } else { $w = array(); $w['GolonganID'] = $_REQUEST['jbtid']; $jdl = "Golongan"; $dis = ''; } //$w = GetFields('dosen','DosenID',$_SESSION['dsnid'],'*'); //$Kota = GetOption2('perguruantinggi', 'Kota', 'Kota', $w['Kota'], '', 'Kota'); if ($w[NA] == 'Y') { $c = 'checked'; } else { $c = ''; } echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST Name='datagol'>\r\n <input type=hidden name='mnux' value='{$_SESSION['mnux']}'>\r\n <input type=hidden name='gos' value='GolEdtSav'>\r\n <input type=hidden name='golid' value='{$w['GolonganID']}'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='BypassMenu' value='1' />\r\n \r\n <tr><td class=ul colspan=2><b>{$jdl}</b></td></tr>\r\n <tr><td class=inp1>Kode Golongan</td><td class=ul><input type=text name='golid' value='{$w['GolonganID']}' size=20 maxlength=100 {$dis}></td>\r\n <td class=inp1>Tunjangan Fungsional</td><td class=ul><input type=text name='tfungsional' value='{$w['TunjanganFungsional']}' size=20 maxlength=100></td></tr>\r\n<tr><td class=inp1>Kategori</td><td class=ul><input type=text name='kategori' value='{$w['KategoriID']}' size=20 maxlength=100></td>\r\n<td class=inp1>Tunjangan SKS</td><td class=ul><input type=text name='tsks' value='{$w['TunjanganSKS']}' size=20 maxlength=100></td></tr>\r\n<tr><td class=inp1>Program Studi</td><td class=ul><input type=text name='prodi' value='{$w['ProdiID']}' size=20 maxlength=100></td>\r\n<td class=inp1>Tunjangan Transportasi</td><td class=ul><input type=text name='ttransport' value='{$w['TunjanganTransport']}' size=20 maxlength=100></td></tr>\r\n<tr><td class=inp1>Pangkat</td><td class=ul><input type=text name='pangkat' value='{$w['Pangkat']}' size=20 maxlength=100></td>\r\n<td class=inp1>Tunjangan Tetap</td><td class=ul><input type=text name='ttetap' value='{$w['TunjanganTetap']}' size=20 maxlength=100></td></tr>\r\n<tr><td class=inp1>Nama</td><td class=ul><input type=text name='namagol' value='{$w['Nama']}' size=20 maxlength=100></td>\r\n<td class=inp1>NA?</td><td class=ul><input type=checkbox name='na' value='Y' {$c}></td></tr>\r\n\r\n\r\n\r\n <tr><td colspan=2><input type=submit name='submit' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'> \r\n\t<input type=button name='batal' value='Batal' onClick=\"location='?mnux={$_SESSION['mnux']}&gos=DsnEdt&dsnid={$_SESSION['dsnid']}&dsnsub=DsnEdtJabatan'\"></td></tr>\r\n </form></table>"; DaftarGolongan($_SESSION['mnux'], "gos=DsnEdt&md=0&golid==GolonganID=", "KategoriID,ProdiID,Pangkat,Nama,TunjanganFungsional,TunjanganSKS,TunjanganTransport,TunjanganTetap"); }