本文整理汇总了PHP中enurl_redirect函数的典型用法代码示例。如果您正苦于以下问题:PHP enurl_redirect函数的具体用法?PHP enurl_redirect怎么用?PHP enurl_redirect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了enurl_redirect函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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>\n </tr>\n ";
}
// line 140
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['m'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 141
echo " </table>\n <br>\n ";
}
// line 144
echo "\n ";
// line 145
if (!twig_test_empty($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "tugas"))) {
// line 146
echo " <b><i class=\"icon-tasks\"></i> Tugas </b>(ditemukan ";
echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["results"]) ? $context["results"] : null, "tugas")), "html", null, true);
echo " record)\n <table class=\"table table-condensed table-striped\">\n ";
// line 148
开发者ID:Raniratna,项目名称:new_elearning,代码行数:67,代码来源:6b99321ce304cba5ce363630e8eafc98c7f0f25abe29738262d079515342.php
示例9: block_content
//.........这里部分代码省略.........
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
// line 64
echo " <li>\n <label class=\"checkbox inline\">\n <input type=\"checkbox\" name=\"kelas_id[]\" value=\"";
// line 66
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"), !twig_test_empty($this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "kelas_id")) && in_array($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "kelas_id")) ? 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 70
echo " </ul>\n </td>\n </tr>\n <tr>\n <th>Tipe</th>\n <td>\n <ul class=\"unstyled inline\" style=\"margin-left: -5px;\">\n <li>\n <label class=\"checkbox inline\">\n <input type=\"checkbox\" name=\"type[]\" value=\"tertulis\" ";
// line 79
echo twig_escape_filter($this->env, set_checkbox("type[]", "tertulis", !twig_test_empty($this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "type")) && in_array("tertulis", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "type")) ? true : ""), "html", null, true);
echo "> Tertulis\n </label>\n </li>\n <li>\n <label class=\"checkbox inline\">\n <input type=\"checkbox\" name=\"type[]\" value=\"file\" ";
// line 84
echo twig_escape_filter($this->env, set_checkbox("type[]", "file", !twig_test_empty($this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "type")) && in_array("file", $this->getAttribute(isset($context["filter"]) ? $context["filter"] : null, "type")) ? true : ""), "html", null, true);
echo "> File\n </label>\n </li>\n </ul>\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 </form>\n </div>\n\n </div>\n\n <br>\n\n <table class=\"table table-striped\">\n <thead>\n <tr>\n <th width=\"7%\">No</th>\n <th>Materi</th>\n <th width=\"15%\">Tipe</th>\n <th width=\"10%\">View</th>\n <th width=\"15%\"></th>\n </tr>\n </thead>\n <tbody>\n ";
// line 115
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["materi"]) ? $context["materi"] : null);
foreach ($context['_seq'] as $context["no"] => $context["m"]) {
// line 116
echo " <tr>\n <td>";
// line 117
echo twig_escape_filter($this->env, isset($context["no"]) ? $context["no"] : null, "html", null, true);
echo ".</td>\n <td>\n <span class=\"text-warning\">";
// line 119
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
echo "</span>\n <br><small><b>";
// line 120
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "mapel"), "nama"), "html", null, true);
echo "</b>, \n \n ";
// line 122
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "materi_kelas"));
foreach ($context['_seq'] as $context["_key"] => $context["mk"]) {
// line 123
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "nama"), "html", null, true);
echo " \n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 125
echo "\n </small>\n <br><small><b>Pembuat : </b> <a href=\"";
// line 127
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "pembuat"), "link_profil"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "pembuat"), "nama"), "html", null, true);
echo "</a>, ";
echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "tgl_posting")), "html", null, true);
echo "</small>\n </td>\n <td>\n ";
// line 130
echo !twig_test_empty($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "file")) ? "<span class=\"label label-info\">File</span>" : "<span class=\"label label-success\">Tertulis</span>";
echo "\n </td>\n <td>";
// line 132
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "views"), "html", null, true);
echo "</td>\n <td>\n <div class=\"btn-group\">\n ";
// line 135
if (!twig_test_empty($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "file"))) {
// line 136
echo " ";
$context["url_type"] = "file";
// line 137
echo " ";
} else {
// line 138
echo " ";
$context["url_type"] = "tertulis";
// line 139
echo " ";
}
// line 140
echo " ";
echo anchor("admin/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" => "_blank"));
echo "\n ";
// line 141
echo anchor("admin/materi/edit/" . (isset($context["url_type"]) ? $context["url_type"] : null) . "/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default btn-small"));
echo "\n ";
// line 142
echo anchor("admin/materi/delete/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-trash\"></i> Hapus", array("class" => "btn btn-default btn-small", "onclick" => "return confirm('Anda yakin ingin menghapus?')"));
echo "\n </div>\n </td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['no'], $context['m'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 147
echo " </tbody>\n </table>\n <br>\n ";
// line 150
echo isset($context["pagination"]) ? $context["pagination"] : null;
echo "\n\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:1a7d35c457bc26bf25eed85567bb62d32e43efcfe0d524dbec8d46428fcd.php
示例10: 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=\"btn-group pull-right\">\n <a class=\"btn btn-default\" href=\"";
// line 13
echo twig_escape_filter($this->env, site_url("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(current_url())), "html", null, true);
echo "\"><i class=\"icon-edit\"></i> Edit Tugas</a>\n ";
// line 14
if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 0) {
// line 15
echo " ";
echo anchor("admin/tugas/tampilkan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : 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 17
echo " ";
echo anchor("admin/tugas/sembunyikan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : 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 19
echo " </div>\n <h2 class=\"title-info\" data-toggle=\"collapse\" data-target=\"#demo\">";
// line 20
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul"), "html", null, true);
echo "</h2>\n <div id=\"demo\" class=\"collapse\">\n <label class=\"label label-warning\">Tipe : ";
// line 22
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type"), "html", null, true);
echo "</label>\n <label class=\"label label-info\">Durasi : ";
// line 23
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi"), "html", null, true);
echo " Menit</label>\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 36
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 37
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama"), "html", null, true);
echo "</td>\n <td>";
// line 38
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 39
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 40
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama"), "html", null, true);
echo " <span class=\"badge badge-info\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "jumlah_siswa"), "html", null, true);
echo " siswa</span></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n <br>\n <a href=\"";
// line 48
echo twig_escape_filter($this->env, site_url("admin/tugas/add_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id")), "html", null, true);
echo "\" class=\"btn btn-primary\">Tambah Soal</a>\n <br><br>\n\n ";
// line 51
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["retrieve_all_pertanyaan"]) ? $context["retrieve_all_pertanyaan"] : null, "results"));
foreach ($context['_seq'] as $context["s_key"] => $context["s"]) {
// line 52
echo " <div class=\"well well-small\" style=\"box-shadow: none;border-radius: 0px;\">\n <table class=\"table table-condensed table-soal\">\n <tbody>\n <tr>\n <td width=\"5%\" valign=\"top\"><span style=\"font-size:15px;font-size: bold;\">";
// line 56
echo twig_escape_filter($this->env, isset($context["s_key"]) ? $context["s_key"] : null, "html", null, true);
echo ".</span></td>\n <td colspan=\"2\">\n ";
// line 58
echo $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pertanyaan");
echo "\n </td>\n <td width=\"10%\">\n <div class=\"btn-group pull-right\">\n ";
// line 62
echo anchor("admin/tugas/edit_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "id"), "<i class=\"icon-edit\"></i>", array("class" => "btn", "data-toggle" => "tooltip", "title" => "Edit Soal"));
echo "\n ";
// line 63
echo anchor("admin/tugas/delete_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "id"), "<i class=\"icon-trash\"></i>", array("class" => "btn", "data-toggle" => "tooltip", "title" => "Hapus Soal", "onclick" => "return confirm('Anda yakin ingin menghapus soal?')"));
echo "\n </div>\n </td>\n </tr>\n ";
// line 67
if (!twig_test_empty($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pilihan"))) {
// line 68
echo " ";
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pilihan"));
foreach ($context['_seq'] as $context["p_key"] => $context["p"]) {
// line 69
echo " <tr>\n <td></td>\n <td width=\"3%\"><b class=\"";
// line 71
echo $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "kunci") == 1 ? "badge badge-success" : "badge";
echo "\">";
echo twig_escape_filter($this->env, get_abjad(isset($context["p_key"]) ? $context["p_key"] : null), "html", null, true);
echo ".</b></td>\n <td>";
// line 72
echo $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "konten");
echo "</td>\n <td></td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['p_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:d2ce361a8c79dda424812990f21778e34f3ec79457ab76472682f9857abf.php
示例11: block_content
//.........这里部分代码省略.........
echo "\">\n </td>\n </tr>\n ";
}
// line 96
echo " <tr>\n <td></td>\n <td>\n <button type=\"submit\" class=\"btn btn-primary\">Filter</button>\n </td>\n </tr>\n </table>\n </form>\n </div>\n\n </div>\n\n <br>\n\n <table class=\"table table-striped\">\n <thead>\n <tr>\n <th width=\"7%\">ID</th>\n <th>Informasi Tugas</th>\n <th width=\"15%\">Tipe Tugas</th>\n <th width=\"15%\"></th>\n </tr>\n </thead>\n <tbody>\n ";
// line 120
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["tugas"]) ? $context["tugas"] : null);
foreach ($context['_seq'] as $context["no"] => $context["m"]) {
// line 121
echo " <tr>\n <td><b>";
// line 122
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "html", null, true);
echo "</b></td>\n <td>\n <strong class=\"text-warning\">";
// line 124
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "judul"), "html", null, true);
echo "</strong>\n <br><small><b>";
// line 125
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "mapel"), "nama"), "html", null, true);
echo "</b>\n\n ";
// line 127
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "tugas_kelas"));
foreach ($context['_seq'] as $context["_key"] => $context["mk"]) {
// line 128
echo " , ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "nama"), "html", null, true);
echo "\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 130
echo "\n ";
// line 131
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Ganda" || $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Essay") {
// line 132
echo " , ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "durasi"), "html", null, true);
echo " Menit\n ";
}
// line 134
echo "\n </small>\n <br><small><b>Pembuat : </b> <a href=\"";
// line 136
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "pembuat"), "link_profil"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "pembuat"), "nama"), "html", null, true);
echo "</a>, ";
echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "tgl_buat")), "html", null, true);
echo "</small>\n </td>\n <td>\n ";
// line 139
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Ganda") {
// line 140
echo " <span class=\"label label-success\">Ganda</span>\n ";
} elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Essay") {
// line 142
echo " <span class=\"label label-info\">Essay</span>\n ";
} elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Upload") {
// line 144
echo " <span class=\"label label-warning\">Upload</span>\n ";
}
// line 146
echo " </td>\n <td>\n <div class=\"btn-group\">\n ";
// line 149
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Ganda" || $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Essay") {
// line 150
echo " ";
echo anchor("tugas/manajemen_soal/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon icon-tasks\"></i> Soal", array("class" => "btn btn-primary btn-small"));
echo "\n ";
}
// line 152
echo " ";
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 0) {
// line 153
echo " ";
echo anchor("tugas/terbitkan/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Terbitkan", array("class" => "btn btn-success btn-small"));
echo "\n ";
} elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 1) {
// line 155
echo " ";
echo anchor("tugas/tutup/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-minus\"></i> Tutup", array("class" => "btn btn-danger btn-small"));
echo "\n ";
}
// line 157
echo "\n ";
// line 158
echo anchor("tugas/edit/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default btn-small"));
echo "\n ";
// line 159
echo anchor("tugas/koreksi/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-check\"></i> Koreksi", array("class" => "btn btn-info btn-small"));
echo "\n </div>\n </td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['no'], $context['m'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 164
echo " </tbody>\n </table>\n <br>\n ";
// line 167
echo isset($context["pagination"]) ? $context["pagination"] : null;
echo "\n\n </div>\n</div>\n";
}
开发者ID:nicefirework,项目名称:new_elearning,代码行数:101,代码来源:15a290914e04874404a546e9c3097768976d6925efc804ad62a129b0e746.php
示例12: block_content
//.........这里部分代码省略.........
// line 158
if (is_siswa() && $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "info") != "") {
// line 159
echo " <hr style=\"margin-top: 5px;margin-bottom: 5px;border:none;border-bottom: 1px dashed black;\">\n ";
// line 160
echo $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "info");
echo "\n ";
}
// line 162
echo " </td>\n <td>\n ";
// line 164
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Ganda") {
// line 165
echo " <span class=\"label label-success\">Ganda</span>\n ";
} elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Essay") {
// line 167
echo " <span class=\"label label-info\">Essay</span>\n ";
} elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Upload") {
// line 169
echo " <span class=\"label label-warning\">Upload</span>\n ";
}
// line 171
echo " </td>\n <td>\n <div class=\"btn-group\">\n ";
// line 174
if (is_siswa() == false) {
// line 175
echo " ";
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Ganda" || $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_label") == "Essay") {
// line 176
echo " ";
echo anchor("tugas/manajemen_soal/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon icon-tasks\"></i> Soal", array("class" => "btn btn-primary btn-small"));
echo "\n ";
}
// line 178
echo " ";
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 0) {
// line 179
echo " ";
echo anchor("tugas/terbitkan/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Terbitkan", array("class" => "btn btn-success btn-small"));
echo "\n ";
} elseif ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 1) {
// line 181
echo " ";
echo anchor("tugas/tutup/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-minus\"></i> Tutup", array("class" => "btn btn-danger btn-small"));
echo "\n ";
}
// line 183
echo "\n ";
// line 184
echo anchor("tugas/edit/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default btn-small"));
echo "\n ";
// line 185
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "type_id") == 3) {
// line 186
echo " ";
echo anchor("tugas/nilai/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-eye-open\"></i> Lihat Nilai", array("class" => "btn btn-info btn-small"));
echo "\n ";
} else {
// line 188
echo " ";
echo anchor("tugas/koreksi/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-check\"></i> Koreksi", array("class" => "btn btn-info btn-small"));
echo "\n ";
}
// line 190
echo " ";
} elseif (is_siswa() == true) {
// line 191
echo " ";
if ($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "aktif") == 1) {
// line 192
echo " ";
if (sudah_ngerjakan($this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), get_sess_data("user", "id")) == false) {
// line 193
echo " ";
echo anchor("tugas/kerjakan/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-ok-sign\"></i> Mulai Kerjakan", array("class" => "btn btn-success btn-small", "onclick" => "return confirm('Anda yakin ingin memulai mengerjakan tugas ini?')"));
echo "\n ";
}
// line 195
echo " ";
} else {
// line 196
echo " ";
echo anchor("tugas/nilai/" . $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "id"), "<i class=\"icon-flag\"></i> Lihat Nilai", array("class" => "btn btn-info btn-small iframe-lihat-nilai"));
echo "\n ";
}
// line 198
echo " ";
}
// line 199
echo " </div>\n </td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['no'], $context['m'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 203
echo " </tbody>\n </table>\n <br>\n ";
// line 206
echo isset($context["pagination"]) ? $context["pagination"] : null;
echo "\n\n </div>\n</div>\n";
}
开发者ID:unregister,项目名称:new_elearning,代码行数:101,代码来源:15a290914e04874404a546e9c3097768976d6925efc804ad62a129b0e746.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>";
// line 10
echo anchor(isset($context["uri_back"]) ? $context["uri_back"] : null, "Materi");
echo " / Edit Materi</h3>\n </div>\n <div class=\"module-body\">\n ";
// line 13
echo get_flashdata("materi");
echo "\n\n ";
// line 15
echo form_open_multipart("materi/edit/" . (isset($context["type"]) ? $context["type"] : null) . "/" . $this->getAttribute(isset($context["materi"]) ? $context["materi"] : 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["materi"]) ? $context["materi"] : 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["materi"]) ? $context["materi"] : 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["materi_kelas"]) ? $context["materi_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 ";
// line 50
if ((isset($context["type"]) ? $context["type"] : null) == "tertulis") {
// line 51
echo " <div class=\"control-group\">\n <label class=\"control-label\">Konten <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <textarea name=\"konten\" id=\"konten\" style=\"height:500px;width:100%;\">";
// line 54
echo set_value("konten", html_entity_decode($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "konten")));
echo "</textarea>\n ";
// line 55
echo form_error("konten");
echo "\n </div>\n </div>\n ";
} elseif ((isset($context["type"]) ? $context["type"] : null) == "file") {
// line 59
echo " <div class=\"control-group\">\n <label class=\"control-label\">Info File</label>\n <div class=\"controls\">\n <table class=\"table table-condensed table-striped\">\n <tbody>\n <tr>\n <th>Name</th>\n <td><a href=\"";
// line 66
echo twig_escape_filter($this->env, base_url("userfiles/files/" . $this->getAttribute(isset($context["file_info"]) ? $context["file_info"] : null, "name")), "html", null, true);
echo "\" target=\"_tab\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["file_info"]) ? $context["file_info"] : null, "name"), "html", null, true);
echo "</a></td>\n </tr>\n <tr>\n <th>Server Path</th>\n <td>";
// line 70
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["file_info"]) ? $context["file_info"] : null, "server_path"), "html", null, true);
echo "</td>\n </tr>\n <tr>\n <th>Size</th>\n <td>";
// line 74
echo twig_escape_filter($this->env, byte_format($this->getAttribute(isset($context["file_info"]) ? $context["file_info"] : null, "size")), "html", null, true);
echo "</td>\n </tr>\n <tr>\n <th>Modified</th>\n <td>";
// line 78
echo twig_escape_filter($this->env, mdate("%d %F %Y %H:%i", $this->getAttribute(isset($context["file_info"]) ? $context["file_info"] : null, "date")), "html", null, true);
echo "</td>\n </tr>\n <tr>\n <th>Mime</th>\n <td>";
// line 82
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["file_info"]) ? $context["file_info"] : null, "mime"), "html", null, true);
echo "</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Ganti File</label>\n <div class=\"controls\">\n <input type=\"file\" name=\"userfile\">\n <br>";
// line 92
echo !twig_test_empty(isset($context["error_upload"]) ? $context["error_upload"] : null) ? isset($context["error_upload"]) ? $context["error_upload"] : null : "";
echo "\n </div>\n </div>\n ";
}
// line 96
echo " <div class=\"control-group\">\n <div class=\"controls\">\n <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n <a href=\"";
// line 99
echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:ed6f68c91c9d605c0ed55641d039890087e9396a5a76defa6b0cdb51928a.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>";
// line 10
echo anchor("tugas", "Tugas");
echo " / Manajemen Soal Tugas</h3>\n </div>\n <div class=\"module-body\">\n ";
// line 13
echo get_flashdata("tugas");
echo "\n\n <div class=\"bs-callout bs-callout-info\">\n <div class=\"btn-group pull-right\" style=\"margin-top:-5px;\">\n ";
// line 17
echo anchor("tugas/edit/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon icon-edit\"></i> Edit Tugas", array("class" => "btn btn-default"));
echo "\n ";
// line 18
if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 0) {
// line 19
echo " ";
echo anchor("tugas/terbitkan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Terbitkan", array("class" => "btn btn-success btn-small"));
echo "\n ";
} elseif ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 1) {
// line 21
echo " ";
echo anchor("tugas/tutup/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-minus\"></i> Tutup", array("class" => "btn btn-danger btn-small"));
echo "\n ";
}
// line 23
echo " </div>\n <b><a class=\"as-link\" data-toggle=\"collapse\" data-target=\"#detail-tugas\"><i class=\"icon-info-sign\" style=\"line-height: 0px;\"></i> ";
// line 24
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul")), "html", null, true);
echo "</a></b>\n\n <div id=\"detail-tugas\" class=\"collapse\" style=\"margin-top: 5px;\">\n <table class=\"table\">\n <tr>\n <th style=\"border-top: none;\" width=\"15%\">Tipe</th>\n <td style=\"border-top: none;\">";
// line 30
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_label"), "html", null, true);
echo "</td>\n </tr>\n <tr>\n <th>Judul</th>\n <td>";
// line 34
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul"), "html", null, true);
echo "</td>\n </tr>\n <tr>\n <th>Matapelajaran</th>\n <td>";
// line 38
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "mapel"), "nama"), "html", null, true);
echo "</td>\n </tr>\n <tr>\n <th>Kelas</th>\n <td>\n <ul class=\"unstyled inline\" style=\"margin-left: -5px;margin-bottom: 0px;\">\n ";
// line 44
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "tugas_kelas"));
foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
// line 45
echo " <li>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
echo "</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 47
echo " </ul>\n </td>\n </tr>\n <tr>\n <th>Info</th>\n <td>";
// line 52
echo $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "info");
echo "</td>\n </tr>\n <tr>\n <th>Durasi</th>\n <td>";
// line 56
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi"), "html", null, true);
echo " Menit</td>\n </tr>\n </table>\n </div>\n\n </div>\n <br>\n\n <div class=\"btn-group\">\n <a href=\"";
// line 65
echo twig_escape_filter($this->env, site_url("tugas/tambah_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id")), "html", null, true);
echo "\" class=\"btn btn-primary iframe-pertanyaan\" title=\"Tambah Pertanyaan\">Tambah Pertanyaan</a>\n </div>\n <br><br>\n\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"5%\">No</th>\n <th>Pertanyaan ";
// line 73
echo $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3 ? " dan Pilihan" : "";
echo "</th>\n </tr>\n </thead>\n <tbody>\n ";
// line 77
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 78
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 79
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "urutan"), "html", null, true);
echo ".</b></td>\n <td>\n <div class=\"pertanyaan\">\n <div class=\"btn-group pull-right\" style=\"margin-left:10px;\">\n ";
// line 83
if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3) {
// line 84
echo " <a href=\"";
echo twig_escape_filter($this->env, site_url("tugas/tambah_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
echo "\" class=\"btn btn-small btn-default iframe-pilihan\" data-toggle=\"tooltip\" title=\"Tambah Pilihan\"><i class=\"icon-tasks\"></i></a>\n ";
}
// line 86
echo " <a href=\"";
echo twig_escape_filter($this->env, site_url("tugas/edit_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
echo "\" class=\"btn btn-small btn-default iframe-pertanyaan\" data-toggle=\"tooltip\" title=\"Edit Pertanyaan\"><i class=\"icon-edit\"></i></a>\n <a onclick=\"return confirm('Anda yakin ingin menghapus?')\" href=\"";
// line 87
echo twig_escape_filter($this->env, site_url("tugas/hapus_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
echo "\" class=\"btn btn-small btn-default\" data-toggle=\"tooltip\" title=\"Hapus Pertanyaan\"><i class=\"icon-trash\"></i></a>\n </div>\n\n ";
// line 90
echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
echo "\n </div>\n\n ";
// line 93
if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3) {
// line 94
echo " <div id=\"pilihan-";
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 97
//.........这里部分代码省略.........
开发者ID:nicefirework,项目名称:new_elearning,代码行数:101,代码来源:6c140678820f92a9bd036d430ad0b4a158cc409334292dedc2b448afbbf2.php
示例15: 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>\n ";
// line 12
echo form_open("admin/tugas/edit_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"));
echo "\n <input type=\"hidden\" name=\"jumlah_pilihan\" value=\"4\">\n <table class=\"table table-bordered table-hover\">\n <thead>\n <tr>\n <th>\n <div class=\"bs-callout bs-callout-info bs-callout-noborder\">\n <div class=\"btn-group pull-right\">\n <a class=\"btn btn-default\" href=\"";
// line 20
echo twig_escape_filter($this->env, site_url("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(current_url())), "html", null, true);
echo "\"><i class=\"icon-edit\"></i> Edit Tugas</a>\n ";
// line 21
if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 0) {
// line 22
echo " ";
echo anchor("admin/tugas/tampilkan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : 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 24
echo " ";
echo anchor("admin/tugas/sembunyikan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : 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 26
echo " </div>\n <h2 class=\"title-info\" data-toggle=\"collapse\" data-target=\"#demo\">";
// line 27
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul"), "html", null, true);
echo "</h2>\n <div id=\"demo\" class=\"collapse\">\n <label class=\"label label-warning\">Tipe : ";
// line 29
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type"), "html", null, true);
echo "</label>\n <label class=\"label label-info\">Durasi : ";
// line 30
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi"), "html", null, true);
echo " Menit</label>\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 43
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 44
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama"), "html", null, true);
echo "</td>\n <td>";
// line 45
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 46
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 47
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama"), "html", null, true);
echo " <span class=\"badge badge-info\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "jumlah_siswa"), "html", null, true);
echo " siswa</span></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr class=\"info\">\n <td>\n <div class=\"row-fluid\">\n <div class=\"span10\">\n <ul class=\"unstyled inline\" style=\"margin-left: -5px;\">\n ";
// line 62
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["retrieve_all_pertanyaan"]) ? $context["retrieve_all_pertanyaan"] : null, "results"));
foreach ($context['_seq'] as $context["s_key"] => $context["s"]) {
// line 63
echo " <li>\n ";
// line 64
if (!twig_test_empty($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "kunci_index"))) {
// line 65
echo " ";
$context["kunci_index"] = get_abjad($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "kunci_index"));
// line 66
echo " ";
} else {
// line 67
echo " ";
$context["kunci_index"] = "";
// line 68
echo " ";
}
// line 69
echo " ";
echo anchor("admin/tugas/edit_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "id"), (isset($context["s_key"]) ? $context["s_key"] : null) . ". " . (isset($context["kunci_index"]) ? $context["kunci_index"] : null), array("class" => "label label-info", "data-toggle" => "tooltip", "title" => word_limiter(strip_tags($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pertanyaan")), 50)));
echo "\n </li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['s_key'], $context['s'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
echo " </ul>\n <b>Jumlah Soal Tersimpan : ";
// line 73
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["retrieve_all_pertanyaan"]) ? $context["retrieve_all_pertanyaan"] : null, "total_record"), "html", null, true);
echo "</b>\n </div>\n <div class=\"span2\">\n ";
// line 76
echo anchor("admin/tugas/add_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id"), "Tambah Soal", array("class" => "btn btn-primary"));
echo "\n </div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n <div class=\"btn-group pull-right\">\n <button class=\"btn btn-primary\" type=\"submit\">Update Soal</button>\n ";
// line 85
echo anchor("admin/tugas/delete_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"), "Hapus Soal", array("class" => "btn btn-danger", "onclick" => "return confirm('Anda yakin ingin manghapus soal ini?')"));
echo "\n </div>\n <h3>Edit Pertanyaan <span class=\"text-error\">*</span> ";
// line 87
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:f0ce35c95de7c64068c36a366b5a7160a91965e87c58dfa584e3e7f19e80.php