本文整理汇总了PHP中GetDateOption函数的典型用法代码示例。如果您正苦于以下问题:PHP GetDateOption函数的具体用法?PHP GetDateOption怎么用?PHP GetDateOption使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetDateOption函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Edit
function Edit($md, $prd, $id)
{
$gelombang = GetaField('pmbperiod', "KodeID='" . KodeID . "' and NA", 'N', "PMBPeriodID");
if ($md == 0) {
$jdl = "Edit Wawancara USM";
$w = GetFields('wawancarausm', 'WawancaraUSMID', $id, '*');
} elseif ($md == 1) {
$jdl = "Tambah Wawancara";
$w = array();
$w['Tanggal'] = GetaField('pmbperiod', "KodeID='" . KodeID . "' and PMBPeriodID", $gelombang, 'UjianMulai');
$w['JamMulai'] = '09:00';
$w['JamSelesai'] = '09:50';
$w['PanjangWaktu'] = 0;
$w['Kapasitas'] = 0;
} else {
die(ErrorMsg('Error', "Terjadi kesalahan.<br />\r\n Mode edit <b>{$md}</b> tidak dikenali.<br />\r\n Hubungi Sysadmin untuk informasi lebih lanjut.\r\n <hr size=1 color=silver />\r\n <input type=button name='Tutup' value='Tutup' onClick=\"window.close()\" />"));
}
// Tampilkan
TampilkanJudul($jdl);
$s1 = "select r.RuangID, r.KapasitasUjian, k.Nama as NamaKampus \r\n\t\t\tfrom ruang r left outer join kampus k on r.KampusID=k.KampusID\r\n\t\t\twhere r.UntukUSM = 'Y' \r\n\t\t\torder by r.KampusID, r.RuangID";
$r1 = _query($s1);
if (!empty($_SESSION['prodi'])) {
$gelombang = GetaField('pmbperiod', "KodeID='" . KodeID . "' and NA", 'N', "PMBPeriodID");
}
$jml = GetaField('pmb', "PMBPeriodID='{$gelombang}' and Pilihan1", $_SESSION['prodi'], "count(PMBID)");
$ruangopt = GetOption2('ruang', 'RuangID', 'RuangID', $w['RuangID'], "KodeID='" . KodeID . "'", 'RuangID');
$Tanggal = GetDateOption($w['Tanggal'], 'Tanggal');
$JamMulai = GetTimeOption($w['JamMulai'], 'JamMulai');
$JamSelesai = GetTimeOption($w['JamSelesai'], 'JamSelesai');
CheckFormScript('Ruang,Kapasitas,PanjangWaktu');
echo "<p><table class=bsc cellspacing=1 width=100%>\r\n <form name='wawancaraedit' action='../{$_SESSION['mnux']}.wawancarausm.edit.php' method=POST onSubmit='return CheckForm(this)'>\r\n <input type=hidden name='md' value='{$md}' />\r\n <input type=hidden name='prd' value='{$prd}' />\r\n <input type=hidden name='id' value='{$id}' />\r\n <input type=hidden name='gos' value='Simpan' />\r\n \r\n <tr><td class=inp>Mata Uji:</td>\r\n <td class=ul1 colspan=3><input type=text name='xMataUji' value='Wawancara' disabled>\r\n\t\t\t\t\t\t\t <input type=hidden name='MataUji' value='Wawancara'></td>\r\n </tr>\r\n <tr><td class=inp>Tanggal Wawancara:</td>\r\n <td class=ul1 colspan=3>{$Tanggal}</td>\r\n </tr>\r\n <tr><td class=inp>Jam Wawancara:</td>\r\n <td class=ul1 colspan=3>{$JamMulai} s/d {$JamSelesai}</td>\r\n\t </tr>\r\n <tr><td class=inp>Panjang Waktu Wawancara:<br>(Per Cama)</td>\r\n\t <td class=ul1 colspan=3><input type=text name='PanjangWaktu' value='{$w['PanjangWaktu']}' size=2 maxlength=3 > menit \r\n\t\t\t<font color=red>*) Masukkan 0 untuk tidak ada pembatasan waktu</font></td>\r\n\t </tr>\r\n <tr><td class=inp>Kapasitas Cama:</td>\r\n <td class=ul1 colspan=3><input type=text name='Kapasitas' value='{$w['Kapasitas']}' size=2 maxlength=3 > orang \r\n\t\t\t<font color=red>*) Masukkan 0 untuk tidak ada pembatasan kuota</font></td>\r\n\t </tr>\r\n <tr><td class=inp>Ruang Wawancara:</td>\r\n\t <td class=ul1 colspan=3><select name='Ruang'>{$ruangopt}</select></td></tr>\r\n <tr><td class=ul1 colspan=4 align=center>\r\n <input type=submit name='Simpan' value='Simpan' onClick=\"return (CekJam() && CekPanjangWaktu()) \"/>\r\n <input type=button name='Batal' value='Batal' onClick=\"window.close()\" />\r\n </td></tr>\r\n </form>\r\n </table>\r\n <script>\r\n\tfunction CekJam()\r\n\t{\tcek = true;\r\n\t\tjammulai = wawancaraedit.JamMulai_h.value;\r\n\t\tmenitmulai = wawancaraedit.JamMulai_n.value;\r\n\t\tjamselesai = wawancaraedit.JamSelesai_h.value;\r\n\t\tmenitselesai = wawancaraedit.JamSelesai_n.value;\r\n\t\tif(jammulai > jamselesai)\r\n\t\t{\talert('Jam Mulai tidak boleh lebih telat dari atau sama dengan Jam Selesai');\r\n\t\t\tcek = false;\r\n\t\t}\r\n\t\telse if(jammulai == jamselesai)\r\n\t\t{\tif(menitmulai >= menitselesai)\r\n\t\t\t{\talert('Jam Mulai tidak boleh lebih telat dari atau sama dengan Jam Selesai');\r\n\t\t\t\tcek = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cek;\r\n\t}\r\n\tfunction CekPanjangWaktu()\r\n\t{\tcek = true;\r\n\t\tjammulai = wawancaraedit.JamMulai_h.value;\r\n\t\tmenitmulai = wawancaraedit.JamMulai_n.value;\r\n\t\tjamselesai = wawancaraedit.JamSelesai_h.value;\r\n\t\tmenitselesai = wawancaraedit.JamSelesai_n.value;\r\n\t\tpanjangwaktu = wawancaraedit.PanjangWaktu.value;\r\n\t\t\r\n\t\trentangmenit = ((jamselesai - jammulai)*60)+(menitselesai-menitmulai);\r\n\t\tif(panjangwaktu > rentangmenit)\r\n\t\t{\talert('Panjang Waktu Wawancara tidak boleh lebih kecil dari selisih Jam Selesai dan Jam Mulai');\r\n\t\t\tcek = false;\r\n\t\t}\r\n\t\t\r\n\t\treturn cek;\r\n\t}\r\n </script>";
}
示例2: BuatPanitera
function BuatPanitera()
{
global $prodi_asal, $prodi_panitera;
$sked = $_REQUEST['sked'];
$mhsw = GetFields('mhsw', "MhswID", $sked, '*');
if (!empty($mhsw)) {
if ($mhsw['ProdiID'] == $prodi_asal) {
$ada = GetFields('mhsw', "ProdiID='{$prodi_panitera}' and PMBID", $sked, '*');
if (!empty($ada)) {
die(ErrorMsg("Mhsw Sudah Terdaftar", "Mahasiswa dengan NPM S.Ked <b>{$sked}</b> telah terdaftar di program Kepaniteraan.\r\n <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>"));
}
//if ($mhsw['LulusUjian'] == 'N')
if ($mhsw['StatusMhswID'] != 'L') {
die(ErrorMsg("Mhsw Belum Lulus", "Mahasiswa dengan NPM S.Ked <b>{$sked}</b> belum lulus S.Ked.\r\n <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>"));
}
$tgl = FormatTanggal($mhsw['TanggalLulus']);
CheckFormScript("SKMasuk");
$TGL = GetDateOption(date('Y-m-d'), 'TGL');
echo Konfirmasi("Pembuatan NPM Kepaniteraan", "<p><form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='mhsw.panitera.baru'>\r\n <input type=hidden name='sked' value='{$sked}'>\r\n <input type=hidden name='gos' value='BuatPanitera1'>\r\n <table class=bsc>\r\n\t\t <tr><td class=ul>NPM SKed</td>\r\n\t\t <td class=ul><b>{$mhsw['MhswID']}</td></tr>\r\n\t\t <tr><td class=ul>Nama Mhsw</td>\r\n\t\t <td class=ul><b>{$mhsw['Nama']}</td></tr>\r\n\t\t <tr><td class=ul>Lulus Tanggal</td>\r\n\t\t <td class=ul><b>{$tgl}</td></tr>\r\n\t\t <tr><td class=ul>Nilai Akhir</td>\r\n\t\t <td class=ul><b>{$mhsw['GradeNilai']} ({$mhsw['NilaiUjian']})</td></tr>\r\n\t\t <tr><td class=ul>SK Masuk Panitera</td>\r\n\t\t <td class=ul><input type=text name='SKMasuk' size=30 maxlength=50></td></tr>\r\n\t\t <tr><td class=ul>Tanggal SK Masuk</td>\r\n\t\t <td class=ul>{$TGL}</td></tr>\r\n\t\t </table></p>\r\n\t\t\r\n\t Pilihan: <input type=submit name='Simpan' value='Simpan'>\r\n\t <input type=button name='Batal' value='Batalkan Proses' onClick=\"location='?mnux=mhsw.panitera.baru&gos='\">\r\n </form>");
} else {
echo ErrorMsg("Mhsw Bukan Dari Kedokteran", "Mahasiswa dengan Nama <b>{$mhsw['Nama']}</b> (<b>{$sked}</b>) bukan dari Fakultas Kedokteran.<br />\r\n\t Mahasiswa ini tidak dapat diproses menjadi mahasiswa Kepaniteraan.\r\n\t <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>");
}
} else {
echo ErrorMsg("Mhsw Tidak Ditemukan", "Mhsw dengan NPM <b>{$sked}</b> tidak ditemukan, atau bukan dari fakultas Kedokteran.\r\n\t <hr size=1 color=silver>\r\n\t Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>");
}
}
示例3: PresenterAdd
function PresenterAdd($mnux = 'presenter', $gos = 'PresenterAddSav', $sub = '')
{
$md = $_REQUEST['md'] + 0;
if ($md == 0) {
$w = GetFields('presenter', 'Login', $_REQUEST['presenterid'], '*');
$jdl = "Edit Data Pribadi";
$_strdsnid = "<input type=hidden name='presenterid' value='{$w['Login']}'><b>{$w['Login']}</b>";
} else {
$w = array();
$w['Login'] = '';
$w['Nama'] = '';
$w['Jabatan'] = '';
$w['Telephone'] = '';
$w['Handphone'] = '';
$w['Email'] = '';
$w['TempatLahir'] = '';
$w['TanggalLahir'] = date('Y-m-d');
$w['KelaminID'] = 'P';
$w['AgamaID'] = 'K';
$w['NA'] = 'N';
$jdl = "Tambah Presenter";
$_strpresenterid = "<input type=text name='presenterid' size=20 maxlength=20>";
}
$_na = $w['NA'] == 'Y' ? 'checked' : '';
$snm = session_name();
$sid = session_id();
$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 <tr><th class=ttl colspan=2>{$jdl}</th></tr>\n <tr><td class=inp1>Login/Presenter ID</td><td class=ul>{$_strpresenterid}</td></tr>\n <tr><td class=inp1>Nama Presenter</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\n <tr><td class=inp1>Jabatan</td><td class=ul><input type=text name='Gelar' value='{$w['Gelar']}' size=\$0 maxlength=100></td></tr>\n <tr><td class=inp1>Tempat/Tanggal Lahir</td><td class=ul><input type=text name='TempatLahir' value='{$w['TempatLahir']}' size=30 maxlength=50>Tanggal: {$TglLahir}</td></tr>\n <tr><td class=inp1>Jenis Kelamin</td><td class=ul>{$radkel}</td></tr>\n <tr><td class=inp1>Agama</td><td class=ul><select name='AgamaID'>{$optagm}</select></td></tr>\n <tr><td class=inp1># Telepon</td><td class=ul><input type=text name='Telephone' value='{$w['Telephone']}' size=40 maxlength=50></td></tr>\n <tr><td class=inp1># Ponsel</td><td class=ul><input type=text name='Handphone' value='{$w['Handphone']}' size=40 maxlength=50></td></tr>\n <tr><td class=inp1>E-mail</td><td class=ul><input type=text name='Email' value='{$w['Email']}' size=40 maxlength=50></td></tr>\n <tr><td class=inp1>Tidak aktif?</td><td class=ul><input type=checkbox name='NA' value='Y' {$_na}></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=dosen&gos=&{$snm}={$sid}'\"></td></tr>\n </form></table></p>";
}
示例4: KonfirmasiTanggal
function KonfirmasiTanggal($exec, $gos)
{
$optmulai = GetDateOption($_SESSION['TglMulai'], 'TglMulai');
$optselesai = GetDateOption($_SESSION['TglSelesai'], 'TglSelesai');
echo <<<ESD
<table align=center cellspacing=1 cellpadding=4 style="border: 1px solid gray">
<form action='{$exec}' method=POST>
<input type=hidden name='gos' value='{$gos}' />
<tr><th colspan=2 style="border-bottom: 1px solid gray">Konfirmasi Tanggal Laporan</th></tr>
<tr><td nowrap valign=top>
Tanggal Mulai:<br />
{$optmulai} ~
</td>
<td nowrap valign=top>
Tanggal Selesai:<br />
{$optselesai}
</td>
</tr>
<tr><td colspan=2 align=center>
<input type=submit name='Cetak' value='Cetak Laporan' />
<input type=button name='Close' value='Tutup' onClick="window.close()" />
</td>
</tr>
</form>
</table>
ESD;
}
示例5: TampilkanDaftarKelulusan
function TampilkanDaftarKelulusan()
{
// Tampilkan Tombol Proses
$TglSKKeluar = GetDateOption($_SESSION['TglSKKeluar'], 'TglSKKeluar');
CheckFormScript('SKKeluar');
echo " <script language='Javascript'> \r\n function CheckAll(){\r\n \$(\".chk input[@type='checkbox']\").each(function() {\r\n\t this.checked = !this.checked;\r\n });\r\n \r\n return false;\r\n }\r\n </script>";
echo " <form action='?' method=POST onSubmit=\"return CheckForm(this);\">\r\n <input type=hidden name='mnux' value='wisuda.nomer'>\r\n <input type=hidden name='gos' value='ProsesNomerKelulusan'>";
echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <tr>\r\n <td class=inp>No SK Rektor</td>\r\n <td class=ul><input type=text name='SKKeluar' value='{$_SESSION['SKKeluar']}' size=50 maxlength=100 colspan=2></td>\r\n </tr>\r\n <tr>\r\n <td class=inp>Tanggal SK Rektor</td>\r\n <td class=ul>{$TglSKKeluar}</td>\r\n <td class=ul><input type=submit name='ProsesNomer' value='Proses Nomer Kelulusan'>\r\n \r\n <input type=button name='dbf' Value='Buat File Ijazah' onClick=\"location='?mnux=wisuda.nomer&gos=BuatDBFIjazah&prodi={$_SESSION['prodi']}&bulan1={$_SESSION['bulan1']}&bulan2={$_SESSION['bulan2']}&tahun1={$_SESSION['tahun1']}&tahun2={$_SESSION['tahun2']}'\">\r\n \r\n <input type=button name='cetak' Value='Cetak' onClick=\"location='?mnux=wisuda.nomer&gos=cetak&prodi={$_SESSION['prodi']}&bulan1={$_SESSION['bulan1']}&bulan2={$_SESSION['bulan2']}&tahun1={$_SESSION['tahun1']}&tahun2={$_SESSION['tahun2']}'\"></td>\r\n </tr>\r\n <tr>\r\n <td class=wrn colspan=3>Mahasiswa yg diproses hanya yg belum memiliki nomer Univ, Fakultas dan Prodi.\r\n Jika sudah, maka tidak akan diproses lagi.</td>\r\n </tr>\r\n </table></p>";
echo "<span class=inp2><a href=# onClick=CheckAll()>Check All</a></span>";
$whr = '';
$whr .= empty($_SESSION['prodi']) ? '' : "and m.ProdiID='{$_SESSION['prodi']}'";
$s = "select m.MhswID, m.Nama, m.NoIdentitas, m.NoFakultas, m.NoProdi,\r\n m.SKKeluar, date_format(m.TglSKKeluar, '%d/%m/%Y') as TglSKKeluar, NoIjazah,\r\n ta.SKYudisium, date_format(ta.TglSKYudisium, '%d/%m/%Y') as TglSKYudisium\r\n from ta ta\r\n left outer join mhsw m on m.MhswID=ta.MhswID\r\n where ta.Lulus='Y'\r\n and ('{$_SESSION['tahun1']}-{$_SESSION['bulan1']}-01' <= ta.TglSKYudisium)\r\n and (ta.TglSKYudisium <= '{$_SESSION['tahun2']}-{$_SESSION['bulan2']}-31')\r\n \r\n {$whr}\r\n order by m.MhswID, ta.TglSKYudisium";
$r = _query($s);
$n = 0;
echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <tr><th class=ttl>#</th>\r\n <th class=ttl>N.P.M</th>\r\n <th class=ttl>Nama Mahasiswa</th>\r\n <th class=ttl>SK Yudisium</th>\r\n <th class=ttl>Tgl Yudisium</th>\r\n <th class=ttl>SK Rektor</th>\r\n <th class=ttl>Tgl SK Rektor</th>\r\n <th class=ttl>No Ijazah</th>\r\n <th class=ttl>No Univ</th>\r\n <th class=ttl>No Prodi/Fak</th>\r\n <th class=ttl>Proses</th>\r\n </tr>";
while ($w = _fetch_array($r)) {
$chk = $w['SKKeluar'] == NULL || $w['SKKeluar'] == '' ? "checked" : '';
$dsbl = !empty($w['NoIjazah']) ? "disabled=true" : '';
$n++;
$_ni = $w['NoIdentitas'] == 0 ? 'class=ul' : 'class=nac';
$_nf = $w['NoFakultas'] == 0 ? 'class=ul' : 'class=nac';
$_np = $w['NoProdi'] == 0 ? 'class=ul' : 'class=nac';
echo "<tr><td class=inp>{$n}</td\r\n <td class=ul>{$w['MhswID']}</td>\r\n <td class=ul>{$w['Nama']}</td>\r\n <td class=ul>{$w['SKYudisium']} </td>\r\n <td class=ul>{$w['TglSKYudisium']}</td>\r\n <td class=ul>{$w['SKKeluar']} </td>\r\n <td class=ul>{$w['TglSKKeluar']}</td>\r\n <td class=ul>{$w['NoIjazah']} </td>\r\n <td {$_ni} align=right>{$w['NoIdentitas']}</td>\r\n <td {$_np} align=right>{$w['NoProdi']}</td>\r\n <td id=dt class=ul align=center><input class=chk type=checkbox name='dtMhswID[]' value='{$w['MhswID']}' {$chk} {$dsbl}></td>\r\n </tr>";
}
echo "</table></p></form>";
}
示例6: JdwlEdt
function JdwlEdt()
{
$md = $_REQUEST['md'] + 0;
if ($md == 0) {
$w = GetFields('jadwal', "JadwalID", $_REQUEST['JadwalID'], '*');
$jdl = "Edit Jadwal Klinik";
} else {
$w = array();
$w['JadwalID'] = 0;
$w['MKID'] = 0;
$w['KodeID'] = $_SESSION['KodeID'];
$w['ProgramID'] = $_SESSION['prid'];
$w['ProdiID'] = $_SESSION['prodi'];
$w['DosenID'] = '';
$w['RuangID'] = '';
$w['TglMulai'] = date('Y-m-d');
$w['TglSelesai'] = date('Y-m-d');
$w['RencanaKehadiran'] = 4;
$w['SKS'] = 0;
$w['SKSAsli'] = 0;
$w['Harga'] = 0;
$w['Kapasitas'] = 0;
$w['NA'] = 'N';
$jdl = "Tambah Jadwal Klinik";
}
$optrs = GetOption2('rumahsakit', "concat(RSID, ' - ', Nama)", 'RSID', $w['RuangID'], '', 'RSID');
$optmk = GetOption2('mk', "concat(MKKode, ' - ', Nama, ' (', SKS, ' SKS)')", "MKKode", $w['MKID'], "KodeID='{$_SESSION['KodeID']}' and ProdiID='{$_SESSION['prodi']}'", 'MKID');
$optdsn = GetOption2('dosen', "concat(Nama, ', ', Gelar)", "Nama", $w['DosenID'], "Homebase in ('10', '11')", 'Login');
$TglMulai = GetDateOption($w['TglMulai'], 'TglMulai');
$TglSelesai = GetDateOption($w['TglSelesai'], 'TglSelesai');
$NA = $w['NA'] == 'Y' ? 'checked' : '';
// Tampilkan
echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' name='frmJadwal' method=POST>\r\n <input type=hidden name='mnux' value='jadwal.klinik'>\r\n <input type=hidden name='tahun' value='{$_SESSION['tahun']}'>\r\n <input type=hidden name='ProdiID' value='{$w['ProdiID']}'>\r\n <input type=hidden name='ProgramID' value='{$w['ProgramID']}'>\r\n <input type=hidden name='JadwalID' value='{$w['JadwalID']}'>\r\n <input type=hidden name='slnt' value='jadwal.klinik.sav'>\r\n <input type=hidden name='slntx' value='JdwlSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n \r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp>Matakuliah</td><td class=ul><select name='MKID'>{$optmk}</select></td></tr>\r\n <tr><td class=inp>Dosen Penanggung jawab</td><td class=ul><select name='DosenID'>{$optdsn}</select></td></tr>\r\n <tr><td class=inp>Rumah Sakit</td><td class=ul><select name='RSID'>{$optrs}</select></td></tr>\r\n <tr><td class=inp>Biaya</td><td class=ul><input type=text name='Harga' value='{$w['Harga']}' size=20 maxlength=20></td></tr>\r\n <tr><td class=inp>Kapasitas</td><td class=ul><input type=text name='Kapasitas' value='{$w['Kapasitas']}' size=4 maxlength=3></td></tr>\r\n \r\n <tr><td class=ul colspan=2><b>Periode</b></td></tr>\r\n <tr><td class=inp>Mulai</td><td class=ul>{$TglMulai}</td></tr>\r\n <tr><td class=inp>Durasi</td>\r\n <td class=ul><input type=text name='RencanaKehadiran' value='{$w['RencanaKehadiran']}' size=4 maxlength=4>\r\n <input type=hidden name='_RencanaKehadiran' value='{$w['RencanaKehadiran']}'> minggu</td></tr>\r\n <tr><td class=inp>Selesai</td><td class=ul>{$TglSelesai}</td></tr>\r\n \r\n <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=jadwal.klinik'\"></td></tr>\r\n </table></p>";
}
示例7: Edit
function Edit($tanggal, $md, $id)
{
if ($md == 0) {
$jdl = "Edit Hari Libur";
$w = GetFields('harilibur', "HariLiburID='{$id}' and KodeID", KodeID, '*');
} else {
if ($md == 1) {
$jdl = "Tambah Hari Libur";
$w = array();
$w['Warna'] = '#';
$w['TidakAdaKuliah'] = 'Y';
$w['NA'] = 'N';
$w['TanggalMulai'] = $tanggal;
$w['TanggalSelesai'] = $tanggal;
} else {
die(ErrorMsg("Error", "Mode penyimpanan tidak diketahui"));
}
}
CheckFormScript('Keterangan');
$opttanggalmulai = GetDateOption($w['TanggalMulai'], 'TanggalMulai');
$opttanggalselesai = GetDateOption($w['TanggalSelesai'], 'TanggalSelesai');
$optjenislibur = GetOption2('jenislibur', 'Nama', 'JenisLiburID', $w['JenisLiburID'], "KodeID='" . KodeID . "'", 'JenisLiburID', 0, 1);
$checkadakuliah = $w['TidakAdaKuliah'] == 'Y' ? 'checked' : '';
$NA = $w['NA'] == 'Y' ? 'checked' : '';
echo "<table class=bsc cellspacing=1 width=100%>\r\n\t\t\t<form name='datalibur' id='datalibur' action='?mnux={$_SESSION['mnux']}&gos=SavData' method=POST onSubmit=\"return CheckForm(this)\">\r\n\t\t\t<input type=hidden name='md' value='{$md}'>\r\n\t\t\t<input type=hidden name='id' value='{$id}'>\r\n\t\t\t<tr><td class=inp>Tanggal Mulai:</td>\r\n\t\t\t <td class=ul1>{$opttanggalmulai}</td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Tanggal Selesai:</td>\r\n\t\t\t <td class=ul1>{$opttanggalselesai}</td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Keterangan:</td>\r\n\t\t\t <td class=ul1><textarea name='Keterangan' cols=30 row=2>{$w['Keterangan']}</textarea></td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Jenis Libur:</td>\r\n\t\t\t <td class=ul1><select name='JenisLiburID'>{$optjenislibur}</select></td></tr>\r\n\t\t\t<tr><td class=inp>Tidak ada kuliah/ujian?</td>\r\n\t\t\t <td class=ul1><input type=checkbox name='TidakAdaKuliah' value='Y' {$checkadakuliah}></td>\r\n\t\t\t </tr>\r\n\t\t\t<tr><td class=inp>Tidak Aktif?</td>\r\n\t\t\t <td class=u1l><input type=checkbox name='NA' value='Y' {$NA}></td></tr>\r\n\t\t\t<tr><td colspan=2 align=center><input type=submit name='Simpan' value='Simpan Hari Libur' onClick=\"return CekTanggal(this.form)\">\r\n\t\t\t\t\t\t\t\t\t\t <input type=button name='Batal' value='Batal' onClick=\"window.close()\"></td>\r\n\t\t\t </tr>\r\n\t\t\t </form>\r\n\t\t </table>\r\n\t\t <script>\r\n\t\t\tfunction CekTanggal(frm)\r\n\t\t\t{\tvar mulai = new Date(frm.TanggalMulai_y.value, frm.TanggalMulai_m.value, frm.TanggalMulai_d.value);\r\n\t\t\t\tvar selesai = new Date(frm.TanggalSelesai_y.value, frm.TanggalSelesai_m.value, frm.TanggalSelesai_d.value);\r\n\t\t\t\r\n\t\t\t\tif(selesai < mulai) \r\n\t\t\t\t{\talert('Tanggal Mulai tidak boleh melebihi Tanggal Selesai');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t </script>\r\n\t\t ";
}
示例8: PresAdd
function PresAdd($jdwl)
{
$md = $_REQUEST['md'] + 0;
if ($md == 0) {
$PresensiID = $_REQUEST['PresensiID'];
$p = GetFields('presensi', "PresensiID", $PresensiID, "*, time_format(JamMulai, '%H:%i') as JM, time_format(JamSelesai, '%H:%i') as JS");
$jdl = "Edit Presensi";
} else {
$p = array();
$p['PresensiID'] = 0;
$p['JadwalID'] = $jdwl['JadwalID'];
$p['Pertemuan'] = GetaField('presensi', 'JadwalID', $jdwl['JadwalID'], "max(Pertemuan)") + 1;
$p['Tanggal'] = date('Y-m-d');
$p['JM'] = $jdwl['JM'];
$p['JS'] = $jdwl['JS'];
$p['Catatan'] = '';
$p['DosenID'] = '';
$jdl = "Tambah Presensi";
}
$opttgl = GetDateOption($p['Tanggal'], 'Tanggal');
//$arrdosen = explode('.', TRIM($jdwl['DosenID'], '.'));
//$strdosen = implode(',', $arrdosen);
//$optdsn = GetOption2('dosen', "concat(Nama, ', ', Gelar)", 'Nama', $p['DosenID'], "Login in ($strdosen)", 'Login');
$optdsn = GetOptDsnJdwl($jdwl);
echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST name='data'>\r\n <input type=hidden name='mnux' value='jadwal.pres'>\r\n <input type=hidden name='gos' value='PresAddSav'>\r\n <input type=hidden name='JadwalID' value='{$jdwl['JadwalID']}'>\r\n <input type=hidden name='PresensiID' value='{$p['PresensiID']}'>\r\n <input type=hidden name='md' value='{$md}'>\r\n \r\n <tr><th class=ttl colspan=2>{$jdl}</th></tr>\r\n <tr><td class=inp>Pertemuan ke-</td><td class=ul><input type=text name='Pertemuan' value='{$p['Pertemuan']}' size=3 maxlength=3></td></tr>\r\n <tr><td class=inp>Dosen Pengampu</td><td class=ul><select name='DosenID'>{$optdsn}</select></td></tr>\r\n \r\n <tr><td class=inp>Tanggal</td><td class=ul>{$opttgl}</td></tr>\r\n <tr><td class=inp>Jam Mulai-Selesai</td><td class=ul>\r\n <input type=text name='JamMulai' value='{$p['JM']}' size=5 maxlegth=5>\r\n <input type=text name='JamSelesai' value='{$p['JS']}' size=5 maxlegth=5></td></tr>\r\n <tr><td class=inp>Persentasi Pengeajaran</td><td class=ul><input type=text name='Silabus' value='{$p['Silabus']}' size=5 maxlegth=5>%</td></tr>\r\n <tr><td class=inp>Catatan</td>\r\n <td class=ul><textarea name='Catatan' cols=30 rows=5>{$p['Catatan']}</textarea></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=jadwal.pres&JadwalID={$jdwl['JadwalID']}'\"></td></tr>\r\n </form></table></p>";
}
示例9: BuatKoreksi
function BuatKoreksi($mhsw)
{
$md = $_REQUEST['md'] + 0;
$krs = GetFields('krs', 'KRSID', $_REQUEST['KRSID'], '*');
if ($md == 0) {
$w = GetFields('koreksinilai', "KoreksiNilaiID", $_REQUEST['KNID'], '*');
$jdl = "Edit SK Koreksi Nilai";
} else {
$w = array();
$w['KoreksiNilaiID'] = 0;
$w['Tanggal'] = date('Y-m-d');
$w['SK'] = '';
$w['Perihal'] = '';
$w['TahunID'] = $krs['TahunID'];
$w['KRSID'] = $krs['KRSID'];
$w['MhswID'] = $mhsw['MhswID'];
$w['MKID'] = $krs['MKID'];
$w['GradeLama'] = $krs['GradeNilai'];
$w['GradeNilai'] = $krs['GradeNilai'];
$w['Pejabat'] = '';
$w['Jabatan'] = '';
$w['Lampiran'] = '';
$w['Keterangan'] = '';
$w['NA'] = 'N';
$jdl = "Tambah SK Koreksi Nilai";
}
$mk = GetFields('mk', 'MKID', $w['MKID'], "MKKode, Nama");
$tgl = GetDateOption($w['Tanggal'], "TGL");
$optnilai = GetOption2('nilai', "concat(Nama, ' (', Bobot, ')')", "Bobot desc", $w['GradeNilai'], "ProdiID='{$mhsw['ProdiID']}'", "Nama");
// Tampilkan form
CheckFormScript("SK,Perihal,GradeNilai,Keterangan,Pejabat,Jabatan");
echo "<p><table class=box cellspacing=1>\r\n <form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n <input type=hidden name='mnux' value='koreksi.nilai'>\r\n <input type=hidden name='gos' value='KoreksiSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='KoreksiNilaiID' value='{$w['KoreksiNilaiID']}'>\r\n <input type=hidden name='TahunID' value='{$w['TahunID']}'>\r\n <input type=hidden name='KRSID' value='{$w['KRSID']}'>\r\n <input type=hidden name='MKID' value='{$w['MKID']}'>\r\n <input type=hidden name='MhswID' value='{$w['MhswID']}'>\r\n <input type=hidden name='GradeLama' value='{$w['GradeLama']}'>\r\n <tr><td class=ul colspan=2><font size=+1>{$jdl}</font></td></tr>\r\n <tr><td class=inp>Nomer SK</td><td class=ul><input type=text name='SK' value='{$w['SK']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Tanggal SK</td><td class=ul>{$tgl}</td></tr>\r\n <tr><td class=inp>Perihal</td><td class=ul><input type=text name='Perihal' value='{$w['Perihal']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Matakuliah</td><td class=ul><font size=+1>{$mk['Nama']}</font> ({$mk['MKKode']})</td></tr>\r\n <tr><td class=inp>Nilai/Grade Lama</td><td class=ul><font size=+1>{$w['GradeLama']}</font></td></tr>\r\n <tr><td class=inp>Nilai/Grade Baru</td><td class=ul><select name='GradeNilai'>{$optnilai}</select></td></tr>\r\n <tr><td class=inp>Keterangan (Sebab2)</td><td class=ul><textarea name='Keterangan' cols=30 rows=3>{$w['Keterangan']}</textarea></td></tr>\r\n <tr><td class=inp>Dibuat oleh</td><td class=ul><input type=text name='Pejabat' value='{$w['Pejabat']}' size=30 maxlength=50></td></tr>\r\n <tr><td class=inp>Jabatan</td><td class=ul><input type=text name='Jabatan' value='{$w['Jabatan']}' size=30 maxlenght=50></td></tr>\r\n <tr><td class=ul colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=koreksi.nilai&gos=TampilkanNilaiMhsw'\"></td></tr>\r\n </form></table></p>";
}
示例10: TampilkanRentangTanggal
function TampilkanRentangTanggal($mnux = '', $gos = '', $kembali = '')
{
$DariTgl = GetDateOption($_SESSION['DariTgl'], 'DariTgl');
$SampaiTgl = GetDateOption($_SESSION['SampaiTgl'], 'SampaiTgl');
$k = empty($kembali) ? '' : "<input type=button name='Kembali' value='Kembali' onClick=\"location='?mnux={$kembali}'\">";
echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=GET>\r\n <input type=hidden name='mnux' value='{$mnux}'>\r\n <input type=hidden name='gos' value='{$gos}'>\r\n <tr><td class=inp>Dari Tanggal</td>\r\n <td class=ul>{$DariTgl}</td>\r\n <td class=inp>Sampai Tanggal</td>\r\n <td class=ul>{$SampaiTgl}</td>\r\n <td class=ul><input type=submit name='Tampilkan' value='Tampilkan'> {$k}</td></tr>\r\n </form></table></p>";
}
示例11: TampilkanDaftarYudisium
function TampilkanDaftarYudisium()
{
$optprd = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", "ProdiID", $_SESSION['prodi'], '', "ProdiID");
$bulan1 = GetMonthOption($_SESSION['bulan1']);
$bulan2 = GetMonthOption($_SESSION['bulan2']);
$tahun1 = GetNumberOption(date('Y') - 10, date('Y'), $_SESSION['tahun1']);
$tahun2 = GetNumberOption(date('Y') - 10, date('Y') + 1, $_SESSION['tahun2']);
$TglYudisium = GetDateOption($_SESSION['TglYudisium'], 'TglYudisium');
echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n <form action='?' method=POST>\r\n <tr><td class=ul colspan=2><font size=+1>Filter</font></td></tr>\r\n <tr><td class=inp>Prodi :</td><td class=ul><select name='prodi'>{$optprd}</select> Kosongkan jika ingin melihat semua</td></tr>\r\n <tr><td class=inp>Lulus bulan :</td><td class=ul>\r\n <select name='bulan1'>{$bulan1}</select><select name='tahun1'>{$tahun1}</select> s/d\r\n <select name='bulan2'>{$bulan2}</select><select name='tahun2'>{$tahun2}</select> <input type=submit name='Filter' value='Filter Daftar'></td></tr>\r\n </form>\r\n \r\n <tr><td class=ul colspan=2><font size=+1>SK Yudisium</font></td></tr>\r\n <tr><td colspan=2>Set mahasiswa yang bertanda centang dalam daftar di bawah ini dengan SK Yudisium berikut ini:</td></tr> \r\n <form action='?' method=POST>\r\n <input type=hidden name='mnux' value='skyudisium'>\r\n <input type=hidden name='gos' value='SKYSAV'>\r\n <tr><td class=inp>No SK Yudisium :</td><td class=ul><input type=text name='SKYudisium' value='{$_SESSION['SKYudisium']}' size=50 maxlength=100></td></tr>\r\n <tr><td class=inp>Tanggal Yudisium :</td><td class=ul>{$TglYudisium} <input type=submit name='Simpan' value='Set SK Semua yg Dicentang'></td></tr>\r\n </table></p>";
if ($_SESSION['prodi'] != '10') {
$_whr = "('{$_SESSION['tahun1']}-{$_SESSION['bulan1']}-01' <= ta.TglUjian) \r\n and (ta.TglUjian <= '{$_SESSION['tahun2']}-{$_SESSION['bulan2']}-31') and ";
} else {
$_whr = "";
}
$s = "select ta.*, m.Nama\r\n from ta ta\r\n left outer join mhsw m on ta.MhswID=m.MhswID\r\n where ta.Lulus='Y'\r\n and m.ProdiID = '{$_SESSION['prodi']}'\r\n \r\n order by ta.MhswID";
$r = _query($s);
$n = 0;
$TotalSKY = _num_rows($r) + 0;
echo "<input type=hidden name='TotalSKY' value={$TotalSKY}>\r\n <p><table class=box cellspacing=1 cellpadding=4>\r\n <tr><th class=ttl>#</th>\r\n <th class=ttl>N.P.M</th>\r\n <th class=ttl>Nama Mahasiswa</th>\r\n <th class=ttl>Tgl Ujian</th>\r\n <th class=ttl>Judul</th>\r\n <th class=ttl>SK Yudisium</th>\r\n <th class=ttl>Tgl Yudisium</th>\r\n <th class=ttl>Centang</th>\r\n </tr>";
while ($w = _fetch_array($r)) {
$n++;
$TglSKYudisium = FormatTanggal($w['TglSKYudisium']);
echo "<tr><td class=inp>{$n}</td>\r\n <td class=ul>{$w['MhswID']}</td>\r\n <td class=ul>{$w['Nama']}</td>\r\n <td class=ul>{$w['TglUjian']}</td>\r\n <td class=ul>{$w['Judul']}</td>\r\n <td class=ul>{$w['SKYudisium']} </td>\r\n <td class=ul>{$TglSKYudisium}</td>\r\n <td class=ul><input type=checkbox name='SKY[]' value='{$w['TAID']}'></td>\r\n </tr>";
}
echo "</table></form></p>";
}
示例12: 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'", " ");
$prdchkD3 = GetCheckboxes2('prodi', 'ProdiID', "concat(ProdiID, ' - ', Nama) as PRD", 'PRD', $w['ProdiID'], ',', "JenjangID='E'", " ");
// 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'], ' ');
$_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>";
}
示例13: JabatanMasterEdt
function JabatanMasterEdt()
{
global $arrID, $mnux, $tok;
$md = $_REQUEST['md'] + 0;
if ($md == 0) {
$w = GetFields('periodejabatan', "PeriodeJabatanID", $_REQUEST['jbtnperiod'], '*');
$jdl = "Edit Periode Jabatan";
} else {
$w = array();
$w['PeriodeJabatanID'] = 0;
$w['TahunJabatan'] = '';
$w['Nama'] = '';
$w['TglAwalJabatan'] = date('Y-m-d');
$w['TglAkhirJabatan'] = date('Y-m-d');
$w['Catatan'] = '';
$w['Def'] = 'N';
$w['NA'] = 'N';
$jdl = "Tambah Periode Jabatan";
}
$TglAwalJabatan = GetDateOption($w['TglAwalJabatan'], 'TglAwalJabatan');
$TglAkhirJabatan = GetDateOption($w['TglAkhirJabatan'], 'TglAkhirJabatan');
$NA = $w['NA'] == 'Y' ? 'checked' : '';
$Def = $w['Def'] == 'Y' ? 'checked' : '';
$snm = session_name();
$sid = session_id();
CheckFormScript("Tahun,Nama");
$a = "<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='JabatanMasterSav'>\r\n <input type=hidden name='md' value='{$md}'>\r\n <input type=hidden name='jbtnperiod' value='{$w['PeriodeJabatanID']}'>\r\n \r\n <tr><th class=ul colspan=2><b>{$jdl}</b></td></tr>\r\n <tr><td class=inp1>Kode Tahun</td><td class=ul><input type=text name='Tahun' value='{$w['TahunJabatan']}' size=10 maxlength=10></td></tr>\r\n <tr><td class=inp1>Nama Periode Jabatan</td><td class=ul><input type=text name='Nama' value='{$w['Nama']}' size=40 maxlength=50></td></tr>\r\n <tr><td class=inp1>Tanggal Awal Jabatan</td><td class=ul>{$TglAwalJabatan}</td></tr>\r\n <tr><td class=inp1>Tanggal Akhir Jabatan</td><td class=ul>{$TglAkhirJabatan}</td></tr>\r\n <tr><td class=inp1>Catatan</td><td class=ul><textarea name='Catatan' cols=30 rows=3>{$w['Catatan']}</textarea></td></tr>\r\n <tr><td class=inp1>Default?</td><td class=ul><input type=checkbox name='Def' value='Y' {$Def}></td></tr>\r\n <tr><td class=inp1>Tidak Aktif (NA)?</td><td class=ul><input type=checkbox name='NA' value='Y' {$NA}></td></tr>\r\n <tr><td colspan=2><input type=submit name='Simpan' value='Simpan'>\r\n <input type=reset name='Reset' value='Reset'>\r\n <input type=button name='Batal' value='Batal' onClick=\"location='?mnux={$mnux}&tok={$tok}&{$snm}={$sid}'\"></td></tr>\r\n </form></table></p>";
return $a;
}
示例14: 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);
}
示例15: 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>";
}