<?php

namespace PHPMaker2021\rkm21;

// Page object
$MateriView = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<script>
var currentForm, currentPageID;
var fmateriview;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "view";
    fmateriview = currentForm = new ew.Form("fmateriview", "view");
    loadjs.done("fmateriview");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php } ?>
<script>
if (!ew.vars.tables.materi) ew.vars.tables.materi = <?= JsonEncode(GetClientVar("tables", "materi")) ?>;
</script>
<?php if (!$Page->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $Page->ExportOptions->render("body") ?>
<?php $Page->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fmateriview" id="fmateriview" class="form-inline ew-form ew-view-form" action="<?= CurrentPageUrl(false) ?>" method="post">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="materi">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="table table-borderless table-hover table-sm ew-view-table">
<?php if ($Page->materi_id->Visible) { // materi_id ?>
    <tr id="r_materi_id">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_materi_materi_id"><?= $Page->materi_id->caption() ?></span></td>
        <td data-name="materi_id" <?= $Page->materi_id->cellAttributes() ?>>
<span id="el_materi_materi_id">
<span<?= $Page->materi_id->viewAttributes() ?>>
<?= $Page->materi_id->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->kode_mapel->Visible) { // kode_mapel ?>
    <tr id="r_kode_mapel">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_materi_kode_mapel"><?= $Page->kode_mapel->caption() ?></span></td>
        <td data-name="kode_mapel" <?= $Page->kode_mapel->cellAttributes() ?>>
<span id="el_materi_kode_mapel">
<span<?= $Page->kode_mapel->viewAttributes() ?>>
<?= $Page->kode_mapel->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->kode->Visible) { // kode ?>
    <tr id="r_kode">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_materi_kode"><?= $Page->kode->caption() ?></span></td>
        <td data-name="kode" <?= $Page->kode->cellAttributes() ?>>
<span id="el_materi_kode">
<span<?= $Page->kode->viewAttributes() ?>>
<?= $Page->kode->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->tujuan_pembelajaran->Visible) { // tujuan_pembelajaran ?>
    <tr id="r_tujuan_pembelajaran">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_materi_tujuan_pembelajaran"><?= $Page->tujuan_pembelajaran->caption() ?></span></td>
        <td data-name="tujuan_pembelajaran" <?= $Page->tujuan_pembelajaran->cellAttributes() ?>>
<span id="el_materi_tujuan_pembelajaran">
<span<?= $Page->tujuan_pembelajaran->viewAttributes() ?>>
<?= $Page->tujuan_pembelajaran->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
</table>
</form>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php if (!$Page->isExport()) { ?>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
