当前位置: 首页>>代码示例>>PHP>>正文


PHP GetOption2函数代码示例

本文整理汇总了PHP中GetOption2函数的典型用法代码示例。如果您正苦于以下问题:PHP GetOption2函数的具体用法?PHP GetOption2怎么用?PHP GetOption2使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetOption2函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: JdwlEdt

function JdwlEdt()
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('jadwal', "JadwalID", $_REQUEST['JadwalID'], '*');
        $jdl = "Edit Jadwal Klinik";
    } else {
        $w = array();
        $w['JadwalID'] = 0;
        $w['MKID'] = 0;
        $w['KodeID'] = $_SESSION['KodeID'];
        $w['ProgramID'] = $_SESSION['prid'];
        $w['ProdiID'] = $_SESSION['prodi'];
        $w['DosenID'] = '';
        $w['RuangID'] = '';
        $w['TglMulai'] = date('Y-m-d');
        $w['TglSelesai'] = date('Y-m-d');
        $w['RencanaKehadiran'] = 4;
        $w['SKS'] = 0;
        $w['SKSAsli'] = 0;
        $w['Harga'] = 0;
        $w['Kapasitas'] = 0;
        $w['NA'] = 'N';
        $jdl = "Tambah Jadwal Klinik";
    }
    $optrs = GetOption2('rumahsakit', "concat(RSID, ' - ', Nama)", 'RSID', $w['RuangID'], '', 'RSID');
    $optmk = GetOption2('mk', "concat(MKKode, ' - ', Nama, ' (', SKS, ' SKS)')", "MKKode", $w['MKID'], "KodeID='{$_SESSION['KodeID']}' and ProdiID='{$_SESSION['prodi']}'", 'MKID');
    $optdsn = GetOption2('dosen', "concat(Nama, ', ', Gelar)", "Nama", $w['DosenID'], "Homebase in ('10', '11')", 'Login');
    $TglMulai = GetDateOption($w['TglMulai'], 'TglMulai');
    $TglSelesai = GetDateOption($w['TglSelesai'], 'TglSelesai');
    $NA = $w['NA'] == 'Y' ? 'checked' : '';
    // Tampilkan
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' name='frmJadwal' method=POST>\r\n  <input type=hidden name='mnux' value='jadwal.klinik'>\r\n  <input type=hidden name='tahun' value='{$_SESSION['tahun']}'>\r\n  <input type=hidden name='ProdiID' value='{$w['ProdiID']}'>\r\n  <input type=hidden name='ProgramID' value='{$w['ProgramID']}'>\r\n  <input type=hidden name='JadwalID' value='{$w['JadwalID']}'>\r\n  <input type=hidden name='slnt' value='jadwal.klinik.sav'>\r\n  <input type=hidden name='slntx' value='JdwlSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  \r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp>Matakuliah</td><td class=ul><select name='MKID'>{$optmk}</select></td></tr>\r\n  <tr><td class=inp>Dosen Penanggung jawab</td><td class=ul><select name='DosenID'>{$optdsn}</select></td></tr>\r\n  <tr><td class=inp>Rumah Sakit</td><td class=ul><select name='RSID'>{$optrs}</select></td></tr>\r\n  <tr><td class=inp>Biaya</td><td class=ul><input type=text name='Harga' value='{$w['Harga']}' size=20 maxlength=20></td></tr>\r\n  <tr><td class=inp>Kapasitas</td><td class=ul><input type=text name='Kapasitas' value='{$w['Kapasitas']}' size=4 maxlength=3></td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Periode</b></td></tr>\r\n  <tr><td class=inp>Mulai</td><td class=ul>{$TglMulai}</td></tr>\r\n  <tr><td class=inp>Durasi</td>\r\n    <td class=ul><input type=text name='RencanaKehadiran' value='{$w['RencanaKehadiran']}' size=4 maxlength=4>\r\n      <input type=hidden name='_RencanaKehadiran' value='{$w['RencanaKehadiran']}'> minggu</td></tr>\r\n  <tr><td class=inp>Selesai</td><td class=ul>{$TglSelesai}</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=jadwal.klinik'\"></td></tr>\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:34,代码来源:jadwal.klinik.php

示例2: TampilkanHeader

function TampilkanHeader($gels, $gel)
{
    $optfrm = GetOption2('pmbformulir', 'Nama', 'Nama', $_SESSION['_pmbFrmID'], "KodeID='" . KodeID . "'", 'PMBFormulirID');
    $optprg = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_pmbPrg'], "KodeID='" . KodeID . "'", 'ProgramID');
    $opturut = GetUrutanPMB();
    echo "<table class=box cellspacing=1 align=center>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\r\n  <input type=hidden name='gos' value='' />\r\n  <input type=hidden name='_pmbPage' value='0' />\r\n  \r\n  <tr>\r\n      <td class=inp>Cari Nama:</td>\r\n      <td class=ul1><input type=text name='_pmbNama' value='{$_SESSION['_pmbNama']}' size=20 maxlength=30 /></td>\r\n      <td class=inp width=100>Filter Formulir:</td>\r\n      <td class=ul1>\r\n        <select name='_pmbFrmID'>{$optfrm}</select>\r\n      </td>\r\n      </tr>\r\n  <tr>\r\n      <td class=inp>Cari No. PMB:</td>\r\n      <td class=ul1><input type=text name='_pmbNomer' value='{$_SESSION['_pmbNomer']}' size=20 maxlength=30 /></td>\r\n      <td class=inp>Urutkan:</td>\r\n      <td class=ul1><select name='_pmbUrut'>{$opturut}</select></td>\r\n      </tr>\r\n  <tr>\r\n      <td class=inp>Program:</td>\r\n      <td class=ul1><select name='_pmbPrg'>{$optprg}</select></td>\r\n      <td class=ul1 colspan=2 align=center>\r\n      <input type=submit name='Submit' value='Submit' />\r\n      <input type=button name='Reset' value='Reset'\r\n        onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&_pmbPage=0&_pmbNama=&_pmbNomer='\" />\r\n      </td>\r\n  </form>\r\n  </table>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:7,代码来源:mhswbaru.php

示例3: EditKelas

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>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:25,代码来源:kelas.edt.php

示例4: BugsEdt

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>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:34,代码来源:bugserror.php

示例5: Edit

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);
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:25,代码来源:bayarmhsw.tarik.php

示例6: KampEdt

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>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:31,代码来源:kampus.php

示例7: JenAdd

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>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:26,代码来源:matakuliah.Jen.php

示例8: TampilkanIPKBatch

function TampilkanIPKBatch()
{
    $optprg = GetOption2("program", "concat(ProgramID, ' - ', Nama)", "ProgramID", $_SESSION['prid'], '', 'ProgramID');
    $optprd = GetOption2("prodi", "concat(ProdiID, ' - ', Nama)", "ProdiID", $_SESSION['prodi'], '', 'ProdiID');
    $keu = GetFields("keusetup", "NA", "N", '*');
    $optHTGN = GetOption2('bipotnama', "Nama", "Nama", $keu['HutangNext'], '', "BIPOTNamaID");
    $optDEPN = GetOption2('bipotnama', "Nama", "Nama", $keu['DepositNext'], '', "BIPOTNamaID");
    $optHTGP = GetOption2('bipotnama', "Nama", "Nama", $keu['HutangPrev'], '', "BIPOTNamaID");
    $optDEPP = GetOption2('bipotnama', "Nama", "Nama", $keu['DepositPrev'], '', "BIPOTNamaID");
    echo <<<END
  <p><table class=box cellspacing=1 cellpadding=4>
  <form action='cetak/prc.ipk.batch.php' name='Batch' method=POST target=_blank>
  <tr><td class=inp1 colspan=2><b>Proses IPK secara Batch</b></td>
    <td class=inp1 colspan=2><b>Setup Proses Keuangan</b></td>
    <td class=inp>Tahun Akd.</td><td class=ul><input type=text name='tahun' value='{$_SESSION['tahun']}'></td></tr>
  <tr><td class=inp>Program</td><td class=ul><select name='prid'>{$optprg}</select></td>
    <td class=inp>Transfer Hutang</td><td class=ul><select name='HutangNext'>{$optHTGN}</select></td>
    <td class=inp>Hutang Ditransfer</td><td class=ul><select name='HutangPrev'>{$optHTGP}</select></td></tr>
  <tr><td class=inp>Program Studi</td><td class=ul><select name='prodi'>{$optprd}</select></td>
    <td class=inp>Transfer Deposit</td><td class=ul><select name='DepositNext'>{$optDEPN}</select></td>
    <td class=inp>Deposit Ditransfer </td><td class=ul><select name='DepositPrev'>{$optDEPP}</select></td></tr>
  <tr><td colspan=2><input type=submit name='Proses' value='ProsesIPK'></td>
    <td colspan=4><input type=submit name='Proses' value='Simpan_Setup_Keuangan'>
    <input type=submit name='Proses' value='Proses_Tutup_Keuangan'></td></tr>
  </form></table></p>
END;
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:27,代码来源:prc.ipk.x.php

示例9: Edit

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>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:32,代码来源:pmbsetup.wawancarausm.edit.php

示例10: KonfirmasiAkun

function KonfirmasiAkun()
{
    $optakun = GetOption2('bipotnama', "Nama", 'Urutan', $_SESSION['BIPOTNamaID'], "KodeID='" . KodeID . "'", 'BIPOTNamaID');
    $skrg = date('Y-m-d H:i');
    echo <<<ESD
  <h1 align=center>Laporan Pembayaran Per Akun</h1>
  <table class=box cellspacing=1 align=center>
  <form action='../{$_SESSION['mnux']}.bayarakun.php' method=POST>
  <input type=hidden name='gos' value='Cetak' />
  <input type=hidden name='TahunID' value='{$_SESSION['TahunID']}' />
  <input type=hidden name='ProdiID' value='{$_SESSION['ProdiID']}' />
  <input type=hidden name='Sekarang' value='{$skrg}' />
  
  <tr><td class=inp>Akun:</td>
      <td class=ul>
        <select name='BIPOTNamaID'>{$optakun}</select>
      </td>
      </tr>
  <tr><td class=ul colspan=2 align=center>
      <input type=submit name='btnCetak' value='Cetak' />
      <input type=button name='btnBatal' value='Batal'
        onClick="window.close()" />
      </td></tr>
  </form>
  </table>
ESD;
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:27,代码来源:lapkeu.bayarakun.php

示例11: tampilkancariasset

function tampilkancariasset($mnux='asset', $add=1){
  global $arrID;
	$optkel = GetOption2("kelompokasset", "concat(KelompokID, ' - ', Nama)", "KelompokID", $_SESSION['klp'], '', 'KelompokID');
    $ck_nama = ($_SESSION['asturt'] == 'Nama')? 'checked' : '';
    $ck_id = ($_SESSION['asturt'] == 'AssetID')? 'checked' : '';
    $stradd = ($add == 0)? '' : "<tr><td class=ul>Pilihan:</td>
    <td class=ul><a href='?mnux=asset&gos=AssetEdt&md=1'>Tambah Asset</td></tr>";


  echo "<p><table class=box cellspacing=1 cellpadding=4>
  <form action='?' method=POST>
  <input type=hidden name='mnux' value='$mnux'>
  <input type=hidden name='astpage' value='1'>
  <tr><td class=ul colspan=2><b>$arrID[Nama]</b></td></tr>
  <tr><td class=inp>Cari Asset:</td>
  <td class=ul><input type=text name='astcr' value='$_SESSION[astcr]' size=18 maxlengh=10>
    <input type=submit name='astkeycr' value='Nama'>
    <input type=submit name='astkeycr' value='AssetID'>
    <input type=submit name='astkeycr' value='Reset'></td></tr>
  <tr><td class=inp>Urut berdasarkan:</td><td class=ul>
    <input type=radio name='asturt' value='AssetID' $ck_id>ID
    <input type=radio name='asturt' value='Nama' $ck_nama> Nama
    <input type=submit name='Urutkan' value='Urutkan'></td></tr>
  <tr><td class=inp> Kelompok :</td><td class=ul><select name='klp' OnChange='this.form.submit()'>$optkel</select></tr>
  $stradd
  </form></table></p>";

}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:28,代码来源:asset.cari.php

示例12: Edit

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 ";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:26,代码来源:kalender.libur.php

示例13: MKSTREDT

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>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:29,代码来源:pindahan.setara.php

示例14: BeaEdt

function BeaEdt()
{
    global $pref, $token;
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('beasiswa', "BeasiswaID", $_REQUEST['BeasiswaID'], '*');
        $BeasiswaID = "<input type=hidden name='BeasiswaID' value='{$w['BeasiswaID']}'><b>{$w['BeasiswaID']}</b>";
        $jdl = "Edit Jenis Beasiswa";
    } else {
        $w = array();
        $BeasiswaID = "<input type=text name='BeasiswaID' size=20 maxlength=30>";
        $w['BeasiswaID'] = '';
        $w['KodeID'] = $_SESSION['KodeID'];
        $w['BIPOTNamaID'] = 0;
        $w['Nama'] = '';
        $w['IPSMin'] = 0;
        $w['IPKMin'] = 0;
        $w['Prasyarat'] = '';
        $w['Keterangan'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah Jenis Beasiswa";
    }
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    $optbpt = GetOption2('bipotnama', "Nama", 'Nama', $w['BIPOTNamaID'], "KodeID='{$w['KodeID']}' and TrxID=-1 and BIPOTNamaID", "BIPOTNamaID");
    // Tampilan
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST name='jenbeasiswa'>\r\n  <input type=hidden name='mnux' value='beasiswa'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='{$pref}' value='{$token}'>\r\n  <input type=hidden name='sub' value='BeaSav'>\r\n  \r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp>Kode Beasiswa</td><td class=ul>{$BeasiswaID}</td></tr>\r\n  <tr><td class=inp>Beasiswa</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=50 maxlength=50></td></tr>\r\n  <tr><td class=inp>Akun Potongan</td><td class=ul><select name='BIPOTNamaID'>{$optbpt}</select></td></tr>\r\n  <tr><td class=inp>IPS Minimal</td><td class=ul><input type=text name='IPSMin' value='{$w['IPSMin']}' size=5 maxlength=5></td></tr>\r\n  <tr><td class=inp>IPK Minimal</td><td class=ul><input type=text name='IPKMin' value='{$w['IPKMin']}' size=5 maxlength=5></td></tr>\r\n  <tr><td class=inp>Prasyarat</td><td class=ul><textarea name='Prasyarat' cols=30 rows=8>{$w['Prasyarat']}</textarea></td></tr>\r\n  <tr><td class=inp>Keterangan</td><td class=ul><textarea name='Keterangan' cols=30 rows=5>{$w['Keterangan']}</textarea></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=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=beasiswa'\"></td></tr>\r\n  </form>\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:27,代码来源:beasiswa.jen.php

示例15: BuatKoreksi

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>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:33,代码来源:koreksi.nilai.php


注:本文中的GetOption2函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。