public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("mapel");
     echo "\n\n        <div class=\"bs-callout bs-callout-info\">\n        <p>\n            Pilih matapelajaran yang ingin di masukkan pada <b>";
     // line 13
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama", array(), "array"), "html", null, true);
     echo "</b>\n        </p>\n        </div>\n        <br>\n\n        ";
     // line 18
     echo form_open("admin/mapel_kelas/add/" . $this->getAttribute(isset($context["parent"]) ? $context["parent"] : null, "id", array(), "array") . "/" . $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "id", array(), "array") . "/" . enurl_redirect(isset($context["uri_back"]) ? $context["uri_back"] : null));
     echo "\n        <table class=\"table table-striped\">\n        <tbody>\n            ";
     // line 21
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["mapels"]) ? $context["mapels"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["m"]) {
         // line 22
         echo "            ";
         $context["checked"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => null, 1 => $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "id", array(), "array"), 2 => $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id")));
         // line 23
         echo "            <tr>\n                <td>\n                    ";
         // line 25
         if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") != 1) {
             // line 26
             echo "                    <span class=\"badge badge-warning pull-right\">Matapelajaran Tidak Aktif</span>\n                    ";
         }
         // line 28
         echo "                    <label><input type=\"checkbox\" name=\"mapel[]\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "html", null, true);
         echo "\" style=\"margin-top:-2px;margin-right:5px;\" ";
         echo $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") != 1 ? "disabled" : "";
         echo " ";
         echo twig_test_empty(isset($context["checked"]) ? $context["checked"] : null) ? "" : "checked";
         echo "> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
         echo "</label>\n                    <small>";
         // line 29
         echo nl2br(twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "info"), "html", null, true));
         echo "</small>\n                </td>\n            </tr>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['m'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 33
     echo "        </tbody>\n        </table>\n        <br>\n        <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n        <a href=\"";
     // line 37
     echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
     echo "\" class=\"btn btn-default\">Kembali</a>\n        ";
     // line 38
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Pencarian</h3>\n    </div>\n    <div class=\"module-body\">\n        <div class=\"well well-small\" style=\"box-shadow: none;\">\n            Hasil pencarian dengan kata kunci : <b>";
     // line 14
     echo twig_escape_filter($this->env, isset($context["keyword"]) ? $context["keyword"] : null, "html", null, true);
     echo "</b>\n        </div>\n\n        ";
     // line 17
     if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "siswa"))) {
         // line 18
         echo "        <b><i class=\"icon-group\"></i> Siswa </b>(ditemukan ";
         echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "siswa")), "html", null, true);
         echo " record)\n        <table class=\"table table-condensed table-striped\">\n            ";
         // line 20
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "siswa"));
         foreach ($context['_seq'] as $context["_key"] => $context["v"]) {
             // line 21
             echo "            <tr>\n                <td>\n                    <img style=\"height:30px;width:30px; margin-right: 10px;\" class=\"img-polaroid img-circle pull-left\" src=\"";
             // line 23
             echo twig_escape_filter($this->env, get_url_image_siswa($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "foto"), "medium", $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin")), "html", null, true);
             echo "\">\n                    <b>";
             // line 24
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
             echo " ";
             echo !twig_test_empty($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nis")) ? "<span class=\"text-muted\">(" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nis") . ")</span>" : "";
             echo "</b>\n                    <br>";
             // line 25
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") != 3 ? $this->getAttribute($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "kelas_aktif"), "nama") . " , " : "", "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin"), "html", null, true);
             echo " , ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "agama"), "html", null, true);
             echo "\n                </td>\n                <td width=\"20%\">\n                    <ul class=\"nav nav-pills\" style=\"margin-bottom:0px;\">\n                        ";
             // line 29
             if (is_admin()) {
                 // line 30
                 echo "                        <li><a class=\"btn btn-default btn-small\" href=\"";
                 echo twig_escape_filter($this->env, site_url("siswa/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
                 echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                        <li class=\"dropdown\">\n                            <a class=\"btn btn-default btn-small\" href=\"#\" id=\"act-";
                 // line 32
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
                 echo "\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"icon-edit\"></i> Edit <b class=\"caret\" style=\"margin-top:5px;\"></b></a>\n                            <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"act-";
                 // line 33
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
                 echo "\">\n                                <li>";
                 // line 34
                 echo anchor("siswa/edit_profile/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Profil", array("class" => "iframe-4", "title" => "Edit Profil Siswa"));
                 echo "</li>\n                                <li>";
                 // line 35
                 echo anchor("siswa/edit_picture/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Foto", array("class" => "iframe-5", "title" => "Edit Foto Siswa"));
                 echo "</li>\n                                ";
                 // line 36
                 if ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") != 3) {
                     // line 37
                     echo "                                <li>";
                     echo anchor("siswa/moved_class/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Kelas Aktif", array("class" => "iframe-kelas-aktif", "title" => "Edit Kelas Aktif"));
                     echo "</li>\n                                ";
                 }
                 // line 39
                 echo "                                <li>";
                 echo anchor("siswa/edit_username/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Username", array("class" => "iframe-2", "title" => "Edit Username Siswa"));
                 echo "</li>\n                                <li>";
                 // line 40
                 echo anchor("siswa/edit_password/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Password", array("class" => "iframe-3", "title" => "Edit Password Siswa"));
                 echo "</li>\n                            </ul>\n                        </li>\n                        ";
             } else {
                 // line 44
                 echo "                        <li><a class=\"btn btn-default btn-small\" href=\"";
                 echo twig_escape_filter($this->env, site_url("siswa/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
                 echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                        ";
             }
             // line 46
             echo "                    </ul>\n                </td>\n            </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['v'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 50
         echo "        </table>\n        <br>\n        ";
     }
     // line 53
     echo "\n        ";
     // line 54
     if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pengajar"))) {
         // line 55
         echo "        <b><i class=\"icon-user\"></i> Pengajar </b>(ditemukan ";
         echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pengajar")), "html", null, true);
         echo " record)\n        <table class=\"table table-condensed table-striped\">\n            ";
         // line 57
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pengajar"));
         foreach ($context['_seq'] as $context["no"] => $context["v"]) {
             // line 58
             echo "            <tr>\n                <td>\n                    <img style=\"height:30px;width:30px; margin-right: 10px;\" class=\"img-polaroid img-circle pull-left\" src=\"";
             // line 60
             echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "foto"), "medium", $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin")), "html", null, true);
             echo "\">\n                    <b>";
             // line 61
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
             echo " ";
             echo !twig_test_empty($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip")) ? "<span class=\"text-muted\">(" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip") . ")</span>" : "";
             echo "</b>\n                    ";
             // line 62
             $context["is_admin"] = get_row_data("login_model", "retrieve", array(0 => null, 1 => null, 2 => null, 3 => null, 4 => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "is_admin");
             // line 63
             echo "                    ";
             if ((isset($context["is_admin"]) ? $context["is_admin"] : null) == 1) {
                 // line 64
                 echo "                        <span class=\"label label-warning\">Administrator</span>\n                    ";
             }
             // line 66
             echo "                    <br><b>Alamat :</b> ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "alamat"), "html", null, true);
             echo "\n                </td>\n                <td width=\"20%\">\n                    <ul class=\"nav nav-pills\" style=\"margin-bottom:0px;\">\n                        ";
             // line 70
             if (is_admin() == true) {
                 // line 71
                 echo "                        <li><a class=\"btn btn-default btn-small\" href=\"";
                 echo twig_escape_filter($this->env, site_url("pengajar/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
                 echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                        <li class=\"dropdown\">\n                            <a class=\"btn btn-default btn-small\" href=\"#\" id=\"act-";
                 // line 73
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
                 echo "\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"icon-edit\"></i> Edit <b class=\"caret\" style=\"margin-top:5px;\"></b></a>\n                            <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"act-";
                 // line 74
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
                 echo "\">\n                                <li>";
                 // line 75
                 echo anchor("pengajar/edit_profile/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Profil", array("class" => "iframe-4", "title" => "Edit Profil Pengajar"));
                 echo "</li>\n                                <li>";
                 // line 76
                 echo anchor("pengajar/edit_picture/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Foto", array("class" => "iframe-5", "title" => "Edit Foto Pengajar"));
                 echo "</li>\n                                <li>";
                 // line 77
                 echo anchor("pengajar/edit_username/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Username", array("class" => "iframe-2", "title" => "Edit Username Pengajar"));
                 echo "</li>\n                                <li>";
                 // line 78
                 echo anchor("pengajar/edit_password/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Password", array("class" => "iframe-3", "title" => "Edit Password Pengajar"));
                 echo "</li>\n                            </ul>\n                        </li>\n                        ";
             } else {
                 // line 82
                 echo "                        <li><a class=\"btn btn-default btn-small\" href=\"";
                 echo twig_escape_filter($this->env, site_url("pengajar/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
                 echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                        ";
             }
             // line 84
             echo "                    </ul>\n                </td>\n            </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 88
         echo "        </table>\n        <br>\n        ";
     }
     // line 91
     echo "\n        ";
     // line 92
     if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "materi"))) {
         // line 93
         echo "        <b><i class=\"icon-book\"></i> Materi </b>(ditemukan ";
         echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "materi")), "html", null, true);
         echo " record)\n        <table class=\"table table-condensed table-striped\">\n            ";
         // line 95
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "materi"));
         foreach ($context['_seq'] as $context["_key"] => $context["m"]) {
             // line 96
             echo "                ";
             if (is_admin() == true) {
                 // line 97
                 echo "                    ";
                 $context["action_edit"] = true;
                 // line 98
                 echo "                    ";
                 $context["action_delete"] = true;
                 // line 99
                 echo "                ";
             } elseif (is_pengajar() == true) {
                 // line 100
                 echo "                    ";
                 if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "pengajar_id") == get_sess_data("user", "id")) {
                     // line 101
                     echo "                        ";
                     $context["action_edit"] = true;
                     // line 102
                     echo "                        ";
                     $context["action_delete"] = true;
                     // line 103
                     echo "                    ";
                 } else {
                     // line 104
                     echo "                        ";
                     $context["action_edit"] = false;
                     // line 105
                     echo "                        ";
                     $context["action_delete"] = false;
                     // line 106
                     echo "                    ";
                 }
                 // line 107
                 echo "                ";
             }
             // line 108
             echo "\n                ";
             // line 109
             if (is_siswa()) {
                 // line 110
                 echo "                <tr>\n                    <td>\n                        <a href=\"";
                 // line 112
                 echo twig_escape_filter($this->env, site_url("materi/detail/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id")), "html", null, true);
                 echo "\" target=\"_tab\">";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
                 echo "</a>\n                    </td>\n                </tr>\n                ";
             } else {
                 // line 116
                 echo "                <tr>\n                    <td>\n                        ";
                 // line 118
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
                 echo "\n                    </td>\n                    <td width=\"20%\">\n                        <div class=\"btn-group\">\n                            ";
                 // line 122
                 if (!twig_test_empty($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "file"))) {
                     // line 123
                     echo "                                ";
                     $context["url_type"] = "file";
                     // line 124
                     echo "                            ";
                 } else {
                     // line 125
                     echo "                                ";
                     $context["url_type"] = "tertulis";
                     // line 126
                     echo "                            ";
                 }
                 // line 127
                 echo "                            ";
                 echo anchor("materi/detail/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-zoom-in\"></i> Detail", array("class" => "btn btn-default btn-small", "target" => "_tab"));
                 echo "\n\n                            ";
                 // line 129
                 if ((isset($context["action_edit"]) ? $context["action_edit"] : null) == true) {
                     // line 130
                     echo "                                ";
                     echo anchor("materi/edit/" . (isset($context["url_type"]) ? $context["url_type"] : null) . "/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default btn-small"));
                     echo "\n                            ";
                 }
                 // line 132
                 echo "\n                            ";
                 // line 133
                 if ((isset($context["action_delete"]) ? $context["action_delete"] : null) == true) {
                     // line 134
                     echo "                                ";
                     echo anchor("materi/delete/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-trash\"></i> Hapus", array("class" => "btn btn-default btn-small", "onclick" => "return confirm('Anda yakin ingin menghapus?')"));
                     echo "\n                            ";
                 }
                 // line 136
                 echo "                        </div>\n                    </td>\n                </tr>\n                ";
             }
             // line 140
             echo "            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['m'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 141
         echo "        </table>\n        <br>\n        ";
     }
     // line 144
     echo "\n        ";
     // line 145
     if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "tugas"))) {
         // line 146
         echo "        <b><i class=\"icon-tasks\"></i> Tugas </b>(ditemukan ";
         echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "tugas")), "html", null, true);
         echo " record)\n        <table class=\"table table-condensed table-striped\">\n            ";
         // line 148
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "tugas"));
         foreach ($context['_seq'] as $context["no"] => $context["m"]) {
             // line 149
             echo "            ";
             if (is_admin() || is_pengajar()) {
                 // line 150
                 echo "                <tr>\n                    <td>\n                        ";
                 // line 152
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
                 echo "\n                    </td>\n                    <td width=\"20%\">\n                        <div class=\"btn-group\">\n                            ";
                 // line 156
                 if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Ganda" || $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Essay") {
                     // line 157
                     echo "                                ";
                     echo anchor("tugas/manajemen_soal/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon icon-tasks\"></i> Soal", array("class" => "btn btn-primary btn-small"));
                     echo "\n                            ";
                 }
                 // line 159
                 echo "                            ";
                 if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 0) {
                     // line 160
                     echo "                                ";
                     echo anchor("tugas/terbitkan/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-ok\"></i> Terbitkan", array("class" => "btn btn-success btn-small"));
                     echo "\n                            ";
                 } elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 1) {
                     // line 162
                     echo "                                ";
                     echo anchor("tugas/tutup/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-minus\"></i> Tutup", array("class" => "btn btn-danger btn-small"));
                     echo "\n                            ";
                 }
                 // line 164
                 echo "\n                            ";
                 // line 165
                 echo anchor("tugas/edit/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default btn-small"));
                 echo "\n                            ";
                 // line 166
                 if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_id") == 3) {
                     // line 167
                     echo "                                ";
                     echo anchor("tugas/nilai/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-eye-open\"></i> Lihat Nilai", array("class" => "btn btn-info btn-small"));
                     echo "\n                            ";
                 } else {
                     // line 169
                     echo "                                ";
                     echo anchor("tugas/koreksi/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-check\"></i> Koreksi", array("class" => "btn btn-info btn-small"));
                     echo "\n                            ";
                 }
                 // line 171
                 echo "                        </div>\n                    </td>\n                </tr>\n            ";
             } else {
                 // line 175
                 echo "                <tr>\n                    <td>\n                        <a href=\"";
                 // line 177
                 echo twig_escape_filter($this->env, site_url("tugas?judul=" . urlencode($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"))), "html", null, true);
                 echo "\">";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
                 echo "</a>\n                    </td>\n                </tr>\n            ";
             }
             // line 181
             echo "            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['no'], $context['m'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 182
         echo "        </table><br>\n        ";
     }
     // line 184
     echo "\n        ";
     // line 185
     if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pesan"))) {
         // line 186
         echo "        <b><i class=\"icon-comments\"></i> Pesan </b>(ditemukan ";
         echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pesan")), "html", null, true);
         echo " record)\n        <div class=\"message\">\n        <table class=\"table table-message\">\n            <tbody>\n                ";
         // line 190
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pesan"));
         foreach ($context['_seq'] as $context["_key"] => $context["d"]) {
             // line 191
             echo "                <tr class=\"";
             echo $this->getAttribute(isset($context["d"]) ? $context["d"] : null, "opened") == 0 ? "unread" : "";
             echo " clickable-row\" data-href=\"";
             echo twig_escape_filter($this->env, site_url("message/detail/" . $this->getAttribute(isset($context["d"]) ? $context["d"] : null, "id") . "#msg-" . $this->getAttribute(isset($context["d"]) ? $context["d"] : null, "id")), "html", null, true);
             echo "\">\n                    <td class=\"cell-author\">\n                        <img style=\"height:30px;width:30px; margin-right: 10px;\" class=\"img-polaroid img-circle pull-left\" src=\"";
             // line 193
             echo twig_escape_filter($this->env, get_url_image_siswa($this->getAttribute($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "profil"), "foto"), "medium", $this->getAttribute($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "profil"), "jenis_kelamin")), "html", null, true);
             echo "\">\n                        <a href=\"";
             // line 194
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "profil"), "link_profil"), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, character_limiter($this->getAttribute($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "profil"), "nama"), 23, "..."), "html", null, true);
             echo "</a>\n                        <br><small>";
             // line 195
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["d"]) ? $context["d"] : null, "date"), "html", null, true);
             echo "</small>\n                    </td>\n                    <td class=\"cell-title hidden-phone hidden-tablet\">\n                        <a class=\"pull-right\" style=\"margin-left:10px;\" href=\"";
             // line 198
             echo twig_escape_filter($this->env, site_url("message/detail/" . $this->getAttribute(isset($context["d"]) ? $context["d"] : null, "id") . "/?confirm=1#confirm"), "html", null, true);
             echo "\"><i class=\"icon-trash\"></i></a>\n                        ";
             // line 199
             if (!twig_test_empty($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "receiver"))) {
                 // line 200
                 echo "                        <div>To <a href=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "receiver"), "link_profil"), "html", null, true);
                 echo "\">";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "receiver"), "nama"), "html", null, true);
                 echo "</a></div>\n                        ";
             }
             // line 202
             echo "                        ";
             echo character_limiter(strip_tags($this->getAttribute(isset($context["d"]) ? $context["d"] : null, "content")), 80, "...");
             echo "\n                    </td>\n                </tr>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['d'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 206
         echo "            </tbody>\n        </table>\n        <div>\n        <br>\n        ";
     }
     // line 211
     echo "\n        ";
     // line 212
     if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pengumuman"))) {
         // line 213
         echo "        <b><i class=\"icon-bullhorn\"></i> Pengumuman </b>(ditemukan ";
         echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pengumuman")), "html", null, true);
         echo " record)\n        <table class=\"table table-striped\">\n            <thead>\n                <tr>\n                    <th width=\"5%\">ID</th>\n                    <th>Judul</th>\n                    <th width=\"17%\">Tgl. Tampil</th>\n                    <th width=\"17%\">Tgl. Tutup</th>\n                    <th width=\"15%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
         // line 225
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "pengumuman"));
         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
             // line 226
             echo "                <tr>\n                    <td><b>";
             // line 227
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "</b></td>\n                    <td><a href=\"";
             // line 228
             echo twig_escape_filter($this->env, site_url("pengumuman/detail/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
             echo "\"><b>";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "judul"), "html", null, true);
             echo "</b></a></td>\n                    <td>";
             // line 229
             echo twig_escape_filter($this->env, tgl_indo($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "tgl_tampil")), "html", null, true);
             echo "</td>\n                    <td>";
             // line 230
             echo twig_escape_filter($this->env, tgl_indo($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "tgl_tutup")), "html", null, true);
             echo "</td>\n                    <td>\n                        <div class=\"btn-group\">\n                        ";
             // line 233
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "allow_action"));
             foreach ($context['_seq'] as $context["_key"] => $context["a"]) {
                 // line 234
                 echo "                            ";
                 if ((isset($context["a"]) ? $context["a"] : null) == "detail") {
                     // line 235
                     echo "                            <a class=\"btn btn-default btn-small\" href=\"";
                     echo twig_escape_filter($this->env, site_url("pengumuman/detail/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
                     echo "\" data-toggle=\"tooltip\" title=\"Detail\"><i class=\"icon-zoom-in\"></i></a>\n                            ";
                 }
                 // line 237
                 echo "\n                            ";
                 // line 238
                 if ((isset($context["a"]) ? $context["a"] : null) == "edit") {
                     // line 239
                     echo "                            <a class=\"btn btn-default btn-small\" href=\"";
                     echo twig_escape_filter($this->env, site_url("pengumuman/edit/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
                     echo "\" data-toggle=\"tooltip\" title=\"Edit\"><i class=\"icon-edit\"></i></a>\n                            ";
                 }
                 // line 241
                 echo "\n                            ";
                 // line 242
                 if ((isset($context["a"]) ? $context["a"] : null) == "delete") {
                     // line 243
                     echo "                            <a onclick=\"return confirm('Anda yakin ingin menghapus?')\" class=\"btn btn-default btn-small\" href=\"";
                     echo twig_escape_filter($this->env, site_url("pengumuman/delete/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
                     echo "\" data-toggle=\"tooltip\" title=\"Edit\"><i class=\"icon-trash\"></i></a>\n                            ";
                 }
                 // line 245
                 echo "                        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['a'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 246
             echo "                        </div>\n                    </td>\n                </tr>\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 250
         echo "            </tbody>\n        </table>\n        <br>\n        ";
     }
     // line 254
     echo "\n    </div>\n</div>\n";
 }
예제 #3
0
function kirim_email_approve_pengajar($pengajar_id)
{
    $pengajar = get_row_data('pengajar_model', 'retrieve', array($pengajar_id));
    $login = get_row_data('login_model', 'retrieve', array(null, null, null, null, $pengajar_id));
    $tabel_profil = '<table border="1" cellspacing="0" cellpadding="5">
        <tr>
            <td valign="top">NIP</td>
            <td>' . $pengajar['nip'] . '</td>
        </tr>
        <tr>
            <td valign="top">Nama</td>
            <td>' . $pengajar['nama'] . '</td>
        </tr>
        <tr>
            <td valign="top">Jenis kelamin</td>
            <td>' . $pengajar['jenis_kelamin'] . '</td>
        </tr>
        <tr>
            <td valign="top">Tempat lahir</td>
            <td>' . $pengajar['tempat_lahir'] . '</td>
        </tr>
        <tr>
            <td valign="top">Tgl. Lahir</td>
            <td>' . tgl_indo($pengajar['tgl_lahir']) . '</td>
        </tr>
        <tr>
            <td valign="top">Alamat</td>
            <td>' . $pengajar['alamat'] . '</td>
        </tr>
    </table>';
    @kirim_email('email-template-approve-pengajar', $login['username'], array('nama' => $nama, 'nama_sekolah' => get_pengaturan('nama-sekolah', 'value'), 'tabel_profil' => $tabel_profil, 'url_login' => site_url('login')));
}
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        ";
     // line 10
     if (is_admin()) {
         // line 11
         echo "        <h3>";
         echo anchor("siswa/index/" . (isset($context["status_id"]) ? $context["status_id"] : null), "Data Siswa");
         echo " / Detail Siswa</h3>\n        ";
     } else {
         // line 13
         echo "        <h3>";
         echo anchor("siswa/filter", "Filter Siswa");
         echo " / Detail Siswa</h3>\n        ";
     }
     // line 15
     echo "    </div>\n    <div class=\"module-body\">\n        ";
     // line 17
     echo get_flashdata("siswa");
     echo "\n\n        ";
     // line 19
     if ($this->getAttribute(isset($context["siswa_login"]) ? $context["siswa_login"] : null, "id") != get_sess_data("login", "id")) {
         // line 20
         echo "        <div class=\"row-fluid\">\n            <div class=\"span4\">\n                <div class=\"btn-group\">\n                    <a class=\"btn btn-default btn-sm\" href=\"";
         // line 23
         echo twig_escape_filter($this->env, site_url("message/to/siswa/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id")), "html", null, true);
         echo "\"><i class=\"icon-comments\"></i> Kirim Pesan</a>\n                </div>\n            </div>\n        </div>\n        <br>\n        ";
     }
     // line 29
     echo "\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Profil Siswa</strong>\n                ";
     // line 33
     if (is_admin()) {
         // line 34
         echo "                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
         // line 35
         echo anchor("siswa/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Profil", array("class" => "iframe-4 btn btn-small btn-primary", "title" => "Edit Profil Siswa"));
         echo "\n                    ";
         // line 36
         echo anchor("siswa/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Siswa"));
         echo "\n                </div>\n                ";
     }
     // line 39
     echo "            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\" width=\"25%\" style=\"border-top: 0px;\">NIS</th>\n                        <td style=\"border-top: 0px;\">";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "nis"), "html", null, true);
     echo "</td>\n                        <td rowspan=\"5\" width=\"15%\" style=\"border-top: 0px;\">\n                            <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 46
     echo twig_escape_filter($this->env, get_url_image_siswa($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "foto"), "medium", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                        </td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Nama</th>\n                        <td>";
     // line 51
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "nama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                        <td>";
     // line 55
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tahun Masuk</th>\n                        <td colspan=\"2\">";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tahun_masuk"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                        <td>";
     // line 63
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                        <td>";
     // line 67
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Agama</th>\n                        <td colspan=\"2\">";
     // line 71
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Alamat</th>\n                        <td colspan=\"2\">";
     // line 75
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "alamat"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Status</th>\n                        <td colspan=\"2\">\n                            ";
     // line 80
     if ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 0) {
         // line 81
         echo "                                Pending\n                            ";
     } elseif ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 1) {
         // line 83
         echo "                                Aktif\n                            ";
     } elseif ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 2) {
         // line 85
         echo "                                Blocking\n                            ";
     } elseif ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 3) {
         // line 87
         echo "                                Alumni\n                            ";
     }
     // line 89
     echo "                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n\n        <div class=\"row-fluid\">\n            <div class=\"span6\">\n                <div class=\"panel panel-default\" id=\"riwayat-kelas\">\n                    <div class=\"panel-heading\">\n                        <strong>Riwayat Kelas</strong>\n                        ";
     // line 100
     if (is_admin() && (isset($context["status_id"]) ? $context["status_id"] : null) != 3) {
         // line 101
         echo "                        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                            ";
         // line 102
         echo anchor("siswa/moved_class/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Pindah Kelas", array("class" => "iframe btn btn-small btn-primary", "title" => "Pindah siswa ke Kelas lain"));
         echo "\n                        </div>\n                        ";
     }
     // line 105
     echo "                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table table-striped\">\n                        <thead>\n                            <tr>\n                                <th width=\"5%\">No</th>\n                                <th>Kelas</th>\n                                ";
     // line 112
     if ((isset($context["status_id"]) ? $context["status_id"] : null) != 3) {
         // line 113
         echo "                                    <th>Aktif</th>\n                                ";
     }
     // line 115
     echo "                            </tr>\n                        </thead>\n                        <tbody>\n                            ";
     // line 118
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["siswa_kelas"]) ? $context["siswa_kelas"] : null, "results"));
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 119
         echo "                            <tr>\n                                <td>";
         // line 120
         echo twig_escape_filter($this->env, isset($context["no"]) ? $context["no"] : null, "html", null, true);
         echo ".</td>\n                                <td>\n                                    ";
         // line 122
         echo twig_escape_filter($this->env, get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "kelas_id"), 1 => true), "nama"), "html", null, true);
         echo "\n                                </td>\n                                ";
         // line 124
         if ((isset($context["status_id"]) ? $context["status_id"] : null) != 3) {
             // line 125
             echo "                                <td>\n                                    ";
             // line 126
             if ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "aktif") == 1) {
                 // line 127
                 echo "                                        <i class=\"icon icon-ok\"></i>\n                                    ";
             }
             // line 129
             echo "                                </td>\n                                ";
         }
         // line 131
         echo "                            </tr>\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 133
     echo "                        </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n            ";
     // line 138
     if (is_admin()) {
         // line 139
         echo "            <div class=\"span6\">\n                <div class=\"panel panel-default\" id=\"akun\">\n                    <div class=\"panel-heading\">\n                        <strong>Akun Login</strong>\n                        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                            ";
         // line 144
         echo anchor("siswa/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username Siswa"));
         echo "\n                            ";
         // line 145
         echo anchor("siswa/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password Siswa"));
         echo "\n                        </div>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <tbody>\n                                <tr>\n                                    <th width=\"30%\" bgcolor=\"#FBFBFB\" style=\"border-top: 0px;\">Username</th>\n                                    <td style=\"border-top: 0px;\">\n                                        ";
         // line 154
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa_login"]) ? $context["siswa_login"] : null, "username"), "html", null, true);
         echo "\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <th bgcolor=\"#FBFBFB\">Password</th>\n                                    <td>\n                                        *********\n                                    </td>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n            ";
     }
     // line 169
     echo "        </div>\n\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Filter Pengajar</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("pengajar");
     echo "\n\n        ";
     // line 15
     if (is_admin() == true) {
         // line 16
         echo "        <div class=\"row-fluid\">\n            <div class=\"span8\">\n                <a href=\"";
         // line 18
         echo twig_escape_filter($this->env, site_url("pengajar/add/1"), "html", null, true);
         echo "\" class=\"btn btn-primary\">Tambah Pengajar</a>\n            </div>\n\n            <div class=\"span4\">\n                <div class=\"btn-group\">\n                    ";
         // line 23
         echo anchor("pengajar/index/1", "Aktif", array("class" => "btn btn-default"));
         echo "\n                    ";
         // line 24
         echo anchor("pengajar/index/0", "Pending", array("class" => "btn btn-default"));
         echo "\n                    ";
         // line 25
         echo anchor("pengajar/index/2", "Blocking", array("class" => "btn btn-default"));
         echo "\n                    ";
         // line 26
         echo anchor("pengajar/filter", "<i class=\"icon-search\" style=\"line-height: 0px;\"></i> Filter", array("class" => "btn btn-info"));
         echo "\n                </div>\n            </div>\n        </div>\n        <br>\n        ";
     }
     // line 32
     echo "\n        <div class=\"bs-callout bs-callout-info\">\n            <b><a id=\"button\" href=\"javascript:void(0)\"><i class=\"icon-search\" style=\"line-height: 0px;\"></i> PARAMETER PENCARIAN</a></b>\n            ";
     // line 35
     echo form_open("pengajar/filter");
     echo "\n            <table class=\"table table-condensed\" id=\"form-search\">\n                <tr>\n                    <th width=\"20%\">NIP</th>\n                    <td>\n                        <input type=\"text\" name=\"nip\" class=\"span2\" style=\"margin-bottom:0px;\" value=\"";
     // line 40
     echo twig_escape_filter($this->env, set_value("nip", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nip", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nip") : ""), "html", null, true);
     echo "\">\n                    </td>\n                </tr>\n                <tr>\n                    <th>Nama</th>\n                    <td>\n                        <input type=\"text\" name=\"nama\" class=\"span4\" style=\"margin-bottom:0px;\" value=\"";
     // line 46
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nama", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nama") : ""), "html", null, true);
     echo "\">\n                    </td>\n                </tr>\n                <tr>\n                    <th>Jenis Kelamin</th>\n                    <td>\n                        <p style=\"margin-top:0px; margin-bottom:5px;\">\n                        <label class=\"checkbox inline\">\n                            <input type=\"checkbox\" name=\"jenis_kelamin[]\" value=\"Laki-laki\" ";
     // line 54
     echo twig_escape_filter($this->env, set_checkbox("jenis_kelamin[]", "Laki-laki", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin", array(), "any", true, true) && twig_in_filter("Laki-laki", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin")) ? true : false), "html", null, true);
     echo "> Laki-laki\n                        </label>\n                        <label class=\"checkbox inline\">\n                            <input type=\"checkbox\" name=\"jenis_kelamin[]\" value=\"Perempuan\" ";
     // line 57
     echo twig_escape_filter($this->env, set_checkbox("jenis_kelamin[]", "Perempuan", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin", array(), "any", true, true) && twig_in_filter("Perempuan", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin")) ? true : false), "html", null, true);
     echo "> Perempuan\n                        </label>\n                        </p>\n                    </td>\n                <tr>\n                <tr>\n                    <th>Tempat Lahir</th>\n                    <td>\n                        <input type=\"text\" name=\"tempat_lahir\" class=\"span3\" style=\"margin-bottom:0px;\" value=\"";
     // line 65
     echo twig_escape_filter($this->env, set_value("tempat_lahir", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tempat_lahir", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tempat_lahir") : ""), "html", null, true);
     echo "\">\n                    </td>\n                <tr>\n                <tr>\n                    <th>Tanggal Lahir</th>\n                    <td>\n                        <select class=\"span2\" style=\"width: 10%;\" name=\"tgl_lahir\">\n                            <option value=\"\">Tgl</option>\n                            ";
     // line 73
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 31));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 74
         echo "                                <option value=\"";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("tgl_lahir", isset($context["i"]) ? $context["i"] : null, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tgl_lahir", array(), "any", true, true) && (isset($context["i"]) ? $context["i"] : null) == $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tgl_lahir") ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "</option>\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 76
     echo "                        </select>\n                        <select class=\"span2\" style=\"width: 17%;\" name=\"bln_lahir\">\n                            <option value=\"\">Bulan</option>\n                            ";
     // line 79
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 12));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 80
         echo "                                <option value=\"";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("bln_lahir", isset($context["i"]) ? $context["i"] : null, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "bln_lahir", array(), "any", true, true) && (isset($context["i"]) ? $context["i"] : null) == $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "bln_lahir") ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, get_indo_bulan(isset($context["i"]) ? $context["i"] : null), "html", null, true);
         echo "</option>\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 82
     echo "                        </select>\n                        <input type=\"text\" name=\"thn_lahir\" class=\"span1\" maxlength=\"4\" value=\"";
     // line 83
     echo twig_escape_filter($this->env, set_value("thn_lahir", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "thn_lahir", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "thn_lahir") : ""), "html", null, true);
     echo "\" placeholder=\"Tahun\">\n                    </td>\n                <tr>\n                <tr>\n                    <th>Alamat</th>\n                    <td>\n                        <input type=\"text\" name=\"alamat\" class=\"span4\" style=\"margin-bottom:0px;\" value=\"";
     // line 89
     echo twig_escape_filter($this->env, set_value("alamat", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "alamat", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "alamat") : ""), "html", null, true);
     echo "\">\n                    </td>\n                <tr>\n                ";
     // line 92
     if (is_admin() == true) {
         // line 93
         echo "                <tr>\n                    <th>Status</th>\n                    <td>\n                        <p style=\"margin-top:0px; margin-bottom:5px;\">\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"0\" ";
         // line 97
         echo twig_escape_filter($this->env, set_checkbox("status_id[]", "0", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(0, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
         echo "> Pending</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"1\" ";
         // line 98
         echo twig_escape_filter($this->env, set_checkbox("status_id[]", "1", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(1, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
         echo "> Aktif</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"2\" ";
         // line 99
         echo twig_escape_filter($this->env, set_checkbox("status_id[]", "2", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(2, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
         echo "> Blocking</label>\n                        </p>\n                    </td>\n                <tr>\n                <tr>\n                    <th>Username</th>\n                    <td>\n                        <input type=\"text\" name=\"username\" class=\"span3\" style=\"margin-bottom:0px;\" value=\"";
         // line 106
         echo twig_escape_filter($this->env, set_value("username", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "username", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "username") : ""), "html", null, true);
         echo "\">\n                    </td>\n                </tr>\n                ";
     }
     // line 110
     echo "                <tr>\n                    <th>Opsi</th>\n                    <td>\n                        <label><input type=\"checkbox\" name=\"is_admin\" value=\"1\" style=\"margin-top:-2px;\" ";
     // line 113
     echo twig_escape_filter($this->env, set_checkbox("is_admin", "1", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "is_admin", array(), "any", true, true) && $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "is_admin") == 1 ? true : false), "html", null, true);
     echo "> Administrator</label>\n                    </td>\n                </tr>\n                <tr>\n                    <td></td>\n                    <td>\n                        <button type=\"submit\" class=\"btn btn-primary\">Filter</button>\n                    </td>\n                </tr>\n            </table>\n            ";
     // line 123
     echo form_close();
     echo "\n        </div>\n\n        <br>\n\n        ";
     // line 128
     echo form_open("pengajar/filter_action");
     echo "\n        <table class=\"table table-striped\">\n            <thead>\n                <tr>\n                    <th width=\"7%\">\n                        ";
     // line 133
     if (is_admin() && ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2)) {
         // line 134
         echo "                            <input type=\"checkbox\" style=\"margin-top:-2px;\" onclick=\"ch_uch_checkbox(this)\">\n                        ";
     }
     // line 136
     echo "                        ID\n                    </th>\n                    <th>Informasi Pengajar</th>\n                    <th width=\"22%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 143
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pengajars"]) ? $context["pengajars"] : null);
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 144
         echo "                <tr>\n                    <td>\n                        ";
         // line 146
         if (is_admin() && ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2)) {
             // line 147
             echo "                            <input type=\"checkbox\" name=\"pengajar_id[]\" value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
             echo "\" style=\"margin-top:-2px;\">\n                        ";
         }
         // line 149
         echo "                        <b>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "</b>\n                    </td>\n                    <td>\n                        <img style=\"height:40px;width:40px; margin-right: 10px;\" class=\"img-polaroid img-circle pull-left\" src=\"";
         // line 152
         echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "foto"), "medium", $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin")), "html", null, true);
         echo "\">\n                        <b>";
         // line 153
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
         echo " ";
         echo !twig_test_empty($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip")) ? "<span class=\"text-muted\">(" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip") . ")</span>" : "";
         echo "</b>\n                        ";
         // line 154
         $context["is_admin"] = get_row_data("login_model", "retrieve", array(0 => null, 1 => null, 2 => null, 3 => null, 4 => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "is_admin");
         // line 155
         echo "                        ";
         if ((isset($context["is_admin"]) ? $context["is_admin"] : null) == 1) {
             // line 156
             echo "                            <span class=\"label label-warning\">Administrator</span>\n                        ";
         }
         // line 158
         echo "                        <br><b>Alamat :</b> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "alamat"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        <ul class=\"nav nav-pills\" style=\"margin-bottom:0px;\">\n                            ";
         // line 162
         if (is_admin() == true) {
             // line 163
             echo "                            <li><a class=\"btn btn-default btn-small\" href=\"";
             echo twig_escape_filter($this->env, site_url("pengajar/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
             echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                            <li class=\"dropdown\">\n                                <a class=\"btn btn-default btn-small\" href=\"#\" id=\"act-";
             // line 165
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
             echo "\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"icon-edit\"></i> Edit <b class=\"caret\" style=\"margin-top:5px;\"></b></a>\n                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"act-";
             // line 166
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
             echo "\">\n                                    <li>";
             // line 167
             echo anchor("pengajar/edit_profile/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Profil", array("class" => "iframe-4", "title" => "Edit Profil Pengajar"));
             echo "</li>\n                                    <li>";
             // line 168
             echo anchor("pengajar/edit_picture/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Foto", array("class" => "iframe-5", "title" => "Edit Foto Pengajar"));
             echo "</li>\n                                    <li>";
             // line 169
             echo anchor("pengajar/edit_username/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Username", array("class" => "iframe-2", "title" => "Edit Username Pengajar"));
             echo "</li>\n                                    <li>";
             // line 170
             echo anchor("pengajar/edit_password/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Password", array("class" => "iframe-3", "title" => "Edit Password Pengajar"));
             echo "</li>\n                                </ul>\n                            </li>\n                            ";
         } else {
             // line 174
             echo "                            <li><a class=\"btn btn-default btn-small\" href=\"";
             echo twig_escape_filter($this->env, site_url("pengajar/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
             echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                            ";
         }
         // line 176
         echo "                        </ul>\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 180
     echo "            </tbody>\n        </table>\n\n        ";
     // line 183
     if (is_admin() && !twig_test_empty(isset($context["pengajars"]) ? $context["pengajars"] : null)) {
         // line 184
         echo "        <br>\n        <div class=\"row-fluid\">\n            <div class=\"span8\">\n                <table cellpadding=\"5\">\n                    <tr>\n                        <th valign=\"top\">Aksi Terpilih</th>\n                        <td valign=\"top\">\n                            <select name=\"status_id\" style=\"width:auto;\">\n                                <option value=\"\">--Update Status--</option>\n                                <option value=\"1\">Aktif</option>\n                                <option value=\"2\">Blocking</option>\n                            </select>\n                        </td>\n                        <td valign=\"top\">\n                            <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n        ";
     }
     // line 205
     echo "\n        ";
     // line 206
     echo form_close();
     echo "\n\n        <br>\n        ";
     // line 209
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Tambah Jadwal Mengajar Hari ";
     echo twig_escape_filter($this->env, get_indo_hari(isset($context["hari_id"]) ? $context["hari_id"] : null), "html", null, true);
     echo "</h4>\n";
     // line 5
     echo get_flashdata("add");
     echo "\n\n";
     // line 7
     echo form_open("pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["pengajar_id"]) ? $context["pengajar_id"] : null) . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null));
     echo "\n<input type=\"hidden\" name=\"pengajar_id\" value=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["pengajar_id"]) ? $context["pengajar_id"] : null, "html", null, true);
     echo "\">\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <th width=\"27%\">Kelas <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"kelas_id\" style=\"width:auto;\" id=\"kelas_id\">\n                    <option value=\"\">Pilih Kelas</option>\n                    ";
     // line 16
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
         // line 17
         echo "                    <option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("kelas_id", $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id")), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
         echo "</option>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 19
     echo "                </select>\n                <br>";
     // line 20
     echo form_error("kelas_id");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Mapel <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"mapel_kelas_id\" style=\"width:auto\" id=\"mapel_kelas_id\">\n                    <option value=\"\">Pilih Matapelajaran</option>\n                    ";
     // line 28
     if (!twig_test_empty(get_post_data("kelas_id"))) {
         // line 29
         echo "                        ";
         $context["post_kelas_id"] = get_post_data("kelas_id");
         // line 30
         echo "                        ";
         $context["mapel_kelas"] = get_row_data("mapel_model", "retrieve_all_kelas", array(0 => null, 1 => isset($context["post_kelas_id"]) ? $context["post_kelas_id"] : null));
         // line 31
         echo "                        ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["mapel_kelas"]) ? $context["mapel_kelas"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["mk"]) {
             // line 32
             echo "                            ";
             $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
             // line 33
             echo "                            ";
             if (!twig_test_empty(isset($context["m"]) ? $context["m"] : null)) {
                 // line 34
                 echo "                            <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "id"), "html", null, true);
                 echo "\" ";
                 echo get_post_data("mapel_kelas_id") == $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "id") ? "selected" : "";
                 echo ">";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</option>\n                            ";
             }
             // line 36
             echo "                        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 37
         echo "                    ";
     }
     // line 38
     echo "                </select>\n                <br><span class=\"text-muted\">Pilih kelas terlebih dahulu</span>\n                <br>";
     // line 40
     echo form_error("mapel_kelas_id");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Jam Mulai <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"jam_mulai\" style=\"width:19%\" placeholder=\"hh:mm\" value=\"";
     // line 46
     echo twig_escape_filter($this->env, set_value("jam_mulai"), "html", null, true);
     echo "\">\n                <span class=\"pull-right text-muted\">Contoh : 08:30</span>\n                <br>";
     // line 48
     echo form_error("jam_mulai");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Jam Selesai <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"jam_selesai\" style=\"width:19%\" placeholder=\"hh:mm\" value=\"";
     // line 54
     echo twig_escape_filter($this->env, set_value("jam_selesai"), "html", null, true);
     echo "\">\n                <span class=\"pull-right text-muted\">Contoh : 13:30</span>\n                <br>";
     // line 56
     echo form_error("jam_selesai");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <td colspan=\"2\"><button type=\"submit\" class=\"btn btn-primary\">Simpan</button></td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 64
     echo form_close();
     echo "\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Edit Jadwal Ajar</h4>\n";
     // line 5
     echo get_flashdata("edit");
     echo "\n\n";
     // line 7
     echo form_open("pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["pengajar_id"]) ? $context["pengajar_id"] : null) . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"));
     echo "\n<input type=\"hidden\" name=\"pengajar_id\" value=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["pengajar_id"]) ? $context["pengajar_id"] : null, "html", null, true);
     echo "\">\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <th width=\"27%\">Kelas <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"kelas_id\" style=\"width:auto;\" id=\"kelas_id\">\n                    ";
     // line 15
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
         // line 16
         echo "                    <option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("kelas_id", $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id") == $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id") ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
         echo "</option>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 18
     echo "                </select>\n                <br>";
     // line 19
     echo form_error("kelas_id");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Mapel <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"mapel_kelas_id\" style=\"width:auto\" id=\"mapel_kelas_id\">\n                    ";
     // line 26
     if (!twig_test_empty(get_post_data("kelas_id"))) {
         // line 27
         echo "                        ";
         $context["select_option"] = get_post_data("mapel_kelas_id");
         // line 28
         echo "                        ";
         $context["post_kelas_id"] = get_post_data("kelas_id");
         // line 29
         echo "                        ";
         $context["mapel_kelas"] = get_row_data("mapel_model", "retrieve_all_kelas", array(0 => null, 1 => isset($context["post_kelas_id"]) ? $context["post_kelas_id"] : null));
         // line 30
         echo "                    ";
     } else {
         // line 31
         echo "                        ";
         $context["select_option"] = $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id");
         // line 32
         echo "                        ";
         $context["mapel_kelas"] = get_row_data("mapel_model", "retrieve_all_kelas", array(0 => null, 1 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
         // line 33
         echo "                    ";
     }
     // line 34
     echo "\n                    ";
     // line 35
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["mapel_kelas"]) ? $context["mapel_kelas"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["mak"]) {
         // line 36
         echo "                        ";
         $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mak"]) ? $context["mak"] : null, "mapel_id")));
         // line 37
         echo "                        ";
         if (!twig_test_empty(isset($context["m"]) ? $context["m"] : null)) {
             // line 38
             echo "                        <option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mak"]) ? $context["mak"] : null, "id"), "html", null, true);
             echo "\" ";
             echo (isset($context["select_option"]) ? $context["select_option"] : null) == $this->getAttribute(isset($context["mak"]) ? $context["mak"] : null, "id") ? "selected" : "";
             echo ">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
             echo "</option>\n                        ";
         }
         // line 40
         echo "                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mak'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 41
     echo "                </select>\n                <br><span class=\"text-muted\">Pilih kelas terlebih dahulu</span>\n                <br>";
     // line 43
     echo form_error("mapel_kelas_id");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Jam Mulai <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"jam_mulai\" style=\"width:19%\" placeholder=\"hh:mm\" value=\"";
     // line 49
     echo twig_escape_filter($this->env, set_value("jam_mulai", twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i")), "html", null, true);
     echo "\">\n                <span class=\"pull-right text-muted\">Contoh : 08:30</span>\n                <br>";
     // line 51
     echo form_error("jam_mulai");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Jam Selesai <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"jam_selesai\" style=\"width:19%\" placeholder=\"hh:mm\" value=\"";
     // line 57
     echo twig_escape_filter($this->env, set_value("jam_selesai", twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i")), "html", null, true);
     echo "\">\n                <span class=\"pull-right text-muted\">Contoh : 13:30</span>\n                <br>";
     // line 59
     echo form_error("jam_selesai");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Status</th>\n            <td>\n                <label class=\"checkbox\"><input type=\"checkbox\" name=\"aktif\" value=\"1\" ";
     // line 65
     echo twig_escape_filter($this->env, set_checkbox("aktif", "1", $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 1 ? true : false), "html", null, true);
     echo "> Aktif</label>\n                <br>";
     // line 66
     echo form_error("aktif");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <td colspan=\"2\"><button type=\"submit\" class=\"btn btn-primary\">Simpan</button></td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 74
     echo form_close();
     echo "\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"panel panel-default\">\n    <div class=\"panel-heading\">\n        <strong>Profil Publik</strong>\n        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n            ";
     // line 12
     echo anchor("siswa/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Profil", array("class" => "iframe-4 btn btn-small btn-primary", "title" => "Edit Profil Siswa"));
     echo "\n            ";
     // line 13
     echo anchor("siswa/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Siswa"));
     echo "\n        </div>\n    </div>\n    <div class=\"panel-body\">\n        <table class=\"table\">\n            <tr>\n                <th bgcolor=\"#FBFBFB\" width=\"25%\" style=\"border-top: 0px;\">NIS</th>\n                <td style=\"border-top: 0px;\">";
     // line 20
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "nis"), "html", null, true);
     echo "</td>\n                <td rowspan=\"5\" width=\"15%\" style=\"border-top: 0px;\">\n                    <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 22
     echo twig_escape_filter($this->env, get_url_image_siswa($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "foto"), "medium", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                </td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Nama</th>\n                <td>";
     // line 27
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "nama"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                <td>";
     // line 31
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Tahun Masuk</th>\n                <td colspan=\"2\">";
     // line 35
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tahun_masuk"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                <td>";
     // line 39
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                <td>";
     // line 43
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Agama</th>\n                <td colspan=\"2\">";
     // line 47
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Alamat</th>\n                <td colspan=\"2\">";
     // line 51
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "alamat"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Status</th>\n                <td colspan=\"2\">\n                    ";
     // line 56
     if ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 0) {
         // line 57
         echo "                        Pending\n                    ";
     } elseif ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 1) {
         // line 59
         echo "                        Aktif\n                    ";
     } elseif ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 2) {
         // line 61
         echo "                        Blocking\n                    ";
     } elseif ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == 3) {
         // line 63
         echo "                        Alumni\n                    ";
     }
     // line 65
     echo "                </td>\n            </tr>\n        </table>\n    </div>\n</div>\n\n<div class=\"row-fluid\">\n    <div class=\"span6\">\n        <div class=\"panel panel-default\" id=\"riwayat-kelas\">\n            <div class=\"panel-heading\">\n                <strong>Riwayat Kelas</strong>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table table-striped\">\n                <thead>\n                    <tr>\n                        <th width=\"5%\">No</th>\n                        <th>Kelas</th>\n                        ";
     // line 83
     if ((isset($context["status_id"]) ? $context["status_id"] : null) != 3) {
         // line 84
         echo "                            <th>Aktif</th>\n                        ";
     }
     // line 86
     echo "                    </tr>\n                </thead>\n                <tbody>\n                    ";
     // line 89
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["siswa_kelas"]) ? $context["siswa_kelas"] : null, "results"));
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 90
         echo "                    <tr>\n                        <td>";
         // line 91
         echo twig_escape_filter($this->env, isset($context["no"]) ? $context["no"] : null, "html", null, true);
         echo ".</td>\n                        <td>\n                            ";
         // line 93
         echo twig_escape_filter($this->env, get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "kelas_id"), 1 => true), "nama"), "html", null, true);
         echo "\n                        </td>\n                        ";
         // line 95
         if ((isset($context["status_id"]) ? $context["status_id"] : null) != 3) {
             // line 96
             echo "                        <td>\n                            ";
             // line 97
             if ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "aktif") == 1) {
                 // line 98
                 echo "                                <i class=\"icon icon-ok\"></i>\n                            ";
             }
             // line 100
             echo "                        </td>\n                        ";
         }
         // line 102
         echo "                    </tr>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 104
     echo "                </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n    <div class=\"span6\">\n        <div class=\"panel panel-default\" id=\"akun\">\n            <div class=\"panel-heading\">\n                <strong>Akun Login</strong>\n                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
     // line 114
     echo anchor("siswa/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username Siswa"));
     echo "\n                    ";
     // line 115
     echo anchor("siswa/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password Siswa"));
     echo "\n                </div>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tbody>\n                        <tr>\n                            <th width=\"30%\" bgcolor=\"#FBFBFB\" style=\"border-top: 0px;\">Username</th>\n                            <td style=\"border-top: 0px;\">\n                                ";
     // line 124
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["siswa_login"]) ? $context["siswa_login"] : null, "username"), "html", null, true);
     echo "\n                            </td>\n                        </tr>\n                        <tr>\n                            <th bgcolor=\"#FBFBFB\">Password</th>\n                            <td>\n                                *********\n                            </td>\n                        </tr>\n                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("siswa");
     echo "\n\n        <div class=\"row-fluid\">\n        <div class=\"span7\">\n            <a href=\"";
     // line 13
     echo twig_escape_filter($this->env, site_url("admin/siswa/add/1"), "html", null, true);
     echo "\" class=\"btn btn-primary\">Tambah Siswa</a>\n        </div>\n\n        <div class=\"span5\">\n            <div class=\"btn-group\">\n                ";
     // line 18
     echo anchor("admin/siswa/list/1", "Aktif", array("class" => "btn btn-default"));
     echo "\n                ";
     // line 19
     echo anchor("admin/siswa/list/0", "Pending", array("class" => "btn btn-default"));
     echo "\n                ";
     // line 20
     echo anchor("admin/siswa/list/2", "Blocking", array("class" => "btn btn-default"));
     echo "\n                ";
     // line 21
     echo anchor("admin/siswa/list/3", "Alumni", array("class" => "btn btn-default"));
     echo "\n                ";
     // line 22
     echo anchor("admin/siswa/filter", "<i class=\"icon-search\" style=\"line-height: 0px;\"></i> Filter", array("class" => "btn btn-info"));
     echo "\n            </div>\n        </div>\n        </div>\n\n        <br>\n\n        <div class=\"bs-callout bs-callout-info\">\n            <b><a id=\"button\" href=\"javascript:void(0)\">PARAMETER PENCARIAN</a></b>\n            ";
     // line 31
     echo form_open("admin/siswa/filter");
     echo "\n            <table class=\"table table-condensed\" id=\"form-search\">\n                <tr>\n                    <th width=\"20%\">NIS</th>\n                    <td>\n                        <input type=\"text\" name=\"nis\" class=\"span2\" style=\"margin-bottom:0px;\" value=\"";
     // line 36
     echo twig_escape_filter($this->env, set_value("nis", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nis", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nis") : ""), "html", null, true);
     echo "\">\n                    </td>\n                </tr>\n                <tr>\n                    <th>Nama</th>\n                    <td>\n                        <input type=\"text\" name=\"nama\" class=\"span4\" style=\"margin-bottom:0px;\" value=\"";
     // line 42
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nama", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "nama") : ""), "html", null, true);
     echo "\">\n                    </td>\n                </tr>\n                <tr>\n                    <th>Jenis Kelamin</th>\n                    <td>\n                        <p style=\"margin-top:0px; margin-bottom:5px;\">\n                        <label class=\"checkbox inline\">\n                            <input type=\"checkbox\" name=\"jenis_kelamin[]\" value=\"Laki-laki\" ";
     // line 50
     echo twig_escape_filter($this->env, set_checkbox("jenis_kelamin[]", "Laki-laki", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin", array(), "any", true, true) && twig_in_filter("Laki-laki", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin")) ? true : false), "html", null, true);
     echo "> Laki-laki\n                        </label>\n                        <label class=\"checkbox inline\">\n                            <input type=\"checkbox\" name=\"jenis_kelamin[]\" value=\"Perempuan\" ";
     // line 53
     echo twig_escape_filter($this->env, set_checkbox("jenis_kelamin[]", "Perempuan", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin", array(), "any", true, true) && twig_in_filter("Perempuan", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "jenis_kelamin")) ? true : false), "html", null, true);
     echo "> Perempuan\n                        </label>\n                        </p>\n                    </td>\n                <tr>\n                <tr>\n                    <th>Tahun Masuk</th>\n                    <td>\n                        <input type=\"text\" name=\"tahun_masuk\" maxlength=\"4\" style=\"width:15%;margin-bottom:0px;\" value=\"";
     // line 61
     echo twig_escape_filter($this->env, set_value("tahun_masuk", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tahun_masuk", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tahun_masuk") : ""), "html", null, true);
     echo "\">\n                    </td>\n                <tr>\n                <tr>\n                    <th>Tempat Lahir</th>\n                    <td>\n                        <input type=\"text\" name=\"tempat_lahir\" class=\"span3\" style=\"margin-bottom:0px;\" value=\"";
     // line 67
     echo twig_escape_filter($this->env, set_value("tempat_lahir", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tempat_lahir", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tempat_lahir") : ""), "html", null, true);
     echo "\">\n                    </td>\n                <tr>\n                <tr>\n                    <th>Tanggal Lahir</th>\n                    <td>\n                        <select class=\"span2\" style=\"width: 10%;\" name=\"tgl_lahir\">\n                            <option value=\"\">Tgl</option>\n                            ";
     // line 75
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 31));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 76
         echo "                                <option value=\"";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("tgl_lahir", isset($context["i"]) ? $context["i"] : null, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tgl_lahir", array(), "any", true, true) && (isset($context["i"]) ? $context["i"] : null) == $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "tgl_lahir") ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "</option>\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 78
     echo "                        </select>\n                        <select class=\"span2\" style=\"width: 17%;\" name=\"bln_lahir\">\n                            <option value=\"\">Bulan</option>\n                            ";
     // line 81
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 12));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 82
         echo "                                <option value=\"";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("bln_lahir", isset($context["i"]) ? $context["i"] : null, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "bln_lahir", array(), "any", true, true) && (isset($context["i"]) ? $context["i"] : null) == $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "bln_lahir") ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, get_indo_bulan(isset($context["i"]) ? $context["i"] : null), "html", null, true);
         echo "</option>\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 84
     echo "                        </select>\n                        <input type=\"text\" name=\"thn_lahir\" class=\"span1\" maxlength=\"4\" value=\"";
     // line 85
     echo twig_escape_filter($this->env, set_value("thn_lahir", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "thn_lahir", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "thn_lahir") : ""), "html", null, true);
     echo "\" placeholder=\"Tahun\">\n                    </td>\n                <tr>\n                <tr>\n                    <th>Alamat</th>\n                    <td>\n                        <input type=\"text\" name=\"alamat\" class=\"span4\" style=\"margin-bottom:0px;\" value=\"";
     // line 91
     echo twig_escape_filter($this->env, set_value("alamat", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "alamat", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "alamat") : ""), "html", null, true);
     echo "\">\n                    </td>\n                <tr>\n                <tr>\n                    <th>Agama</th>\n                    <td>\n                        <p style=\"margin-top:0px; margin-bottom:5px;\">\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"agama[]\" value=\"ISLAM\" ";
     // line 98
     echo twig_escape_filter($this->env, set_checkbox("agama[]", "ISLAM", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama", array(), "any", true, true) && twig_in_filter("ISLAM", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama")) ? true : false), "html", null, true);
     echo ">ISLAM</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"agama[]\" value=\"KRISTEN\" ";
     // line 99
     echo twig_escape_filter($this->env, set_checkbox("agama[]", "KRISTEN", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama", array(), "any", true, true) && twig_in_filter("KRISTEN", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama")) ? true : false), "html", null, true);
     echo ">KRISTEN</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"agama[]\" value=\"KATOLIK\" ";
     // line 100
     echo twig_escape_filter($this->env, set_checkbox("agama[]", "KATOLIK", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama", array(), "any", true, true) && twig_in_filter("KATOLIK", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama")) ? true : false), "html", null, true);
     echo ">KATOLIK</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"agama[]\" value=\"HINDU\" ";
     // line 101
     echo twig_escape_filter($this->env, set_checkbox("agama[]", "HINDU", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama", array(), "any", true, true) && twig_in_filter("HINDU", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama")) ? true : false), "html", null, true);
     echo ">HINDU</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"agama[]\" value=\"BUDHA\" ";
     // line 102
     echo twig_escape_filter($this->env, set_checkbox("agama[]", "BUDHA", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama", array(), "any", true, true) && twig_in_filter("BUDHA", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "agama")) ? true : false), "html", null, true);
     echo ">BUDHA</label>\n                        </p>\n                    </td>\n                <tr>\n                <tr>\n                    <th>Kelas</th>\n                    <td>\n                        <ul class=\"unstyled inline\" style=\"margin-left: -5px;\">\n                            ";
     // line 110
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["kelas_all"]) ? $context["kelas_all"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
         // line 111
         echo "                                <li><label class=\"checkbox inline\"><input type=\"checkbox\" name=\"kelas_id[]\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_checkbox("kelas_id[]", $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "kelas_id", array(), "any", true, true) && twig_in_filter($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "kelas_id")) ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
         echo "</label></li>\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 113
     echo "                        </ul>\n                    </td>\n                <tr>\n                <tr>\n                    <th>Status</th>\n                    <td>\n                        <p style=\"margin-top:0px; margin-bottom:5px;\">\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"0\" ";
     // line 120
     echo twig_escape_filter($this->env, set_checkbox("status_id[]", "0", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(0, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
     echo "> Pending</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"1\" ";
     // line 121
     echo twig_escape_filter($this->env, set_checkbox("status_id[]", "1", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(1, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
     echo "> Aktif</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"2\" ";
     // line 122
     echo twig_escape_filter($this->env, set_checkbox("status_id[]", "2", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(2, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
     echo "> Blocking</label>\n                            <label class=\"checkbox inline\"><input type=\"checkbox\" name=\"status_id[]\" value=\"3\" ";
     // line 123
     echo twig_escape_filter($this->env, set_checkbox("status_id[]", "3", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id", array(), "any", true, true) && twig_in_filter(3, $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "status_id")) ? true : false), "html", null, true);
     echo "> Alumni</label>\n                        </p>\n                    </td>\n                <tr>\n                <tr>\n                    <th>Username</th>\n                    <td>\n                        <input type=\"text\" name=\"username\" class=\"span3\" style=\"margin-bottom:0px;\" value=\"";
     // line 130
     echo twig_escape_filter($this->env, set_value("username", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "username", array(), "any", true, true) ? $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "username") : ""), "html", null, true);
     echo "\">\n                    </td>\n                </tr>\n                <tr>\n                    <td></td>\n                    <td>\n                        <button type=\"submit\" class=\"btn btn-primary\">Filter</button>\n                    </td>\n                </tr>\n            </table>\n            ";
     // line 140
     echo form_close();
     echo "\n        </div>\n\n        <br>\n\n        ";
     // line 145
     echo form_open("admin/siswa/filter_action");
     echo "\n        <table class=\"table table-striped\">\n            <thead>\n                <tr>\n                    <th width=\"7%\">\n                        <input type=\"checkbox\" style=\"margin-top:-2px;\" onclick=\"ch_uch_checkbox(this)\">\n                        No\n                    </th>\n                    <th colspan=\"2\">Nis</th>\n                    <th>Nama</th>\n                    <th width=\"15%\">Kelas</th>\n                    <th width=\"10%\">Status</th>\n                    <th width=\"22%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 161
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["siswas"]) ? $context["siswas"] : null);
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 162
         echo "                <tr>\n                    <td>\n                        <input type=\"checkbox\" name=\"siswa_id[]\" value=\"";
         // line 164
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\" style=\"margin-top:-2px;\" ";
         echo $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") == 3 ? "disabled" : "";
         echo ">\n                        ";
         // line 165
         echo twig_escape_filter($this->env, isset($context["no"]) ? $context["no"] : null, "html", null, true);
         echo ".\n                    </td>\n                    <td width=\"5%\">\n                        <img style=\"height:30px;width:27px;\" class=\"img-polaroid\" src=\"";
         // line 168
         echo twig_escape_filter($this->env, get_url_image_siswa($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "foto"), "small", $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin")), "html", null, true);
         echo "\">\n                    </td>\n                    <td>\n                        ";
         // line 171
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nis"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        ";
         // line 174
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        ";
         // line 177
         $context["kelas_aktif"] = get_row_data("kelas_model", "retrieve_siswa", array(0 => null, 1 => array("siswa_id" => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "aktif" => "1")));
         // line 178
         echo "                        ";
         echo twig_escape_filter($this->env, get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["kelas_aktif"]) ? $context["kelas_aktif"] : null, "kelas_id"), 1 => true), "nama"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        ";
         // line 181
         if ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") == 0) {
             // line 182
             echo "                            Pending\n                        ";
         } elseif ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") == 1) {
             // line 184
             echo "                            Aktif\n                        ";
         } elseif ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") == 2) {
             // line 186
             echo "                            Blocking\n                        ";
         } elseif ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") == 3) {
             // line 188
             echo "                            Alumni\n                        ";
         }
         // line 190
         echo "                    </td>\n                    <td>\n                        <ul class=\"nav nav-pills\" style=\"margin-bottom:0px;\">\n                            <li><a class=\"btn btn-default btn-small\" href=\"";
         // line 193
         echo twig_escape_filter($this->env, site_url("admin/siswa/detail/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
         echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                            <li class=\"dropdown\">\n                                <a class=\"btn btn-default btn-small\" href=\"#\" id=\"act-";
         // line 195
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"icon-edit\"></i> Edit <b class=\"caret\" style=\"margin-top:5px;\"></b></a>\n                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"act-";
         // line 196
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\">\n                                    <li>";
         // line 197
         echo anchor("admin/siswa/edit_profile/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Profil", array("class" => "iframe-4", "title" => "Edit Profil Siswa"));
         echo "</li>\n                                    <li>";
         // line 198
         echo anchor("admin/siswa/edit_picture/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Foto", array("class" => "iframe-5", "title" => "Edit Foto Siswa"));
         echo "</li>\n                                    ";
         // line 199
         if ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") != 3) {
             // line 200
             echo "                                    <li>";
             echo anchor("admin/siswa/moved_class/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Kelas Aktif", array("class" => "iframe", "title" => "Edit Kelas Aktif"));
             echo "</li>\n                                    ";
         }
         // line 202
         echo "                                    <li>";
         echo anchor("admin/siswa/edit_username/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Username", array("class" => "iframe-2", "title" => "Edit Username Siswa"));
         echo "</li>\n                                    <li>";
         // line 203
         echo anchor("admin/siswa/edit_password/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "status_id") . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Password", array("class" => "iframe-3", "title" => "Edit Password Siswa"));
         echo "</li>\n                                </ul>\n                            </li>\n                        </ul>\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 210
     echo "            </tbody>\n        </table>\n\n        ";
     // line 213
     if (!twig_test_empty(isset($context["siswas"]) ? $context["siswas"] : null)) {
         // line 214
         echo "        <br>\n        <div class=\"row-fluid\">\n            <div class=\"span8\">\n                <table cellpadding=\"5\">\n                    <tr>\n                        <th valign=\"top\">Aksi Terpilih</th>\n                        <td valign=\"top\">\n                            <select name=\"status_id\" style=\"width:auto;\">\n                                <option value=\"\">--Update Status--</option>\n                                <option value=\"1\">Aktif</option>\n                                <option value=\"2\">Blocking</option>\n                                <option value=\"3\">Alumni</option>\n                            </select>\n                        </td>\n                        <td valign=\"top\">\n                            <select name=\"kelas_id\" style=\"width:auto;\">\n                                <option value=\"\">--Pindah Kelas--</option>\n                                ";
         // line 231
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
             // line 232
             echo "                                    <option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
             echo "</option>\n                                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 234
         echo "                            </select>\n                        </td>\n                        <td valign=\"top\">\n                            <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n        ";
     }
     // line 244
     echo "\n        ";
     // line 245
     echo form_close();
     echo "\n\n        <br>\n        ";
     // line 248
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Data Pengajar</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("pengajar");
     echo "\n\n        <div class=\"row-fluid\">\n            <div class=\"span8\">\n                <a href=\"";
     // line 17
     echo twig_escape_filter($this->env, site_url("pengajar/add/" . (isset($context["status_id"]) ? $context["status_id"] : null)), "html", null, true);
     echo "\" class=\"btn btn-primary\">Tambah Pengajar</a>\n            </div>\n\n            <div class=\"span4\">\n                <div class=\"btn-group\">\n                    ";
     // line 22
     echo anchor("pengajar/index/1", "Aktif", array("class" => (isset($context["status_id"]) ? $context["status_id"] : null) == 1 ? "btn btn-info" : "btn btn-default"));
     echo "\n                    ";
     // line 23
     echo anchor("pengajar/index/0", "Pending", array("class" => (isset($context["status_id"]) ? $context["status_id"] : null) == 0 ? "btn btn-info" : "btn btn-default"));
     echo "\n                    ";
     // line 24
     echo anchor("pengajar/index/2", "Blocking", array("class" => (isset($context["status_id"]) ? $context["status_id"] : null) == 2 ? "btn btn-info" : "btn btn-default"));
     echo "\n                    ";
     // line 25
     echo anchor("pengajar/filter", "<i class=\"icon-search\" style=\"line-height: 0px;\"></i> Filter", array("class" => "btn btn-default"));
     echo "\n                </div>\n            </div>\n        </div>\n        <br>\n\n        ";
     // line 31
     echo form_open("pengajar/index/" . (isset($context["status_id"]) ? $context["status_id"] : null));
     echo "\n        <table class=\"table table-striped\">\n            <thead>\n                <tr>\n                    <th width=\"7%\">\n                        ";
     // line 36
     if ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2) {
         // line 37
         echo "                            <input type=\"checkbox\" style=\"margin-top:-2px;\" onclick=\"ch_uch_checkbox(this)\">\n                        ";
     }
     // line 39
     echo "                        ID\n                    </th>\n                    <th>Informasi Pengajar</th>\n                    <th width=\"22%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 46
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pengajar"]) ? $context["pengajar"] : null);
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 47
         echo "                <tr>\n                    <td>\n                        ";
         // line 49
         if ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2) {
             // line 50
             echo "                            <input type=\"checkbox\" name=\"pengajar_id[]\" value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
             echo "\" style=\"margin-top:-2px;\">\n                        ";
         }
         // line 52
         echo "                        <b>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "</b>\n                    </td>\n                    <td>\n                        <img style=\"height:40px;width:40px; margin-right: 10px;\" class=\"img-polaroid img-circle pull-left\" src=\"";
         // line 55
         echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "foto"), "medium", $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin")), "html", null, true);
         echo "\">\n                        <b>";
         // line 56
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
         echo " ";
         echo !twig_test_empty($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip")) ? "<span class=\"text-muted\">(" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip") . ")</span>" : "";
         echo "</b>\n                        ";
         // line 57
         $context["is_admin"] = get_row_data("login_model", "retrieve", array(0 => null, 1 => null, 2 => null, 3 => null, 4 => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "is_admin");
         // line 58
         echo "                        ";
         if ((isset($context["is_admin"]) ? $context["is_admin"] : null) == 1) {
             // line 59
             echo "                            <span class=\"label label-warning\">Administrator</span>\n                        ";
         }
         // line 61
         echo "                        <br><b>Alamat :</b> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "alamat"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        <ul class=\"nav nav-pills\" style=\"margin-bottom:0px;\">\n                            <li><a class=\"btn btn-default btn-small\" href=\"";
         // line 65
         echo twig_escape_filter($this->env, site_url("pengajar/detail/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
         echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                            <li class=\"dropdown\">\n                                <a class=\"btn btn-default btn-small\" href=\"#\" id=\"act-";
         // line 67
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"icon-edit\"></i> Edit <b class=\"caret\" style=\"margin-top:5px;\"></b></a>\n                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"act-";
         // line 68
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\">\n                                    <li>";
         // line 69
         echo anchor("pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Profil", array("class" => "iframe-4", "title" => "Edit Profil Pengajar"));
         echo "</li>\n                                    <li>";
         // line 70
         echo anchor("pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Foto", array("class" => "iframe-5", "title" => "Edit Foto Pengajar"));
         echo "</li>\n                                    <li>";
         // line 71
         echo anchor("pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Username", array("class" => "iframe-2", "title" => "Edit Username Pengajar"));
         echo "</li>\n                                    <li>";
         // line 72
         echo anchor("pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Password", array("class" => "iframe-3", "title" => "Edit Password Pengajar"));
         echo "</li>\n                                </ul>\n                            </li>\n                        </ul>\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 79
     echo "            </tbody>\n        </table>\n\n        ";
     // line 82
     if (!twig_test_empty(isset($context["pengajar"]) ? $context["pengajar"] : null) && ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2)) {
         // line 83
         echo "        <br>\n        <div class=\"row-fluid\">\n            <div class=\"span7\">\n                <table cellpadding=\"5\">\n                    <tr>\n                        <th valign=\"top\">Update Status Terpilih</th>\n                        <td valign=\"top\">\n                            <select name=\"status_id\" style=\"width:100%;\">\n                                <option>--Pilih Status--</option>\n                                <option value=\"1\">Aktif</option>\n                                ";
         // line 93
         if ((isset($context["status_id"]) ? $context["status_id"] : null) == 0) {
             // line 94
             echo "                                <option value=\"2\">Blocking</option>\n                                ";
         }
         // line 96
         echo "                            </select>\n                        </td>\n                        <td valign=\"top\">\n                            <button type=\"submit\" class=\"btn\">Update</button>\n                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n        ";
     }
     // line 106
     echo "\n        ";
     // line 107
     echo form_close();
     echo "\n\n        <br>\n        ";
     // line 110
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"row-fluid\">\n    <div class=\"span12\">\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Jadwal Mengajar</strong>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <thead>\n                        <tr bgcolor=\"#fbfbfb\">\n                            <th>HARI</th>\n                            <th>MATAPELAJARAN DAN JAM</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        ";
     // line 23
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(get_indo_hari());
     foreach ($context['_seq'] as $context["hari_id"] => $context["h"]) {
         // line 24
         echo "                        <tr>\n                            <th width=\"15%\">";
         // line 25
         echo twig_escape_filter($this->env, isset($context["h"]) ? $context["h"] : null, "html", null, true);
         echo "</th>\n                            <td>\n                                ";
         // line 27
         echo anchor("pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null), "Tambah", array("class" => "iframe btn btn-small btn-primary", "title" => "Tambah jadwal hari " . (isset($context["h"]) ? $context["h"] : null)));
         echo "\n                                ";
         // line 28
         $context["retrieve_all_ma"] = get_row_data("pengajar_model", "retrieve_all_ma", array(0 => isset($context["hari_id"]) ? $context["hari_id"] : null, 1 => $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), 2 => null));
         // line 29
         echo "                                ";
         if (!twig_test_empty(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null)) {
             // line 30
             echo "                                <table style=\"margin-top:10px;\" class=\"table table-condensed\">\n                                    ";
             // line 31
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["ma"]) {
                 // line 32
                 echo "                                        ";
                 $context["mk"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id")));
                 // line 33
                 echo "                                        ";
                 $context["k"] = get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
                 // line 34
                 echo "                                        ";
                 $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
                 // line 35
                 echo "                                        <tr ";
                 echo $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 0 ? "class=\"error text-muted\"" : "class=\"info text-info\"";
                 echo ">\n                                            <td width=\"15%\">";
                 // line 36
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i"), "html", null, true);
                 echo "</td>\n                                            <td>";
                 // line 37
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                            <td width=\"20%\">";
                 // line 38
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                            <td width=\"10%\">\n                                                ";
                 // line 40
                 echo anchor("pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-edit\"></i> Edit", array("title" => "Edit Jadwal Ajar", "class" => "iframe-6"));
                 echo "\n                                            </td>\n                                        </tr>\n                                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ma'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 44
             echo "                                </table>\n                                ";
         }
         // line 46
         echo "                            </td>\n                        </tr>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['hari_id'], $context['h'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 49
     echo "                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>\n";
 }
예제 #12
0
/**
 * Method untuk cek apakah password siswa sama dengan nis
 *
 * @return boolean
 */
function pass_siswa_equal_nis()
{
    if (is_siswa()) {
        $nis_siswa = get_sess_data('user', 'nis');
        if (empty($nis_siswa)) {
            return false;
        }
        # ambil nis siswa
        $nis = get_row_data('siswa_model', 'retrieve', array('id' => get_sess_data('user', 'id')), 'nis');
        if (empty($nis)) {
            return false;
        }
        $md5_nis = md5($nis);
        # dapatkan password siswa
        $md5_pass = get_row_data('login_model', 'retrieve', array('id' => get_sess_data('login', 'id')), 'password');
        if ($md5_nis == $md5_pass) {
            return true;
        }
    }
    return false;
}
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("pengajar");
     echo "\n\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Profil pengajar</strong>\n                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
     // line 15
     echo anchor("admin/pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Profil", array("class" => "iframe-4 btn btn-small btn-primary", "title" => "Edit Profil Pengajar"));
     echo "\n                    ";
     // line 16
     echo anchor("admin/pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Pengajar"));
     echo "\n                </div>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\" width=\"25%\">NIP</th>\n                        <td>";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nip"), "html", null, true);
     echo "</td>\n                        <td rowspan=\"5\" width=\"15%\">\n                            <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 25
     echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto"), "medium", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                        </td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Nama</th>\n                        <td>";
     // line 30
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                        <td>";
     // line 34
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                        <td>";
     // line 38
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                        <td>";
     // line 42
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Alamat</th>\n                        <td colspan=\"2\">";
     // line 46
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "alamat"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Status</th>\n                        <td colspan=\"2\">\n                            ";
     // line 51
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 0) {
         // line 52
         echo "                                Pending\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 1) {
         // line 54
         echo "                                Aktif\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 2) {
         // line 56
         echo "                                Blocking\n                            ";
     }
     // line 58
     echo "                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n\n        <div class=\"row-fluid\">\n            <div class=\"span12\">\n                <div class=\"panel panel-default\" id=\"riwayat-kelas\">\n                    <div class=\"panel-heading\">\n                        <strong>Jadwal Matapelajaran Ajar</strong>\n                    </div>\n                    <div class=\"panel-body\">\n                        <div class=\"bs-callout bs-callout-info\">\n                            <p>\n                                Atur matapelajaran dan jadwal mengajar <b>";
     // line 73
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</b>.\n                                <br><b>Note:</b> Jadwal tidak dapat di hapus, namun dapat di ubah menjadi tidak aktif.\n                            </p>\n                        </div>\n                        <br>\n                        <table class=\"table\">\n                            <thead>\n                                <tr bgcolor=\"#fbfbfb\">\n                                    <th>HARI</th>\n                                    <th>MATAPELAJARAN DAN JAM</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                ";
     // line 86
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(get_indo_hari());
     foreach ($context['_seq'] as $context["hari_id"] => $context["h"]) {
         // line 87
         echo "                                <tr>\n                                    <th width=\"15%\">";
         // line 88
         echo twig_escape_filter($this->env, isset($context["h"]) ? $context["h"] : null, "html", null, true);
         echo "</th>\n                                    <td>\n                                        ";
         // line 90
         echo anchor("admin/pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null), "Tambah", array("class" => "iframe btn btn-small btn-primary", "title" => "Tambah jadwal hari " . (isset($context["h"]) ? $context["h"] : null)));
         echo "\n                                        ";
         // line 91
         $context["retrieve_all_ma"] = get_row_data("pengajar_model", "retrieve_all_ma", array(0 => isset($context["hari_id"]) ? $context["hari_id"] : null, 1 => $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), 2 => null));
         // line 92
         echo "                                        ";
         if (!twig_test_empty(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null)) {
             // line 93
             echo "                                        <table style=\"margin-top:10px;\" class=\"table table-condensed\">\n                                            ";
             // line 94
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["ma"]) {
                 // line 95
                 echo "                                                ";
                 $context["mk"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id")));
                 // line 96
                 echo "                                                ";
                 $context["k"] = get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
                 // line 97
                 echo "                                                ";
                 $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
                 // line 98
                 echo "                                                <tr ";
                 echo $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 0 ? "class=\"error text-muted\"" : "class=\"info text-info\"";
                 echo ">\n                                                    <td width=\"15%\">";
                 // line 99
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i"), "html", null, true);
                 echo "</td>\n                                                    <td>";
                 // line 100
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                                    <td width=\"20%\">";
                 // line 101
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                                    <td width=\"17%\">\n                                                        ";
                 // line 103
                 echo anchor("admin/pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-edit\"></i> Edit", array("title" => "Edit Jadwal Ajar", "class" => "iframe-6"));
                 echo " \n                                                        ";
                 // line 104
                 echo anchor("admin/tugas/add/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-tasks\"></i> Tugas");
                 echo "\n                                                    </td>\n                                                </tr>\n                                            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ma'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 108
             echo "                                        </table>\n                                        ";
         }
         // line 110
         echo "                                    </td>\n                                </tr>\n                                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['hari_id'], $context['h'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 113
     echo "                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row-fluid\">\n            <div class=\"span5\">\n                <div class=\"panel panel-default\" id=\"akun\">\n                    <div class=\"panel-heading\">\n                        <strong>Akun Login</strong>\n                        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                            ";
     // line 125
     echo anchor("admin/pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username pengajar"));
     echo "\n                            ";
     // line 126
     echo anchor("admin/pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password pengajar"));
     echo "\n                        </div>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <tbody>\n                                <tr>\n                                    <th width=\"30%\" bgcolor=\"#FBFBFB\">Username</th>\n                                    <td>\n                                        ";
     // line 135
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "username"), "html", null, true);
     echo "\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <th bgcolor=\"#FBFBFB\">Password</th>\n                                    <td>\n                                        *********\n                                    </td>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n\n    </div>\n</div>\n";
 }
예제 #14
0
function read_listing($params, $url = 'http://www.auto24.ee/kasutatud/nimekiri.php')
{
    $endpoint = build_query($url, $params);
    $html = scraperWiki::scrape($endpoint);
    $dom = new simple_html_dom();
    $dom->load($html);
    $totalResultsEl = $dom->find('.paginator .current-range strong');
    $totalResults = $totalResultsEl[0]->plaintext;
    $medianItem = ($totalResults + 1) / 2;
    if ($medianItem > RESULTS_PER_PAGE) {
        $listingOffset = floor($medianItem / RESULTS_PER_PAGE) * RESULTS_PER_PAGE;
        $params['ak'] = $listingOffset;
        $medianItem -= $listingOffset;
        $endpoint = build_query($url, $params);
        $html = scraperWiki::scrape($endpoint);
        $dom = new simple_html_dom();
        $dom->load($html);
    }
    $rows = $dom->find("[@id=usedVehiclesSearchResult] .result-row");
    $lPoint = floor($medianItem) - 1;
    $hPoint = ceil($medianItem) - 1;
    $a24ksi = 0;
    if ($lPoint == $hPoint) {
        $rowData = get_row_data($rows[$lPoint]);
        $a24ksi = $rowData['price'];
    } else {
        $lRowData = get_row_data($rows[$lPoint]);
        $hRowData = get_row_data($rows[$hPoint]);
        $a24ksi = round(($lRowData['price'] + $hRowData['price']) / 2);
    }
    return array('n' => $totalResults, 'val' => $a24ksi);
}
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        ";
     // line 10
     if (is_admin() == true) {
         // line 11
         echo "        <h3>";
         echo anchor("pengajar/index/" . (isset($context["status_id"]) ? $context["status_id"] : null), "Data Pengajar");
         echo " / Detail Pengajar</h3>\n        ";
     } else {
         // line 13
         echo "        <h3>";
         echo anchor("pengajar/filter", "Filter Pengajar");
         echo " / Detail Pengajar</h3>\n        ";
     }
     // line 15
     echo "    </div>\n    <div class=\"module-body\">\n        ";
     // line 17
     echo get_flashdata("pengajar");
     echo "\n\n        ";
     // line 19
     if ($this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "id") != get_sess_data("login", "id")) {
         // line 20
         echo "        <div class=\"row-fluid\">\n            <div class=\"span4\">\n                <div class=\"btn-group\">\n                    <a class=\"btn btn-default btn-sm\" href=\"";
         // line 23
         echo twig_escape_filter($this->env, site_url("message/to/pengajar/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id")), "html", null, true);
         echo "\"><i class=\"icon-comments\"></i> Kirim Pesan</a>\n                </div>\n            </div>\n        </div>\n        <br>\n        ";
     }
     // line 29
     echo "\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Profil pengajar ";
     // line 32
     echo $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "is_admin") == 1 ? "<label class=\"label label-warning\">Administrator</label>" : "";
     echo "</strong>\n                ";
     // line 33
     if (is_admin() == true) {
         // line 34
         echo "                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
         // line 35
         echo anchor("pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Profil", array("class" => "iframe-4 btn btn-small btn-primary", "title" => "Edit Profil Pengajar"));
         echo "\n                    ";
         // line 36
         echo anchor("pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Pengajar"));
         echo "\n                </div>\n                ";
     }
     // line 39
     echo "            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\" width=\"25%\" style=\"border-top: 0px;\">NIP</th>\n                        <td style=\"border-top: 0px;\">";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nip"), "html", null, true);
     echo "</td>\n                        <td rowspan=\"5\" width=\"15%\" style=\"border-top: 0px;\">\n                            <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 46
     echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto"), "medium", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                        </td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Nama</th>\n                        <td>";
     // line 51
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                        <td>";
     // line 55
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                        <td>";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                        <td>";
     // line 63
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Alamat</th>\n                        <td colspan=\"2\">";
     // line 67
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "alamat"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Status</th>\n                        <td colspan=\"2\">\n                            ";
     // line 72
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 0) {
         // line 73
         echo "                                Pending\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 1) {
         // line 75
         echo "                                Aktif\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 2) {
         // line 77
         echo "                                Blocking\n                            ";
     }
     // line 79
     echo "                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n\n        <div class=\"row-fluid\">\n            <div class=\"span12\">\n                <div class=\"panel panel-default\">\n                    <div class=\"panel-heading\">\n                        <strong>Jadwal Mengajar</strong>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <thead>\n                                <tr bgcolor=\"#fbfbfb\">\n                                    <th>HARI</th>\n                                    <th>MATAPELAJARAN DAN JAM</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                ";
     // line 100
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(get_indo_hari());
     foreach ($context['_seq'] as $context["hari_id"] => $context["h"]) {
         // line 101
         echo "                                <tr>\n                                    <th width=\"15%\">";
         // line 102
         echo twig_escape_filter($this->env, isset($context["h"]) ? $context["h"] : null, "html", null, true);
         echo "</th>\n                                    <td>\n                                        ";
         // line 104
         if (is_admin() == true) {
             // line 105
             echo "                                        ";
             echo anchor("pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null), "Tambah", array("class" => "iframe btn btn-small btn-primary", "title" => "Tambah jadwal hari " . (isset($context["h"]) ? $context["h"] : null)));
             echo "\n                                        ";
         }
         // line 107
         echo "\n                                        ";
         // line 108
         $context["retrieve_all_ma"] = get_row_data("pengajar_model", "retrieve_all_ma", array(0 => isset($context["hari_id"]) ? $context["hari_id"] : null, 1 => $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), 2 => null, 3 => is_pengajar() == true || is_siswa() == true ? 1 : null));
         // line 109
         echo "                                        ";
         if (!twig_test_empty(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null)) {
             // line 110
             echo "                                        <table style=\"margin-top:10px;\" class=\"table table-condensed\">\n                                            ";
             // line 111
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["ma"]) {
                 // line 112
                 echo "                                                ";
                 $context["mk"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id")));
                 // line 113
                 echo "                                                ";
                 $context["k"] = get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
                 // line 114
                 echo "                                                ";
                 $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
                 // line 115
                 echo "                                                <tr ";
                 echo $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 0 ? "class=\"error text-muted\"" : "class=\"info text-info\"";
                 echo ">\n                                                    <td width=\"15%\">";
                 // line 116
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i"), "html", null, true);
                 echo "</td>\n                                                    <td>";
                 // line 117
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                                    <td width=\"20%\">";
                 // line 118
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
                 echo "</td>\n\n                                                    ";
                 // line 120
                 if (is_admin() == true) {
                     // line 121
                     echo "                                                    <td width=\"10%\">\n                                                        ";
                     // line 122
                     echo anchor("pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-edit\"></i> Edit", array("title" => "Edit Jadwal Ajar", "class" => "iframe-6"));
                     echo "\n                                                    </td>\n                                                    ";
                 }
                 // line 125
                 echo "\n                                                </tr>\n                                            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ma'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 128
             echo "                                        </table>\n                                        ";
         }
         // line 130
         echo "                                    </td>\n                                </tr>\n                                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['hari_id'], $context['h'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 133
     echo "                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n        ";
     // line 139
     if (is_admin() == true) {
         // line 140
         echo "        <div class=\"row-fluid\">\n            <div class=\"span5\">\n                <div class=\"panel panel-default\" id=\"akun\">\n                    <div class=\"panel-heading\">\n                        <strong>Akun Login</strong>\n                        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                            ";
         // line 146
         echo anchor("pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username pengajar"));
         echo "\n                            ";
         // line 147
         echo anchor("pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password pengajar"));
         echo "\n                        </div>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <tbody>\n                                <tr>\n                                    <th width=\"30%\" bgcolor=\"#FBFBFB\" style=\"border-top: 0px;\">Username</th>\n                                    <td style=\"border-top: 0px;\">\n                                        ";
         // line 156
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "username"), "html", null, true);
         echo "\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <th bgcolor=\"#FBFBFB\">Password</th>\n                                    <td>\n                                        *********\n                                    </td>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n        ";
     }
     // line 172
     echo "    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("pengajar");
     echo "\n\n        <div class=\"row-fluid\">\n            <div class=\"span8\">\n                <a href=\"";
     // line 13
     echo twig_escape_filter($this->env, site_url("admin/pengajar/add/" . (isset($context["status_id"]) ? $context["status_id"] : null)), "html", null, true);
     echo "\" class=\"btn btn-primary\">Tambah Pengajar</a>\n            </div>\n\n            <div class=\"span4\">\n                <div class=\"btn-group\">\n                    ";
     // line 18
     echo anchor("admin/pengajar/list/1", "Aktif", array("class" => (isset($context["status_id"]) ? $context["status_id"] : null) == 1 ? "btn btn-info" : "btn btn-default"));
     echo "\n                    ";
     // line 19
     echo anchor("admin/pengajar/list/0", "Pending", array("class" => (isset($context["status_id"]) ? $context["status_id"] : null) == 0 ? "btn btn-info" : "btn btn-default"));
     echo "\n                    ";
     // line 20
     echo anchor("admin/pengajar/list/2", "Blocking", array("class" => (isset($context["status_id"]) ? $context["status_id"] : null) == 2 ? "btn btn-info" : "btn btn-default"));
     echo "\n                    ";
     // line 21
     echo anchor("admin/pengajar/filter", "<i class=\"icon-search\" style=\"line-height: 0px;\"></i> Filter", array("class" => "btn btn-default"));
     echo "\n                </div>\n            </div>\n        </div>\n\n        <br>\n        ";
     // line 27
     if ((isset($context["status_id"]) ? $context["status_id"] : null) == 1) {
         // line 28
         echo "        <p><b>Note: </b> Pengajar tidak dapat dihapus namun dapat di ubah menjadi blocking.</p>\n        ";
     }
     // line 30
     echo "\n        ";
     // line 31
     echo form_open("admin/pengajar/list" . (isset($context["status_id"]) ? $context["status_id"] : null));
     echo "\n        <table class=\"table table-striped\">\n            <thead>\n                <tr>\n                    <th width=\"7%\">\n                        ";
     // line 36
     if ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2) {
         // line 37
         echo "                            <input type=\"checkbox\" style=\"margin-top:-2px;\" onclick=\"ch_uch_checkbox(this)\">\n                        ";
     }
     // line 39
     echo "                        No\n                    </th>\n                    <th colspan=\"2\">Nip</th>\n                    <th>Nama</th>\n                    <th>Jenis Kelamin</th>\n                    <th width=\"22%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 48
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pengajar"]) ? $context["pengajar"] : null);
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 49
         echo "                <tr>\n                    <td>\n                        ";
         // line 51
         if ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2) {
             // line 52
             echo "                            <input type=\"checkbox\" name=\"pengajar_id[]\" value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
             echo "\" style=\"margin-top:-2px;\">\n                        ";
         }
         // line 54
         echo "                        ";
         echo twig_escape_filter($this->env, isset($context["no"]) ? $context["no"] : null, "html", null, true);
         echo ".\n                    </td>\n                    <td width=\"5%\">\n                        <img style=\"height:30px;width:27px;\" class=\"img-polaroid\" src=\"";
         // line 57
         echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "foto"), "small", $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin")), "html", null, true);
         echo "\">\n                    </td>\n                    <td>\n                        ";
         // line 60
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nip"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        ";
         // line 63
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
         echo "\n                        ";
         // line 64
         $context["is_admin"] = get_row_data("login_model", "retrieve", array(0 => null, 1 => null, 2 => null, 3 => null, 4 => $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "is_admin");
         // line 65
         echo "                        ";
         if ((isset($context["is_admin"]) ? $context["is_admin"] : null) == 1) {
             // line 66
             echo "                            <br><span class=\"label label-warning\">Admin</span>\n                        ";
         }
         // line 68
         echo "                    </td>\n                    <td>\n                        ";
         // line 70
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "jenis_kelamin"), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        <ul class=\"nav nav-pills\" style=\"margin-bottom:0px;\">\n                            <li><a class=\"btn btn-default btn-small\" href=\"";
         // line 74
         echo twig_escape_filter($this->env, site_url("admin/pengajar/detail/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id")), "html", null, true);
         echo "\"><i class=\"icon-zoom-in\"></i> Detail</a></li>\n                            <li class=\"dropdown\">\n                                <a class=\"btn btn-default btn-small\" href=\"#\" id=\"act-";
         // line 76
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"><i class=\"icon-edit\"></i> Edit <b class=\"caret\" style=\"margin-top:5px;\"></b></a>\n                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"act-";
         // line 77
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "html", null, true);
         echo "\">\n                                    <li>";
         // line 78
         echo anchor("admin/pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Profil", array("class" => "iframe-4", "title" => "Edit Profil Pengajar"));
         echo "</li>\n                                    <li>";
         // line 79
         echo anchor("admin/pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Foto", array("class" => "iframe-5", "title" => "Edit Foto Pengajar"));
         echo "</li>\n                                    <li>";
         // line 80
         echo anchor("admin/pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Username", array("class" => "iframe-2", "title" => "Edit Username Pengajar"));
         echo "</li>\n                                    <li>";
         // line 81
         echo anchor("admin/pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id"), "Edit Password", array("class" => "iframe-3", "title" => "Edit Password Pengajar"));
         echo "</li>\n                                </ul>\n                            </li>\n                        </ul>\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['no'], $context['v'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 88
     echo "            </tbody>\n        </table>\n\n        ";
     // line 91
     if (!twig_test_empty(isset($context["pengajar"]) ? $context["pengajar"] : null) && ((isset($context["status_id"]) ? $context["status_id"] : null) == 0 || (isset($context["status_id"]) ? $context["status_id"] : null) == 2)) {
         // line 92
         echo "        <br>\n        <div class=\"row-fluid\">\n            <div class=\"span7\">\n                <table cellpadding=\"5\">\n                    <tr>\n                        <th valign=\"top\">Update Status Terpilih</th>\n                        <td valign=\"top\">\n                            <select name=\"status_id\" style=\"width:100%;\">\n                                <option>--Pilih Status--</option>\n                                <option value=\"1\">Aktif</option>\n                                ";
         // line 102
         if ((isset($context["status_id"]) ? $context["status_id"] : null) == 0) {
             // line 103
             echo "                                <option value=\"2\">Blocking</option>\n                                ";
         }
         // line 105
         echo "                            </select>\n                        </td>\n                        <td valign=\"top\">\n                            <button type=\"submit\" class=\"btn\">Update</button>\n                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n        ";
     }
     // line 115
     echo "\n        ";
     // line 116
     echo form_close();
     echo "\n\n        <br>\n        ";
     // line 119
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n\n    </div>\n</div>\n";
 }
/**
 * Method untuk mendapatkan data site config
 *
 * @param  string $id
 * @param  string $get   nama atau value
 * @return string data
 */
function get_pengaturan($id, $get = null)
{
    return get_row_data('config_model', 'retrieve', array($id), $get);
}