当前位置: 首页>>代码示例>>PHP>>正文


PHP get_url_image_pengajar函数代码示例

本文整理汇总了PHP中get_url_image_pengajar函数的典型用法代码示例。如果您正苦于以下问题:PHP get_url_image_pengajar函数的具体用法?PHP get_url_image_pengajar怎么用?PHP get_url_image_pengajar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_url_image_pengajar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: block_content

 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 ";
     // line 10
     echo $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "is_admin") == 1 ? "<label class=\"label label-warning\">Administrator</label>" : "";
     echo "</strong>\n        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n            ";
     // line 12
     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-7 btn btn-small btn-primary", "title" => "Edit Profil Pengajar"));
     echo "\n            ";
     // line 13
     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    </div>\n    <div class=\"panel-body\">\n        <table class=\"table\">\n            <tr>\n                <th bgcolor=\"#FBFBFB\" width=\"25%\">NIP</th>\n                <td>";
     // line 20
     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 22
     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 27
     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 31
     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 35
     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 39
     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 43
     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 48
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 0) {
         // line 49
         echo "                        Pending\n                    ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 1) {
         // line 51
         echo "                        Aktif\n                    ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 2) {
         // line 53
         echo "                        Blocking\n                    ";
     }
     // line 55
     echo "                </td>\n            </tr>\n        </table>\n    </div>\n</div>\n\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 67
     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 68
     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\">Username</th>\n                            <td>\n                                ";
     // line 77
     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";
 }
开发者ID:nicefirework,项目名称:new_elearning,代码行数:57,代码来源:29d76ff40e0c9207668e96723f2b6971e282fe08a2cc8580b1856b3ba935.php

示例2: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Edit Foto</h4>\n";
     // line 5
     echo get_flashdata("edit");
     echo "\n\n";
     // line 7
     echo form_open_multipart("pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["pengajar_id"]) ? $context["pengajar_id"] : null));
     echo "\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <td>\n                <img class=\"img-polaroid\" src=\"";
     // line 12
     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            <td>\n                <input type=\"file\" name=\"userfile\" class=\"btn btn-small\" style=\"max-width:190px;\">\n                ";
     // line 16
     echo !twig_test_empty(isset($context["error_upload"]) ? $context["error_upload"] : null) ? isset($context["error_upload"]) ? $context["error_upload"] : null : "";
     echo "\n            </td>\n        <tr>\n        <tr>\n            <td colspan=\"2\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n            </td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 26
     echo form_close();
     echo "\n";
 }
开发者ID:nicefirework,项目名称:new_elearning,代码行数:20,代码来源:0a92c6ff599d9ec9f2a679bf73c173d0df7e75c562c3897d1ef01c0ad60d.php

示例3: detail


//.........这里部分代码省略.........
             if ($segment_4 == 'download' and !empty($materi['file'])) {
                 $data_file = file_get_contents(get_path_file($materi['file']));
                 // Read the file's contents
                 $name_file = $materi['file'];
                 $this->materi_model->plus_views($materi['id']);
                 force_download($name_file, $data_file);
             }
             # post komentar
             $this->form_validation->set_rules('komentar', 'Komentar', 'required|trim|xss_clean');
             if ($this->form_validation->run() == true) {
                 $komentar_id = $this->komentar_model->create(get_sess_data('login', 'id'), $materi['id'], $tampil = 1, $this->input->post('komentar', true));
                 redirect('materi/detail/' . $materi['id'] . '/#komentar-' . $komentar_id);
             }
             $data['materi']['download_link'] = site_url('materi/detail/' . $materi['id'] . '/download');
             # ambil komentar
             $retrieve_all_komentar = $this->komentar_model->retrieve_all(20, (int) $segment_4, null, $materi['id'], 1);
             # format komentar
             foreach ($retrieve_all_komentar['results'] as $key => $val) {
                 $retrieve_all_komentar['results'][$key] = $this->format_komentar($val);
             }
             $data['materi']['komentar'] = $retrieve_all_komentar['results'];
             $data['materi']['jml_komentar'] = $retrieve_all_komentar['total_record'];
             $data['materi']['komentar_pagination'] = $this->pager->view($retrieve_all_komentar, 'materi/detail/' . $materi['id'] . '/');
             # cari tipenya
             if (empty($materi['file'])) {
                 $type = 'tertulis';
             } else {
                 $type = 'file';
                 $data['materi']['file_info'] = get_file_info(get_path_file($materi['file']));
                 $data['materi']['file_info']['mime'] = get_mime_by_extension(get_path_file($materi['file']));
             }
             $data['type'] = $type;
             $data['materi']['mapel'] = $this->mapel_model->retrieve($materi['mapel_id']);
             # cari materi kelas
             $arr_materi_kelas_id = array();
             $materi_kelas = $this->materi_model->retrieve_all_kelas($materi['id']);
             foreach ($materi_kelas as $mk) {
                 $arr_materi_kelas_id[] = $mk['kelas_id'];
                 $kelas = $this->kelas_model->retrieve($mk['kelas_id']);
                 $data['materi']['materi_kelas'][] = $kelas;
             }
             # cari pembuatnya
             if (!empty($materi['pengajar_id'])) {
                 $pengajar = $this->pengajar_model->retrieve($materi['pengajar_id']);
                 $data['materi']['pembuat'] = array('nama' => $pengajar['nama'], 'link_foto' => get_url_image_pengajar($pengajar['foto'], 'medium', $pengajar['jenis_kelamin']));
                 if (is_admin()) {
                     $data['materi']['pembuat']['link_profil'] = site_url('pengajar/detail/' . $pengajar['status_id'] . '/' . $pengajar['id']);
                 } else {
                     $data['materi']['pembuat']['link_profil'] = site_url('pengajar/detail/' . $pengajar['id']);
                 }
             }
             if (!empty($materi['siswa_id'])) {
                 $siswa = $this->siswa_model->retrieve($materi['siswa_id']);
                 $data['materi']['pembuat'] = array('nama' => $siswa['nama'], 'link_foto' => get_url_image_siswa($siswa['foto'], 'medium', $siswa['jenis_kelamin']));
                 if (is_admin()) {
                     $data['materi']['pembuat']['link_profil'] = site_url('siswa/detail/' . $siswa['status_id'] . '/' . $siswa['id']);
                 } else {
                     $data['materi']['pembuat']['link_profil'] = site_url('siswa/detail/' . $siswa['id']);
                 }
             }
             # cari materi terkait
             $retrieve_terkait_mapel = $this->materi_model->retrieve_all($no_of_records = 10, $page_no = 1, $pengajar_id = array(), $siswa_id = array(), $mapel_id = array($materi['mapel_id']), $judul = null, $konten = null, $tgl_posting = null, $publish = 1, $kelas_id = array(), $type = array(), $pagination = false);
             $data_terkait = array();
             foreach ($retrieve_terkait_mapel as $row) {
                 if (empty($data_terkait[$row['id']]) and $row['id'] != $materi['id'] and count($data_terkait) <= 20) {
                     $data_terkait[$row['id']] = $row;
                 }
             }
             $retrieve_terkait_kelas = $this->materi_model->retrieve_all($no_of_records = 10, $page_no = 1, $pengajar_id = array(), $siswa_id = array(), $mapel_id = array(), $judul = null, $konten = null, $tgl_posting = null, $publish = 1, $kelas_id = $arr_materi_kelas_id, $type = array(), $pagination = false);
             foreach ($retrieve_terkait_kelas as $row) {
                 if (empty($data_terkait[$row['id']]) and $row['id'] != $materi['id'] and count($data_terkait) <= 20) {
                     $data_terkait[$row['id']] = $row;
                 }
             }
             $data['terkait'] = $data_terkait;
             # setup componen SyntaxHighlighter
             $html_js = load_comp_js(array(base_url('assets/comp/SyntaxHighlighter/scripts/shCore.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushAppleScript.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushAS3.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushBash.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushColdFusion.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushCpp.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushCSharp.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushCss.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushDelphi.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushDiff.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushErlang.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushGroovy.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushJava.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushJavaFX.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushJScript.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushPerl.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushPhp.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushPlain.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushPowerShell.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushPython.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushRuby.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushSass.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushScala.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushSql.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushVb.js'), base_url('assets/comp/SyntaxHighlighter/scripts/shBrushXml.js'), base_url('assets/comp/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML')));
             $html_js .= '<script type="text/javascript">SyntaxHighlighter.all();</script>';
             # setup tinymce komentar
             $tiny_option = 'theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,sub,sup,charmap,tiny_mce_wiris_formulaEditor,|,emotions,image,media,youtubeIframe,syntaxhl,code",
             theme_advanced_buttons2 : "",
             theme_advanced_buttons3 : "",
             theme_advanced_toolbar_location : "top",
             theme_advanced_toolbar_align : "left",
             theme_advanced_statusbar_location : "bottom",
             file_browser_callback : "openKCFinder",
             theme_advanced_resizing : false,
             content_css : "' . base_url('assets/comp/tinymce/com/content.css') . '",
             convert_urls: false,
             force_br_newlines : false,
             force_p_newlines : false,';
             $html_js .= get_tinymce('komentar', 'advanced', array('pdw'), $tiny_option);
             # setup colorbox
             $html_js .= load_comp_js(array(base_url('assets/comp/colorbox/jquery.colorbox-min.js'), base_url('assets/comp/colorbox/act-materi.js')));
             $data['comp_js'] = $html_js;
             $data['comp_css'] = load_comp_css(array(base_url('assets/comp/SyntaxHighlighter/styles/shCoreEclipse.css'), base_url('assets/comp/colorbox/colorbox.css')));
             $this->twig->display('detail-materi.html', $data);
             break;
     }
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:materi.php

示例4: format_msg

 function format_msg($retrieve)
 {
     # jika inbox yang dicari pengirimnya
     if ($retrieve['type_id'] == 1) {
         $get_user = $retrieve['sender_receiver_id'];
     } elseif ($retrieve['type_id'] == 2) {
         $get_user = $retrieve['owner_id'];
     }
     # cari sender/receiver
     $login = $this->login_model->retrieve($get_user);
     if (!empty($login['siswa_id'])) {
         $user = $this->siswa_model->retrieve($login['siswa_id']);
         if (is_admin()) {
             $user['link_profil'] = site_url('siswa/detail/' . $user['status_id'] . '/' . $user['id']);
         } else {
             $user['link_profil'] = site_url('siswa/detail/' . $user['id']);
         }
         $user['link_image'] = get_url_image_siswa($user['foto'], 'medium', $user['jenis_kelamin']);
     } elseif (!empty($login['pengajar_id'])) {
         $user = $this->pengajar_model->retrieve($login['pengajar_id']);
         if (is_admin()) {
             $user['link_profil'] = site_url('pengajar/detail/' . $user['status_id'] . '/' . $user['id']);
         } else {
             $user['link_profil'] = site_url('pengajar/detail/' . $user['id']);
         }
         $user['link_image'] = get_url_image_pengajar($user['foto'], 'medium', $user['jenis_kelamin']);
     }
     $retrieve['profil'] = $user;
     $retrieve['login'] = $login;
     # format tanggal, jika hari ini
     if (date('Y-m-d') == date('Y-m-d', strtotime($retrieve['date']))) {
         $retrieve['date'] = date('H:i', strtotime($retrieve['date']));
     } elseif (date('Y-m-d', strtotime('-1 day', strtotime(date('Y-m-d')))) == date('Y-m-d', strtotime($retrieve['date']))) {
         $retrieve['date'] = date('H:i', strtotime($retrieve['date'])) . ' kemarin';
     } elseif (date('Y-m-d', strtotime('-2 day', strtotime(date('Y-m-d')))) == date('Y-m-d', strtotime($retrieve['date']))) {
         $retrieve['date'] = date('H:i', strtotime($retrieve['date'])) . ' lusa';
     } else {
         $retrieve['date'] = tgl_jam_indo($retrieve['date']);
     }
     return $retrieve;
 }
开发者ID:afrizzal,项目名称:new_elearning,代码行数:41,代码来源:MY_Controller.php

示例5: block_content

 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
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:fa121f3c85817f23bd29b2a0c6d026fab6525a3a6fc83167bdb4818f5edc.php

示例6: materi

 function materi($act = 'list', $segment_4 = '', $segment_5 = '', $segment_6 = '', $segment_7 = '', $segment_8 = '')
 {
     $this->must_login();
     $data['web_title'] = 'Materi | Administrator';
     switch ($act) {
         case 'detail':
             $content_file = 'admin_materi/detail.html';
             $materi_id = (int) $segment_4;
             if (empty($materi_id)) {
                 $data['error'] = "Materi tidak ditemukan";
             }
             $materi = $this->materi_model->retrieve($materi_id);
             if (empty($materi) or empty($materi['publish'])) {
                 $data['error'] = "Materi tidak ditemukan";
             }
             switch ($segment_5) {
                 default:
                 case 'download':
                     # jika request download
                     if ($segment_5 == 'download' and !empty($materi['file'])) {
                         $data_file = file_get_contents(get_path_file($materi['file']));
                         // Read the file's contents
                         $name_file = $materi['file'];
                         force_download($name_file, $data_file);
                     }
                     if (!isset($data['error'])) {
                         $data['materi'] = $materi;
                         $data['materi']['download_link'] = site_url('admin/materi/detail/' . $materi['id'] . '/download');
                         # cari tipenya
                         if (empty($materi['file'])) {
                             $type = 'tertulis';
                         } else {
                             $type = 'file';
                             $data['materi']['file_info'] = get_file_info(get_path_file($materi['file']));
                             $data['materi']['file_info']['mime'] = get_mime_by_extension(get_path_file($materi['file']));
                         }
                         $data['type'] = $type;
                         $data['materi']['mapel'] = $this->mapel_model->retrieve($materi['mapel_id']);
                         # cari materi kelas
                         $materi_kelas = $this->materi_model->retrieve_all_kelas($materi['id']);
                         foreach ($materi_kelas as $mk) {
                             $kelas = $this->kelas_model->retrieve($mk['kelas_id']);
                             $data['materi']['materi_kelas'][] = $kelas;
                         }
                         # cari pembuatnya
                         if (!empty($materi['pengajar_id'])) {
                             $pengajar = $this->pengajar_model->retrieve($materi['pengajar_id']);
                             $data['materi']['pembuat'] = array('nama' => $pengajar['nama'], 'link_profil' => site_url('admin/pengajar/detail/' . $pengajar['status_id'] . '/' . $pengajar['id']), 'link_foto' => get_url_image_pengajar($pengajar['foto'], 'medium', $pengajar['jenis_kelamin']));
                         }
                         if (!empty($materi['siswa_id'])) {
                             $siswa = $this->siswa_model->retrieve($materi['siswa_id']);
                             $data['materi']['pembuat'] = array('nama' => $siswa['nama'], 'link_profil' => site_url('admin/siswa/' . $siswa['status_id'] . '/' . $siswa['id']), 'link_foto' => get_url_image_siswa($siswa['foto'], 'medium', $siswa['jenis_kelamin']));
                         }
                     } else {
                         $data['materi'] = array();
                     }
                     break;
             }
             break;
         case 'delete':
             $materi_id = (int) $segment_4;
             $uri_back = (string) $segment_5;
             if (empty($uri_back)) {
                 $uri_back = site_url('admin/materi');
             } else {
                 $uri_back = deurl_redirect($uri_back);
             }
             $materi = $this->materi_model->retrieve($materi_id);
             if (empty($materi)) {
                 redirect($uri_back);
             }
             # jika file
             if (!empty($materi['file']) and is_file(get_path_file($materi['file']))) {
                 unlink(get_path_file($materi['file']));
             }
             $this->materi_model->delete($materi['id']);
             $this->session->set_flashdata('materi', get_alert('success', 'Materi berhasil dihapus'));
             redirect($uri_back);
             break;
         case 'edit':
             $type = (string) strtolower($segment_4);
             $materi_id = (int) $segment_5;
             $uri_back = (string) $segment_6;
             if (empty($uri_back)) {
                 $uri_back = redirect('admin/materi');
             } else {
                 $uri_back = deurl_redirect($uri_back);
             }
             $data['uri_back'] = $uri_back;
             if (!in_array($type, array('file', 'tertulis'))) {
                 redirect($uri_back);
             }
             $materi = $this->materi_model->retrieve($materi_id);
             if (empty($materi)) {
                 redirect($uri_back);
             }
             # hanya ambil kelas_idnya
             $materi_kelas = $this->materi_model->retrieve_all_kelas($materi['id']);
             $materi_kelas_id = array();
             foreach ($materi_kelas as $r) {
//.........这里部分代码省略.........
开发者ID:nicefirework,项目名称:new_elearning,代码行数:101,代码来源:admin.php

示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n        <title>";
     // line 6
     $this->displayBlock('title', $context, $blocks);
     echo "</title>\n        <link type=\"text/css\" href=\"";
     // line 7
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "bootstrap/css/bootstrap.min.css\" rel=\"stylesheet\">\n        <link type=\"text/css\" href=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "bootstrap/css/bootstrap-responsive.min.css\" rel=\"stylesheet\">\n        <link type=\"text/css\" href=\"";
     // line 9
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "css/theme.css\" rel=\"stylesheet\">\n        <link type=\"text/css\" href=\"";
     // line 10
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "images/icons/css/font-awesome.css\" rel=\"stylesheet\">\n        ";
     // line 11
     $this->displayBlock('css', $context, $blocks);
     // line 12
     echo "        ";
     echo isset($context["comp_css"]) ? $context["comp_css"] : null;
     echo "\n        <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"";
     // line 13
     echo twig_escape_filter($this->env, isset($context["favicon_url"]) ? $context["favicon_url"] : null, "html", null, true);
     echo "\">\n    </head>\n    <body>\n        <div class=\"navbar navbar-fixed-top\">\n            <div class=\"navbar-inner\">\n                <div class=\"container\">\n                    <a class=\"btn btn-navbar\" data-toggle=\"collapse\" data-target=\".navbar-inverse-collapse\">\n                        <i class=\"icon-reorder shaded\"></i>\n                    </a>\n                    <a class=\"brand\" href=\"";
     // line 22
     echo twig_escape_filter($this->env, isset($context["site_url"]) ? $context["site_url"] : null, "html", null, true);
     echo "\">\n                        <img src=\"";
     // line 23
     echo twig_escape_filter($this->env, isset($context["logo_url_medium"]) ? $context["logo_url_medium"] : null, "html", null, true);
     echo "\"> ";
     echo twig_escape_filter($this->env, isset($context["site_name"]) ? $context["site_name"] : null, "html", null, true);
     echo "\n                    </a>\n                    <div class=\"nav-collapse collapse navbar-inverse-collapse\">\n                        <form class=\"navbar-search pull-left input-append\" method=\"get\" action=\"";
     // line 26
     echo twig_escape_filter($this->env, site_url("welcome/search"), "html", null, true);
     echo "\">\n                            <input type=\"text\" class=\"span3\" name=\"q\">\n                            <button class=\"btn\" type=\"submit\">\n                                <i class=\"icon-search\"></i>\n                            </button>\n                        </form>\n                        <ul class=\"nav pull-right\">\n                            <li class=\"nav-user dropdown\"><a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n                                ";
     // line 34
     echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true);
     echo "\n\n                                <img src=\"";
     // line 36
     echo twig_escape_filter($this->env, get_url_image_pengajar(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true);
     echo "\" class=\"nav-avatar img-polaroid\" />\n\n                                <b class=\"caret\"></b></a>\n                                <ul class=\"dropdown-menu\">\n                                    ";
     // line 40
     if (is_admin()) {
         // line 41
         echo "                                    <li>";
         echo anchor("pengajar/detail/" . get_sess_data("user", "status_id") . "/" . get_sess_data("user", "id"), "Detail Profil", array("title" => "Detail Profil"));
         echo "</li>\n                                    ";
     }
     // line 43
     echo "\n                                    ";
     // line 44
     if (is_pengajar()) {
         // line 45
         echo "                                    <li>";
         echo anchor("login/pp", "Profil & Akun Login");
         echo "</li>\n                                    ";
     }
     // line 47
     echo "\n                                    ";
     // line 48
     if (is_siswa()) {
         // line 49
         echo "                                    <li>";
         echo anchor("login/pp", "Profil & Akun Login");
         echo "</li>\n                                    ";
     }
     // line 51
     echo "\n                                    <li><a href=\"";
     // line 52
     echo twig_escape_filter($this->env, site_url("login/logout"), "html", null, true);
     echo "\">Logout</a></li>\n                                </ul>\n                            </li>\n                        </ul>\n                    </div>\n                    <!-- /.nav-collapse -->\n                </div>\n            </div>\n            <!-- /navbar-inner -->\n        </div>\n\n        <!-- /navbar -->\n        <div class=\"wrapper\">\n            <div class=\"container\">\n                <div class=\"row\">\n                    <div class=\"span3\">\n                        <div class=\"sidebar\">\n                            ";
     // line 69
     if (is_admin()) {
         // line 70
         echo "                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 71
         echo twig_escape_filter($this->env, site_url(), "html", null, true);
         echo "\"><i class=\"menu-icon icon-home\"></i>Beranda</a></li>\n                                <li><a href=\"";
         // line 72
         echo twig_escape_filter($this->env, site_url("pengumuman"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-bullhorn\"></i>Pengumuman</a></li>\n                                <li><a href=\"";
         // line 73
         echo twig_escape_filter($this->env, site_url("message"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-comments\"></i>Pesan <span id=\"count-new-msg\"></span></a></li>\n                            </ul>\n\n                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 77
         echo twig_escape_filter($this->env, site_url("siswa"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-group\"></i>Siswa </a></li>\n                                <li><a href=\"";
         // line 78
         echo twig_escape_filter($this->env, site_url("pengajar"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-user\"></i>Pengajar </a></li>\n                            </ul>\n\n                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 82
         echo twig_escape_filter($this->env, site_url("tugas?clear_filter=true"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-tasks\"></i>Tugas </a></li>\n                                <li><a href=\"";
         // line 83
         echo twig_escape_filter($this->env, site_url("materi?clear_filter=true"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-book\"></i>Materi </a></li>\n                            </ul>\n\n                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
//.........这里部分代码省略.........
开发者ID:etofia,项目名称:new_elearning,代码行数:101,代码来源:1d17b46455dd2185ef348b74c3dd09cbd34f19d541653c5de5b049543300.php

示例8: post_data


//.........这里部分代码省略.........
                }
                $table_name = 'field_tambahan';
                $field_id = 'mengerjakan-' . get_sess_data('user', 'id') . '-' . $tugas['id'];
                $field_name = 'Mengerjakan Tugas';
                $check_field = retrieve_field($field_id);
                if (empty($check_field)) {
                    exit('Akses ditolak');
                }
                # update index jawaban
                $field_value = json_decode($check_field['value'], 1);
                $field_value['jawaban'][$pertanyaan['id']] = $jawaban;
                update_field($field_id, $field_name, json_encode($field_value));
                break;
            case 'new_msg':
                $active_msg_id = $this->input->post('active_msg_id', true);
                $active_msg_id = (int) $active_msg_id;
                if (empty($active_msg_id)) {
                    echo '';
                }
                $msg = $this->msg_model->retrieve(get_sess_data('login', 'id'), $active_msg_id, false, false);
                if (empty($msg)) {
                    echo '';
                }
                $msg = $msg['retrieve'];
                $this->db->where('owner_id', get_sess_data('login', 'id'));
                $this->db->where('opened', '0');
                $this->db->where_in('sender_receiver_id', array(get_sess_data('login', 'id'), $msg['sender_receiver_id']));
                $this->db->order_by('id', 'ASC');
                $results = $this->db->get('messages');
                foreach ($results->result_array() as $retrieve) {
                    $this->msg_model->update_read($retrieve['id']);
                    # jika inbox yang dicari pengirimnya
                    if ($retrieve['type_id'] == 1) {
                        $get_user = $retrieve['sender_receiver_id'];
                    } elseif ($retrieve['type_id'] == 2) {
                        $get_user = $retrieve['owner_id'];
                    }
                    # cari sender/receiver
                    $login = $this->login_model->retrieve($get_user);
                    if (!empty($login['siswa_id'])) {
                        $user = $this->siswa_model->retrieve($login['siswa_id']);
                        if (is_admin()) {
                            $user['link_profil'] = site_url('siswa/detail/' . $user['status_id'] . '/' . $user['id']);
                        } else {
                            $user['link_profil'] = site_url('siswa/detail/' . $user['id']);
                        }
                        $user['link_image'] = get_url_image_siswa($user['foto'], 'medium', $user['jenis_kelamin']);
                    } elseif (!empty($login['pengajar_id'])) {
                        $user = $this->pengajar_model->retrieve($login['pengajar_id']);
                        if (is_admin()) {
                            $user['link_profil'] = site_url('pengajar/detail/' . $user['status_id'] . '/' . $user['id']);
                        } else {
                            $user['link_profil'] = site_url('pengajar/detail/' . $user['id']);
                        }
                        $user['link_image'] = get_url_image_pengajar($user['foto'], 'medium', $user['jenis_kelamin']);
                    }
                    # format tanggal, jika hari ini
                    if (date('Y-m-d') == date('Y-m-d', strtotime($retrieve['date']))) {
                        $retrieve['date'] = date('H:i', strtotime($retrieve['date']));
                    } elseif (date('Y-m-d', strtotime('-1 day', strtotime(date('Y-m-d')))) == date('Y-m-d', strtotime($retrieve['date']))) {
                        $retrieve['date'] = date('H:i', strtotime($retrieve['date'])) . ' kemarin';
                    } elseif (date('Y-m-d', strtotime('-2 day', strtotime(date('Y-m-d')))) == date('Y-m-d', strtotime($retrieve['date']))) {
                        $retrieve['date'] = date('H:i', strtotime($retrieve['date'])) . ' lusa';
                    } else {
                        $retrieve['date'] = tgl_jam_indo($retrieve['date']);
                    }
                    ?>
                    <tr id="msg-<?php 
                    echo $val['id'];
                    ?>
">
                        <td class="user flag-new">
                            <img class="img-user img-polaroid img-circle pull-left" src="<?php 
                    echo $user['link_image'];
                    ?>
">
                            <a href="{{ n.profil.link_profil }}"><?php 
                    echo character_limiter($user['nama'], 23, '...');
                    ?>
</a>
                            <br><small><?php 
                    echo $retrieve['date'];
                    ?>
</small>
                        </td>
                        <td class="msg-content">
                            <a class="pull-right" style="margin-left:10px;" href="<?php 
                    echo site_url('message/del/' . $retrieve['id'] . '/' . $msg['id']);
                    ?>
" onclick="return confirm('Anda yakin ingin menghapus?')"><i class="icon-trash"></i></a>
                            <?php 
                    echo html_entity_decode($retrieve['content']);
                    ?>
                        </td>
                    </tr>
                    <?php 
                }
                break;
        }
    }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:ajax.php

示例9: get_url_image_session

/**
 * Method untuk mendapatkan link foto pengajar/admin/siswa ketika sudah login
 *
 * @param  string $img
 * @param  string $size
 * @param  string $jk
 * @return string url
 */
function get_url_image_session($img = '', $size = 'medium', $jk = 'Laki-laki')
{
    if (is_pengajar() or is_admin()) {
        return get_url_image_pengajar($img, $size, $jk);
    } elseif (is_siswa()) {
        return get_url_image_siswa($img, $size, $jk);
    }
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:16,代码来源:elearning_helper.php

示例10: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n        <title>";
     // line 6
     $this->displayBlock('title', $context, $blocks);
     echo "</title>\n        <link type=\"text/css\" href=\"";
     // line 7
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "bootstrap/css/bootstrap.min.css\" rel=\"stylesheet\">\n        <link type=\"text/css\" href=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "bootstrap/css/bootstrap-responsive.min.css\" rel=\"stylesheet\">\n        <link type=\"text/css\" href=\"";
     // line 9
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "css/theme.css\" rel=\"stylesheet\">\n        <link type=\"text/css\" href=\"";
     // line 10
     echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true);
     echo "images/icons/css/font-awesome.css\" rel=\"stylesheet\">\n        ";
     // line 11
     $this->displayBlock('css', $context, $blocks);
     // line 12
     echo "        ";
     echo isset($context["comp_css"]) ? $context["comp_css"] : null;
     echo "\n        <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"";
     // line 13
     echo twig_escape_filter($this->env, isset($context["favicon_url"]) ? $context["favicon_url"] : null, "html", null, true);
     echo "\">\n    </head>\n    <body>\n        <div class=\"navbar navbar-fixed-top\">\n            <div class=\"navbar-inner\">\n                <div class=\"container\">\n                    <a class=\"btn btn-navbar\" data-toggle=\"collapse\" data-target=\".navbar-inverse-collapse\">\n                        <i class=\"icon-reorder shaded\"></i>\n                    </a>\n                    <a class=\"brand\" href=\"";
     // line 22
     echo twig_escape_filter($this->env, isset($context["site_url"]) ? $context["site_url"] : null, "html", null, true);
     echo "\">\n                        <img src=\"";
     // line 23
     echo twig_escape_filter($this->env, isset($context["logo_url_medium"]) ? $context["logo_url_medium"] : null, "html", null, true);
     echo "\"> ";
     echo twig_escape_filter($this->env, isset($context["site_name"]) ? $context["site_name"] : null, "html", null, true);
     echo "\n                    </a>\n                    <div class=\"nav-collapse collapse navbar-inverse-collapse\">\n                        <form class=\"navbar-search pull-left input-append\" action=\"#\">\n                        <input type=\"text\" class=\"span3\">\n                        <button class=\"btn\" type=\"button\">\n                            <i class=\"icon-search\"></i>\n                        </button>\n                        </form>\n                        <ul class=\"nav pull-right\">\n                            <li class=\"nav-user dropdown\"><a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n                                ";
     // line 34
     echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true);
     echo "\n\n                                <img src=\"";
     // line 36
     echo twig_escape_filter($this->env, get_url_image_pengajar(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true);
     echo "\" class=\"nav-avatar img-polaroid\" />\n\n                                <b class=\"caret\"></b></a>\n                                <ul class=\"dropdown-menu\">\n                                    ";
     // line 40
     if (is_admin()) {
         // line 41
         echo "                                    <li>";
         echo anchor("pengajar/detail/" . get_sess_data("user", "status_id") . "/" . get_sess_data("user", "id"), "Detail Profil", array("title" => "Detail Profil"));
         echo "</li>\n                                    ";
     }
     // line 43
     echo "\n                                    ";
     // line 44
     if (is_pengajar()) {
         // line 45
         echo "                                    <li>";
         echo anchor("login/pp", "Profil & Ubah Password", array("title" => "Detail Profil"));
         echo "</li>\n                                    ";
     }
     // line 47
     echo "\n                                    <li><a href=\"";
     // line 48
     echo twig_escape_filter($this->env, site_url("login/logout"), "html", null, true);
     echo "\">Logout</a></li>\n                                </ul>\n                            </li>\n                        </ul>\n                    </div>\n                    <!-- /.nav-collapse -->\n                </div>\n            </div>\n            <!-- /navbar-inner -->\n        </div>\n\n        <!-- /navbar -->\n        <div class=\"wrapper\">\n            <div class=\"container\">\n                <div class=\"row\">\n                    <div class=\"span3\">\n                        <div class=\"sidebar\">\n                            <ul class=\"widget widget-menu unstyled\">\n                                <li class=\"active\"><a href=\"index.html\"><i class=\"menu-icon icon-dashboard\"></i>Dashboard\n                                </a></li>\n                                <li><a href=\"activity.html\"><i class=\"menu-icon icon-bullhorn\"></i>News Feed </a>\n                                </li>\n                                <li><a href=\"message.html\"><i class=\"menu-icon icon-inbox\"></i>Inbox <b class=\"label green pull-right\">\n                                    11</b> </a></li>\n                                <li><a href=\"task.html\"><i class=\"menu-icon icon-inbox\"></i>Outbox <b class=\"label orange pull-right\">\n                                    19</b> </a></li>\n                            </ul>\n                            <!--/.widget-nav-->\n\n                            ";
     // line 77
     if (is_admin()) {
         // line 78
         echo "                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 79
         echo twig_escape_filter($this->env, site_url("tugas?clear_filter=true"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-tasks\"></i> Tugas </a></li>\n                                <li><a href=\"";
         // line 80
         echo twig_escape_filter($this->env, site_url("materi?clear_filter=true"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-book\"></i> Materi </a></li>\n                            </ul>\n\n                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 84
         echo twig_escape_filter($this->env, site_url("siswa"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-tasks\"></i> Siswa </a></li>\n                                <li><a href=\"";
         // line 85
         echo twig_escape_filter($this->env, site_url("pengajar"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-book\"></i> Pengajar </a></li>\n                            </ul>\n\n                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 89
         echo twig_escape_filter($this->env, site_url("kelas/mapel_kelas"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-paste\"></i>Matapelajaran Kelas </a></li>\n                                <li><a href=\"";
         // line 90
         echo twig_escape_filter($this->env, site_url("kelas"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-tasks\"></i> Manajemen Kelas </a></li>\n                                <li><a href=\"";
         // line 91
         echo twig_escape_filter($this->env, site_url("mapel"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-book\"></i>Manajemen Matapelajaran </a></li>\n                            </ul>\n                            ";
     }
     // line 94
     echo "\n                            ";
     // line 95
     if (is_pengajar()) {
         // line 96
         echo "                            <ul class=\"widget widget-menu unstyled\">\n                                <li><a href=\"";
         // line 97
         echo twig_escape_filter($this->env, site_url("login/pp"), "html", null, true);
         echo "\"><i class=\"menu-icon icon-paste\"></i>Profilku</a></li>\n                                <li><a href=\"";
         // line 98
         echo twig_escape_filter($this->env, site_url("pengajar/jadwal"), "html", null, true);
//.........这里部分代码省略.........
开发者ID:nicefirework,项目名称:new_elearning,代码行数:101,代码来源:1d17b46455dd2185ef348b74c3dd09cbd34f19d541653c5de5b049543300.php

示例11: block_content


//.........这里部分代码省略.........
     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"));
开发者ID:Raniratna,项目名称:new_elearning,代码行数:67,代码来源:099ba40984ab7cc44a389903d936b173cc1806f217e30e75e12393781f6c.php

示例12: block_content

 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
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:5d9c69784dce413c51105b6b30d1f2c87fc9144a5f00a6520f77def28ddd.php

示例13: block_content

 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                                ";
//.........这里部分代码省略.........
开发者ID:nicefirework,项目名称:new_elearning,代码行数:101,代码来源:980c10c5b7b27622e8b3961e0f0e2a6f8a4151a7611cc45b7071bbec8d7b.php

示例14: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 55
     echo "<div id=\"wrap\">\n    <div class=\"container\">\n        <div class=\"row-fluid\">\n            <div class=\"span9\">\n                <h1 class=\"title\">";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "judul"), "html", null, true);
     echo "</h1>\n            </div>\n            <div class=\"span3\">\n                <ul class=\"unstyled inline pull-right user-info\">\n                    <li><b>";
     // line 63
     echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true);
     echo "</b></li>\n                    <li><img src=\"";
     // line 64
     echo twig_escape_filter($this->env, get_url_image_pengajar(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true);
     echo "\" class=\"nav-avatar img-polaroid img-circle\" /></li>\n                </ul>\n            </div>\n        </div>\n        <hr class=\"hr-top\">\n        <div class=\"wrap-content\">\n            <div class=\"content\">\n                <div class=\"row-fluid\">\n                    ";
     // line 72
     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) {
         // line 73
         echo "                    <div class=\"span8\">\n                        <b>Informasi : </b><br>\n                        ";
         // line 75
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info");
         echo "\n                    </div>\n                    <div class=\"span4\">\n                        <div class=\"box-clock\" data-spy=\"affix\" data-offset-top=\"60\" data-offset-bottom=\"200\">\n                            <b>Siswa waktu : </b><br>\n                            <div id=\"clock\"></div>\n                        </div>\n                    </div>\n                    ";
     } else {
         // line 84
         echo "                    <div class=\"span6\">\n                        <b>Informasi : </b><br>\n                        ";
         // line 86
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info");
         echo "\n                        <br>\n                        <small>\n                        <b>Ekstensi file :</b><br>\n                        doc, zip, rar, txt, docx, xls, xlsx, pdf, tar, gz, jpg, jpeg, JPG, JPEG, png, ppt, pptx\n                        </small>\n                    </div>\n                    <div class=\"span6\">\n                        <p><b>Upload file tugas anda : </b></p>\n                        <div class=\"well well-sm\">\n                            ";
         // line 96
         echo form_open_multipart("tugas/submit_upload/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id"));
         echo "\n                            <input type=\"file\" name=\"userfile\">\n                            <hr class=\"hr1\">\n                            <div class=\"row-fluid\">\n                                <div class=\"span3\">\n                                    <button type=\"submit\" class=\"btn btn-primary\">Upload</button>\n                                </div>\n                                <div class=\"span9\">\n                                    ";
         // line 104
         echo get_flashdata("upload");
         echo "\n                                </div>\n                            </div>\n                            ";
         // line 107
         echo form_close();
         echo "\n                        </div>\n                    </div>\n                    ";
     }
     // line 111
     echo "                </div>\n\n                ";
     // line 113
     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3) {
         // line 114
         echo "                    <table class=\"table\">\n                        <thead>\n                            <tr>\n                                <th width=\"5%\">No</th>\n                                <th>Pertanyaan ";
         // line 118
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : "";
         echo "</th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            ";
         // line 122
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
             // line 123
             echo "                            <tr id=\"pertanyaan-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\">\n                                <td><b>";
             // line 124
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true);
             echo ".</b></td>\n                                <td>\n                                    <div class=\"pertanyaan\">\n                                        ";
             // line 127
             echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
             echo "\n                                    </div>\n\n                                    <div id=\"pilihan-";
             // line 130
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\">\n                                        <table class=\"table table-condensed table-striped\">\n                                            <tbody>\n                                                ";
             // line 133
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"));
             foreach ($context['_seq'] as $context["_key"] => $context["pil"]) {
                 // line 134
                 echo "                                                <tr>\n                                                    <td width=\"5%\"><label class=\"label-radio\"><input ";
                 // line 135
                 echo is_pilih($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")) ? "checked" : "";
                 echo " type=\"radio\" name=\"pilihan-";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
                 echo "\" value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan"), "html", null, true);
                 echo "\" onclick=\"update_ganda(";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id"), "html", null, true);
                 echo ")\" class=\"radio\"> ";
                 echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true);
                 echo "</label></td>\n                                                    <td>\n                                                        ";
                 // line 137
                 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten"));
                 echo "\n                                                    </td>\n                                                </tr>\n                                                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 141
             echo "                                            </tbody>\n                                        </table>\n                                    </div>\n\n                                </td>\n                            </tr>\n\n                            ";
//.........这里部分代码省略.........
开发者ID:etofia,项目名称:new_elearning,代码行数:101,代码来源:4897fee5bb54ea9e06f4fbb16f094fd9ff8bbf56322c850a937526ded41c.php

示例15: get_user_data

 /**
  * Method untuk mendapatkan data yang sedang login berdasarkan login_id
  *
  * @param  integer $login_id
  * @return array
  */
 function get_user_data($login_id)
 {
     # cari sender/receiver
     $login = $this->login_model->retrieve($login_id);
     if (!empty($login['siswa_id'])) {
         $user = $this->siswa_model->retrieve($login['siswa_id']);
         if (is_admin()) {
             $user['link_profil'] = site_url('siswa/detail/' . $user['status_id'] . '/' . $user['id']);
         } else {
             $user['link_profil'] = site_url('siswa/detail/' . $user['id']);
         }
         $user['link_image'] = get_url_image_siswa($user['foto'], 'medium', $user['jenis_kelamin']);
     } elseif (!empty($login['pengajar_id'])) {
         $user = $this->pengajar_model->retrieve($login['pengajar_id']);
         if (is_admin()) {
             $user['link_profil'] = site_url('pengajar/detail/' . $user['status_id'] . '/' . $user['id']);
         } else {
             $user['link_profil'] = site_url('pengajar/detail/' . $user['id']);
         }
         $user['link_image'] = get_url_image_pengajar($user['foto'], 'medium', $user['jenis_kelamin']);
     }
     return $user;
 }
开发者ID:pancamedia,项目名称:Marlina-Sabil,代码行数:29,代码来源:MY_Controller.php


注:本文中的get_url_image_pengajar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。