function TampilkanPilihanDosen($mnux = '', $gos = '')
{
    global $KodeID;
    $homebase = empty($_SESSION['prodi']) ? '' : "and Homebase='{$_SESSION['prodi']}' ";
    //GetCheckboxes($table, $key, $Fields, $Label, $Nilai='', $Separator=',', $whr = '') {
    $cekstat = GetCheckBoxes("statusmhsw", "StatusMhswID", "Nama", "Nama", $_SESSION['StatusMhswID'], ",", '', ', ');
    $opt = GetOption2("dosen", "concat(Login, ' - ', Nama, ', ', Gelar)", "Login", $_SESSION['dsnid'], "KodeID='{$KodeID}' {$homebase}", 'Login');
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$mnux}'>\r\n  <input type=hidden name='gos' value='{$gos}'>\r\n  <tr><td class=inp>Dosen :</td><td class=ul><select name='dsnid'>{$opt}</select>\r\n    <input type=submit name='Tampilkan' value='Tampilkan'></td></tr>\r\n  <tr><td class=inp>Status Mhsw :</td><td class=ul>{$cekstat}</td></tr>\r\n  </form></table></p>";
}
Beispiel #2
0
function SyaratEdt()
{
    global $arrID, $mnux, $pref;
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('pmbsyarat', "KodeID='{$_SESSION['KodeID']}' and PMBSyaratID", $_REQUEST['syid'], '*');
        $jdl = "Edit Syarat";
        $syid = "<input type=hidden name='syid' value='{$w['PMBSyaratID']}'><b>{$w['PMBSyaratID']}</b>";
    } else {
        $w = array();
        $w['PMBSyaratID'] = '';
        $w['KodeID'] = $_SESSION['KodeID'];
        $w['Nama'] = '';
        $w['StatusAwalID'] = '';
        $w['ProdiID'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah Syarat";
        $syid = "<input type=text name='syid' size=10 maxlength=10>";
    }
    $NA = $w['NA'] == 'Y' ? 'checked' : '';
    $SAID = GetCheckBoxes('statusawal', "StatusAwalID", "concat(StatusAwalID, ' - ', Nama) as NM", 'NM', $w['StatusAwalID'], '.');
    $prodi = GetCheckBoxes('prodi', "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", 'NM', $w['ProdiID'], '.');
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$mnux}'>\r\n  <input type=hidden name='{$pref}' value='Syarat'>\r\n  <input type=hidden name='sub' value='SyaratSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n\r\n  <tr>\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp1>ID</td><td class=ul>{$syid}</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>Status Awal</td><td class=ul>{$SAID}</td></tr>\r\n  <tr><td class=inp1>Program Studi</td><td class=ul>{$prodi}</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 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}=Syarat'\"></td></tr>\r\n  </form></table>";
}