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


PHP CheckFormScript函数代码示例

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


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

示例1: TampilkanHeaderExportDikti

function TampilkanHeaderExportDikti()
{
    $optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['ProdiID'], "KodeID='" . KodeID . "'", 'ProdiID');
    CheckFormScript('TahunID');
    echo <<<ESD
  <p>
  <table class=box cellspacing=1 align=center width=800>
  <form name='frmHeader' action='?' method=POST onSubmit='return CheckForm(this)'>
  <tr><td class=wrn width=2></td>
      <td class=inp width=80>Tahun Akd:</td>
      <td class=ul>
        <input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=6 maxlength=6 />
        <input type=submit name='SetParam' value='Set' />
        </td>
      <td class=inp width=80>Program Studi:</td>
      <td class=ul nowrap>
        <select name='ProdiID' onChange='this.form.submit()'>{$optprodi}</select>
        <font color=red>*) Kosongkan jika ingin diproses semua
        </td>
      </tr>
  
  </form>
  </table>
  </p>
ESD;
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:26,代码来源:dikti.php

示例2: KurEdt

function KurEdt()
{
    global $mnux, $pref, $arrID;
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('kurikulum', 'KurikulumID', $_REQUEST['kurid'], '*');
        $jdl = "Edit Kurikulum";
    } else {
        $w = array();
        $w['KurikulumID'] = 0;
        $w['ProdiID'] = $_SESSION['prodi'];
        $w['KodeID'] = $arrID['Kode'];
        $w['KurikulumKode'] = '';
        $w['Nama'] = '';
        $w['Sesi'] = '';
        $w['JmlSesi'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah Kurikulum";
    }
    $_na = $w['NA'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    // Tampilkan form
    CheckFormScript("KurikulumKode,Nama,Sesi,JmlSesi");
    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='md' value='{$md}'>\r\n  <input type=hidden name='sub' value='KurSav'>\r\n  <input type=hidden name='prodi' value='{$_SESSION['prodi']}'>\r\n  <input type=hidden name='KurikulumID' value='{$w['KurikulumID']}'>\r\n  <input type=hidden name='KodeID' value='{$w['KodeID']}'>\r\n  <input type=hidden name='BypassMenu' value='1' />\r\n  \r\n  <tr><td class=ul colspan=2><b>{$arrID['Nama']}</b></td></tr>\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp>Kode/Tahun:</td><td class=ul><input type=text name='KurikulumKode' value='{$w['KurikulumKode']}' size=20 maxlength=20></td></tr>\r\n  <tr><td class=inp>Nama Kurikulum:</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n  <tr><td class=inp>Nama Sesi:</td><td class=ul><input type=text name='Sesi' value='{$w['Sesi']}' size=20 maxlength=20></td></tr>\r\n  <tr><td class=inp>Jumlah Sesi/Tahun:</td><td class=ul><input type=text name='JmlSesi' value='{$w['JmlSesi']}' size=5 maxlength=2></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>\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}&{$pref}={$_SESSION[$pref]}&{$snm}={$sid}'\"></td></tr>\r\n  </form></table>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:26,代码来源:matakuliah.Kur.php

示例3: PilEdt

function PilEdt()
{
    global $mnux, $pref;
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $JenisPilihanID = $_REQUEST['JenisPilihanID'] + 0;
        $w = GetFields('jenispilihan', "JenisPilihanID", $JenisPilihanID, '*');
        $jdl = "Edit Jenis Pilihan Wajib";
    } else {
        $w = array();
        $w['JenisPilihanID'] = 0;
        $w['KodeID'] = $_SESSION['KodeID'];
        $w['Singkatan'] = '';
        $w['Nama'] = '';
        $w['ProdiID'] = $_SESSION['prodi'];
        $w['TA'] = 'N';
        $w['NA'] = 'N';
        $jdl = "Tambah Jenis Pilihan Wajib";
    }
    $ta = $w['TA'] == 'Y' ? 'checked' : '';
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    // Tampilkan
    CheckFormScript("Singkatan,Nama");
    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='{$mnux}'>\r\n  <input type=hidden name='{$pref}' value='Pil'>\r\n  <input type=hidden name='sub' value='PilSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='JenisPilihanID' value='{$w['JenisPilihanID']}'>\r\n  \r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp>Kode</td><td class=ul><input type=text name='Singkatan' value='{$w['Singkatan']}' size=5 maxlength=10></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>Tugas Akhir/Skripsi/Tesis/Disertasi?</td><td class=ul><input type=checkbox name='TA' value='Y' {$ta}><br />\r\n    Digunakan untuk pengecekan pendaftaran skripsi & wisuda</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><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}=Pil'\"></td></tr>\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:25,代码来源:matakuliah.Pil.php

示例4: NilEdt

function NilEdt()
{
    global $mnux, $pref;
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('nilai', "NilaiID", $_REQUEST['NID'], '*');
        $jdl = "Edit Nilai";
    } else {
        $w = array();
        $w['NilaiID'] = 0;
        $w['KodeID'] = $_SESSION['KodeID'];
        $w['ProdiID'] = $_SESSION['prodi'];
        $w['Nama'] = '';
        $w['Bobot'] = 0;
        $w['Lulus'] = 'N';
        $w['NilaiMin'] = 0;
        $w['NilaiMax'] = 0;
        $w['MaxSKS'] = 0;
        $w['HitungIPK'] = 'N';
        $w['Deskripsi'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah Nilai";
    }
    $_na = $w['NA'] == 'Y' ? 'checked' : '';
    $_Lulus = $w['Lulus'] == 'Y' ? 'checked' : '';
    $_HitungIPK = $w['HitungIPK'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    // Tampilkan formulir
    CheckFormScript("Nama,Bobot,NilaiMin,NilaiMax");
    echo "<p><table class=box cellspacing=1 cellpadding=4>\n  <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\n  <input type=hidden name='mnux' value='{$mnux}'>\n  <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\n  <input type=hidden name='sub' value='NilSav'>\n  <input type=hidden name='md' value='{$md}'>\n  <input type=hidden name='NilaiID' value='{$w['NilaiID']}'>\n  <input type=hidden name='KodeID' value='{$w['KodeID']}'>\n  <input type=hidden name='ProdiID' value='{$w['ProdiID']}'>\n\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\n  <tr><td class=inp1>Nilai</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=5 maxlength=5></td></tr>\n  <tr><td class=inp1>Bobot</td><td class=ul><input type=text name='Bobot' value='{$w['Bobot']}' size=5 maxlength=5></td></tr>\n  <tr><td class=inp1>Lulus?</td><td class=ul><input type=checkbox name='Lulus' value='Y' {$_Lulus}></td></tr>\n  <tr><td class=inp1>Batas Bawah</td><td class=ul><input type=text name='NilaiMin' value='{$w['NilaiMin']}' size=5 maxlength=5></td></tr>\n  <tr><td class=inp1>Batas Atas</td><td class=ul><input type=text name='NilaiMax' value='{$w['NilaiMax']}' size=5 maxlength=5></td></tr>\n  <tr><td class=inp1>Max Pengambilan SKS</td><td class=ul><input type=text name='MaxSKS' value='{$w['MaxSKS']}' size=4 maxlength=3></td></tr>\n  <tr><td class=inp1>Hitung dlm IPK?</td><td class=ul><input type=checkbox name='HitungIPK' value='Y' {$_HitungIPK}></td></tr>\n  <tr><td class=inp1>Deskripsi</td><td class=ul><input type=text name='Deskripsi' value='{$w['Deskripsi']}' size=50 maxlength=200></td></tr>\n  <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\n    <input type=reset name='Reset' value='Reset'>\n    <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&{$snm}={$sid}'\"></td></tr>\n\n  </form></table></p>";
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:32,代码来源:matakuliah.Nil.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: Edit

function Edit($md, $Kode, $bck)
{
    if ($md == 0) {
        $jdl = "Edit Komponen";
        $w = GetFields('pmbusm', "KodeID='" . KodeID . "' and PMBUSMID", $Kode, "*");
        $_usm = "<input type=hidden name='Kode' value='{$w['PMBUSMID']}' /><b>{$w['PMBUSMID']}</b>";
    } elseif ($md == 1) {
        $jdl = "Tambah Komponen";
        $w = array();
        $w['NA'] = 'N';
        $_usm = "<input type=text name='Kode' size=10 maxlength=10 />";
    } else {
        die(ErrorMsg('Error', "Mode edit tidak dikenali."));
    }
    TampilkanJudul($jdl);
    // Parameters
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    if (empty($w['CaraPenempatan'])) {
        $Urut = 'checked';
    } else {
        $Urut = $w['CaraPenempatan'] == 'Urut' ? 'checked' : '';
        $Acak = $w['CaraPenempatan'] == 'Acak' ? 'checked' : '';
        $Manual = $w['CaraPenempatan'] == 'Manual' ? 'checked' : '';
    }
    CheckFormScript('Kode,Nama');
    echo "<p><table class=bsc cellspacing=1 align=center width=100%>\n  <form action='../{$_SESSION['mnux']}.usm.edit.php' method=POST onSubmit='return CheckForm(this)'>\n  <input type=hidden name='gos' value='Simpan' />\n  <input type=hidden name='md' value='{$md}' />\n  <input type=hidden name='bck' value='{$bck}' />\n  \n  <tr><td class=inp>Kode USM:</td>\n      <td class=ul1>{$_usm}</td>\n      </tr>\n  <tr><td class=inp>Nama Ujian:</td>\n      <td class=ul1><input type=text name='Nama' value='{$w['Nama']}'\n        size=30 maxlength=50 /></td>\n      </tr>\r\n  <tr><td class=inp>Cara Penempatan Cama:</td>\r\n\t  <td class=ul1><input type=radio name='CaraPenempatan' value='Urut' {$Urut}>Urut\r\n\t\t\t\t<br><input type=radio name='CaraPenempatan' value='Acak' {$Acak}>Acak\r\n\t\t\t\t<br><input type=radio name='CaraPenempatan' value='Manual' {$Manual}>Manual</td>\r\n\t  </tr>\n  <tr><td class=inp>Keterangan:</td>\n      <td class=ul1>\n        <textarea name='Keterangan' cols=30 rows=4>{$w['Keterangan']}</textarea>\n      </td></tr>\n  <tr><td class=inp>NA (tidak aktif)?</td>\n      <td class=ul1>\n      <input type=checkbox name='NA' value='Y' {$na} /> *) Beri centang jika tidak aktif\n      </td>\n      </tr>\n  \n  <tr><td class=ul1 colspan=2 align=center>\n      <input type=submit name='Simpan' value='Simpan' />\n      <input type=button name='Batal' value='Batal'\n        onClick=\"window.close()\" />\n      </td>\n      </tr>\n  </form>\n  </table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:27,代码来源:pmbsetup.usm.edit.php

示例8: DendaEdt

function DendaEdt()
{
    $ProdiID = $_REQUEST['ProdiID'];
    $prd = GetFields('prodi', 'ProdiID', $ProdiID, '*');
    CheckFormScript('Denda1,Denda2');
    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='denda'>\r\n  <input type=hidden name='gos' value='DendaSav'>\r\n  <input type=hidden name='ProdiID' value='{$ProdiID}'>\r\n  \r\n  <tr><th class=ttl colspan=2>Edit Denda Program Studi</th></tr>\r\n  <tr><td class=inp>Kode Prodi</td><td class=ul><b>{$prd['ProdiID']}</b></td></tr>\r\n  <tr><td class=inp>Program Studi</td><td class=ul><b>{$prd['Nama']}</b></td></tr>\r\n  <tr><td class=inp>Denda Terlambat</td>\r\n    <td class=ul><input type=text name='Denda1' value='{$prd['Denda1']}' size=3 maxlength=3> %</td></tr>\r\n  <tr><td class=inp>Sampai Akhir Semester</td>\r\n    <td class=ul><input type=text name='Denda2' value='{$prd['Denda2']}' size=3 maxlength=3> %</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=denda'\"></td></tr>\r\n  </form></table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:7,代码来源:denda.php

示例9: 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

示例10: edtAplikan

function edtAplikan()
{
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('aplikan', 'AplikanID', $_REQUEST['aplikan'], '*');
        $jdl = "Edit Form Aplikan";
        $_pmbid = "<input type=hidden name='AplikanID' value='{$w['AplikanID']}'><b>{$w['AplikanID']}</b>";
    } else {
        $w = ResetAplikan();
        $jdl = "Tambah Form Aplikan";
        $_pmbid = "<input type=hidden name='AplikanID' value='' /><font color=red>[AutoNumber]</font>";
    }
    $prdchkS1 = GetCheckboxes2('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['ProdiID'], ',', "JenjangID='C'", "&nbsp;");
    $prdchkD3 = GetCheckboxes2('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['ProdiID'], ',', "JenjangID='E'", "&nbsp;");
    // Asal Sekolah
    $NamaSekolah = GetaField('asalsekolah', 'SekolahID', $w['AsalSekolah'], "concat(Nama, ', ', Kota)");
    // Kelamin
    $optkelamin = GetRadio("select * from kelamin where NA='N'", 'Kelamin', 'Nama', 'Kelamin', $w['Kelamin'], '&nbsp;');
    $_TanggalLahir = GetDateOption($w['TanggalLahir'], 'TanggalLahir');
    $_Agama = GetOption2('agama', "concat(Agama, ' - ', Nama)", '', $w['Agama'], '', 'Agama');
    $_PendidikanAyah = GetOption2('pendidikanortu', "concat(Pendidikan, ' - ', Nama)", 'Pendidikan', $w['PendidikanAyah'], '', 'Pendidikan');
    $_PekerjaanAyah = GetOption2('pekerjaanortu', "concat(Pekerjaan, ' - ', Nama)", 'Pekerjaan', $w['PekerjaanAyah'], '', 'Pekerjaan');
    $_PendidikanIbu = GetOption2('pendidikanortu', "concat(Pendidikan, ' - ', Nama)", 'Pendidikan', $w['PendidikanIbu'], '', 'Pendidikan');
    $_PekerjaanIbu = GetOption2('pekerjaanortu', "concat(Pekerjaan, ' - ', Nama)", 'Pekerjaan', $w['PekerjaanIbu'], '', 'Pekerjaan');
    $_JurusanSekolah = GetOption2('jurusansekolah', "concat(Nama, ' - ', NamaJurusan)", 'Nama', $w['JurusanSekolah'], '', 'JurusanSekolahID');
    CariSekolahScript();
    // Tampilkan formulir Aplikan
    $cekfields = "Nama,PMBFormJualID,ProgramID,Pilihan1,TempatLahir";
    CheckFormScript($cekfields);
    echo "\r\n    <form name='data' action='{$act}' method=POST onSubmit=\"return CheckForm(this);\">\r\n    <input type=hidden name='BypassMenu' value=1>\r\n    <input type=hidden name='md' value='{$md}'>\r\n    <input type=hidden name='mnux' value='{$mnux}'>\r\n    <input type=hidden name='gos' value='{$pmbgos}'>\r\n    <input type=hidden name='pmbaktif' value='{$_SESSION['pmbaktif']}'>\r\n    \r\n\t<fieldset style='width:80%'>\r\n\t    <legend>{$jdl}</legend>\r\n\t\t<ol>\r\n\t\t    <li>\r\n\t\t\t<label for='AplikanID'>Nomor Aplikan:</label>\r\n\t\t\t<input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength='50' class=text />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='Nama'>Nama:</label>\r\n\t\t\t<input type=text name='Nama' value='{$w['Nama']}' size=30 maxlength='50' class=text />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=TempatLahir>Tempat Lahir:</label>\r\n\t\t\t<input type=text name='TempatLahir' value='{$w['TempatLahir']}' size=30 maxlength=50 class=text />\r\n\t\t\t<label for=TanggalLahir class=none>Tanggal Lahir:</label>\r\n\t\t\t{$_TanggalLahir}\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='Nama'>Jenis Kelamin:</label>\r\n\t\t\t{$optkelamin}\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='Nama'>Agama:</label>\r\n\t\t\t<select name='Agama'>{$_Agama}</select>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='Alamat'>Alamat:</label>\r\n\t\t\t<textarea name='Alamat' cols=40 rows=2>{$w['Alamat']}</textarea>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='RT'>RT:</label>\r\n\t\t\t<input type=text name='RT' value='{$w['RT']}' size=8 maxlength=8 class=text />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='RW'>RW:</label>\r\n\t\t\t<input type=text name='RW' value='{$w['RW']}' size=8 maxlength=8 class=text />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='KodePos'>Kode Pos:</label>\r\n\t\t\t<input type=text name='KodePos' value='{$w['KodePos']}' size=25 maxlength=50 class=text />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='Email'>Email:</label>\r\n\t\t\t<input type=text name='Email' value='{$w['Email']}' size=25 maxlength=100 class=text />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='Telepon'>Telepon:</label>\r\n\t\t\t<input type=text name='Telepon' value='{$w['Telepon']}' size=25 maxlength=50 />\r\n\t\t\t<label for='Handphone' class=none>Handphone:</label>\r\n\t\t\t<input type=text name='Handphone' value='{$w['Handphone']}' size=25 maxlength=50 />\r\n\t\t    </li>\r\n\t\t</ol>\r\n\t    </fieldset>\r\n\t    <fieldset style='width:80%'>\r\n\t\t<legend>Pendidikan Terakhir</legend>\r\n\t\t<ol>\r\n\t\t    <li>\r\n\t\t\t<label for='NamaSekolah'>Sekolah:</label>\r\n\t\t\t<input type=text name='NamaSekolah' value='{$NamaSekolah}' size=50 maxlength=255 /><a href='javascript:carisekolah(data)'> Cari</a>\r\n\t\t\t<input type=hidden name='AsalSekolah' value='{$w['AsalSekolah']}' />\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=TahunLulus>Lulus Tahun:</label>\r\n\t\t\t<input type=text name='TahunLulus' value='{$w['TahunLulus']}' size=10 maxlength=5>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=Jurusan>Jurusan:</label>\r\n\t\t\t<select name='JurusanSekolah'>{$_JurusanSekolah}</select>\r\n\t\t    </li>\r\n\t\t</ol>\r\n\t    </fieldset>\r\n\t    <fieldset style='width:80%'>\r\n\t\t<legend>Orang Tua</legend>\r\n\t\t<ol>\r\n\t\t    <li>\r\n\t\t\t<label for='NamaAyah'>Nama Ayah:</label>\r\n\t\t\t<input type=text name='NamaAyah' value='{$w['NamaAyah']}' size=40 maxlength=50>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=PendidikanAyah>Pendidikan Ayah:</label>\r\n\t\t\t<select name='PendidikanAyah'>{$_PendidikanAyah}</select>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=PekerjaanAyah>Pekerjaan Ayah:</label>\r\n\t\t\t<select name='PekerjaanAyah'>{$_PekerjaanAyah}</select>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='NamaIbu's>Nama Ibu:</label>\r\n\t\t\t<input type=text name='NamaIbu' value='{$w['NamaIbu']}' size=40 maxlength=50>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=PendidikanIbu>Pendidikan Ibu:</label>\r\n\t\t\t<select name='PendidikanIbu'>{$_PendidikanIbu}</select>\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for=PekerjaanIbu>Pekerjaan Ibu</label>\r\n\t\t\t<select name='PekerjaanIbu'>{$_PekerjaanIbu}</select>\r\n\t\t    </li>\r\n\t\t</ol>\r\n\t    </fieldset>\r\n\t    <fieldset style='width:80%'>\r\n\t\t<legend>Pilihan Program Studi</legend>\r\n\t\t<ol>\r\n\t\t    <li>\r\n\t\t\t<label for='Diploma'>Diploma Tiga (D3):</label>\r\n\t\t\t{$prdchkD3}\r\n\t\t    </li>\r\n\t\t    <li>\r\n\t\t\t<label for='strata'>Strata Satu (S1):</label>\r\n\t\t\t{$prdchkS1}\r\n\t\t    </li>\r\n\t\t</ol>\r\n\t    </fieldset>\r\n\t    <fieldset class=submit style='width:80%'>\r\n\t\t<input class=submit type=submit value=Submit />\r\n\t    </fieldset>\r\n\t</form>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:31,代码来源:aplikan.edt.php

示例11: FrmEdt

function FrmEdt()
{
    global $mnux, $pref, $_PMBMaxPilihan, $arrID;
    $md = $_REQUEST['md'] + 0;
    $PMBFormulirID = $_REQUEST['fid'] + 0;
    if ($md == 0) {
        $w = GetFields('pmbformulir', 'PMBFormulirID', $PMBFormulirID, '*');
        $jdl = 'Edit Formulir PMB';
    } else {
        $w = array();
        $w['PMBFormulirID'] = 0;
        $w['Nama'] = '';
        $w['KodeID'] = $arrID['Kode'];
        $w['Harga'] = 0;
        $w['JumlahPilihan'] = 1;
        $w['HanyaProdi1'] = '';
        $w['KecualProdi1'] = '';
        $w['HanyaProdi2'] = '';
        $w['KecualProdi2'] = '';
        $w['HanyaProdi3'] = '';
        $w['KecualProdi3'] = '';
        $w['NA'] = 'N';
        $w['Keterangan'] = '';
        $jdl = 'Tambah Formulir PMB';
    }
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    $pil = GetNumberOption(1, $_PMBMaxPilihan, $w['JumlahPilihan']);
    $optKID = GetOption2('identitas', "concat(Kode, ' - ', Nama)", 'Kode', $w['KodeID'], '', 'Kode');
    $snm = session_name();
    $sid = session_id();
    CheckFormScript("_KodeID,Nama,JumlahPilihan,Harga");
    echo "<table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='mnux' value='{$mnux}'>\r\n  <input type=hidden name='{$pref}' value='Hrg'>\r\n  <input type=hidden name='sub' value='FrmSav'>\r\n  <input type=hidden name='PMBFormulirID' value='{$w['PMBFormulirID']}'>\r\n  \r\n  <tr><th colspan=2 class=ttl>{$jdl}</th></tr>\r\n  <tr><td class=inp1>Institusi</td><td class=ul><select name='_KodeID'>{$optKID}</select></td></tr>\r\n  <tr><td class=inp1>Nama Formulir</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n  <tr><td class=inp1>Jumlah Pilihan</td><td class=ul><select name='JumlahPilihan'>{$pil}</select></td></tr>\r\n  <tr><td class=inp1>Harga Formulir</td><td class=ul><input type=text name='Harga' value='{$w['Harga']}' size=15 maxlength=15></td></tr>\r\n  <tr><td class=inp1>Tidak aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$na}></td></tr>\r\n  <tr><td class=inp1>Keterangan</td><td class=ul><textarea name='Keterangan' cols=40 rows=4>{$w['Keterangan']}</textarea></td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Setup Pilihan 1</td></tr>\r\n  <tr><td class=inp1>Hanya Prodi <font color=red>*)</td><td class=ul><input type=text name='HanyaProdi1' value='{$w['HanyaProdi1']}' size=50 maxlength=100></td></tr>\r\n  <tr><td class=inp1>Kecuali Prodi <font color=red>**)</td><td class=ul><input type=text name='KecualiProdi1' value='{$w['KecualiProdi1']}' size=50 maxlength=100></td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Setup Pilihan 2</td></tr>\r\n  <tr><td class=inp1>Hanya Prodi <font color=red>*)</td><td class=ul><input type=text name='HanyaProdi2' value='{$w['HanyaProdi2']}' size=50 maxlength=100></td></tr>\r\n  <tr><td class=inp1>Kecuali Prodi <font color=red>**)</td><td class=ul><input type=text name='KecualiProdi2' value='{$w['KecualiProdi2']}' size=50 maxlength=100></td></tr>\r\n  \r\n  <tr><td class=ul colspan=2><b>Setup Pilihan 3</td></tr>\r\n  <tr><td class=inp1>Hanya Prodi <font color=red>*)</td><td class=ul><input type=text name='HanyaProdi3' value='{$w['HanyaProdi3']}' size=50 maxlength=100></td></tr>\r\n  <tr><td class=inp1>Kecuali Prodi <font color=red>**)</td><td class=ul><input type=text name='KecualiProdi3' value='{$w['KecualiProdi3']}' size=50 maxlength=100></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}=Hrg&sub=&{$snm}={$sid}'\"></td></tr>\r\n  \r\n  </form></table><br>";
    // Keterangan
    echo "<table class=box cellspacing=0 cellpadding=4>\r\n  <tr><td class=ul><font color=red>*)</td><td class=ul>Jika formulir ini hanya berlaku untuk prodi ini.</td></tr>\r\n  <tr><td class=ul><font color=red>**)</td><td class=ul>Jika formulir ini tidak berlaku untuk prodi ini.</td></tr>\r\n  <tr><td colspan=2>Masing-masing Prodi diapit tanda titik (.)</td></tr>\r\n  </table>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:35,代码来源:pmbsetup.hrg.php

示例12: StawalEdt

function StawalEdt()
{
    global $mnux, $pref, $CatatanStatusAwal;
    $md = $_REQUEST['md'] + 0;
    if ($md == 0) {
        $w = GetFields('statusawal', "StatusAwalID", $_REQUEST['stawalid'], '*');
        $jdl = "Edit Status Awal Mahasiswa";
        $_strstawalid = "<input type=hidden name='stawalid' value='{$w['StatusAwalID']}'><b>{$w['StatusAwalID']}</b>";
    } else {
        $w = array();
        $w['StatusAwalID'] = '';
        $w['Nama'] = '';
        $w['BeliFormulir'] = 'Y';
        $w['JalusKhusus'] = 'N';
        $w['TanpaTest'] = 'N';
        $w['Catatan'] = '';
        $w['NA'] = 'N';
        $jdl = "Tambah Status Awal Mahasiswa";
        $_strstawalid = "<input type=text name='stawalid' size=5 maxlength=5>";
    }
    $NA = $w['NA'] == 'Y' ? 'checked' : '';
    $BeliFormulir = $w['BeliFormulir'] == 'Y' ? 'checked' : '';
    $JalurKhusus = $w['JalusKhusus'] == 'Y' ? 'checked' : '';
    $TanpaTest = $w['TanpaTest'] == 'Y' ? 'checked' : '';
    $snm = session_name();
    $sid = session_id();
    // Tampilkan formulir
    CheckFormScript("stawalid,Nama");
    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='{$mnux}'>\r\n  <input type=hidden name='{$pref}' value='Stawal'>\r\n  <input type=hidden name='sub' value='StawalSav'>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n  <tr><td class=inp1>ID</td><td class=ul>{$_strstawalid}</td></tr>\r\n  <tr><td class=inp1>Nama Status Awal</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n  <tr><td class=inp1>Harus Beli Formulir?</td><td class=ul><input type=checkbox name='BeliFormulir' value='Y' {$BeliFormulir}> Jika harus beli, maka akan dilakukan pemeriksaan terhadap Bukti Setoran pembelian formulir.</td></tr>\r\n  <tr><td class=inp1>Jalur Khusus?</td><td class=ul><input type=checkbox name='JalurKhusus' value='Y' {$JalurKhusus}></td></tr>\r\n  <tr><td class=inp1>Tanpa Test (USM)?</td><td class=ul><input type=checkbox name='TanpaTest' value='Y' {$TanpaTest}></td></tr>\r\n  <tr><td class=inp1>Tidak Aktif (NA)?</td><td class=ul><input type=checkbox name='NA' value='Y' {$NA}></td></tr>\r\n  <tr><td class=inp1>Catatan</td><td class=ul><input type=text name='Catatan' value='{$w['Catatan']}' size=50 maxlength=100></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}=Stawal&{$snm}={$sid}'\"></td></tr>\r\n  </form></table></p>";
    echo $CatatanStatusAwal;
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:31,代码来源:pmbsetup.stawal.php

示例13: TampilkanHeader

function TampilkanHeader()
{
    $optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['ProdiID']);
    CheckFormScript('TahunID,ProdiID,Angkatan');
    $Sekarang = date('Y-m-d-H-i');
    echo <<<SELESAI
  <table class=box cellspacing=1 align=center>
  <form action='{$_SESSION['mnux']}.cetak.php' method=POST target=_blank onSubmit='return CheckForm(this)'>
  <input type=hidden name='gos' value='CetakKHS' />
  <input type=hidden name='BypassMenu' value='1' />
  <input type=hidden name='Sekarang' value='{$Sekarang}' />
  <tr><td class=wrn width=2 rowspan=3></td>
      <td class=inp>Tahun Akademik:</td>
      <td class=ul><input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=5 maxlength=5 /></td>
      <td class=inp>Program Studi:</td>
      <td class=ul><select name='ProdiID'>{$optprodi}</select></td>
      </tr>
  <tr><td class=inp>Angkatan Mhsw:</td>
      <td class=ul><input type=text name='Angkatan' value='{$_SESSION['Angkatan']}' size=5 maxlength=5 /> atau:</td>
      <td class=inp>Mahasiswa:</td>
      <td class=ul colspan=2 nowrap>
      <input type=text name='MhswID' value='{$_SESSION['MhswID']}' size=20 maxlength=50 />
      <input type=submit name='Cetak' value='Cetak KHS' /><br />
      *) Kosongkan jika ingin mencetak 1 angkatan
      </td>
      </tr>
  </form>
  </table>
  </p>
SELESAI;
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:31,代码来源:khs.php

示例14: Edit

function Edit($md, $id, $bck)
{
    if ($md == 0) {
        $jdl = "Edit Formulir";
        $w = GetFields('pmbformulir', "KodeID='" . KodeID . "' and PMBFormulirID", $id, "*");
    } elseif ($md == 1) {
        $jdl = "Tambah Formulir";
        $w = array();
        $w['JumlahPilihan'] = 1;
        $w['USM'] = 'N';
        $w['Wawancara'] = 'N';
        $w['Prasyarat'] = 'N';
        $w['NA'] = 'N';
    } else {
        die(ErrorMsg('Error', "Mode edit tidak dikenali."));
    }
    TampilkanJudul($jdl);
    // Parameters
    $optjml = GetNumberOption(1, 3, $w['JumlahPilihan']);
    $na = $w['NA'] == 'Y' ? 'checked' : '';
    $usmchecked = $w['USM'] == 'Y' ? 'checked' : '';
    $wawancarachecked = $w['Wawancara'] == 'Y' ? 'checked' : '';
    $prasyaratchecked = $w['Prasyarat'] == 'Y' ? 'checked' : '';
    $prasyaratvisibility = $w['Prasyarat'] == 'Y' ? 'visible' : 'hidden';
    $Prasyarat = GetPrasyarat($w['PrasyaratExtra']);
    $webdefchecked = $w['WebDef'] == 'Y' ? 'checked' : '';
    CheckFormScript('Nama,Harga');
    //$TestMasuk = GetTestMasuk($w['USM']);
    echo "<p><table class=bsc cellspacing=1 align=center width=100%>\r\n  <form action='../{$_SESSION['mnux']}.formulir.edit.php' method=POST onSubmit=\"return CheckForm(this)\">\r\n  <input type=hidden name='gos' value='Simpan' />\r\n  <input type=hidden name='md' value='{$md}' />\r\n  <input type=hidden name='id' value='{$id}' />\r\n  <input type=hidden name='bck' value='{$bck}' />\r\n  \r\n  <tr><td class=inp>Formulir:</td>\r\n      <td class=ul1><input type=text name='Nama' value='{$w['Nama']}'\r\n        size=30 maxlength=50 />\r\n      </td></tr>\r\n  <tr><td class=inp>Jumlah Pilihan:</td>\r\n      <td class=ul1><select name='JumlahPilihan'>{$optjml}</select></td>\r\n      </tr>\r\n  <tr><td class=inp>Harga:</td>\r\n      <td class=ul1><input type=text name='Harga' value='{$w['Harga']}' size=10 maxlength=15 /></td>\r\n      </tr>\r\n  <tr><td class=inp>Ada USM?</td>\r\n      <td class=ul1><input type=checkbox name='USM' value='Y' {$usmchecked}></td>\r\n      </tr>\r\n  <tr><td class=inp>Ada Wawancara?</td>\r\n\t  <td class=ul1><input type=checkbox name='Wawancara' value='Y' {$wawancarachecked}></td>\r\n\t  </tr>\r\n  <tr><td class=inp>Ada Prasyarat?</td>\r\n\t  <td class=ul1>\r\n\t  <div style='float:left'><input type=checkbox name='Prasyarat' value='Y' {$prasyaratchecked} onClick=\"toggleDiv('PrasyaratPlus');\"></div>\r\n\t  <div id='PrasyaratPlus' style='float:left; padding-left:15px; padding-right:15px; background-color:#DDDDDD; visibility:{$prasyaratvisibility};'>\r\n\t\t{$Prasyarat}\r\n\t  </div>\r\n\t  </td>\r\n\t  </tr>\r\n  <tr><td class=inp>Keterangan:</td>\r\n      <td class=ul1>\r\n      <textarea name='Keterangan' cols=30 rows=3>{$w['Keterangan']}</textarea>\r\n      </td></tr>\r\n  <tr><td class=inp>NA (tidak aktif)?</td>\r\n      <td class=ul1>\r\n      <input type=checkbox name='NA' value='Y' {$na} /> *) Beri centang jika tidak aktif\r\n      </td>\r\n      </tr>\r\n  \r\n  <tr><td class=ul1 colspan=2 align=center>\r\n      <input type=submit name='Simpan' value='Simpan' />\r\n      <input type=button name='Batal' value='Batal'\r\n        onClick=\"window.close()\" />\r\n      </td>\r\n      </tr>\r\n  </form>\r\n  </table></p>\r\n  <script>\r\n\tfunction toggleDiv(name)\r\n\t{\tif(document.getElementById(name).style.visibility == 'hidden')\r\n\t\t\tdocument.getElementById(name).style.visibility = 'visible';\r\n\t\telse\r\n\t\t\tdocument.getElementById(name).style.visibility = 'hidden';\r\n\t}\r\n  </script>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:30,代码来源:pmbsetup.formulir.edit.php

示例15: DataQuota

function DataQuota($gel)
{
    $optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['ProdiID']);
    $whr_prodi = empty($_SESSION['ProdiID']) ? '' : "and ProdiID='{$_SESSION['ProdiID']}'";
    EditQuotaScript();
    CheckFormScript('TahunID,ProdiID');
    echo "<p>\n  <table class=box cellspacing=1 align=center>\n  <form action='?' method=POST onSubmit='return CheckForm(this)'>\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\n  <input type=hidden name='gos' value='' />\n  <tr><td class=wrn width=2 rowspan=4></td>\n      <td class=inp>Gelombang:</td>\n      <td class=ul>{$gel}</td>\n      </tr>\n  <tr>\n      <td class=inp>Program Studi:</td>\n      <td class=ul><select name='ProdiID'>{$optprodi}</select></td>\n      </tr>\n  <tr><td></td>\n\t  </tr>\n  <tr><td class=ul colspan=2>\n      <input type=submit name='AmbilData' value='Ambil Data' />\n      </td></tr>\n  </form>\n  </table>\n  </p>";
    $maxLast = 100;
    echo "<p>\n  <table class=box cellspacing=1 align=center>\n  <form action='?' method=POST>\n  <input type=hidden name='gos' value='ProsesQuota' />\n  <input type=hidden name='gel' value='{$gel}' />\n  <input type=hidden name='prodi' value='{$_SESSION['ProdiID']}' />\n  <input type=hidden name='BypassMenu' value=1 />\n  <tr>\n\t<th class=ttl>100.00</th>\n\t<th class=ttl colspan=3></th>\n\t<th class=ttl><input type=button name='Tambah' value='+' onClick='EditQuota(1, 0, 100)'></th>\n  </tr>";
    $whr_prodi = empty($_SESSION['ProdiID']) ? '' : "and ProdiID='{$_SESSION['ProdiID']}'";
    $s = "select * from quotabeasiswa where PMBPeriodID='{$gel}' {$whr_prodi} and KodeID='" . KodeID . "' order by DariNilai DESC";
    $r = _query($s);
    while ($w = _fetch_array($r)) {
        $s1 = "select PMBID, Nama, NilaiSekolah from pmb where PMBPeriodID='{$gel}' {$whr_prodi} \n\t\t\t\tand {$w['DariNilai']} <= NilaiSekolah and NilaiSekolah < {$maxLast} and LulusUjian='Y' and KodeID='" . KodeID . "' order by NilaiSekolah DESC";
        $r1 = _query($s1);
        $optpeserta = "<option value=''>-- Lihat List Calon Mahasiswa di Sini --</option>";
        $n1 = 0;
        while ($w1 = _fetch_array($r1)) {
            $n1++;
            $optpeserta .= "<option value='{$n1}'>{$w1['PMBID']} - {$w1['Nama']} ( {$w1['NilaiSekolah']} )</option>";
        }
        echo "\n\t  <tr>\n\t\t<td class=ul rowspan=2></td>\n\t\t<td class=ul rowspan=2 align=center><font size=3><b>{$w['Diskon']} %</b></font></td>\n\t\t<td class=inp>Calon<sup>2</sup> Mahasiswa:</td>\n\t\t<td class=ul><select name='Nama{$w['MaxQuotaID']}'>{$optpeserta}</select></td>\n\t\t<td class=ul rowspan=2 align=center><a href='#' onClick=\"EditQuota(0, {$w['MaxQuotaID']}, '{$maxLast}')\"><img src='img/edit.png'></a></td>\n\t  </tr>\n\t  <tr>\n\t\t<td class=inp>Jumlah:</td>\n\t\t<td class=ul><b>{$n1}</b></td>\n\t  </tr>\n\t  <tr>\n\t\t<th class=ttl>{$w['DariNilai']}</th>\n\t\t<th class=ttl colspan=3></th>\n\t\t<th class=ttl><input type=button name='Tambah' value='+' onClick=\"EditQuota(1, 0, '{$w['DariNilai']}')\"></th>\n\t  </tr>";
        $maxLast = $w['DariNilai'];
    }
    $s1 = "select PMBID, Nama, NilaiSekolah from pmb where PMBPeriodID='{$gel}' {$whr_prodi} \n\t\t\t\tand NilaiSekolah < {$maxLast} and LulusUjian='Y' and KodeID='" . KodeID . "' order by NilaiSekolah DESC";
    $r1 = _query($s1);
    $optpeserta = "<option value=''>-- Lihat List Calon Mahasiswa di Sini --</option>";
    $n1 = 0;
    while ($w1 = _fetch_array($r1)) {
        $n1++;
        $optpeserta .= "<option value='{$n1}'>{$w1['PMBID']} - {$w1['Nama']} ( {$w1['NilaiSekolah']} )</option>";
    }
    echo "\n  <tr>\n\t<td class=ul rowspan=2></td>\n\t<td class=ul rowspan=2 align=center><font size=3><b>0.00 %</b></font></td>\n\t<td class=inp>Calon<sup>2</sup> Mahasiswa:</td>\n\t<td class=ul><select name='NamaLast'>{$optpeserta}</select></td>\n  </tr>\n  <tr>\n\t<td class=inp>Jumlah:</td>\n\t<td class=ul><b>{$n1}</b></td>\n  </tr>\n  <tr>\n\t<th class=ttl>0.00</th>\n\t<th class=ttl colspan=3></th>\n\t<th class=ttl></th>\n  </tr>\n  <tr>\n\t<td colspan=8><input type=submit name='Proses' value='Proses Quota Beasiswa'></td>\n  </tr>\n  </form>  \n  </table>\n  </p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:34,代码来源:quotabeasiswa.php


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