function TampilkanHeader() { $optprg = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_statusmhswPrg'], "KodeID='" . KodeID . "'", 'ProgramID'); $optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['_statusmhswProdi'], "KodeID='" . KodeID . "'", 'ProdiID'); $optstatusmhsw = GetOption2('statusmhsw', "concat(StatusMhswID, ' - ', Nama)", 'StatusMhswID', $_SESSION['_statusmhswID'], "", 'StatusMhswID'); $opturut = AmbilUrutanMhswID(); echo "<table class=box cellspacing=1 align=center>\n <form action='?' method=POST>\n <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\n <input type=hidden name='gos' value='' />\n <input type=hidden name='_statusmhswPage' value='0' />\n \n <tr>\n <td class=inp>Cari NIM:</td>\n <td class=ul1><input type=text name='_statusmhswNomer' value='{$_SESSION['_statusmhswNomer']}' size=20 maxlength=30 /></td>\n\t <td class=inp>Cari Nama:</td>\n <td class=ul1><input type=text name='_statusmhswNama' value='{$_SESSION['_statusmhswNama']}' size=20 maxlength=30 /></td>\n\t </tr>\n <tr>\n <td class=inp>Prodi:</td>\n <td class=ul1><select name='_statusmhswProdi'>{$optprodi}</select></td>\n <td class=inp>Program:</td>\n <td class=ul1><select name='_statusmhswPrg'>{$optprg}</select></td>\n </tr>\n <tr>\n <td class=inp>Status:</td>\n\t <td class=ul1><select name='_statusmhswID'>{$optstatusmhsw}</select></td>\n\t <td class=inp>Sort:</td>\n <td class=ul1><select name='_statusmhswUrut'>{$opturut}</select></td>\n\t </tr>\n <tr>\n\t <td class=ul1 colspan=4 align=center nowrap>\n <input type=submit name='Submit' value='Submit' />\n <input type=button name='Reset' value='Reset'\n onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&_statusmhswPage=0&_statusmhswNama=&_statusmhswNomer='\" />\n »»<input type=button name='IsiFrm' value='Isi Formulir Perubahan' \n\t\tonClick=\"location='?mnux={$_SESSION['mnux']}&gos=StatusMhswEdt&md=1'\" />««\n </td>\n </form>\n </table>"; }
function TampilkanHeaderFilter() { $optprg = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_presensidoPrg'], "KodeID='" . KodeID . "'", 'ProgramID'); $optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['_presensidoProdi'], "KodeID='" . KodeID . "'", 'ProdiID'); $optstatusmhsw = GetOption2('statusmhsw', "concat(StatusMhswID, ' - ', Nama)", 'StatusMhswID', $_SESSION['_presensidoID'], "", 'StatusMhswID'); $opturut = AmbilUrutanMhswID(); $opttglmulai = GetDateOption("{$_SESSION['_presensidoTglMulai_y']}-{$_SESSION['_presensidoTglMulai_m']}-{$_SESSION['_presensidoTglMulai_d']}", '_presensidoTglMulai'); $opttglselesai = GetDateOption("{$_SESSION['_presensidoTglSelesai_y']}-{$_SESSION['_presensidoTglSelesai_m']}-{$_SESSION['_presensidoTglSelesai_d']}", '_presensidoTglSelesai'); $NIMCheck = $_SESSION['_presensidoNIMSementara'] == 'Y' ? 'checked' : ''; if (!empty($_SESSION['_presensidoProdi'])) { $TampilkanNIMSementara = GetaField('prodi', "ProdiID='{$_SESSION['_presensidoProdi']}' and KodeID", KodeID, 'GunakanNIMSementara') == 'Y' ? "<tr><td class=inp colspan=6>Tampilkan yang NIM Sementara saja? <input type=checkbox name='_presensidoNIMSementara' value='Y' {$NIMCheck}></tr>" : ''; } echo "<table class=box cellspacing=1 align=center>\r\n <form action='?' method=POST>\r\n <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\r\n <input type=hidden name='gos' value='' />\r\n <input type=hidden name='_presensidoPage' value='0' />\r\n \r\n <tr>\r\n <td class=inp width=80>Thn Akademik:</td>\r\n\t <td class=ul1 width=100><input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=6 maxlength=10 /></td>\r\n\t <td class=inp>Prodi:</td>\r\n <td class=ul1><select name='_presensidoProdi'>{$optprodi}</select></td>\r\n <td class=inp>Program:</td>\r\n <td class=ul1><select name='_presensidoPrg'>{$optprg}</select></td>\r\n\t </tr>\r\n <tr>\r\n <td class=inp width=80>Cari NIM:</td>\r\n <td class=ul1 width=100><input type=text name='_presensidoNomer' value='{$_SESSION['_presensidoNomer']}' size=20 maxlength=30 /></td>\r\n\t <td class=inp width=80>Cari Nama:</td>\r\n <td class=ul1 width=100><input type=text name='_presensidoNama' value='{$_SESSION['_presensidoNama']}' size=20 maxlength=30 /></td>\r\n\t <td class=inp>Sort:</td>\r\n <td class=ul1><select name='_presensidoUrut'>{$opturut}</select></td>\r\n\t </tr>\r\n <tr>\r\n <td class=inp>Tanggal Mulai:</td>\r\n <td class=ul1 colspan=2>{$opttglmulai}</td>\r\n <td class=inp>Tanggal Selesai:</td>\r\n <td class=ul1 colspan=2>{$opttglselesai}</td>\r\n\t </tr>\r\n {$TampilkanNIMSementara}\r\n <tr>\r\n\t <td class=ul1 colspan=6 align=center nowrap>\r\n <input type=submit name='Submit' value='Submit' />\r\n <input type=button name='Reset' value='Reset'\r\n onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&_presensidoPage=0&_presensidoNama=&_presensidoNomer='\" />\r\n </td>\r\n </form>\r\n </table>"; }