本文整理汇总了PHP中enurl_redirect函数的典型用法代码示例。如果您正苦于以下问题:PHP enurl_redirect函数的具体用法?PHP enurl_redirect怎么用?PHP enurl_redirect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了enurl_redirect函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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("mapel");
echo "\n\n ";
// line 11
echo form_open("admin/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 15
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 16
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 22
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 29
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 <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n <a href=\"";
// line 37
echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
echo "\" class=\"btn\">Batal</a>\n </div>\n </div>\n ";
// line 40
echo form_close();
echo "\n\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:32,代码来源:815802a5180dd7c8e97f6c0c40a1eabb2b4db23228355d8eabfd1a8cda19.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>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
示例3: 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("mapel");
echo "\n\n <div class=\"bs-callout bs-callout-info\">\n <p>\n Pilih matapelajaran yang ingin di masukkan pada <b>";
// line 13
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama", array(), "array"), "html", null, true);
echo "</b>\n </p>\n </div>\n <br>\n\n ";
// line 18
echo form_open("admin/mapel_kelas/add/" . $this->getAttribute(isset($context["parent"]) ? $context["parent"] : null, "id", array(), "array") . "/" . $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "id", array(), "array") . "/" . enurl_redirect(isset($context["uri_back"]) ? $context["uri_back"] : null));
echo "\n <table class=\"table table-striped\">\n <tbody>\n ";
// line 21
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["mapels"]) ? $context["mapels"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["m"]) {
// line 22
echo " ";
$context["checked"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => null, 1 => $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "id", array(), "array"), 2 => $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id")));
// line 23
echo " <tr>\n <td>\n ";
// line 25
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") != 1) {
// line 26
echo " <span class=\"badge badge-warning pull-right\">Matapelajaran Tidak Aktif</span>\n ";
}
// line 28
echo " <label><input type=\"checkbox\" name=\"mapel[]\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "html", null, true);
echo "\" style=\"margin-top:-2px;margin-right:5px;\" ";
echo $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") != 1 ? "disabled" : "";
echo " ";
echo twig_test_empty(isset($context["checked"]) ? $context["checked"] : null) ? "" : "checked";
echo "> ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
echo "</label>\n <small>";
// line 29
echo nl2br(twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "info"), "html", null, true));
echo "</small>\n </td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['m'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo " </tbody>\n </table>\n <br>\n <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n <a href=\"";
// line 37
echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
echo "\" class=\"btn btn-default\">Kembali</a>\n ";
// line 38
echo form_close();
echo "\n\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:56,代码来源:813f03298479b9687cd34aa10558e4466f8b977b329b1ee7db708d946b8f.php
示例4: 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("tugas");
echo "\n\n <div class=\"row-fluid\">\n <div class=\"span8\">\n <button class=\"btn btn-primary\" id=\"popover\" data-html=\"true\" data-title=\"Cara Tambah Tugas\" data-content=\"Masuk ke detail profil <b>Pengajar</b>. Tugas dapat ditambah pada <b>Matapelajaran</b> yang diajar.<br>\n <br>";
// line 14
echo twig_escape_filter($this->env, anchor("admin/pengajar/filter", "Cari Pengajar", array("class" => "btn btn-small btn-primary")), "html", null, true);
echo "\" data-toggle=\"popover\">Tambah Tugas</button>\n </div>\n\n <div class=\"span4\">\n <div class=\"btn-group pull-right\">\n ";
// line 19
echo anchor("admin/tugas/list/0", "Semua", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 0 ? "btn btn-info" : "btn"));
echo "\n ";
// line 20
echo anchor("admin/tugas/list/1", "Upload", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 1 ? "btn btn-info" : "btn"));
echo "\n ";
// line 21
echo anchor("admin/tugas/list/2", "Essay", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 2 ? "btn btn-info" : "btn"));
echo "\n ";
// line 22
echo anchor("admin/tugas/list/3", "Ganda", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 3 ? "btn btn-info" : "btn"));
echo "\n ";
// line 23
echo anchor("admin/tugas/filter", "<i class=\"icon-search\"></i> Filter", array("class" => "btn"));
echo "\n </div>\n </div>\n </div>\n\n <br>\n ";
// line 29
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["tugas"]) ? $context["tugas"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
// line 30
echo " <div class=\"well well-small\" style=\"box-shadow: none;border-radius: 0px;\">\n <div class=\"btn-group pull-right\" style=\"margin-bottom: 0px;\">\n ";
// line 32
echo anchor("admin/tugas/edit/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar_id") . "/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default"));
echo "\n\n ";
// line 34
if ($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type_id") != 1) {
// line 35
echo " <a class=\"btn btn-default\" href=\"";
echo twig_escape_filter($this->env, site_url("admin/tugas/soal/" . $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "id") . "/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id")), "html", null, true);
echo "\" data-toggle=\"tooltip\" title=\"Manajemen Soal\"><i class=\"icon-align-justify\"></i> Soal</a>\n ";
}
// line 37
echo "\n ";
// line 38
if ($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "aktif") == 0) {
// line 39
echo " ";
echo anchor("admin/tugas/tampilkan/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Tampilkan</a>", array("class" => "btn btn-default", "data-toggle" => "tooltip", "title" => "Tampilkan agar siswa dapat <br>mengerjakan tugas"));
echo "\n ";
} else {
// line 41
echo " ";
echo anchor("admin/tugas/sembunyikan/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Sembunyikan</a>", array("class" => "btn btn-success", "data-toggle" => "tooltip", "title" => "Sembunyikan agar siswa sudah <br>tidak dapat mengerjakan tugas"));
echo "\n ";
}
// line 43
echo "\n ";
// line 44
echo anchor("admin/tugas/koreksi/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id"), "<i class=\"icon-eye-open\"></i> Koreksi", array("class" => "btn btn-default", "data-toggle" => "tooltip", "title" => "Koreksi Jawaban"));
echo "\n </div>\n <h3 style=\"line-height: 25px;\">";
// line 46
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "judul"), "html", null, true);
echo "</h3>\n <ul class=\"unstyled inline\" style=\"margin-bottom: 5px;margin-top: 5px;\">\n <li class=\"label label-success\">";
// line 48
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type"), "html", null, true);
echo "</li>\n ";
// line 49
if ($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type_id") == 2 || $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type_id") == 3) {
// line 50
echo " <li class=\"label label-success\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "durasi"), "html", null, true);
echo " menit</li>\n ";
}
// line 52
echo " <li class=\"label label-info\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel"), "nama"), "html", null, true);
echo "</li>\n <li class=\"label label-info\">";
// line 53
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "kelas"), "nama"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "kelas"), "jumlah_siswa"), "html", null, true);
echo " siswa)</li>\n <li class=\"label label-info\">";
// line 54
echo twig_escape_filter($this->env, get_indo_hari($this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "hari_id")), "html", null, true);
echo "</li>\n <li class=\"label label-info\">";
// line 55
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "jam_mulai"), "H:i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "jam_selesai"), "H:i"), "html", null, true);
echo "</li>\n </ul>\n \n <div class=\"row-fluid\">\n <div class=\"span8\">\n ";
// line 60
echo $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "info");
echo "\n </div>\n <div class=\"span4\">\n <span class=\"text-muted pull-right\">\n <a href=\"";
// line 64
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "pengajar"), "link_profil"), "html", null, true);
echo "\" data-toggle=\"tooltip\" title=\"Pembuat\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "pengajar"), "nama"), "html", null, true);
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:f6a8bbc9d4510b0e2462c45ac033b1c50e4c57a49a0d2bcb629993da2395.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(isset($context["uri_back"]) ? $context["uri_back"] : null, "Tugas");
echo " / Edit Tugas ";
echo twig_escape_filter($this->env, isset($context["type_label"]) ? $context["type_label"] : null, "html", null, true);
echo "</h3>\n </div>\n <div class=\"module-body\">\n ";
// line 13
echo get_flashdata("tugas");
echo "\n\n ";
// line 15
echo form_open_multipart("tugas/edit/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : 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\">Judul <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <input type=\"text\" name=\"judul\" class=\"span12\" value=\"";
// line 19
echo twig_escape_filter($this->env, set_value("judul", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul")), "html", null, true);
echo "\">\n <br>";
// line 20
echo form_error("judul");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Matapelajaran <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <select name=\"mapel_id\">\n <option value=\"\">--pilih--</option>\n ";
// line 28
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["mapel"]) ? $context["mapel"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["m"]) {
// line 29
echo " <option value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "html", null, true);
echo "\" ";
echo twig_escape_filter($this->env, set_select("mapel_id", $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") == $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "mapel_id") ? true : ""), "html", null, true);
echo ">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
echo "</option>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['m'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " </select>\n <br>";
// line 32
echo form_error("mapel_id");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Kelas <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <ul class=\"unstyled inline\" style=\"margin-left: -5px;\">\n ";
// line 39
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
// line 40
echo " <li>\n <label class=\"checkbox inline\">\n <input type=\"checkbox\" name=\"kelas_id[]\" value=\"";
// line 42
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
echo "\" ";
echo twig_escape_filter($this->env, set_checkbox("kelas_id[]", $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), in_array($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), isset($context["tugas_kelas"]) ? $context["tugas_kelas"] : null) ? true : ""), "html", null, true);
echo "> ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
echo "\n </label>\n </li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " </ul>\n ";
// line 47
echo form_error("kelas_id[]");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Info</label>\n <div class=\"controls\">\n <textarea name=\"info\" id=\"info\" style=\"width:100%; height:300px;\">";
// line 53
echo set_value("info", html_entity_decode($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "info")));
echo "</textarea>\n ";
// line 54
echo form_error("info");
echo "\n </div>\n </div>\n ";
// line 57
if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") != 1) {
// line 58
echo " <div class=\"control-group\">\n <label class=\"control-label\">Durasi <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <input type=\"text\" name=\"durasi\" class=\"span2\" value=\"";
// line 61
echo twig_escape_filter($this->env, set_value("durasi", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi")), "html", null, true);
echo "\" placeholder=\"Dalam menit\">\n <br>";
// line 62
echo form_error("durasi");
echo "\n </div>\n </div>\n ";
}
// line 66
echo " <div class=\"control-group\">\n <div class=\"controls\">\n <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n <a href=\"";
// line 69
echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
echo "\" class=\"btn btn-default\">Kembali</a>\n </div>\n </div>\n ";
// line 72
echo form_close();
echo "\n\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:90,代码来源:57689dba883f075b276acce32184b173a84ad4b62dc066e0c2718deda0b1.php
示例6: mapel_kelas_hirarki
private function mapel_kelas_hirarki($view = '', $params = array())
{
$parent = $this->kelas_model->retrieve_all(null, !empty($params['parent_id']) ? array('id' => $params['parent_id']) : array());
$return = '';
foreach ($parent as $p) {
$return .= '<div class="parent-kelas" id="parent-' . $p['id'] . '">' . $p['nama'] . '</div>';
$sub_kelas = $this->kelas_model->retrieve_all($p['id'], !empty($params['sub_id']) ? array('id' => $params['sub_id']) : array());
foreach ($sub_kelas as $s) {
$return .= '<div class="panel panel-info" id="subkelas-' . $s['id'] . '" style="margin-left:25px;margin-bottom:5px;">';
switch ($view) {
default:
$return .= '<div class="panel-heading">
' . $s['nama'] . ' ' . ($s['aktif'] == 0 ? '<span class="label label-warning">Kelas tidak aktif</span>' : '') . '
' . ($s['aktif'] == 1 ? '<a href="' . site_url('admin/mapel_kelas/add/' . $p['id'] . '/' . $s['id'] . '/' . enurl_redirect(current_url())) . '" class="btn btn-info pull-right" style="margin-top:-5px;"><i class="icon-wrench"></i> Atur Matapelajaran</a>' : '') . '
</div>';
if ($s['aktif'] == 1) {
$return .= '<div class="panel-body">';
$retrieve_all = $this->mapel_model->retrieve_all_kelas(null, $s['id']);
$return .= '<table class="table table-striped table-condensed">
<tbody>';
foreach ($retrieve_all as $v) {
$m = $this->mapel_model->retrieve($v['mapel_id']);
if (empty($m)) {
continue;
}
$return .= '<tr>
<td>
<div class="btn-group pull-right">
<a class="btn btn-default" href="#modal-' . $v['id'] . '" data-toggle="modal"><i class="icon-trash"></i> Hapus</a>
</div>
' . $m['nama'] . '<br>
<small>' . nl2br($m['info']) . '</small>
<div id="modal-' . $v['id'] . '" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Konfirmasi</h3>
</div>
<div class="modal-body">
<p>Menghapus matapelajaran kelas akan menghapus data - data yang berkaitan yaitu :</p>
<ol>
<li>Jadwal Mengajar Pengajar</li>
<li>Tugas pada jadwal mengajar no. 1</li>
</ol>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Batal</button>
<a class="btn btn-danger" href="' . site_url('admin/mapel_kelas/remove/' . $p['id'] . '/' . $s['id'] . '/' . $v['id'] . '/' . enurl_redirect(current_url())) . '">Tetap Hapus</a>
</div>
</div>
</td>
</tr>';
}
$return .= '</tbody>
</table>';
$return .= '</div>';
}
break;
}
$return .= '</div>';
}
}
return $return;
}
开发者ID:nicefirework,项目名称:new_elearning,代码行数:64,代码来源:admin.php
示例7: 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("tugas");
echo "\n\n <div class=\"bs-callout bs-callout-info bs-callout-noborder\">\n <div class=\"row-fluid\">\n <div class=\"span11\">\n <table class=\"table table-condensed table-striped\">\n <thead>\n <tr>\n <th>Pengajar</th>\n <th>Matapelajaran</th>\n <th>Hari</th>\n <th>Jam</th>\n <th>Kelas</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td><a href=\"";
// line 26
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "link_profil"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
echo "</a></td>\n <td>";
// line 27
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama"), "html", null, true);
echo "</td>\n <td>";
// line 28
echo twig_escape_filter($this->env, get_indo_hari($this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "hari_id")), "html", null, true);
echo "</td>\n <td>";
// line 29
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_mulai"), "H:i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_selesai"), "H:i"), "html", null, true);
echo "</td>\n <td>";
// line 30
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama"), "html", null, true);
echo " <b>( ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "jumlah_siswa"), "html", null, true);
echo " siswa)</b></td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"span1\">\n <img src=\"";
// line 36
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "link_foto"), "html", null, true);
echo "\" class=\"pull-right img-circle img-polaroid img-profile-top\">\n </div>\n </div>\n </div>\n\n <br>\n ";
// line 42
echo form_open_multipart("admin/tugas/edit/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : 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\">Judul Tugas <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <input type=\"text\" name=\"judul\" class=\"span12\" value=\"";
// line 46
echo twig_escape_filter($this->env, set_value("judul", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul")), "html", null, true);
echo "\">\n <br>";
// line 47
echo form_error("judul");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Durasi</label>\n <div class=\"controls\">\n <input type=\"text\" name=\"durasi\" value=\"";
// line 53
echo twig_escape_filter($this->env, set_value("durasi", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi")), "html", null, true);
echo "\" class=\"span2\" placeholder=\"Dalam Menit\">\n <br><span class=\"text-muted\">Kusus untuk tipe soal <b>Pilihan Ganda</b> dan <b>Essay</b></span>\n <br>";
// line 55
echo form_error("durasi");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Info</label>\n <div class=\"controls\">\n <textarea name=\"info\" id=\"info\" style=\"height:150px;width:100%;\">";
// line 61
echo set_value("info", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "info"));
echo "</textarea>\n ";
// line 62
echo form_error("info");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <div class=\"controls\">\n <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n ";
// line 68
echo anchor(isset($context["uri_back"]) ? $context["uri_back"] : null, "Kembali", array("class" => "btn"));
echo "\n </div>\n </div>\n ";
// line 71
echo form_close();
echo "\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:62,代码来源:08351934e4f5000ec1788d02cabe196213251bdd851e9c340f97ebd9a0d2.php
示例8: block_content
//.........这里部分代码省略.........
// line 112
echo twig_escape_filter($this->env, site_url("materi/detail/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id")), "html", null, true);
echo "\" target=\"_tab\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
echo "</a>\n </td>\n </tr>\n ";
} else {
// line 116
echo " <tr>\n <td>\n ";
// line 118
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
echo "\n </td>\n <td width=\"20%\">\n <div class=\"btn-group\">\n ";
// line 122
if (!twig_test_empty($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "file"))) {
// line 123
echo " ";
$context["url_type"] = "file";
// line 124
echo " ";
} else {
// line 125
echo " ";
$context["url_type"] = "tertulis";
// line 126
echo " ";
}
// line 127
echo " ";
echo anchor("materi/detail/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-zoom-in\"></i> Detail", array("class" => "btn btn-default btn-small", "target" => "_tab"));
echo "\n\n ";
// line 129
if ((isset($context["action_edit"]) ? $context["action_edit"] : null) == true) {
// line 130
echo " ";
echo anchor("materi/edit/" . (isset($context["url_type"]) ? $context["url_type"] : null) . "/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default btn-small"));
echo "\n ";
}
// line 132
echo "\n ";
// line 133
if ((isset($context["action_delete"]) ? $context["action_delete"] : null) == true) {
// line 134
echo " ";
echo anchor("materi/delete/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url() . "?q=" . (isset($context["keyword"]) ? $context["keyword"] : null)), "<i class=\"icon-trash\"></i> Hapus", array("class" => "btn btn-default btn-small", "onclick" => "return confirm('Anda yakin ingin menghapus?')"));
echo "\n ";
}
// line 136
echo " </div>\n </td>
|
请发表评论