コード例 #1
0
ファイル: dosen.php プロジェクト: anggadjava/sisfor
function DsnEdtJabatan()
{
    if (!empty($_REQUEST['dsnsub1'])) {
        $_REQUEST['dsnsub1']();
    }
    $w = GetFields('dosen', 'Login', $_SESSION['dsnid'], '*');
    $Jabatan = GetOption2('jabatan', "concat(JabatanID, ' - ', Nama)", 'JabatanID', $w['JabatanID'], '', 'JabatanID');
    $JabatanDikti = GetOption2('jabatandikti', "concat(JabatanDiktiID, ' - ', Nama)", 'JabatanDiktiID', $w['JabatanDiktiID'], '', 'JabatanDiktiID');
    //$Golongan = GetOption2('golongan', "concat(GolonganID, ' - ', KategoriID, ' - ', Pangkat)", 'GolonganID, KategoriID', $w['GolonganID'], "ProdiID='$w[Homebase]'", "concat(GolonganID,'~',KategoriID)");
    $optgol = GetOptGol($w['Homebase'], $w['GolonganID'], $w['KategoriID']);
    $optikt = GetOption2("ikatan", "concat(IkatanID, ' - ', Nama, ' (', format(Besar, 0), ')')", "IkatanID", $w['IkatanID'], '', 'IkatanID');
    if ($_SESSION['_LevelID'] == 100) {
        // Dosen
        $disabled = "disabled";
        $btnSimpan = "";
        $btnReset = "";
        $btnTambahJabatanAkd = "";
        $btnTambahGolongan = "";
        $btnTambahTunjanganIkatan = "";
    } else {
        $disabled = "";
        $btnSimpan = "<input type=submit name='Simpan' value='Simpan'>";
        $btnReset = "<input type=reset name='Reset' value='Reset'>";
        $btnTambahJabatanAkd = "<a href='?mnux={$_SESSION['mnux']}&gos=DsnEdt&md=1&dsnsub=JbtnEdt'>Tambah  </a>";
        $btnTambahGolongan = "<a href='?mnux={$_SESSION['mnux']}&gos=DsnEdt&md=1&dsnsub=GolEdt'>Tambah  </a>";
        $btnTambahTunjanganIkatan = "<a href='?mnux={$_SESSION['mnux']}&gos=DsnEdt&md=1&dsnsub=IktEdt'>Tambah  </a>";
    }
    echo "<p><table class=box cellspacing=1 cellpadding=4 width=600>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}'>\r\n  <input type=hidden name='gos' value='DsnEdtJabatanSav'>\r\n  <input type=hidden name='dsnid' value='{$w['Login']}'>\r\n  <input type=hidden name='BypassMenu' value='1' />\r\n    \r\n  <tr><td class=ul colspan=2><b>Jabatan</b></td></tr>\r\n  <tr><td class=inp>Jabatan Akademik</td>\r\n      <td class=ul><select name='JabatanID' {$disabled}>{$Jabatan}</select> {$btnTambahJabatanAkd}</td></tr>\r\n  <tr><td class=inp>Jabatan Dikti</td>\r\n      <td class=ul><select name='JabatanDiktiID' {$disabled}>{$JabatanDikti}</select></td></tr>\r\n  <tr><td class=inp>Golongan</td>\r\n      <td class=ul><select name='GolonganID' {$disabled}>{$optgol}</select> {$btnTambahGolongan}</td></tr>\r\n  <tr><td class=inp>Tunjangan Ikatan</td>\r\n      <td class=ul><select name='IkatanID' {$disabled}>{$optikt}</select> {$btnTambahTunjanganIkatan}</td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Bank</b></td></tr>\r\n  <tr><td class=inp>Nama Bank</td>\r\n      <td class=ul><input type=text name='NamaBank' value='{$w['NamaBank']}' size=50 maxlength=50 {$disabled}></td></tr>\r\n  <tr><td class=inp>Nama Akun</td>\r\n      <td class=ul><input type=text name='NamaAkun' value='{$w['NamaAkun']}' size=50 maxlength=50 {$disabled}></td></tr>\r\n  <tr><td class=inp>Nomer Akun</td>\r\n      <td class=ul><input type=text name='NomerAkun' value='{$w['NomerAkun']}' size=50 maxlength=50 {$disabled}></td></tr>\r\n  \r\n  <tr><td colspan=2 align=center>\r\n    {$btnSimpan}\r\n    {$btnReset}</td></tr>\r\n  </form></table>";
}
コード例 #2
0
ファイル: dosen.php プロジェクト: anggadjava/mitra_siakad
function DsnEdtJabatan()
{
    if (!empty($_REQUEST['dsnsub1'])) {
        $_REQUEST['dsnsub1']();
    }
    $w = GetFields('dosen', 'Login', $_SESSION['dsnid'], '*');
    $Jabatan = GetOption2('jabatan', "concat(JabatanID, ' - ', Nama)", 'JabatanID', $w['JabatanID'], '', 'JabatanID');
    $JabatanDikti = GetOption2('jabatandikti', "concat(JabatanDiktiID, ' - ', Nama)", 'JabatanDiktiID', $w['JabatanDiktiID'], '', 'JabatanDiktiID');
    //$Golongan = GetOption2('golongan', "concat(GolonganID, ' - ', KategoriID, ' - ', Pangkat)", 'GolonganID, KategoriID', $w['GolonganID'], "ProdiID='$w[Homebase]'", "concat(GolonganID,'~',KategoriID)");
    $optgol = GetOptGol($w['Homebase'], $w['GolonganID'], $w['KategoriID']);
    $optikt = GetOption2("ikatan", "concat(IkatanID, ' - ', Nama, ' (', format(Besar, 0), ')')", "IkatanID", $w['IkatanID'], '', 'IkatanID');
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='dosen'>\r\n  <input type=hidden name='gos' value='DsnEdt'>\r\n  <input type=hidden name='dsnsub' value='DsnEdtJabatan'>\r\n  <input type=hidden name='dsnsub1' value='DsnEdtJabatanSav'>\r\n  <input type=hidden name='dsnid' value='{$w['Login']}'>\r\n    \r\n  <tr><td class=ul colspan=2><b>Jabatan</b></td></tr>\r\n  <tr><td class=inp1>Jabatan Akademik</td><td class=ul><select name='JabatanID'>{$Jabatan}</select></td></tr>\r\n  <tr><td class=inp1>Jabatan Dikti</td><td class=ul><select name='JabatanDiktiID'>{$JabatanDikti}</select></td></tr>\r\n  <tr><td class=inp1>Golongan</td><td class=ul><select name='GolonganID'>{$optgol}</select></td></tr>\r\n  <tr><td class=inp1>Tunjangan Ikatan</td><td class=ul><select name='IkatanID'>{$optikt}</select></td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Bank</b></td></tr>\r\n  <tr><td class=inp1>Nama Bank</td><td class=ul><input type=text name='NamaBank' value='{$w['NamaBank']}' size=50 maxlength=50></td></tr>\r\n  <tr><td class=inp1>Nama Akun</td><td class=ul><input type=text name='NamaAkun' value='{$w['NamaAkun']}' size=50 maxlength=50></td></tr>\r\n  <tr><td class=inp1>Nomer Akun</td><td class=ul><input type=text name='NomerAkun' value='{$w['NomerAkun']}' size=50 maxlength=50></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'></td></tr>\r\n  </form></table>";
}