public function block_content($context, array $blocks = array()) { // line 4 echo "<h4>Detail Jawaban</h4>\n\n<table class=\"table table-condensed table-striped\">\n <thead>\n <tr>\n <th>Tgl Mengerjakan</th>\n <th>Tgl Selesai</th>\n <th>Lama Pengerjaan</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>"; // line 16 echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "mulai")), "html", null, true); echo "</td>\n <td>"; // line 17 echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "tgl_submit")), "html", null, true); echo "</td>\n <td>"; // line 18 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "total_waktu"), "html", null, true); echo "</td>\n </tr>\n </tbody>\n</table>\n<br>\n\n<table class=\"table table-condensed table-striped\">\n <thead>\n <tr>\n <th>Jml soal</th>\n <th>Jml benar</th>\n <th>Jml salah</th>\n <th>Nilai</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>"; // line 35 echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "pertanyaan")), "html", null, true); echo "</td>\n <td>"; // line 36 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jml_benar"), "html", null, true); echo "</td>\n <td>"; // line 37 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jml_salah"), "html", null, true); echo "</td>\n <td><b>"; // line 38 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "nilai"), "html", null, true); echo "</b></td>\n </tr>\n </tbody>\n</table>\n<br>\n\n<table class=\"table table-condensed\">\n <thead>\n <tr>\n <th colspan=\"2\">List Jawaban</th>\n </tr>\n </thead>\n <tbody>\n "; // line 51 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "pertanyaan")); foreach ($context['_seq'] as $context["_key"] => $context["p"]) { // line 52 echo " <tr id=\"pertanyaan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <td style=\"width:30px;\">\n <b>"; // line 54 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "urutan"), "html", null, true); echo ".</b>\n <br>\n "; // line 56 if (get_jawaban($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")) == get_kunci_pilihan($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"))) { // line 57 echo " <span class=\"text-error\"><i class=\"icon icon-ok\"></i></span>\n "; } else { // line 59 echo " <span class=\"text-error\"><i class=\"icon icon-remove\"></i></span>\n "; } // line 61 echo " </td>\n <td>\n <div class=\"pertanyaan\">\n "; // line 64 echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan")); echo "\n </div>\n\n <div id=\"pilihan-"; // line 67 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <table class=\"table table-condensed table-striped\">\n <tbody>\n "; // line 70 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan")); foreach ($context['_seq'] as $context["_key"] => $context["pil"]) { // line 71 echo " <tr>\n <td style=\"width:15px;\"><b>"; // line 72 echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true); echo "</b></td>\n <td>\n "; // line 74 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten")); echo "\n\n <ul class=\"unstyled inline\" style=\"margin-bottom: 0px;margin-left: -5px;\">\n "; // line 77 if ($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 1) { // line 78 echo " <li><small class=\"text-warning\"><i class=\"icon icon-star\"></i> Kunci Jawaban</small></li>\n "; } // line 80 echo " "; if (is_pilih($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")) == true) { // line 81 echo " <li><small class=\"text-success\"><i class=\"icon-hand-up\"></i> Jawaban Siswa</small></li>\n "; } // line 83 echo " </ul>\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 87 echo " </tbody>\n </table>\n </div>\n\n </td>\n </tr>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 95 echo " </tbody>\n</table>\n\n"; }
public function block_content($context, array $blocks = array()) { // line 55 echo "<div id=\"wrap\">\n <div class=\"container\">\n <div class=\"row-fluid\">\n <div class=\"span9\">\n <h1 class=\"title\">"; // line 59 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "judul"), "html", null, true); echo "</h1>\n </div>\n <div class=\"span3\">\n <ul class=\"unstyled inline pull-right user-info\">\n <li><b>"; // line 63 echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true); echo "</b></li>\n <li><img src=\""; // line 64 echo twig_escape_filter($this->env, get_url_image_pengajar(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true); echo "\" class=\"nav-avatar img-polaroid img-circle\" /></li>\n </ul>\n </div>\n </div>\n <hr class=\"hr-top\">\n <div class=\"wrap-content\">\n <div class=\"content\">\n <div class=\"row-fluid\">\n "; // line 72 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) { // line 73 echo " <div class=\"span8\">\n <b>Informasi : </b><br>\n "; // line 75 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info"); echo "\n </div>\n <div class=\"span4\">\n <div class=\"box-clock\" data-spy=\"affix\" data-offset-top=\"60\" data-offset-bottom=\"200\">\n <b>Siswa waktu : </b><br>\n <div id=\"clock\"></div>\n </div>\n </div>\n "; } else { // line 84 echo " <div class=\"span6\">\n <b>Informasi : </b><br>\n "; // line 86 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info"); echo "\n <br>\n <small>\n <b>Ekstensi file :</b><br>\n doc, zip, rar, txt, docx, xls, xlsx, pdf, tar, gz, jpg, jpeg, JPG, JPEG, png, ppt, pptx\n </small>\n </div>\n <div class=\"span6\">\n <p><b>Upload file tugas anda : </b></p>\n <div class=\"well well-sm\">\n "; // line 96 echo form_open_multipart("tugas/submit_upload/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")); echo "\n <input type=\"file\" name=\"userfile\">\n <hr class=\"hr1\">\n <div class=\"row-fluid\">\n <div class=\"span3\">\n <button type=\"submit\" class=\"btn btn-primary\">Upload</button>\n </div>\n <div class=\"span9\">\n "; // line 104 echo get_flashdata("upload"); echo "\n </div>\n </div>\n "; // line 107 echo form_close(); echo "\n </div>\n </div>\n "; } // line 111 echo " </div>\n\n "; // line 113 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3) { // line 114 echo " <table class=\"table\">\n <thead>\n <tr>\n <th width=\"5%\">No</th>\n <th>Pertanyaan "; // line 118 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : ""; echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 122 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan")); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["p"]) { // line 123 echo " <tr id=\"pertanyaan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <td><b>"; // line 124 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true); echo ".</b></td>\n <td>\n <div class=\"pertanyaan\">\n "; // line 127 echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan")); echo "\n </div>\n\n <div id=\"pilihan-"; // line 130 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <table class=\"table table-condensed table-striped\">\n <tbody>\n "; // line 133 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan")); foreach ($context['_seq'] as $context["_key"] => $context["pil"]) { // line 134 echo " <tr>\n <td width=\"5%\"><label class=\"label-radio\"><input "; // line 135 echo is_pilih($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")) ? "checked" : ""; echo " type=\"radio\" name=\"pilihan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan"), "html", null, true); echo "\" onclick=\"update_ganda("; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id"), "html", null, true); echo ")\" class=\"radio\"> "; echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true); echo "</label></td>\n <td>\n "; // line 137 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten")); echo "\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 141 echo " </tbody>\n </table>\n </div>\n\n </td>\n </tr>\n\n "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 149 echo " </tbody>\n </table>\n\n <div class=\"well well-sm\">\n <a class=\"btn btn-large btn-primary pull-right\" href=\""; // line 153 echo twig_escape_filter($this->env, site_url("tugas/finish/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")), "html", null, true); echo "\" onclick=\"return confirm('Anda yakin ingin mengahiri pengerjaan tugas ini?')\">Selesai</a>\n <p class=\"p-info\">Mohon periksa kembali jawaban anda sebelum menekan tombol <b>selesai</b>.</p>\n <br>\n </div>\n\n "; } // line 159 echo "\n\n "; // line 161 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 2) { // line 162 echo " "; echo form_open("tugas/submit_essay/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")); echo "\n <input type=\"hidden\" id=\"str_id\" value=\""; // line 163 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "str_id"), "html", null, true); echo "\">\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"5%\">No</th>\n <th>Pertanyaan "; // line 168 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : ""; echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 172 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan")); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["p"]) { // line 173 echo " <tr id=\"pertanyaan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <td><b>"; // line 174 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true); echo ".</b></td>\n <td>\n <div class=\"pertanyaan\">\n "; // line 177 echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan")); echo "\n </div>\n\n <textarea name=\"jawaban["; // line 180 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "]\" id=\"jawaban-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\" style=\"width:100%; height:300px;\">"; echo get_jawaban($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")); echo "</textarea>\n\n </td>\n </tr>\n\n "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 186 echo " </tbody>\n </table>\n\n <div class=\"well well-sm\">\n <button type=\"submit\" class=\"btn btn-large btn-primary pull-right\" onclick=\"return confirm('Anda yakin ingin mengahiri pengerjaan tugas ini?')\">Selesai</button>\n <p class=\"p-info\">Mohon periksa kembali jawaban anda sebelum menekan tombol <b>selesai</b>.</p>\n <br>\n </div>\n "; // line 194 echo form_close(); echo "\n\n "; } // line 197 echo "\n </div>\n </div>\n </div>\n</div>\n"; // line 202 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) { // line 203 echo "<input type=\"hidden\" id=\"tugas_id\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true); echo "\">\n<input type=\"hidden\" id=\"final_date\" value=\""; // line 204 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "selesai"), "html", null, true); echo "\">\n<input type=\"hidden\" id=\"finish_url\" value=\""; // line 205 echo twig_escape_filter($this->env, site_url("tugas/finish/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")), "html", null, true); echo "\">\n"; } }