- ';
- //var_dump(unserialize($soal->file));
- //var_dump($jml_pg);
- //for ($i=97; $i<117; $i++) {
- // var_dump(chr($i));
- //}
- //echo '';
- ?>
-
-
-
- = form_open('create', array('id' => 'create')) ?>
-
-
-
-
- Bank - Soal: = $bank->bank_kode . ' | PG: ' . $bank->tampil_pg . ', Essai: ' . $bank->tampil_esai ?> -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $value) { - if ($value->jenis == '1') { - array_push($pg_belum_komplit, $value->nomor_soal); - } elseif ($value->jenis == '2') { - array_push($pg2_belum_komplit, $value->nomor_soal); - } elseif ($value->jenis == '3') { - array_push($jodohkan_belum_komplit, $value->nomor_soal); - } elseif ($value->jenis == '4') { - array_push($isian_belum_komplit, $value->nomor_soal); - } else { - array_push($essai_belum_komplit, $value->nomor_soal); - } - } - - $soal_pg_ada = []; - $soal_pg2_ada = []; - $soal_jodohkan_ada = []; - $soal_isian_ada = []; - $soal_esai_ada = []; - - foreach ($soal_ada as $key => $value) { - if ($value->jenis == '1') { - array_push($soal_pg_ada, $value->nomor_soal); - } elseif ($value->jenis == '2') { - array_push($soal_pg2_ada, $value->nomor_soal); - } elseif ($value->jenis == '3') { - array_push($soal_jodohkan_ada, $value->nomor_soal); - } elseif ($value->jenis == '4') { - array_push($soal_isian_ada, $value->nomor_soal); - } else { - array_push($soal_esai_ada, $value->nomor_soal); - } - } - - $no = 1; - $tpg = $jml_pg == null || $jml_pg->nomor_soal == null ? 0 : $jml_pg->nomor_soal; - for ($i = 0; $i < $tpg; $i++) : ?> - = $no ?> - - - Tambah PG -
-
- Jenis Soal Pilihan Ganda
-
- PG NOMOR: - $value) { - if ($value->jenis == '1') { - array_push($pg_belum_komplit, $value->nomor_soal); - } elseif ($value->jenis == '2') { - array_push($pg2_belum_komplit, $value->nomor_soal); - } elseif ($value->jenis == '3') { - array_push($jodohkan_belum_komplit, $value->nomor_soal); - } elseif ($value->jenis == '4') { - array_push($isian_belum_komplit, $value->nomor_soal); - } else { - array_push($essai_belum_komplit, $value->nomor_soal); - } - } - - $soal_pg_ada = []; - $soal_pg2_ada = []; - $soal_jodohkan_ada = []; - $soal_isian_ada = []; - $soal_esai_ada = []; - - foreach ($soal_ada as $key => $value) { - if ($value->jenis == '1') { - array_push($soal_pg_ada, $value->nomor_soal); - } elseif ($value->jenis == '2') { - array_push($soal_pg2_ada, $value->nomor_soal); - } elseif ($value->jenis == '3') { - array_push($soal_jodohkan_ada, $value->nomor_soal); - } elseif ($value->jenis == '4') { - array_push($soal_isian_ada, $value->nomor_soal); - } else { - array_push($soal_esai_ada, $value->nomor_soal); - } - } - - $no = 1; - $tpg = $jml_pg == null || $jml_pg->nomor_soal == null ? 0 : $jml_pg->nomor_soal; - for ($i = 0; $i < $tpg; $i++) : ?> - = $no ?> - - - Tambah PG -
- SOAL NOMOR:
- nomor_soal == null ? 0 : $jml_pg2->nomor_soal; - $no2 = 1; - for ($i = 0; $i < $tpg2; $i++) : ?> - = $no2 ?> - - - Tambah PG Kompleks -
- - nomor_soal == null ? 0 : $jml_pg2->nomor_soal; - $no2 = 1; - for ($i = 0; $i < $tpg2; $i++) : ?> - = $no2 ?> - - - Tambah PG Kompleks -
- SOAL NOMOR:
- nomor_soal == null ? 0 : $jml_jodohkan->nomor_soal; - for ($i = 0; $i < $tej; $i++) : ?> - = $noj ?> - - - Tambah Soal Menjodohkan -
- - nomor_soal == null ? 0 : $jml_jodohkan->nomor_soal; - for ($i = 0; $i < $tej; $i++) : ?> - = $noj ?> - - - Tambah Soal Menjodohkan -
- SOAL NOMOR:
- nomor_soal == null ? 0 : $jml_isian->nomor_soal; - for ($i = 0; $i < $tei; $i++) : ?> - = $noi ?> - - - Tambah Soal Isian -
- - nomor_soal == null ? 0 : $jml_isian->nomor_soal; - for ($i = 0; $i < $tei; $i++) : ?> - = $noi ?> - - - Tambah Soal Isian -
- ESSAI NOMOR:
- nomor_soal == null ? 0 : $jml_essai->nomor_soal; - for ($i = 0; $i < $tes; $i++) : ?> - = $noe ?> - - - Tambah Essai -
- - nomor_soal == null ? 0 : $jml_essai->nomor_soal; - for ($i = 0; $i < $tes; $i++) : ?> - = $noe ?> - - - Tambah Essai -
-
- = form_close() ?>
-
-
-
-
-
-
-
-
- Soal Nomor: 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- opsi == 4) {
- $opsis ['d'] = 'D';
- $rangeAbjad = range('a', 'd');
- } elseif ($bank->opsi == 5) {
- $opsis ['d'] = 'D';
- $opsis ['e'] = 'E';
- $rangeAbjad = range('a', 'e');
- } else {
- $rangeAbjad = range('a', 'c');
- };
- ?>
-
-
- opsi_a :
- ($abjad === 'b' ? $soal->opsi_b :
- ($abjad === 'c' ? $soal->opsi_c :
- ($abjad === 'd' ? $soal->opsi_d : $soal->opsi_e)));
- }
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- Jawaban
-
-
-
-
-
-
-
- jawaban)));
- echo form_dropdown(
- 'jawaban_pg',
- $opsis,
- is_null($soal) ? null : trim(strtolower($soal->jawaban)),
- 'id="jawaban" class="select2 form-control" required'
- ); ?>
-
-
-
-
-
-
-
-
-
-
-
-
- File Pendukung
- Hnaya untuk menambahkan file gambar, audio atau video pendek -
-
- - Hnaya untuk menambahkan file gambar, audio atau video pendek -
-
-
-
-
-
-
-
-
- = form_open_multipart('', array('id' => 'uploadharian')); ?>
-
-
-
-
- = form_close(); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- kali
-
-
-
-
-
-
-
-
-
-
-
-
-