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


PHP GetCheckboxes函数代码示例

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


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

示例1: UsrEdt

function UsrEdt()
{
    $md = $_REQUEST['md'] + 0;
    $TabelUser = GetFields('level', 'LevelID', $_REQUEST['LevelID'], 'Nama, TabelUser');
    if ($md == 0) {
        $w = GetFields($TabelUser['TabelUser'], 'Login', $_REQUEST['Lgn'], '*');
        $jdl = "Edit User: {$TabelUser['Nama']}";
        $strlogin = "<input type=hidden name='Login' value='{$w['Login']}'><b>{$w['Login']}</b>";
    } else {
        $w = array();
        $w['Login'] = '';
        $w['Nama'] = '';
        $w['LevelID'] = $_REQUEST['LevelID'];
        $w['Telephone'] = '';
        $w['Password'] = '';
        $w['Handphone'] = '';
        $w['Email'] = '';
        $w['Alamat'] = '';
        $w['Kota'] = '';
        $w['Propinsi'] = '';
        $w['Negara'] = '';
        $w['ProdiID'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah User: {$TabelUser['Nama']}";
        $strlogin = "<input type=text name='Login' value='' size=30 maxlength=20>";
    }
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    $cb_prodi = GetCheckboxes('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['ProdiID'], ',');
    $c1 = 'class=inp1';
    $c2 = 'class=ul';
    // tampilkan
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='sysusr'>\r\n  <input type=hidden name='gos' value='UsrSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='LevelID' value='{$_REQUEST['LevelID']}'>\r\n  <input type=hidden name='OldPwd' value='{$w['Password']}'>\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td {$c1}>Kode Login</td><td {$c2}>{$strlogin}</td></tr>\r\n  <tr><td {$c1}>Nama User</td><td {$c2}><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n  <tr><td {$c1}>Password</td><td {$c2}><input type=password name='Password' value='{$w['Password']}' size=20 maxlength=10></td></tr>\r\n  <tr><td {$c1}>Program Studi</td><td {$c2}>{$cb_prodi}</td></tr>\r\n  <tr><td {$c1}>Telepon</td><td {$c2}><input type=text name='Telephone' value='{$w['Telephone']}' size=40 maxlength=50></td></tr>\r\n  <tr><td {$c1}>Handphone</td><td {$c2}><input type=text name='Handphone' value='{$w['Handphone']}' size=40 maxlength=50></td></tr>\r\n  <tr><td {$c1}>Email</td><td {$c2}><input type=text name='Email' value='{$w['Email']}' size=40 maxlength=50></td></tr>\r\n  <tr><td {$c1}>Alamat</td><td {$c2}><textarea name='Alamat' cols=30 rows=4>{$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}>Propinsi</td><td {$c2}><input type=text name='Propinsi' value='{$w['Propinsi']}' size=40 maxlength=50></td></tr>\r\n  <tr><td {$c1}>Negara</td><td {$c2}><input type=text name='Negara' value='{$w['Negara']}' 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=sysusr'\"></td></tr>\r\n\r\n  </form></table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:35,代码来源:sysusr.php

示例2: PerEdt

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

示例3: UsmProdEdt

function UsmProdEdt()
{
    global $mnux, $pref;
    $prodiusmid = $_REQUEST['prodiusmid'];
    $w = GetFields("prodiusm pru left outer join pmbusm pu on pu.PMBUSMID=pru.PMBUSMID", "pru.ProdiUSMID", $prodiusmid, "pru.*, pru.ProdiID, pu.Nama, date_format(pru.TanggalUjian, '%H:%i') as JamUjian");
    if (!empty($w)) {
        $prodi = GetaField('prodi', 'ProdiID', $w['ProdiID'], 'Nama');
        $tgl = GetDateOption($w['TanggalUjian'], 'tu');
        $jam = GetTimeOption($w['JamUjian'], 'tu');
        $_checkboxruang = GetCheckboxes('ruang', 'RuangID', "Concat(Nama, ' (Kaps: ', KapasitasUjian, ' orang)') as NM", "NM", $w['RuangID']);
        echo "<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='UsmProd'>\r\n    <input type=hidden name='sub' value='UsmProdTglSav'>\r\n    <input type=hidden name='prodiusmid' value='{$prodiusmid}'>\r\n    <tr><th colspan=2 class=ttl>Edit Test Prodi</th></tr>\r\n    <tr><td class=ul>Program Studi</td><td class=ul>{$w['ProdiID']} - <b>{$prodi}</td></tr>\r\n    <tr><td class=ul>Nama Test</td><td class=ul><b>{$w['Nama']}</td></tr>\r\n    <tr><td class=ul>Tanggal ujian</td><td class=ul>{$tgl}</td></tr>\r\n    <tr><td class=ul>Waktu ujian</td><td class=ul>{$jam}</td></tr>\r\n    <tr><td class=ul>Ruangan Ujian</td><td class=ul>{$_checkboxruang}</td></tr>\r\n    <tr><td class=ul>Jumlah Soal</td><td class=ul><input type=text name='JumlahSoal' value='{$w['JumlahSoal']}' size=3 maxlength=3></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}=UsmProd'\"></td></tr>\r\n    </form></table>";
    } else {
        DefUSMProd();
    }
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:15,代码来源:pmbsetup.usmprod.php

示例4: DsnAdd

function DsnAdd($mnux = '', $gos = 'DsnAddSav', $sub = '')
{
    if (empty($mnux)) {
        $mnux = $_SESSION['mnux'];
    }
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('dosen', 'Login', $_REQUEST['dsnid'], '*');
        $jdl = "Edit Data Pribadi";
        $_strdsnid = "<input type=hidden name='dsnid' value='{$w['Login']}'><b>{$w['Login']}</b>";
    } else {
        $w = array();
        $w['Login'] = '';
        $w['NIDN'] = '';
        $w['Nama'] = '';
        $w['Gelar'] = '';
        $w['Telephone'] = '';
        $w['Handphone'] = '';
        $w['Email'] = '';
        $w['ProdiID'] = '';
        $w['TempatLahir'] = '';
        $w['TanggalLahir'] = date('Y-m-d');
        $w['KelaminID'] = 'P';
        $w['AgamaID'] = 'K';
        $w['NA'] = 'N';
        $Homebase = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', '', '', 'ProdiID');
        $hm = "<tr><td class=inp>Prodi Homebase</td><td class=ul><select name='Homebase'>{$Homebase}</select></td></tr>";
        $jdl = "Tambah Dosen";
        $_strdsnid = "<input type=text name='dsnid' size=20 maxlength=20>";
    }
    $_na = $w['NA'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    $optprodi = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", "NM", $w['ProdiID'], '.');
    $TglLahir = GetDateOption($w['TanggalLahir'], 'TglLahir');
    $optagm = GetOption2('agama', "concat(Agama, ' - ', Nama)", 'Agama', $w['AgamaID'], '', 'Agama');
    $radkel = GetRadio("select Nama, Kelamin from kelamin order by Nama", "Kelamin", "Nama", "Kelamin", $w['KelaminID'], ", ");
    CheckFormScript("Nama,Gelar");
    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='gos' value='{$gos}'>\r\n  <input type=hidden name='sub' value='{$sub}'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='BypassMenu' value='1' />\r\n  \r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp>Login/NIP *</td>\r\n      <td class=ul>{$_strdsnid}</td></tr><font color=red>*) Kosongkan untuk auto-generated</font>\r\n  <tr><td class=inp>NIDN</td>\r\n      <td class=ul><input type=text name='NIDN' value='{$w['NIDN']}' size=20 maxlength=50>\r\n      Nomer Induk Dosen Nasional</td></tr>\r\n  <tr><td class=inp>Nama Dosen</td>\r\n      <td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n  <tr><td class=inp>Gelar</td>\r\n      <td class=ul><input type=text name='Gelar' value='{$w['Gelar']}' size=\$0 maxlength=100></td></tr>\r\n  <tr><td class=inp>Tempat Lahir</td>\r\n      <td class=ul><input type=text name='TempatLahir' value='{$w['TempatLahir']}' size=30 maxlength=50></td></tr>\r\n  <tr><td class=inp>Tanggal Lahir</td>\r\n      <td class=ul>{$TglLahir}</td></tr>\r\n  <tr><td class=inp>Jenis Kelamin</td>\r\n      <td class=ul>{$radkel}</td></tr>\r\n  <tr><td class=inp>Agama</td>\r\n      <td class=ul><select name='AgamaID'>{$optagm}</select></td></tr>\r\n  <tr><td class=inp># Telepon</td>\r\n      <td class=ul><input type=text name='Telephone' value='{$w['Telephone']}' size=40 maxlength=50></td></tr>\r\n  <tr><td class=inp># Ponsel</td>\r\n       <td class=ul><input type=text name='Handphone' value='{$w['Handphone']}' size=40 maxlength=50></td></tr>\r\n  <tr><td class=inp>E-mail</td><td class=ul><input type=text name='Email' value='{$w['Email']}' size=40 maxlength=50></td></tr>\r\n  {$hm}\r\n  <tr><td class=inp>Program Studi</td>\r\n      <td class=ul>{$optprodi}</td></tr>\r\n  <tr><td class=inp>Tidak aktif?</td>\r\n      <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}&gos=&{$snm}={$sid}'\"></td></tr>\r\n  </form></table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:40,代码来源:dosen.php

示例5: RuangEdt

function RuangEdt()
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('ruang', 'RuangID', $_REQUEST['ruangid'], '*');
        $jdl = "Edit Ruang";
        $strid = "<input type=hidden name='RuangID' value='{$w['RuangID']}'><b>{$w['RuangID']}</b>";
    } else {
        $w = array();
        $w['RuangID'] = '';
        $w['Nama'] = '';
        $w['ProdiID'] = '';
        $w['KampusID'] = $_SESSION['kampusid'];
        $w['Lantai'] = 1;
        $w['RuangKuliah'] = 'Y';
        $w['Kapasitas'] = 0;
        $w['KapasitasUjian'] = 0;
        $w['KolomUjian'] = 2;
        $w['UntukUSM'] = 'N';
        $w['Keterangan'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah Ruang";
        $strid = "<input type=text name='RuangID' value='' size=40 maxlength=50>";
    }
    $_ruangkuliah = $w['RuangKuliah'] == 'Y' ? 'checked' : '';
    $_na = $w['NA'] == 'Y' ? 'checked' : '';
    $_usm = $w['UntukUSM'] == 'Y' ? 'checked' : '';
    $_optkampus = GetOption2('kampus', "concat(KampusID, ' - ', Nama)", 'KampusID', $w['KampusID'], '', 'KampusID');
    $optprodi = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", "NM", $w['ProdiID'], '.');
    CheckFormScript("RuangID,Nama,KampusID,Lantai");
    // Tampilkan
    $c1 = 'class=inp1';
    $c2 = 'class=ul';
    $snm = session_name();
    $sid = session_id();
    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='ruang'>\r\n  <input type=hidden name='gos' value='RuangSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td {$c1}>Kode Ruang</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}>Untuk Prodi</td><td {$c2}>{$optprodi}</td></tr>\r\n  <tr><td {$c1}>Kampus</td><td {$c2}><select name='KampusID'>{$_optkampus}</select></td></tr>\r\n  <tr><td {$c1}>Lantai</td><td {$c2}><input type=text name='Lantai' value='{$w['Lantai']}' size=5 maxlength=5></td></tr>\r\n  <tr><td {$c1}>Untuk kuliah?</td><td {$c2}><input type=checkbox name='RuangKuliah' value='Y' {$_ruangkuliah}></td></tr>\r\n  <tr><td {$c1}>Kapasitas</td><td {$c2}><input type=text name='Kapasitas' value='{$w['Kapasitas']}' size=5 maxlength=5></td></tr>\r\n  <tr><td {$c1}>Kapasitas Ujian</td><td {$c2}><input type=text name='KapasitasUjian' value='{$w['KapasitasUjian']}' size=5 maxlength=5></td></tr>\r\n  <tr><td {$c1}>Jumlah Kolom Ujian</td><td {$c2}><input type=text name='KolomUjian' value='{$w['KolomUjian']}' size=4 maxlength=3</td></tr>\r\n  <tr><td {$c1}>Untuk Ujian Saringan Masuk (USM)?</td><td {$c2}><input type=checkbox name='UntukUSM' value='Y' {$_usm}></td></tr>\r\n  <tr><td {$c1}>Keterangan</td><td {$c2}><textarea name='Keterangan' cols=30 rows=4>{$w['Keterangan']}</textarea></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=ruang&{$snm}={$sid}'\"></td></tr>\r\n  </form></table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:37,代码来源:ruang.php

示例6: DsnAdd

function DsnAdd($mnux = 'modules/dosen.editdata', $gos = 'DsnAddSav', $sub = '')
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('dosen', 'Login', $_REQUEST['dsnid'], '*');
        $jdl = "Edit Data Pribadi";
        $_strdsnid = "<input type=hidden name='dsnid' value='{$w['Login']}'><b>{$w['Login']}</b>";
    } else {
        $w = array();
        $w['Login'] = '';
        $w['NIDN'] = '';
        $w['Nama'] = '';
        $w['Gelar'] = '';
        $w['Telephone'] = '';
        $w['Handphone'] = '';
        $w['Email'] = '';
        $w['ProdiID'] = '';
        $w['TempatLahir'] = '';
        $w['TanggalLahir'] = date('Y-m-d');
        $w['KelaminID'] = 'P';
        $w['AgamaID'] = 'K';
        $w['NA'] = 'N';
        $Homebase = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', '', '', 'ProdiID');
        $hm = "<tr><td class=inp1>Prodi Homebase</td><td class=ul><select name='Homebase'>{$Homebase}</select></td></tr>";
        $jdl = "Tambah Dosen";
        $_strdsnid = "<input type=text name='dsnid' size=20 maxlength=20>";
    }
    $_na = $w['NA'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    $optprodi = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", "NM", $w['ProdiID'], '.');
    $TglLahir = GetDateOption($w['TanggalLahir'], 'TglLahir');
    $optagm = GetOption2('agama', "concat(Agama, ' - ', Nama)", 'Agama', $w['AgamaID'], '', 'Agama');
    $radkel = GetRadio("select Nama, Kelamin from kelamin order by Nama", "Kelamin", "Nama", "Kelamin", $w['KelaminID'], ", ");
    echo "<p><table class=box cellspacing=1 cellpadding=4>\n  <form action='?' method=POST>\n  <input type=hidden name='mnux' value='{$mnux}'>\n  <input type=hidden name='gos' value='{$gos}'>\n  <input type=hidden name='sub' value='{$sub}'>\n  <input type=hidden name='md' value='{$md}'>\n\n  </form></table></p>";
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:36,代码来源:dosen.editdata+-+Copy.php

示例7: ProdiEdt

function ProdiEdt()
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('prodi', 'ProdiID', $_REQUEST['prid'], '*');
        $_prid = "<input type=hidden name='prid' value='{$w['ProdiID']}'><b>{$w['ProdiID']}</b>";
        $jdl = 'Edit Program Studi';
    } else {
        $w = array();
        $w['ProdiID'] = '';
        $w['Nama'] = '';
        $w['Nama_en'] = '';
        $w['JenjangID'] = '';
        $w['Gelar'] = '';
        $w['FakultasID'] = $_SESSION['fid'];
        $w['FormatNIM'] = '';
        $w['GunakanNIMSementara'] = 'N';
        $w['FormatNIMSementara'] = '';
        $w['DapatPindahProdi'] = '';
        $w['ProdiDiktiID'] = '';
        $w['NamaSesi'] = "Semester";
        $w['CekPrasyarat'] = 'Y';
        $w['DefSKS'] = 0;
        $w['DefKehadiran'] = 16;
        $w['DefMaxAbsen'] = 4;
        $w['TotalSKS'] = 0;
        $w['BatasStudi'] = 0;
        $w['JumlahSesi'] = 0;
        $w['Akreditasi'] = '';
        $w['NoSKDikti'] = '';
        $w['TglSKDikti'] = date('Y-m-d');
        $w['NoSKBAN'] = '';
        $w['TglSKBAN'] = date('Y-m-d');
        $w['PajakHonorDosen'] = 10;
        $w['Pejabat'] = '';
        $w['Jabatan'] = '';
        $w['NA'] = 'N';
        $_prid = "<input type=text name='prid' size=30 maxlength=20>";
        $jdl = 'Tambah Program Studi';
    }
    CheckFormScript("prid,Nama,FormatNIM,DefSKS");
    CariProdiDikti();
    loadJavaScripts();
    $NamaProdi = GetaField('prodidikti', 'ProdiDiktiID', $w['ProdiDiktiID'], 'Nama');
    $TglSKDikti = GetDateOption($w['TglSKDikti'], 'TglSKDikti');
    $TglSKBAN = GetDateOption($w['TglSKBAN'], 'TglSKBAN');
    $gns = $w['GunakanNIMSementara'] == 'Y' ? 'checked' : '';
    $dagns = $w['GunakanNIMSementara'] == 'Y' ? '' : 'disabled';
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    $cp = $w['CekPrasyarat'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    $opt = GetOption2('fakultas', "concat(FakultasID, '. ', Nama)", 'FakultasID', $w['FakultasID'], '', 'FakultasID');
    $optjen = GetOption2('jenjang', "concat(JenjangID, ' - ', Nama)", 'JenjangID', $w['JenjangID'], '', 'JenjangID');
    //GetCheckboxes($table, $key, $Fields, $Label, $Nilai='', $Separator=',') {
    $pind = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", 'NM', $w['DapatPindahProdi'], '.', "ProdiID <> '{$w['ProdiID']}'");
    return "<p><table class=box cellspacing=1 cellpadding=4 width=600>\r\n  <form name='data' action='?' method=POST onSubmit=\"return CheckForm(data)\">\r\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}'>\r\n  <input type=hidden name='gos' value='ProdiSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n\r\n  <tr><th colspan=2 class=ttl>{$jdl}</th></tr>\r\n  <tr><td class=inp>Program Studi</td><td class=ul>{$_prid}</td></tr>\r\n  <tr><td class=inp>Fakultas</td><td class=ul><select name='FakultasID'>{$opt}</select></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>Nama Inggris</td><td class=ul><input type=text name='Nama_en' value='{$w['Nama_en']}' size=30 maxlength=50></td></tr>\r\n  <tr><td class=inp>Jenjang</td><td class=ul><select name='JenjangID'>{$optjen}</select></td></tr>\r\n  <tr><td class=inp>Gelar</td><td class=ul><input type=text name='Gelar' value='{$w['Gelar']}' size=30 maxlength=50></td></tr>\r\n  <tr><td class=inp>Format NIM</td><td class=ul><input type=text name='FormatNIM' value='{$w['FormatNIM']}' size=30 maxlength=100></td></tr>\r\n  <tr><td class=inp>Gunakan NIM Sementara?</td><td class=ul><input type=checkbox name='GunakanNIMSementara' value='Y' onClick=\"ToggleNIMSementara()\" {$gns}>\r\n\t\t\t\t\t<input type=text name='FormatNIMSementara' value='{$w['FormatNIMSementara']}' size=30 maxlength=100 {$dagns}></td></tr>\r\n  <tr><td class=inp>Dapat Pindah ke Prodi</td><td class=ul>{$pind}</td></tr>\r\n  <tr><td class=inp>Nama Sesi</td>\r\n      <td class=ul><input type=text name='NamaSesi' value='{$w['NamaSesi']}' size=20 maxlength=50> <sup>Misal: Semester, Cawu.</sup></td></tr>\r\n  <tr><td class=inp>Cek Prasyarat</td>\r\n      <td class=ul><input type=checkbox name='CekPrasyarat' value='Y' {$cp}> <sup>*) Jika dicentang, <br />\r\n      maka pengambilan KRS akan mengecek MK prasyarat</sup>\r\n      </td></tr>\r\n  <tr><td class=inp>Total SKS Lulus</td><td class=ul><input type=text name='TotalSKS' value='{$w['TotalSKS']}' size=5 maxlength=4></td></tr>\r\n  <tr><td class=inp>Default SKS</td><td class=ul><input type=text name='DefSKS' value='{$w['DefSKS']}' size=3 maxlength=3></td></tr>\r\n  <tr><td class=inp>Default Kehadiran</td><td class=ul><input type=text name='DefKehadiran' value='{$w['DefKehadiran']}' size=4 maxlength=3></td></tr>\r\n  <tr><td class=inp>Default Maksimum Absen</td><td class=ul><input type=text name='DefMaxAbsen' value='{$w['DefMaxAbsen']}' size=4 maxlength=3></td></tr>\r\n  <tr><td class=inp>Kode Prodi Dikti</td><td class=ul><input type=text name='ProdiDiktiID' value='{$w['ProdiDiktiID']}' size=10 maxlength=20>\r\n    <input type=text name='NamaProdi' value='{$NamaProdi}' size=30 maxlength=50>\r\n    <a href='javascript:cariprodidikti(data)'>Cari</a></td></tr>\r\n  <tr><td class=inp>Pajak Honor Dosen</td><td class=ul><input type=text name='PajakHonorDosen' value='{$w['PajakHonorDosen']}' size=3 maxlength=3></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><b>Pejabat Jurusan</b></td></tr>\r\n  <tr><td class=inp>Nama Pejabat</td><td class=ul><input type=text name='Pejabat' value='{$w['Pejabat']}' size=30 maxlength=50></td></tr>\r\n  <tr><td class=inp>Nama Jabatan</td><td class=ul><input type=text name='Jabatan' value='{$w['Jabatan']}' size=30 maxlength=50></td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Batas Studi</b></td></tr>\r\n  <tr><td class=inp>Batas Studi</td><td class=ul><input type=text name='BatasStudi' value='{$w['BatasStudi']}' size=3 maxlength=2> Sesi/Semester</td></tr>\r\n  <tr><td class=inp>Jml Sesi/tahun</td><td class=ul><input type=text name='JumlahSesi' value='{$w['JumlahSesi']}' size=3 maxlength=2> per tahun</td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Surat Keputusan</b></td></tr>\r\n  <tr><td class=inp>No SK Dikti</td><td class=ul><input type=text name='NoSKDikti' value='{$w['NoSKDikti']}' size=30 maxlength=50></td></tr>\r\n  <tr><td class=inp>Tanggal SK Dikti</td><td class=ul>{$TglSKDikti}</td></tr>\r\n  <tr><td class=inp>No SK BAN</td><td class=ul><input type=text name='NoSKBAN' value='{$w['NoSKBAN']}' size=30 maxlength=50></td></tr>\r\n  <tr><td class=inp>Tanggal SK BAN</td><td class=ul>{$TglSKBAN}</td></tr>\r\n  <tr><td class=inp>Akreditasi</td><td class=ul><input type=text name='Akreditasi' value='{$w['Akreditasi']}' size=5 maxlength=10></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={$_SESSION['mnux']}&{$snm}={$sid}'\"></td></tr>\r\n  </form></table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:58,代码来源:fak.php

示例8: mysql_fetch_array

            }
            $r = mysql_fetch_array($edit);
            echo "<div class='well'>\n\t<div class='navbar navbar-inverse'>\n<div class='navbar-inner'>\n<div class='container'>\n<ul class='nav'>\n<li><div style='color:white;  padding-top:9px; text-align:left;'><i class='icon-pencil icon-white'></i> Edit Berita</div></li>\n</ul>\n</div>\n</div>\n</div>\n          <form method=POST enctype='multipart/form-data' action={$aksi}?module=berita&act=update>\n          <input type=hidden name=id value={$r['id_berita']}>\n\t\t  <div class='row-fluid'>\n\t\t\t<div class='span3'>\n\t\t\t<label>Judul</Label>\n\t\t\t<input type=text name='judul' class='span12' value='{$r['judul']}'>\n\t\t\t<label>Kategori</label>\n          <select name='kategori' class='span12'>\n            <option value=0 selected>- Pilih Kategori -</option>";
            $tampil = mysql_query("SELECT * FROM kategori ORDER BY nama_kategori");
            if ($r[id_kategori] == 0) {
                echo "<option value=0 selected>- Pilih Kategori -</option>";
            }
            while ($w = mysql_fetch_array($tampil)) {
                if ($r[id_kategori] == $w[id_kategori]) {
                    echo "<option value={$w['id_kategori']} selected>{$w['nama_kategori']}</option>";
                } else {
                    echo "<option value={$w['id_kategori']}>{$w['nama_kategori']}</option>";
                }
            }
            echo "</select>";
            if ($r[headline] == 'Y') {
                echo "<label>Headline</label><input type=radio name='headline' value='Y' checked>Y  \n                                        <input type=radio name='headline' value='N'> N";
            } else {
                echo "<label>Headline</label><input type=radio name='headline' value='Y'>Y  \n                                        <input type=radio name='headline' value='N' checked>N";
            }
            echo "<label>Gambar</label>";
            if ($r[gambar] != '') {
                echo "<img src='../foto_berita/small_{$r['gambar']}'>";
            }
            echo "<p></p>\n\t\t\t<input type=file name='fupload'>\n\t\t\t<h6>*) Apabila gambar tidak diubah, dikosongkan saja.</h6>\n\t\t\t</div>\n\t\t\t<div class='span9'>\n\t\t\tIsi Berita</td>   <td> <textarea id='loko' name='isi_berita' style='width: 600px; height: 350px;'>{$r['isi_berita']}</textarea>";
            $d = GetCheckboxes('tag', 'tag_seo', 'nama_tag', $r[tag]);
            echo "Tag | {$d} </div><div class='pull-right'><input type=submit value=Update class='btn btn-primary'> <input type=button value=Batal onclick=self.history.back() class='btn btn-danger'></div>\n        </div>";
            echo "</form></div>";
            break;
    }
}
开发者ID:restiako,项目名称:portal,代码行数:31,代码来源:berita.php

示例9: JdwlEdt

function JdwlEdt()
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('jadwal', "JadwalID", $_REQUEST['jadwalid'], '*');
        $jdl = "Edit Jadwal";
    } else {
        $w = $_REQUEST['gagal'] == 1 ? AmbilArrJadwal() : ResetArrJadwal();
        $jdl = "Tambah Jadwal";
    }
    $w['JadwalRef'] = empty($_REQUEST['JadwalRef']) ? $w['JadwalRef'] : $_REQUEST['JadwalRef'];
    //GetCheckboxes($table, $key, $Fields, $Label, $Nilai='', $Separator=',') {
    $hakprodi = TRIM($_SESSION['_ProdiID'], ',');
    $optprodi = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", "NM", $w['ProdiID'], '.', "ProdiID in ({$hakprodi})");
    $optprid = GetCheckboxes("program", "ProgramID", "concat(ProgramID, ' - ', Nama) as NM", "NM", $w['ProgramID'], ',');
    $opthari = GetOption2('hari', "Nama", "HariID", $w['HariID'], '', 'HariID');
    $optmk = GetOption2('mk', "concat(MKKode, ' - ', Nama, ' (', SKS, ' SKS)')", 'MKKode', $w['MKID'], "ProdiID='{$_SESSION['prodi']}'", 'MKID');
    $optdsn = GetOption2('dosen', "concat(Nama, ', ', Gelar)", 'Login', $w['DosenID'], "INSTR(ProdiID, '.{$_SESSION['prodi']}.')", 'Login');
    $ckHargaStandar = $w['HargaStandar'] == 'Y' ? 'checked' : '';
    // Tampilkan form
    CariRuangScript();
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' name='data' method=POST>\r\n  <input type=hidden name='JadwalID' value='{$w['JadwalID']}'>\r\n  <input type=hidden name='JadwalRef' value='{$w['JadwalRef']}'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='mnux' value='jadwal'>\r\n  <input type=hidden name='gos' value='JdwlSav'>\r\n  <input type=hidden name='prodi' value='{$_SESSION['prodi']}'>\r\n\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n\r\n  <tr><td class=inp1>Berlaku untuk<br />Program :</td><td class=ul>{$optprid}</td></tr>\r\n  <tr><td class=inp1>Berlaku untuk<br />Program Studi :</td><td class=ul>{$optprodi}</td></tr>\r\n  <tr><td class=inp1>Hari :</td><td class=ul><select name='HariID'>{$opthari}</select></td></tr>\r\n  <tr><td class=inp1>Jam Kuliah :</td><td class=ul>\r\n    <input type=text name='JamMulai' value='{$w['JamMulai']}' size=5 maxlength=5> s/d\r\n    <input type=text name='JamSelesai' value='{$w['JamSelesai']}' size=5 maxlength=5>\r\n    </td></tr>\r\n  <tr><td class=inp1>Matakuliah :</td><td class=ul><select name='MKID'>{$optmk}</select></td></tr>\r\n  <tr><td class=inp1>Nama Kelas :</td><td class=ul><input type=text name='NamaKelas' value='{$w['NamaKelas']}' size=10 maxlength=20></td></tr>\r\n  <tr><td class=inp1>Ruang Kuliah :</td><td class=ul><input type=text name='RuangID' value='{$w['RuangID']}' size=40 maxlength=255>\r\n    <a href='javascript:cariruang(data)'>Cari</a></td></tr>\r\n  <tr><td class=inp1>Dosen Pengampu :</td><td class=ul><select name='DosenID'>{$optdsn}</select></td></tr>\r\n  <tr><td class=inp1>Rencana Jml Kehadiran :</td><td class=ul><input type=text name='RencanaKehadiran' value='{$w['RencanaKehadiran']}' size=3 maxlength=3></td></tr>\r\n  <tr><td class=inp1>Harga :</td><td class=ul><input type=checkbox name='HargaStandar' value='Y' {$ckHargaStandar}> Apakah harga standar?<hr size=1 color=silver />\r\n    Jika tidak, harganya adalah: Rp. <input type=text name='Harga' value='{$w['Harga']}' size=15 maxlength=15></td></tr>\r\n  <tr><td colspan=2 class=ul><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'\"></td></tr>\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:23,代码来源:jadwal.advance.php

示例10: BipotIsiEdt

function BipotIsiEdt()
{
    global $mnux, $tok;
    $fakultas = substr($_SESSION['prodi'], 0, 1);
    $md = $_REQUEST['md'] + 0;
    // Jika Edit
    if ($md == 0) {
        $bipot2 = $_REQUEST['bipot2'];
        $w = GetFields('bipot2', "BIPOT2ID", $bipot2, '*');
        $jdl = "Edit {$_REQUEST['trxnama']}";
    } else {
        $w = array();
        $w['BIPOTID'] = $_SESSION['bipotid'];
        $w['BIPOTNamaID'] = 0;
        $w['Prioritas'] = 0;
        $w['TrxID'] = $_REQUEST['trxid'];
        $w['Jumlah'] = 0;
        $w['KaliSesi'] = 0;
        $w['Otomatis'] = 'Y';
        $w['SaatID'] = 1;
        $w['StatusMhswID'] = '.A.';
        $w['StatusPotonganID'] = '';
        $w['StatusAwalID'] = '.B.';
        $w['GunakanGradeNilai'] = 'N';
        $w['GradeNilai'] = '';
        $w['GunakanScript'] = 'N';
        $w['NamaScript'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah {$_REQUEST['trxnama']}";
    }
    // setup
    $NA = $w['NA'] == 'Y' ? 'checked' : '';
    $OTO = $w['Otomatis'] == 'Y' ? 'checked' : '';
    $GunakanGradeNilai = $w['GunakanGradeNilai'] == 'Y' ? 'checked' : '';
    $grdnilai = GetCheckboxes('pmbgrade', "GradeNilai", "GradeNilai", 'GradeNilai', $w['GradeNilai'], '.');
    $GunakanScript = $w['GunakanScript'] == 'Y' ? 'checked' : '';
    $optnama = GetOption2('bipotnama', 'Nama', 'Nama', $w['BIPOTNamaID'], "TrxID={$_REQUEST['trxid']}", 'BIPOTNamaID');
    $optsaat = GetOption2('saat', "concat(SaatID, '. ', Nama)", 'SaatID', $w['SaatID'], '', 'SaatID');
    //GetCheckboxes($table, $key, $Fields, $Label, $Nilai='', $Separator=',') {
    $stamhsw = GetCheckboxes('statusmhsw', "StatusMhswID", "concat(StatusMhswID, ' - ', Nama) as STA", 'STA', $w['StatusMhswID'], '.');
    $staawal = GetCheckboxes('statusawal', 'StatusAwalID', "concat(StatusAwalID, ' - ', Nama) as STA", 'STA', $w['StatusAwalID'], '.');
    // Tuliskan
    CheckFormScript("BIPOTNamaID,Jumlah,SaatID");
    return "<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='tok' value='{$tok}'>\r\n  <input type=hidden name='sub1' value='BipotIsiSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='trxid' value='{$_REQUEST['trxid']}'>\r\n  <input type=hidden name='bipot2' value='{$w['BIPOT2ID']}'>\r\n\r\n  <tr><td class=ul colspan=2><b>{$jdl}</td></tr>\r\n  <tr><td class=inp1>Prioritas Pembayaran</td>\r\n    <td class=ul><input type=text name='Prioritas' value='{$w['Prioritas']}' size=4 maxlength=3></td></tr>\r\n  <tr><td class=inp1>Nama {$_REQUEST['trxnama']}</td><td class=ul><select name='BIPOTNamaID'>{$optnama}</select></td></tr>\r\n  <tr><td class=inp1>Jumlah Rp.</td><td class=ul><input type=text name='Jumlah' value='{$w['Jumlah']}' size=20 maxlength=15></td></tr>\r\n  <tr><td class=inp1>Berapa kali sesi?</td><td class=ul><input type=text name='KaliSesi' value='{$w['KaliSesi']}' size=5 maxlength=5> Isikan 0 jika tidak ditentukan.</td></tr>\r\n  <tr><td class=inp1>Dikenakan otomatis?</td><td class=ul><input type=checkbox name='Otomatis' value='Y' {$OTO}></td></tr>\r\n  <tr><td class=inp1>Dikenakan saat</td><td class=ul><select name='SaatID'>{$optsaat}</select></td></tr>\r\n  <tr><td class=inp1>Status Awal</td><td class=ul>{$staawal}</td></tr>\r\n  <tr><td class=inp1>Status Mahasiswa</td><td class=ul>{$stamhsw}</td></tr>\r\n  <tr><td class=inp1 rowspan=2>Grade Nilai USM</td>\r\n    <td class=ul><input type=checkbox name='GunakanGradeNilai' value='Y' {$GunakanGradeNilai}> Cek Grade Nilai USM?</td></tr>\r\n    <tr><td class=ul>{$grdnilai}</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\r\n  <tr><td class=inp1>Gunakan Script External?</td>\r\n    <td class=ul><input type=checkbox name='GunakanScript' value='Y' {$GunakanScript}><br />\r\n    Nama Script: <input type=text name='NamaScript' value='{$w['NamaScript']}' size=30 maxlength=200></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}'\"></td></tr>\r\n  </form></table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:45,代码来源:bipot.master.php

示例11: GetCheckboxes

                    echo "</div>\n\t\t\t\t\t\t\t\t<div class='col-md-4'>\n\t\t\t\t\t\t\t\t\t<a href='javascript:void(0);' id='tbladdtag' class='btn btn btn-success'><i class='fa fa-plus-square-o'></i> Or Add New Tags</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>";
                } else {
                    echo "<div class='form-group'>\n\t\t\t\t\t\t\t<label>Add New Tags</label>\n\t\t\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t\t\t<div class='col-md-8' id='selecttagdata'>";
                    function GetCheckboxes($tagging)
                    {
                        $tabletag = new PoTable("tag");
                        $tags = $tabletag->findAll(id_tag, DESC);
                        $_arrNilai = explode(',', $tagging);
                        $str = '';
                        foreach ($tags as $tag) {
                            $_ck = array_search($tag->tag_seo, $_arrNilai) === false ? '' : 'selected=selected';
                            $str .= "<option value='{$tag->tag_seo}' {$_ck}>{$tag->tag_title}</option>";
                        }
                        return $str;
                    }
                    $d = GetCheckboxes($currentPosts->tag);
                    echo "<select class='select-chosen' name='tag[]' multiple='' data-placeholder='Your Tags'>{$d}</select>";
                    echo "</div>\n\t\t\t\t\t\t\t\t<div class='col-md-4'>\n\t\t\t\t\t\t\t\t\t<a href='javascript:void(0);' id='tbladdtag' class='btn btn btn-success'><i class='fa fa-plus-square-o'></i> Add New Tags</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>";
                }
                ?>
				<div class="form-group" id="image-box">
					<div class="row">
						<?php 
                if ($currentPosts->picture == '') {
                    ?>
							<div class="col-md-3"><label>No Image Selected</label></div>
							<div class="col-md-9">
								<a data-toggle="lightbox-image" href="data:image/gif;base64,R0lGODdhyACWAOMAAO/v76qqqubm5t3d3bu7u7KystXV1cPDw8zMzAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAyACWAAAE/hDISau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/YrHbL7Xq/4LB4TC6bz+i0es1uu9/wuHxOr9vv+Lx+z+/7/4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3TAMFBQO4LAUBAQW+K8DCxCoGu73IzSUCwQECAwQBBAIVCMAFCBrRxwDQwQLKvOHV1xbUwQfYEwIHwO3BBBTawu2BA9HGwcMT1b7Vw/Dt3z563xAIrHCQnzsAAf0F6ybhwDdwgAx8OxDQgASN/sKUBWNmwQDIfwBAThRoMYDHCRYJGAhI8eRMf+4OFrgZgCKgaB4PHqg4EoBQbxgBROtlrJu4ofYm0JMQkJk/mOMkTA10Vas1CcakJrXQ1eu/sF4HWhB3NphYlNsmxOWKsWtZtASTdsVb1mhEu3UDX3RLFyVguITzolQKji/GhgXNvhU7OICgsoflJr7Qd2/isgEPGGAruTTjnSZTXw7c1rJpznobf2Y9GYBjxIsJYQbXstfRDJ1luz6t2TDvosSJSpMw4GXG3TtT+hPpEoPJ6R89B7AaUrnolgWwnUQQEKVOAy199mlonPDfr3m/GeUHFjBhAf0SUh28+P12QOIIgDbcPdwgJV+Arf0jnwTwsHOQT/Hs1BcABObjDAcTXhiCOGppKAJI6nnIwQGiKZSViB2YqB+KHtxjjXMsxijjjDTWaOONOOao44489ujjj0AGKeSQRBZp5JFIJqnkkkw26eSTUEYp5ZRUVmnllVhmqeWWXHbp5ZdghinmmGSW6UsEADs=">No Existing Image Preview</a>
								<p><i>Please upload image type must be jpg and if the image is not replaced, do not choose any option below.</i></p>
							</div>
						<?php 
开发者ID:rad4n,项目名称:kelinci,代码行数:31,代码来源:post.php

示例12: ProdiEdt

function ProdiEdt()
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('prodi', 'ProdiID', $_REQUEST['prid'], '*');
        $_prid = "<input type=hidden name='prid' value='{$w['ProdiID']}'><b>{$w['ProdiID']}</b>";
        $jdl = 'Edit Program Studi';
    } else {
        $w = array();
        $w['ProdiID'] = '';
        $w['Nama'] = '';
        $w['Nama_en'] = '';
        $w['JenjangID'] = '';
        $w['Gelar'] = '';
        $w['FakultasID'] = $_SESSION['fid'];
        $w['FormatNIM'] = '';
        $w['DapatPindahProdi'] = '';
        $w['ProdiDiktiID'] = '';
        $w['NamaSesi'] = "Semester";
        $w['CekPrasyarat'] = 'Y';
        $w['DefSKS'] = 0;
        $w['DefKehadiran'] = 16;
        $w['TotalSKS'] = 0;
        $w['BatasStudi'] = 0;
        $w['JumlahSesi'] = 0;
        $w['Akreditasi'] = '';
        $w['NoSKDikti'] = '';
        $w['TglSKDikti'] = date('Y-m-d');
        $w['NoSKBAN'] = '';
        $w['TglSKBAN'] = date('Y-m-d');
        $w['PajakHonorDosen'] = 10;
        $w['Pejabat'] = '';
        $w['Jabatan'] = '';
        $w['NA'] = 'N';
        $_prid = "<input type=text name='prid' size=30 maxlength=20>";
        $jdl = 'Tambah Program Studi';
    }
    CheckFormScript("prid,Nama,FormatNIM,DefSKS");
    CariProdiDikti();
    $NamaProdi = GetaField('prodidikti', 'ProdiDiktiID', $w['ProdiDiktiID'], 'Nama');
    $TglSKDikti = GetDateOption($w['TglSKDikti'], 'TglSKDikti');
    $TglSKBAN = GetDateOption($w['TglSKBAN'], 'TglSKBAN');
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    $cp = $w['CekPrasyarat'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    $opt = GetOption2('fakultas', "concat(FakultasID, '. ', Nama)", 'FakultasID', $w['FakultasID'], '', 'FakultasID');
    $optjen = GetOption2('jenjang', "concat(JenjangID, ' - ', Nama)", 'JenjangID', $w['JenjangID'], '', 'JenjangID');
    //GetCheckboxes($table, $key, $Fields, $Label, $Nilai='', $Separator=',') {
    $pind = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", 'NM', $w['DapatPindahProdi'], '.');
    return "\r\n  <form name='data' action='?' method=POST onSubmit=\"return CheckForm(data)\">\r\n  <input type=hidden name='mnux' value='fak'>\r\n  <input type=hidden name='gos' value='ProdiSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  \r\n  <fieldset>\r\n    <legend>{$jdl}</legend>\r\n    <ol>\r\n      <li>\r\n\t<label for=ProdiID>Kode Prodi:</label>\r\n\t{$_prid}\r\n      </li>\r\n      <li>\r\n\t<label for=FakultasID>Fakultas:</label>\r\n\t<select name=FakultasID>{$opt}</opt>\r\n      </li>\r\n      <li>\r\n\t<label for=Nama>Nama Prodi:</label>\r\n\t<input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=Nama_en>Nama Inggris:</label>\r\n\t<input type=text name='Nama_en' value='{$w['Nama_en']}' size=30 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=Jenjang>Jenjang:</label>\r\n\t<select name='JenjangID'>{$optjen}</select>\r\n      </li>\r\n      <li>\r\n\t<label for=Gelar>Gelar</label>\r\n\t<input type=text name='Gelar' value='{$w['Gelar']}' size=30 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=FormatNIM>Format NIM:</label>\r\n\t<input type=text name='FormatNIM' value='{$w['FormatNIM']}' size=30 maxlength=100>\r\n      </li>\r\n      <li>\r\n\t<label for=PindahProdi>Dapat Pindah ke Prodi:</label>\r\n\t{$pind}\r\n      </li>\r\n       <li>\r\n\t<label for=NamaSesi>Nama Sesi:</label>\r\n\t<input type=text name='NamaSesi' value='{$w['NamaSesi']}' size=30 maxlength=50> Misal: Semester, Cawu.\r\n      </li>\r\n      <li>\r\n\t<label for=CekPrasyarat>Cek Prasyarat:</label>\r\n\t<input type=checkbox name='CekPrasyarat' value='Y' {$cp}>\r\n      </li>\r\n      <li>\r\n\t<label for=TotalSKS>Total SKS Lulus:</label>\r\n\t<input type=text name='TotalSKS' value='{$w['TotalSKS']}' size=5 maxlength=4>\r\n      </li>\r\n      <li>\r\n\t<label for=DefSKS>Default SKS:</label>\r\n\t<input type=text name='DefSKS' value='{$w['DefSKS']}' size=3 maxlength=3>\r\n      </li>\r\n      <li>\r\n\t<label for=DefKehadiran>Default Jumlah Kehadiran:</label>\r\n\t<input type=text name='DefKehadiran' value='{$w['DefKehadiran']}' size=4 maxlength=3>\r\n      </li>\r\n      <li>\r\n\t<label for=ProdiDiktiID>Kode Prodi Dikti:</label>\r\n\t<input type=text name='ProdiDiktiID' value='{$w['ProdiDiktiID']}' size=10 maxlength=20>\r\n\t<input type=text name='NamaProdi' value='{$NamaProdi}' size=30 maxlength=50><a href='javascript:cariprodidikti(data)'>Cari</a>\r\n      </li>\r\n      <li>\r\n\t<label for=PajakHonorDosen>Pajak Honor Dosen:</label>\r\n\t<input type=text name='PajakHonorDosen' value='{$w['PajakHonorDosen']}' size=3 maxlength=3>\r\n      </li>\r\n      <li>\r\n\t<label for=NA>Tidak aktif?:</label>\r\n\t<input type=checkbox name='NA' value='Y' {$na}>\r\n      </li>\r\n      <li>\r\n\t<label for=Pejabat>Nama Pejabat:</label>\r\n\t<input type=text name='Pejabat' value='{$w['Pejabat']}' size=40 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=Jabatan>Nama Jabatan:</label>\r\n\t<input type=text name='Jabatan' value='{$w['Jabatan']}' size=40 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=BatasStudi>Batas Studi:</label>\r\n\t<input type=text name='BatasStudi' value='{$w['BatasStudi']}' size=3 maxlength=2> Sesi/Semester\r\n      </li>\r\n      <li>\r\n\t<label for=JumlahSesi>Jml Sesi/tahun:</label>\r\n\t<input type=text name='JumlahSesi' value='{$w['JumlahSesi']}' size=3 maxlength=2> per tahun\r\n      </li>\r\n      <li>\r\n\t<label for=NoSKDikti>No SK Dikti:</label>\r\n\t<input type=text name='NoSKDikti' value='{$w['NoSKDikti']}' size=30 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=TglSKDikti>Tanggal SK Dikti:</label>\r\n\t{$TglSKDikti}\r\n      </li>\r\n      <li>\r\n\t<label for=NoSKBAN>No SK BAN:</label>\r\n\t<input type=text name='NoSKBAN' value='{$w['NoSKBAN']}' size=30 maxlength=50>\r\n      </li>\r\n      <li>\r\n\t<label for=TglSKBAN>Tanggal SK BAN:</label>\r\n\t{$TglSKBAN}\r\n      </li>\r\n      <li>\r\n\t<label for=Akreditasi>Akreditasi:</label>\r\n\t<input type=text name='Akreditasi' value='{$w['Akreditasi']}' size=5 maxlength=10>\r\n      </li>\r\n      <li>\r\n\t<input class=submit type=submit value=Submit />\r\n\t<input type=reset name='Reset' value='Reset'>\r\n\t<input type=button name='Batal' value='Batal' onClick=\"location='?mnux=fak'\">\r\n      </li>\r\n    </ol>\r\n  </fieldset>\r\n  </form>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:52,代码来源:fak_.php

示例13: JdwlEdt

function JdwlEdt()
{
    global $LevelAksesHarga;
    CheckFormScript('MKKode,NamaKelas,DosenID,HariID,JamMulai,JamSelesai');
    CariMKScript();
    CariDosenAjax();
    PhpAutocomplete($_SESSION['prodi']);
    $md = $_REQUEST['md'] + 0;
    $hari = $_REQUEST['hari'];
    if ($md == 0) {
        $w = $_REQUEST['GAGAL'] == 1 ? AmbilArrJadwal() : GetFields('jadwal', "JadwalID", $_REQUEST['JadwalID'], '*');
        $jdl = "Edit Jadwal";
    } else {
        $w = $_REQUEST['GAGAL'] == 1 ? AmbilArrJadwal() : ResetArrJadwal();
        $jdl = "Tambah Jadwal";
        $w['DosenID'] = 5000;
        $w['RencanaKehadiran'] = 14;
        $w['HariID'] = $hari;
    }
    // cek jika kelas serial
    if (!empty($w['JadwalSer'])) {
        $serial = GetFields('jadwal', 'JadwalID', $w['JadwalSer'], 'JadwalID, MKID, MKKode, Nama, NamaKelas, JenisJadwalID, DosenID');
        $w['MKID'] = $serial['MKID'];
        $w['MKKode'] = $serial['MKKode'];
        $w['Nama'] = $serial['Nama'];
        $w['NamaKelas'] = $serial['NamaKelas'];
        $w['JenisJadwalID'] = $serial['JenisJadwalID'];
        $w['DosenID'] = $serial['DosenID'];
    }
    if ($_SESSION['prodi'] == '99') {
        // Daftar prodi yg bisa diakses
        $_ProdiID = trim($_SESSION['_ProdiID'], ',');
        //echo $_ProdiID;
        $arrProdi = explode(',', $_ProdiID);
        $_prodi = '';
        for ($i = 0; $i < sizeof($arrProdi); $i++) {
            $_prodi .= ",'" . $arrProdi[$i] . "'";
        }
        $_prodi = trim($_prodi, ',');
        $_prodi = empty($arrProdi) ? '-1' : $_prodi;
        //implode(', ', $arrProdi);
    } else {
        $_prodi = "'{$_SESSION['prodi']}'";
    }
    // sekarang hanya 1 prodi saja kecuali prodi -99
    $optprodi = GetCheckboxes("prodi", "ProdiID", "concat(ProdiID, ' - ', Nama) as NM", "NM", $w['ProdiID'], '.', "ProdiID in ({$_prodi})");
    $optprid = GetCheckboxes("program", "ProgramID", "concat(ProgramID, ' - ', Nama) as NM", "NM", $w['ProgramID'], '.');
    $opthari = GetOption2('hari', "Nama", "HariID", $w['HariID'], '', 'HariID');
    //$optmk = GetOption2('mk', "concat(MKKode, ' - ', Nama, ' (', SKS, ' SKS)')",
    //  'MKKode', $w['MKID'], "ProdiID='$_SESSION[prodi]'", 'MKID');
    //$optdsn = GetOption2('dosen', "concat(Nama, ', ', Gelar)",
    //  'Login', $w['DosenID'], "INSTR(ProdiID, '.$_SESSION[prodi].')", 'Login');
    $NamaDosen = empty($w['DosenID']) ? '' : GetaField('dosen', "Login", $w['DosenID'], 'Nama');
    $optrg = GetOption2('ruang', "concat(RuangID, ' - ', Nama)", 'KampusID, RuangID', $w['RuangID'], '', 'RuangID');
    $ckHargaStandar = $w['HargaStandar'] == 'Y' ? 'checked' : '';
    $optjenjad = GetOption2('jenisjadwal', "concat(JenisJadwalID, ' - ', Nama)", "JenisJadwalID", $w['JenisJadwalID'], '', 'JenisJadwalID');
    // Dapatkah mengedit harga matakuliah?
    if (strpos($LevelAksesHarga, ".{$_SESSION['_LevelID']}.") === false) {
        $EdtHrg = "<input type=hidden name='HargaStandar' value='{$w['HargaStandar']}'>\r\n      <input type=hidden name='Harga' value='{$w['Harga']}'>";
    } else {
        $EdtHrg = "<tr><td class=inp1>Harga :</td><td class=ul><input type=checkbox name='HargaStandar' value='Y' {$ckHargaStandar}> Apakah harga standar?<hr size=1 color=silver />\r\n    Jika tidak tidak standar, harganya adalah: <br />\r\n    Rp. <input type=text name='Harga' value='{$w['Harga']}' size=15 maxlength=15></td></tr>";
    }
    //<tr><td class=inp1>Matakuliah :</td><td class=ul><select name='MKID'>$optmk</select></td></tr>
    // Tampilkan form
    GabungkanScript();
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' name='data' method=POST onSubmit=\"return CheckForm(this);\">\r\n  <input type=hidden name='JadwalID' value='{$w['JadwalID']}'>\r\n  <input type=hidden name='JadwalPar' value='{$w['JadwalPar']}'>\r\n  <input type=hidden name='JadwalSer' value='{$w['JadwalSer']}'>\r\n  <input type=hidden name='TahunID' value='{$w['TahunID']}'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='mnux' value='jadwal'>\r\n  <input type=hidden name='gos' value='JdwlSav'>\r\n  <input type=hidden id='prodi' name='prodi' value='{$_SESSION['prodi']}'>\r\n  <input type=hidden id='MKID' name='MKID' value='{$w['MKID']}'>\r\n  <input type=hidden name='bypass' value=0>\r\n\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n\r\n  <tr><td class=inp1>Berlaku untuk<br />Program :</td><td class=ul>{$optprid}</td></tr>\r\n  <tr><td class=inp1>Berlaku untuk<br />Program Studi :</td><td class=ul>{$optprodi}</td></tr>\r\n  <tr><td class=inp1>Hari :</td><td class=ul><select name='HariID'>{$opthari}</select></td></tr>\r\n  <tr><td class=inp1>Jam Kuliah :</td><td class=ul>\r\n    <input type=text name='JamMulai' value='{$w['JamMulai']}' size=5 maxlength=5> s/d\r\n    <input type=text name='JamSelesai' value='{$w['JamSelesai']}' size=5 maxlength=5>\r\n    </td></tr>\r\n  <tr><td class=inp1>Mata kuliah :</td><td class=ul><input type=text id='MKKode' name='MKKode' value='{$w['MKKode']}' size=10 maxlength=20>\r\n    <a href=\"javascript:carimkajax(data)\">Cari Matakuliah</a><br />\r\n    <input type=text name='Nama' autocomplete='off' id='NamaMK' value='{$w['Nama']}' size=50 maxlength=50></td></tr>\r\n  <tr><td class=inp1>Nama Kelas :</td><td class=ul><input type=text name='NamaKelas' value='{$w['NamaKelas']}' size=5 maxlength=1></td></tr>\r\n  <tr><td class=inp1>Jenis Jadwal :</td><td class=ul><select name='JenisJadwalID'>{$optjenjad}</select></td></tr>\r\n  <tr><td class=inp1>SKS :</td><td class=ul><input type=text name='SKS' value='{$w['SKS']}' size=3 maxlength=3>\r\n    Isikan dengan -1 jika jumlah SKS menggunakan SKS asli dari matakuliah.</td></tr>\r\n  <tr><td class=inp1>SKS Honor :</td>\r\n    <td class=ul><input type=text name='SKSHonor' value='{$w['SKSHonor']}' size=3 maxlength=3>\r\n    Isikan dengan -1 jika jumlah SKS honor menggunakan SKS asli dari matakuliah.</td></tr>\r\n  <tr><td class=inp1>Ruang Kuliah :</td><td class=ul>\r\n    <select name='RuangID'>{$optrg}</select></td></tr>\r\n  <tr><td class=inp1>Kapasitas/Target :</td><td class=ul>\r\n    <input type=text name='Kapasitas' value='{$w['Kapasitas']}' size=5 maxlength=4>\r\n    Jika diisi dengan nilai -1, maka nilai kapasitas akan diambil dari nilai kapasitas ruang.</td></tr>\r\n  <tr><td class=inp1>Dosen Pengampu :</td><td class=ul><input type=text name='DosenID' id='DosenID' value='{$w['DosenID']}' size=10 maxlength=20>\r\n    <a href='javascript:caridosenajax(data)'>Cari Dosen</a><br />\r\n    <input type=text autocomple='off' id='NamaDosen' name='NamaDosen' value='{$NamaDosen}' size=50 maxlength=50></td></tr>\r\n  <tr><td class=inp1>Rencana Tatap Muka :</td><td class=ul><input type=text name='RencanaKehadiran' value='{$w['RencanaKehadiran']}' size=3 maxlength=3></td></tr>\r\n  <tr><td class=inp1>Minimal Kehadiran Mhsw :</td><td class=ul><input type=text name='KehadiranMin' value='{$w['KehadiranMin']}' size=3 maxlength=3></td></tr>\r\n  {$EdtHrg}\r\n  <tr><td colspan=2 class=ul><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'\"></td></tr>\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:67,代码来源:jadwal.php

示例14: BipotIsiEdt

function BipotIsiEdt()
{
    global $mnux, $tok;
    $fakultas = substr($_SESSION['prodi'], 0, 1);
    $md = $_REQUEST['md'] + 0;
    // Jika Edit
    if ($md == 0) {
        $bipot2 = $_REQUEST['bipot2'];
        $w = GetFields('bipot2', "BIPOT2ID", $bipot2, '*');
        $jdl = "Edit {$_REQUEST['trxnama']}";
    } else {
        $w = array();
        $w['BIPOTID'] = $_SESSION['bipotid'];
        $w['BIPOTNamaID'] = 0;
        $w['TambahanNama'] = '';
        $w['Prioritas'] = 0;
        $w['TrxID'] = $_REQUEST['trxid'];
        $w['Jumlah'] = 0;
        $w['KaliSesi'] = 0;
        $w['MulaiSesi'] = 0;
        $w['Otomatis'] = 'Y';
        $w['PerMataKuliah'] = 'N';
        $w['PerSKS'] = 'N';
        $w['PerLab'] = 'N';
        $w['Remedial'] = 'N';
        $w['PraktekKerja'] = 'N';
        $w['SaatID'] = 1;
        $w['StatusMhswID'] = '.A.';
        $w['StatusPotonganID'] = '';
        $w['StatusAwalID'] = '.B.';
        $w['GunakanGradeNilai'] = 'N';
        $w['GunakanGradeIPK'] = 'N';
        $w['GradeNilai'] = '';
        $w['GradeIPK'] = '';
        $w['GunakanScript'] = 'N';
        $w['NamaScript'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah {$_REQUEST['trxnama']}";
    }
    // setup
    $NA = $w['NA'] == 'Y' ? 'checked' : '';
    $OTO = $w['Otomatis'] == 'Y' ? 'checked' : '';
    $PMK = $w['PerMataKuliah'] == 'Y' ? 'checked' : '';
    $PSKS = $w['PerSKS'] == 'Y' ? 'checked' : '';
    $PLab = $w['PerLab'] == 'Y' ? 'checked' : '';
    $PRem = $w['Remedial'] == 'Y' ? 'checked' : '';
    $PPK = $w['PraktekKerja'] == 'Y' ? 'checked' : '';
    $GunakanGradeNilai = $w['GunakanGradeNilai'] == 'Y' ? 'checked' : '';
    $grdnilai = GetCheckboxes('pmbgrade', "GradeNilai", "concat(GradeNilai, ' ( ', Keterangan, ' ) ') as PMBGRD", "PMBGRD", $w['GradeNilai'], '.');
    $GunakanGradeIPK = $w['GunakanGradeIPK'] == 'Y' ? 'checked' : '';
    $grdipk = GetCheckboxes('gradeipk', "GradeIPK", "concat(GradeIPK, ' ( ', Keterangan, ' ) ') as IPKGRD", "IPKGRD", $w['GradeIPK'], '.');
    $GunakanScript = $w['GunakanScript'] == 'Y' ? 'checked' : '';
    $optnama = GetOption2('bipotnama', 'Nama', 'Nama', $w['BIPOTNamaID'], "TrxID={$_REQUEST['trxid']}", 'BIPOTNamaID');
    $optsaat = GetOption2('saat', "concat(SaatID, '. ', Nama)", 'SaatID', $w['SaatID'], '', 'SaatID');
    //GetCheckboxes($table, $key, $Fields, $Label, $Nilai='', $Separator=',') {
    $stamhsw = GetCheckboxes('statusmhsw', "StatusMhswID", "concat(StatusMhswID, ' - ', Nama) as STA", 'STA', $w['StatusMhswID'], '.');
    $staawal = GetCheckboxes('statusawal', 'StatusAwalID', "concat(StatusAwalID, ' - ', Nama) as STA", 'STA', $w['StatusAwalID'], '.');
    // Tuliskan
    CheckFormScript("BIPOTNamaID,Jumlah,SaatID");
    return "<p><table class=box cellspacing=1 cellpadding=4 width=100%>\r\n  <form name='bipotform' 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='sub1' value='BipotIsiSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='trxid' value='{$_REQUEST['trxid']}'>\r\n  <input type=hidden name='bipot2' value='{$w['BIPOT2ID']}'>\r\n\r\n  <tr><th class=ttl colspan=2><b>{$jdl}</th></tr>\r\n  <tr><td class=inp>Prioritas Pembayaran</td>\r\n    <td class=ul><input type=text name='Prioritas' value='{$w['Prioritas']}' size=4 maxlength=3></td></tr>\r\n  <tr><td class=inp>Nama {$_REQUEST['trxnama']}</td><td class=ul><select name='BIPOTNamaID'>{$optnama}</select></td></tr>\r\n  <tr><td class=inp>Tambahan Nama</td><td class=ul><input type=text name='TambahanNama' value='{$w['TambahanNama']}' size=30 maxlength=100></td></tr>\r\n  <tr><td class=inp>Jumlah Rp.</td><td class=ul><input type=text name='Jumlah' value='{$w['Jumlah']}' size=20 maxlength=15></td></tr>\r\n  <tr><td class=inp>Berapa kali sesi?</td><td class=ul><input type=text name='KaliSesi' value='{$w['KaliSesi']}' size=5 maxlength=5> Isikan 0 jika tidak ditentukan.</td></tr>\r\n  <tr><td class=inp>Mulai sesi keberapa?</td><td class=ul><input type=text name='MulaiSesi' value='{$w['MulaiSesi']}' size=5 maxlength=5> Isikan 0 jika tidak ditentukan.</td></tr>\r\n  <tr><td class=inp>Dikenakan otomatis?</td><td class=ul><input type=checkbox name='Otomatis' value='Y' {$OTO}></td></tr>\r\n  <tr><td class=inp>Dikenakan per mata kuliah?</td><td class=ul><input type=checkbox id='PerMataKuliah' name='PerMataKuliah' value='Y' {$PMK} ></td></tr>\r\n  <tr><td class=inp>Dikenakan per Lab/Responsi?</td><td class=ul><input type=checkbox id='PerLab' name='PerLab' value='Y' {$PLab}></td></tr>\r\n  <tr><td class=inp>Dikenakan per Remedial?<td class=ul1><input type=checkbox id='Remedial' name='Remedial' value='Y' {$PRem}></td></tr>\r\n  <tr><td class=inp>Dikenakan per Praktek Kerja?</td><td class=ul><input type=checkbox id='PraktekKerja' name='PraktekKerja' value='Y' {$PPK} ></td></tr>\r\n  <tr><td class=inp>Dikenakan per SKS?</td><td class=ul><input type=checkbox id='PerSKS' name='PerSKS' value='Y' {$PSKS}><font color=red>*) Bila dicentang, Biaya Per di atas akan dikenakan per SKS mata kuliahnya</td></tr>\r\n  <tr><td class=inp>Dikenakan saat</td><td class=ul><select name='SaatID'>{$optsaat}</select></td></tr>\r\n  <tr><td class=inp>Status Awal</td><td class=ul>{$staawal}</td></tr>\r\n  <tr><td class=inp>Status Mahasiswa</td><td class=ul>{$stamhsw}</td></tr>\r\n  <tr><td class=inp rowspan=2>Grade USM</td>\r\n    <td class=ul><input type=checkbox name='GunakanGradeNilai' value='Y' {$GunakanGradeNilai}> Cek Grade Nilai USM?</td></tr>\r\n    <tr><td class=ul>{$grdnilai}</td></tr>\r\n  <tr><td class=inp rowspan=2>Grade IPK</td>\r\n    <td class=ul><input type=checkbox name='GunakanGradeIPK' value='Y' {$GunakanGradeIPK}> Cek Grade IPK? <font color=red>*) Tidak berlaku untuk biaya masuk mahasiswa baru</font></td></tr>\r\n    <tr><td class=ul>{$grdipk}</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\r\n  <tr><td class=inp>Gunakan Script External?</td>\r\n    <td class=ul><input type=checkbox name='GunakanScript' value='Y' {$GunakanScript}><br />\r\n    Nama Script: <input type=text name='NamaScript' value='{$w['NamaScript']}' size=30 maxlength=200></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}'\"></td></tr>\r\n  </form></table></p>\r\n  ";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:61,代码来源:bipot.master.php


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