From e058ed36b82fab7973e4cbdb09187073810697a6 Mon Sep 17 00:00:00 2001 From: AbangAzmi Date: Fri, 17 May 2024 13:49:30 +0700 Subject: [PATCH] 1.5.3 BETA 2 --- application/views/cbt/banksoal/soal1.php | 464 ----------------------- assets/app/js/cbt/banksoal/soal.js | 2 +- 2 files changed, 1 insertion(+), 465 deletions(-) delete mode 100644 application/views/cbt/banksoal/soal1.php diff --git a/application/views/cbt/banksoal/soal1.php b/application/views/cbt/banksoal/soal1.php deleted file mode 100644 index 9ee3b415..00000000 --- a/application/views/cbt/banksoal/soal1.php +++ /dev/null @@ -1,464 +0,0 @@ -file); -if ($att !== false) { - $dataFileAttach = unserialize($soal->file); -} - -?> - -
-
-
-
-

- -
-
-
- -
-
- '; - //var_dump(unserialize($soal->file)); - //var_dump($jml_pg); - //for ($i=97; $i<117; $i++) { - // var_dump(chr($i)); - //} - //echo ''; - ?> -
-
-
-
Bank - Soal: bank_kode . ' | PG: ' . $bank->tampil_pg . ', Essai: ' . $bank->tampil_esai ?> -
-
-
-
- 'create')) ?> -
- -
- - - - - -
-
- - 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++) : ?> - - - - Tambah PG -
-
- SOAL NOMOR:
- nomor_soal == null ? 0 : $jml_pg2->nomor_soal; - $no2 = 1; - for ($i = 0; $i < $tpg2; $i++) : ?> - - - - Tambah PG Kompleks -
-
- SOAL NOMOR:
- nomor_soal == null ? 0 : $jml_jodohkan->nomor_soal; - for ($i = 0; $i < $tej; $i++) : ?> - - - - Tambah Soal Menjodohkan -
-
- SOAL NOMOR:
- nomor_soal == null ? 0 : $jml_isian->nomor_soal; - for ($i = 0; $i < $tei; $i++) : ?> - - - - Tambah Soal Isian -
-
- ESSAI NOMOR:
- nomor_soal == null ? 0 : $jml_essai->nomor_soal; - for ($i = 0; $i < $tes; $i++) : ?> - - - - Tambah Essai -
-
-
-
- - -
-
-
-
-
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 -
- -
-
-
-
-
-
- 'uploadharian')); ?> -
- -
-
- - -
-
- -
-
- -
- kali -
-
-
-
- -
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - 'addfile')) ?> - - - - - - - - diff --git a/assets/app/js/cbt/banksoal/soal.js b/assets/app/js/cbt/banksoal/soal.js index 6d6d85b7..46286bc6 100644 --- a/assets/app/js/cbt/banksoal/soal.js +++ b/assets/app/js/cbt/banksoal/soal.js @@ -72,7 +72,7 @@ $(document).ready(function() { //['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], - //['insert', ['video', 'file']], + ['insert', ['math']], //['view', ['fullscreen', 'codeview', 'help']], //['cleaner',['cleaner']], ],