Soal Pilihan Ganda
'; ?> '; ?>

";} else {echo "";} } else { echo $s['XJawaban']; } ?>





Soal Esai
'; ?> '; ?>

";} else {echo "";} } else { echo $s['XJawaban']; } ?>





< DAFTAR
SOAL
4){ $ambiljwbE = "XJawab".$sj['XE']; } } else { $ambiljwbA = "XJawab1"; $ambiljwbB = "XJawab2"; $ambiljwbC = "XJawab3"; $ambiljwbD = "XJawab4"; if($sopil>4){ $ambiljwbE = "XJawab5"; } } $jwbA = "$sj[$ambiljwbA]"; $jwbB = "$sj[$ambiljwbB]"; $jwbC = "$sj[$ambiljwbC]"; $jwbD = "$sj[$ambiljwbD]"; if($sopil>4){ $jwbE = "$sj[$ambiljwbE]"; $jwbE = str_replace("`","'",$jwbE); $jwbE = str_replace(">'",">`",$jwbE); $jwbE = str_replace("'<","`<",$jwbE); } $jwbA = str_replace("`","'",$jwbA); $jwbA = str_replace(">'",">`",$jwbA); $jwbA = str_replace("'<","`<",$jwbA); $jwbB = str_replace("`","'",$jwbB); $jwbB = str_replace(">'",">`",$jwbB); $jwbB = str_replace("'<","`<",$jwbB); $jwbC = str_replace("`","'",$jwbC); $jwbC = str_replace(">'",">`",$jwbC); $jwbC = str_replace("'<","`<",$jwbC); $jwbD = str_replace("`","'",$jwbD); $jwbD = str_replace(">'",">`",$jwbD); $jwbD = str_replace("'<","`<",$jwbD); if($sj1=='A'){$nilaiA="checked";} else {$nilaiA="";} if($sj1=='B'){$nilaiB="checked";} else {$nilaiB="";} if($sj1=='C'){$nilaiC="checked";} else {$nilaiC="";} if($sj1=='D'){$nilaiD="checked";} else {$nilaiD="";} if($sopil>4){ if($sj1=='E'){$nilaiE="checked";} else {$nilaiE="";} } //get next picture id //$sql = mysql_query("SELECT id FROM pictures WHERE id > '$current_picture' ORDER BY id ASC LIMIT 1"); //$sql = mysql_query("SELECT XNomerSoal FROM cbt_soal WHERE XNomerSoal > '$current_picture' and XKodeSoal = '$xkodesoal' ORDER BY XNomerSoal ASC LIMIT 1"); } $sql = mysql_query("SELECT Urut FROM cbt_jawaban WHERE Urut > '$current_picture' and XKodeSoal = '$xkodesoal' and XUserJawab = '$user' and XTokenUjian = '$xtokenujian' ORDER BY Urut ASC LIMIT 1"); $result = mysql_fetch_array($sql); if($result){ //$next_id = $result['XNomerSoal']; $next_id = $result['Urut']; } //get previous picture id //$sql = mysql_query("SELECT XNomerSoal FROM cbt_soal WHERE XNomerSoal < $current_picture and XKodeSoal = '$xkodesoal' ORDER BY XNomerSoal DESC LIMIT 1"); $sql = mysql_query("SELECT Urut FROM cbt_jawaban WHERE Urut < '$current_picture' and XKodeSoal = '$xkodesoal' and XUserJawab = '$user' and XTokenUjian = '$xtokenujian' ORDER BY Urut DESC LIMIT 1"); $result = mysql_fetch_array($sql); if($result){ //$prev_id = $result['XNomerSoal']; $prev_id = $result['Urut']; } if(isset($prev_id)){ $prev_id = $prev_id;} else {$prev_id = "0"; } //echo $prev_id ; $jmlsoal = 4; $stu = $prev_id+1; //echo "SELECT * FROM cbt_soal WHERE XNomerSoal = $current_picture and XKodeSoal = '$xkodesoal' LIMIT 1"; //get details of current from database //$sql = mysql_query("SELECT * FROM cbt_soal WHERE XNomerSoal = $current_picture and XKodeSoal = '$xkodesoal' LIMIT 1"); $sql = mysql_query("SELECT * FROM cbt_soal s LEFT JOIN cbt_jawaban j ON (j.XNomerSoal = s.XNomerSoal and j.XKodeSoal = s.XKodeSoal) WHERE j.Urut = '$_POST[pic]' AND s.XKodeSoal = '$xkodesoal' AND XUserJawab = '$user' and j.XTokenUjian = '$xtokenujian' LIMIT 1"); $result = mysql_fetch_array($sql); if($result){ //construct next/previous button $prev_button = (isset($prev_id) && $prev_id>0)?'':''; $next_button = (isset($next_id) && $next_id>0)?'':''; ?>
Listening Section : Selama audio berjalan tidak bisa pindah ke Soal lainnya

"; } ?> "; echo "$current_picture atau $_POST[pic] || $waktu-$putar || $waktu2 - $putar2 | vid = $vidfile | aud = $audfile"; */ ?>
Pertanyaan Essai : Jawablah Pertanyaan Berikut ini
"; } ?> '",">`",$str); $str = str_replace("'<","`<",$str); echo "

$str
"; if($result['XGambarTanya']==''){} else { echo ""; echo "

";} echo "

"; ?> "; $cekesai = mysql_query("select * from cbt_jawaban where Urut='$current_picture' and XKodeSoal ='$xkodesoal' and XTokenUjian = '$xtokenujian' and XUserJawab = '$user' "); $ce = mysql_fetch_array($cekesai); $jwbesai = $ce['XJawabanEsai']; ?>
Jawaban :
Ketik Jawaban didalam kotak dibawah ini, Jawaban akan otomatis tersimpan Bila Cursor keluar dari Kotak
";} echo "";} ?> ";} echo "";} ?> ";} echo "";} ?> ";} echo "";} ?> 4){?> ";} echo "";} ?>
>
>
>
>
>
0){ echo ""; } ?>
4){ if(isset($XE)){ $nilaiE = $var_ragu['$XE']; } } } ?>
'; ?> 0){ ?> "; } else { echo ''; ?> 0){ ?> "; }?>