• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_alert函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: install_success

/**
 * Method untuk ngecek instal sudah berhasil atau berlum
 * @return true kalo sudah berhasil
 */
function install_success()
{
    $db_file = APPPATH . 'config/database.php';
    if (!is_file($db_file)) {
        throw new Exception(get_alert('error', 'File database.php in application/config/ not exists'));
    }
    # cek pengaturan database
    include APPPATH . 'config/database.php';
    $link = @mysqli_connect($db['default']['hostname'], $db['default']['username'], $db['default']['password']);
    if (!$link) {
        throw new Exception(get_alert('error', 'Failed to connect to the server: ' . mysqli_connect_error()));
    } elseif (!@mysqli_select_db($link, $db['default']['database'])) {
        throw new Exception(get_alert('error', 'Failed to connect to the database: ' . mysqli_error($link)));
    }
    $CI =& get_instance();
    $CI->load->database();
    if ($CI->db->table_exists('pengaturan')) {
        # cek record install-success
        $success = get_pengaturan('install-success', 'value');
        if (empty($success)) {
            return false;
        }
    } else {
        return false;
    }
    return true;
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:31,代码来源:elearning_helper.php


示例2: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Email Template</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("mapel");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        <table class=\"table table-striped datatable\">\n            <thead>\n                <tr>\n                    <th>Nama template</th>\n                    <th width=\"15%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 27
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["template"]) ? $context["template"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["e"]) {
         // line 28
         echo "                <tr>\n                    <td>";
         // line 29
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["e"]) ? $context["e"] : null, "nama"), "html", null, true);
         echo "</td>\n                    <td>\n                        <a href=\"";
         // line 31
         echo twig_escape_filter($this->env, site_url("email/edit/" . $this->getAttribute(isset($context["e"]) ? $context["e"] : null, "id")), "html", null, true);
         echo "\" class=\"btn btn-default\">Edit</a>\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['e'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 35
     echo "            </tbody>\n        </table>\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:35,代码来源:b794548bd1a6acb9b58332453353a7cbea333d382f2341e989269737b823.php


示例3: edit

 function edit($segment_3 = '', $segment_4 = '')
 {
     $id = (int) $segment_3;
     $uri_back = (string) $segment_4;
     # ambil satu
     $retrieve = $this->mapel_model->retrieve($id);
     if (empty($retrieve)) {
         redirect('mapel');
     }
     if (!empty($uri_back)) {
         $uri_back = deurl_redirect($uri_back);
     } else {
         $uri_back = site_url('mapel');
     }
     $data['uri_back'] = $uri_back;
     $data['mapel'] = $retrieve;
     if ($this->form_validation->run('mapel/edit') == TRUE and !is_demo_app()) {
         $nama = $this->input->post('nama', TRUE);
         $info = $this->input->post('info', TRUE);
         $aktif = $this->input->post('status', TRUE);
         if (empty($aktif)) {
             $aktif = 0;
         }
         $this->mapel_model->update($id, $nama, $info, $aktif);
         $this->session->set_flashdata('mapel', get_alert('success', 'Matapelajaran berhasil di perbaharui.'));
         redirect($uri_back);
     }
     $this->twig->display('edit-mapel.html', $data);
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:29,代码来源:mapel.php


示例4: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Manajemen Matapelajaran</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("mapel");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        <div class=\"row-fluid\">\n            <div class=\"span2\">\n                <a href=\"";
     // line 21
     echo twig_escape_filter($this->env, site_url("mapel/add"), "html", null, true);
     echo "\" class=\"btn btn-primary\">Tambah Mapel</a>\n            </div>\n            <div class=\"span10\">\n                Atur matapelajaran yang ada di sekolah<br>\n                <b>Note: </b> Matapelajaran tidak dapat dihapus namun dapat di ubah menjadi tidak aktif\n            </div>\n        </div>\n\n        <br>\n        <table class=\"table table-striped\">\n            <thead>\n                <tr>\n                    <th width=\"5%\">No</th>\n                    <th>Matapelajaran</th>\n                    <th>Aktif</th>\n                    <th width=\"15%\"></th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 40
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["mapels"]) ? $context["mapels"] : null);
     foreach ($context['_seq'] as $context["no"] => $context["v"]) {
         // line 41
         echo "                <tr>\n                    <td>";
         // line 42
         echo twig_escape_filter($this->env, isset($context["no"]) ? $context["no"] : null, "html", null, true);
         echo ".</td>\n                    <td>\n                        ";
         // line 44
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "nama"), "html", null, true);
         echo "\n                        <br><small>";
         // line 45
         echo nl2br(twig_escape_filter($this->env, $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "info"), "html", null, true));
         echo "</small>\n                    </td>\n                    <td>\n                        ";
         // line 48
         if ($this->getAttribute(isset($context["v"]) ? $context["v"] : null, "aktif") == 1) {
             // line 49
             echo "                        <i class=\"icon-ok\"></i>\n                        ";
         } else {
             // line 51
             echo "                        <i class=\"icon-minus\"></i>\n                        ";
         }
         // line 53
         echo "                    </td>\n                    <td>\n                        <a class=\"btn btn-default\" href=\"";
         // line 55
         echo twig_escape_filter($this->env, site_url("mapel/edit/" . $this->getAttribute(isset($context["v"]) ? $context["v"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
         echo "\"><i class=\"icon-edit\"></i> Edit</a>\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 59
     echo "            </tbody>\n        </table>\n\n        <br>\n        ";
     // line 63
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:57,代码来源:51513400fc954bbd9f4bdbe187cbbeb863fc55965217a298d6e1d19b731b.php


示例5: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor("email", "Email Template");
     echo " / Edit</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("email");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        ";
     // line 19
     echo get_alert("success", "Ubah bentuk atau kata - kata template email selain {\$...}");
     echo "\n\n        ";
     // line 21
     echo form_open("email/edit/" . $this->getAttribute(isset($context["template"]) ? $context["template"] : null, "id"), array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">ID</label>\n                <div class=\"controls\">\n                    <p style=\"margin-top:5px;\">";
     // line 25
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["template"]) ? $context["template"] : null, "id"), "html", null, true);
     echo "</p>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama</label>\n                <div class=\"controls\">\n                    <p style=\"margin-top:5px;\">";
     // line 31
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["template"]) ? $context["template"] : null, "nama"), "html", null, true);
     echo "</p>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Subject</label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"subject\" class=\"span12\" value=\"";
     // line 37
     echo twig_escape_filter($this->env, set_value("subject", $this->getAttribute(isset($context["template"]) ? $context["template"] : null, "subject")), "html", null, true);
     echo "\">\n                    <br>";
     // line 38
     echo form_error("subject");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Body</label>\n                <div class=\"controls\">\n                    <textarea name=\"body\" id=\"body\" style=\"height:300px;width:100%;\">";
     // line 44
     echo set_value("body", html_entity_decode($this->getAttribute(isset($context["template"]) ? $context["template"] : null, "body")));
     echo "</textarea>\n                    ";
     // line 45
     echo form_error("body");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    ";
     // line 50
     if (is_demo_app() == false) {
         // line 51
         echo "                    <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                    ";
     }
     // line 53
     echo "                    <a href=\"";
     echo twig_escape_filter($this->env, site_url("email"), "html", null, true);
     echo "\" class=\"btn btn-default\">Kembali</a>\n                </div>\n            </div>\n        ";
     // line 56
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:56,代码来源:bd8af2e8b9ceb84d88bd17df9ffbf7b5c433f91f98b85bf76bfed39e2e59.php


示例6: login

 public function login()
 {
     if (need_login()) {
         redirect(base_url() . "intro");
     }
     $params["alert"] = get_alert();
     $this->load->view('plain/default_header');
     $this->load->view("login", $params);
     $this->load->view('plain/default_footer');
 }
开发者ID:aliarham11,项目名称:dde2e39a058dd14de5fba1f4b4b85154,代码行数:10,代码来源:base.php


示例7: callout_box

function callout_box()
{
    $alert = get_alert();
    if (!empty($alert)) {
        $type = $alert['type'];
        $msg = $alert['msg'];
        $title = empty($alert['title']) ? '' : "<h4>" . $alert['title'] . "</h4>";
        return "<div class='callout callout-{$type}'>{$title}<p>{$msg}</p></div>";
    }
}
开发者ID:msd1310,项目名称:ci_bootstrap,代码行数:10,代码来源:alert_helper.php


示例8: render_alert

function render_alert($type = '', $msg = '')
{
    if (empty($type) && empty($msg)) {
        $alert = get_alert();
        if (empty($alert)) {
            return '';
        }
        $type = $alert['type'];
        $msg = $alert['msg'];
    }
    return empty($msg) ? '' : '<div class="alert alert-' . $type . '" role="alert">' . $msg . '</div>';
}
开发者ID:wisutsak,项目名称:ci_bootstrap_3,代码行数:12,代码来源:session_helper.php


示例9: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Manajemen Kelas</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("kelas");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        <div class=\"panel panel-info\">\n            <div class=\"panel-heading\">\n                Edit Kelas\n            </div>\n            <div class=\"panel-body\">\n                ";
     // line 24
     echo form_open("kelas/edit/" . $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "id"), array("class" => "form-horizontal row-fluid"));
     echo "\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Nama Kelas <span class=\"text-error\">*</span></label>\n                        <div class=\"controls\">\n                            <input type=\"text\" name=\"nama\" class=\"span5\" placeholder=\"Nama Kelas\" value=\"";
     // line 28
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama")), "html", null, true);
     echo "\">\n                            ";
     // line 29
     echo form_error("nama");
     echo "\n                        </div>\n                    </div>\n                    ";
     // line 32
     if (!(null === $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "parent_id"))) {
         // line 33
         echo "                    <div class=\"control-group\">\n                        <label class=\"control-label\">Status</label>\n                        <div class=\"controls\">\n                            <label class=\"checkbox inline\">\n                                <input type=\"checkbox\" value=\"1\" name=\"status\" ";
         // line 37
         echo twig_escape_filter($this->env, set_checkbox("status", "1", $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "aktif") == 1 ? true : false), "html", null, true);
         echo ">\n                                Aktif\n                            </label>\n                        </div>\n                    </div>\n                    ";
     }
     // line 43
     echo "                    <div class=\"control-group\">\n                        <div class=\"controls\">\n                            ";
     // line 45
     if (is_demo_app() == false) {
         // line 46
         echo "                            <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n                            ";
     }
     // line 48
     echo "                            <a href=\"";
     echo twig_escape_filter($this->env, site_url("kelas"), "html", null, true);
     echo "\" class=\"btn\">Batal</a>\n                        </div>\n                    </div>\n                ";
     // line 51
     echo form_close();
     echo "\n            </div>\n        </div>\n\n        <p class=\"text-warning\"><b>NB:</b> Kelas tidak dapat di hapus namun dapat di ubah menjadi tidak aktif.</p>\n\n        ";
     // line 57
     echo isset($context["kelas_hirarki"]) ? $context["kelas_hirarki"] : null;
     echo "\n\n        <br>\n        <div id=\"response_update\"></div>\n        <button class=\"btn btn-primary\" id=\"update-hirarki\">Update Hirarki</button>\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:51,代码来源:b18943fbab5aac2b10ae65165d7955236ae6d4912fac9e991bb53bb3d277.php


示例10: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor(isset($context["uri_back"]) ? $context["uri_back"] : null, "Manajemen Matapelajaran");
     echo " / Edit</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("mapel");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        ";
     // line 19
     echo form_open("mapel/edit/" . $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "id") . "/" . enurl_redirect(isset($context["uri_back"]) ? $context["uri_back"] : null), array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"nama\" class=\"span8\" value=\"";
     // line 23
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama")), "html", null, true);
     echo "\">\n                    <br>";
     // line 24
     echo form_error("nama");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Deskripsi</label>\n                <div class=\"controls\">\n                    <textarea name=\"info\" class=\"span12\" rows=\"5\">";
     // line 30
     echo set_value("info", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "info"));
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Status</label>\n                <div class=\"controls\">\n                    <label class=\"checkbox inline\">\n                        <input type=\"checkbox\" value=\"1\" name=\"status\" ";
     // line 37
     echo twig_escape_filter($this->env, set_checkbox("status", "1", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "aktif") == 1 ? true : false), "html", null, true);
     echo ">\n                        Aktif\n                    </label>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    ";
     // line 44
     if (is_demo_app() == false) {
         // line 45
         echo "                    <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                    ";
     }
     // line 47
     echo "                    <a href=\"";
     echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
     echo "\" class=\"btn\">Batal</a>\n                </div>\n            </div>\n        ";
     // line 50
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:47,代码来源:87e3b2104f471ace9bcf702a9d0abf9f533aa89ee34390e40035cbd58bba.php


示例11: index

 function index()
 {
     if (is_login()) {
         redirect('welcome');
     }
     if ($this->form_validation->run('login') == TRUE) {
         $email = $this->input->post('email', TRUE);
         $password = md5($this->input->post('password', TRUE));
         $get_login = $this->login_model->retrieve(null, $email, $password);
         if (empty($get_login)) {
             $this->session->set_flashdata('login', get_alert('warning', 'Maaf akun tidak ditemukan.'));
             redirect('login');
         } else {
             # cari user yang login
             if (!empty($get_login['pengajar_id'])) {
                 $user = $this->pengajar_model->retrieve($get_login['pengajar_id']);
                 $user_type = empty($get_login['is_admin']) ? 'pengajar' : 'admin';
             } elseif (!empty($get_login['siswa_id'])) {
                 $user = $this->siswa_model->retrieve($get_login['siswa_id']);
                 $user_type = 'siswa';
             }
             # cek jika user berstatus tidak aktif
             if ($user['status_id'] != 1) {
                 $this->session->set_flashdata('login', get_alert('warning', 'Maaf status anda tidak aktif.'));
                 redirect('login');
             }
             $data_session['login_' . APP_PREFIX][$user_type] = array('login' => $get_login, 'user' => $user);
             $this->session->set_userdata($data_session);
             $_SESSION['E-LEARNING']['KCFINDER'] = array();
             $_SESSION['E-LEARNING']['KCFINDER']['disabled'] = false;
             $_SESSION['E-LEARNING']['KCFINDER']['uploadDir'] = "";
             if ($user_type == 'admin') {
                 $_SESSION['E-LEARNING']['KCFINDER']['uploadURL'] = base_url('assets/uploads/');
             } else {
                 $user_folder = './assets/uploads/' . $get_login['id'];
                 if (!is_dir($user_folder)) {
                     mkdir($user_folder, 0755);
                     chmod($user_folder, 0755);
                 }
                 $_SESSION['E-LEARNING']['KCFINDER']['uploadURL'] = base_url('assets/uploads/' . $get_login['id']);
             }
             redirect('welcome');
         }
     }
     $this->twig->display('login.html');
 }
开发者ID:nicefirework,项目名称:new_elearning,代码行数:46,代码来源:login.php


示例12: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor("mapel", "Manajemen Matapelajaran");
     echo " / Tambah</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("mapel");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        ";
     // line 19
     echo form_open("mapel/add", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"nama\" class=\"span8\" value=\"";
     // line 23
     echo twig_escape_filter($this->env, set_value("nama"), "html", null, true);
     echo "\">\n                    <br>";
     // line 24
     echo form_error("nama");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Deskripsi</label>\n                <div class=\"controls\">\n                    <textarea name=\"info\" class=\"span12\" rows=\"5\">";
     // line 30
     echo set_value("info");
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    ";
     // line 35
     if (is_demo_app() == false) {
         // line 36
         echo "                    <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n                    ";
     }
     // line 38
     echo "                    <a href=\"";
     echo twig_escape_filter($this->env, site_url("mapel"), "html", null, true);
     echo "\" class=\"btn\">Batal</a>\n                </div>\n            </div>\n        ";
     // line 41
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:44,代码来源:162fbf7e3443b9d3a3d53d0f3337e4ba78ec1ead142100bd5b31c58d5cb6.php


示例13: pengaturan

 function pengaturan()
 {
     must_login();
     if (!is_admin()) {
         redirect('welcome');
     }
     $data['comp_js'] = get_tinymce('tinymce, textarea.tinymce');
     if ($this->form_validation->run('pengaturan') == true) {
         foreach ($_POST as $key => $val) {
             # cek ada tidak, kalo ada update
             $retrieve = $this->config_model->retrieve($key);
             if (!empty($retrieve)) {
                 $this->config_model->update($key, $retrieve['nama'], $val);
             }
         }
         $this->session->set_flashdata('pengaturan', get_alert('success', 'Pengaturan berhasil diperbaharui.'));
         redirect('welcome/pengaturan');
     }
     $this->twig->display('pengaturan.html', $data);
 }
开发者ID:unregister,项目名称:new_elearning,代码行数:20,代码来源:welcome.php


示例14: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Manajemen Kelas</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("kelas");
     echo "\n\n        ";
     // line 15
     if (is_demo_app()) {
         // line 16
         echo "            ";
         echo get_alert("warning", get_demo_msg());
         echo "\n        ";
     }
     // line 18
     echo "\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                Tambah Kelas\n            </div>\n            <div class=\"panel-body\">\n                ";
     // line 24
     echo form_open("kelas", array("class" => "form-horizontal row-fluid"));
     echo "\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Nama Kelas <span class=\"text-error\">*</span></label>\n                        <div class=\"controls\">\n                            <input type=\"text\" name=\"nama\" class=\"span5\" placeholder=\"Nama Kelas\" value=\"";
     // line 28
     echo twig_escape_filter($this->env, set_value("nama"), "html", null, true);
     echo "\">\n                            <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n                            ";
     // line 30
     echo form_error("nama");
     echo "\n                        </div>\n                    </div>\n                ";
     // line 33
     echo form_close();
     echo "\n            </div>\n        </div>\n\n        <p><b>Note:</b> Kelas tidak dapat di hapus namun dapat di ubah menjadi tidak aktif</p>\n\n        ";
     // line 39
     echo isset($context["kelas_hirarki"]) ? $context["kelas_hirarki"] : null;
     echo "\n\n        ";
     // line 41
     if (is_demo_app() == false) {
         // line 42
         echo "        <br>\n        <div id=\"response_update\"></div>\n        <button class=\"btn btn-primary\" id=\"update-hirarki\">Update Hirarki</button>\n        ";
     }
     // line 46
     echo "    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:39,代码来源:fe6470fb5c561a913d4cce153aa4bc4f348904e201a1902fa8c98035c283.php


示例15: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Edit Username</h4>\n";
     // line 5
     echo get_flashdata("edit");
     echo "\n\n";
     // line 7
     if (is_demo_app() && $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "is_admin") == true) {
         // line 8
         echo "    ";
         echo get_alert("warning", get_demo_msg());
         echo "\n";
     }
     // line 10
     echo "\n";
     // line 11
     echo form_open("pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["pengajar_id"]) ? $context["pengajar_id"] : null));
     echo "\n<input type=\"hidden\" name=\"login_id\" value=\"";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "id"), "html", null, true);
     echo "\">\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <td>\n                <input type=\"text\" name=\"username\" value=\"";
     // line 17
     echo twig_escape_filter($this->env, set_value("username", $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "username")), "html", null, true);
     echo "\">\n                <br>";
     // line 18
     echo form_error("username");
     echo "\n            </td>\n            ";
     // line 20
     if (is_demo_app() == false || $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "is_admin") == false) {
         // line 21
         echo "            <td width=\"20%\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n            </td>\n            ";
     }
     // line 25
     echo "        </tr>\n    </tbody>\n</table>\n";
     // line 28
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:39,代码来源:7e7dd1c2c76e2346651e10d95c228f0b3ece0219bc41dce4514d3668155d.php


示例16: 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
     if (is_demo_app() && $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "is_admin") == true) {
         // line 8
         echo "    ";
         echo get_alert("warning", get_demo_msg());
         echo "\n";
     }
     // line 10
     echo "\n";
     // line 11
     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 16
     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 20
     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        ";
     // line 23
     if (is_demo_app() == false || $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "is_admin") == false) {
         // line 24
         echo "        <tr>\n            <td colspan=\"2\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n            </td>\n        </tr>\n        ";
     }
     // line 30
     echo "    </tbody>\n</table>\n";
     // line 32
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:36,代码来源:0a92c6ff599d9ec9f2a679bf73c173d0df7e75c562c3897d1ef01c0ad60d.php


示例17: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Edit Password</h4>\n";
     // line 5
     echo get_flashdata("edit");
     echo "\n\n";
     // line 7
     if (is_demo_app() && $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "is_admin") == true) {
         // line 8
         echo "    ";
         echo get_alert("warning", get_demo_msg());
         echo "\n";
     }
     // line 10
     echo "\n";
     // line 11
     echo form_open("pengajar/edit_password/" . (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            <th width=\"35%\">Password Baru <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"password\" name=\"password\">\n                <br>";
     // line 18
     echo form_error("password");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Ulangi Password <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"password\" name=\"password2\">\n                <br>";
     // line 25
     echo form_error("password2");
     echo "\n            </td>\n        <tr>\n        ";
     // line 28
     if (is_demo_app() == false || $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "is_admin") == false) {
         // line 29
         echo "        <tr>\n            <td colspan=\"2\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n            </td> 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_alias_list函数代码示例发布时间:2022-05-15
下一篇:
PHP get_albums函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap