Sie sind auf Seite 1von 4

<table class="data"> <tr> <td width="150">Tahun Ajaran</td > <td width="10">:</td> <td>'; echo "<select name=\"tap el\" onChange=\"MM_jumpMenu('self',this,0)\"

class=\"text\">"; //terpilih $qtpx = mysql_qu ery("SELECT * FROM tapel WHERE kdtapel = '$tapelkd'"); $rowtpx = mysql_ fetch_assoc($qtpx); $tpx_kd = nosql( $rowtpx['kdtapel']); $tpx_thn1 = nosq l($rowtpx['tahun1']); $tpx_thn2 = nosq l($rowtpx['tahun2']); echo '<option va lue="'.$tpx_kd.'">'.$tpx_thn1.'/'.$tpx_thn2.'</option>'; $qtp = mysql_que ry("SELECT * FROM tapel WHERE kdtapel <> '$tapelkd' ORDER BY tahun1 ASC"); $rowtp = mysql_f etch_assoc($qtp); do { $tpkd = nosql($rowtp['kdtapel']); $tpth1 = nosql($rowtp['tahun1']); $tpth2 = nosql($rowtp['tahun2']); echo '<o ption value="'.$filenya.'?tapelkd='.$tpkd.'">'.$tpth1.'/'.$tpth2.'</option>'; } while ($rowtp = mysql_fetch_assoc($qtp)); echo '</select> </td> </tr> <tr> <td width="150">Semester</td> <td width="10">:</td> <td>'; echo "<select name=\"smt \" onChange=\"MM_jumpMenu('self',this,0)\" class=\"text\">"; //terpilih $qsmtx = mysql_q uery("SELECT * FROM tb_semester WHERE kd_semester = '$smtkd'"); $rowsmtx = mysql _fetch_assoc($qsmtx); $smtx_kd = nosql ($rowsmtx['kd_semester']); $smtx_smt = nosq l($rowsmtx['semester']); echo '<option va lue="'.$smtx_kd.'">'.$smtx_smt.'</option>';

$qsmt = mysql_qu ery("SELECT * FROM tb_semester WHERE kd_semester <> '$smtkd' ORDER BY semester A SC"); $rowsmt = mysql_ fetch_assoc($qsmt); do { $smt_kd = nosql($rowsmt['kd_semester']); $smt_smt = nosql($rowsmt['semester']); echo '<o ption value="'.$filenya.'?tapelkd='.$tapelkd.'&smtkd='.$smt_kd.'">'.$smt_smt.'</ option>'; } while ($rowsmt = mysql_fetch_assoc($qsmt)); echo '</select> </td> </tr> <tr> <td width="150">Jurusan</td> <td width="10">:</td> <td>'; echo "<select name=\"jur usan\" onChange=\"MM_jumpMenu('self',this,0)\" class=\"text\">"; //terpilih $qkeax = mysql_q uery("SELECT * FROM jurusan WHERE kd_jurusan = '$keakd'"); $rowkeax = mysql _fetch_assoc($qkeax); $keax_kd = nosql ($rowkeax['kd_jurusan']); $keax_pro = bali kin($rowkeax['jurusan']); $keax_singk = no sql($rowkeax['singkatan']); echo '<option va lue="'.$keax_kd.'">'.$keax_pro.'</option>'; $qkea = mysql_qu ery("SELECT * FROM jurusan ". "WHERE kd_jurusan = '$keakd' ". "ORDER BY jurusan ASC"); $rowkea = mysql_ fetch_assoc($qkea); do { $kea_kd = nosql($rowkea['kd_jurusan']); $kea_pro = balikin($rowkea['jurusan']); echo '<o ption value="'.$filenya.'?tapelkd='.$tapelkd.'&smtkd='.$smtkd.'&keakd='.$keakd.' ">'.$kea_pro.'</option>'; } while ($rowkea =

mysql_fetch_assoc($qkea)); echo '</select> </td> </tr> <tr> <td width="150">Kelas / Ruang</t d> <td width="10">:</td> <td>'; echo "<select name=\"kel as\" onChange=\"MM_jumpMenu('self',this,0)\" class=\"text\">"; //terpilih $qbtx = mysql_qu ery("SELECT * FROM tb_kelas WHERE kd_kelas = '$kelkd'"); $rowbtx = mysql_ fetch_assoc($qbtx); $btxkd = nosql($ rowbtx['kd_kelas']); $btxkelas = bali kin($rowbtx['kelas']); echo '<option va lue="'.$btxkd.'">'.$btxkelas.'</option>'; $qbt = mysql_que ry("SELECT * FROM tb_kelas ". "WHERE kd_kelas <> '$kelkd' ". "AND kelas LIKE '%$keax_singk%' ". "ORDER BY kelas ASC"); $rowbt = mysql_f etch_assoc($qbt); do { $btkd = nosql($rowbt['kd_kelas']); $btkelas = balikin($rowbt['kelas']); echo '<o ption value="'.$filenya.'?tapelkd='.$tapelkd.'&smtkd='.$smtkd.'&keakd='.$keakd.' &kelkd='.$btkd.'">'.$btkelas.'</option>'; } while ($rowbt = mysql_fetch_assoc($qbt)); echo '</select> <input name="tapelkd" ty pe="hidden" value="'.$tapelkd.'"> <input name="smtkd" type ="hidden" value="'.$smtkd.'"> <input name="keakd" type ="hidden" value="'.$keakd.'"> <input name="kelkd" type ="hidden" value="'.$kelkd.'"> </td> </tr> </table>