<?php

namespace PHPMaker2021\rdigital21;

// Page object
$PenilaianView = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<script>
var currentForm, currentPageID;
var fpenilaianview;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "view";
    fpenilaianview = currentForm = new ew.Form("fpenilaianview", "view");
    loadjs.done("fpenilaianview");
});
</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.penilaian) ew.vars.tables.penilaian = <?= JsonEncode(GetClientVar("tables", "penilaian")) ?>;
</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="fpenilaianview" id="fpenilaianview" 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="penilaian">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="table table-borderless table-hover table-sm ew-view-table">
<?php if ($Page->kode_tapel->Visible) { // kode_tapel ?>
    <tr id="r_kode_tapel">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_penilaian_kode_tapel"><?= $Page->kode_tapel->caption() ?></span></td>
        <td data-name="kode_tapel" <?= $Page->kode_tapel->cellAttributes() ?>>
<span id="el_penilaian_kode_tapel">
<span<?= $Page->kode_tapel->viewAttributes() ?>>
<?= $Page->kode_tapel->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->guru_id->Visible) { // guru_id ?>
    <tr id="r_guru_id">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_penilaian_guru_id"><?= $Page->guru_id->caption() ?></span></td>
        <td data-name="guru_id" <?= $Page->guru_id->cellAttributes() ?>>
<span id="el_penilaian_guru_id">
<span<?= $Page->guru_id->viewAttributes() ?>>
<?= $Page->guru_id->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->mapel_id->Visible) { // mapel_id ?>
    <tr id="r_mapel_id">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_penilaian_mapel_id"><?= $Page->mapel_id->caption() ?></span></td>
        <td data-name="mapel_id" <?= $Page->mapel_id->cellAttributes() ?>>
<span id="el_penilaian_mapel_id">
<span<?= $Page->mapel_id->viewAttributes() ?>><?php
$penilaian_id=$penilaian->penilaian_id->getViewValue();
echo $kode_mapel=ExecuteScalar("SELECT mapel_id FROM penilaian WHERE penilaian_id='$penilaian_id'");
?>
</span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
    <tr id="r_kelas">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_penilaian_kelas"><?= $Page->kelas->caption() ?></span></td>
        <td data-name="kelas" <?= $Page->kelas->cellAttributes() ?>>
<span id="el_penilaian_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<?= $Page->kelas->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->materi->Visible) { // materi ?>
    <tr id="r_materi">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_penilaian_materi"><?= $Page->materi->caption() ?></span></td>
        <td data-name="materi" <?= $Page->materi->cellAttributes() ?>>
<span id="el_penilaian_materi">
<span<?= $Page->materi->viewAttributes() ?>>
<?= $Page->materi->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_penilaian_tujuan_pembelajaran"><?= $Page->tujuan_pembelajaran->caption() ?></span></td>
        <td data-name="tujuan_pembelajaran" <?= $Page->tujuan_pembelajaran->cellAttributes() ?>>
<span id="el_penilaian_tujuan_pembelajaran">
<span<?= $Page->tujuan_pembelajaran->viewAttributes() ?>>
<?= $Page->tujuan_pembelajaran->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->fase->Visible) { // fase ?>
    <tr id="r_fase">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_penilaian_fase"><?= $Page->fase->caption() ?></span></td>
        <td data-name="fase" <?= $Page->fase->cellAttributes() ?>>
<span id="el_penilaian_fase">
<span<?= $Page->fase->viewAttributes() ?>>
<?= $Page->fase->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
</table>
<?php
    if (in_array("nilai_sumatif", explode(",", $Page->getCurrentDetailTable())) && $nilai_sumatif->DetailView) {
?>
<?php if ($Page->getCurrentDetailTable() != "") { ?>
<h4 class="ew-detail-caption"><?= $Language->tablePhrase("nilai_sumatif", "TblCaption") ?>&nbsp;<?= str_replace("%c", Container("nilai_sumatif")->Count, $Language->phrase("DetailCount")) ?></h4>
<?php } ?>
<?php include_once "NilaiSumatifGrid.php" ?>
<?php } ?>
<?php
    if (in_array("nilai_formatif", explode(",", $Page->getCurrentDetailTable())) && $nilai_formatif->DetailView) {
?>
<?php if ($Page->getCurrentDetailTable() != "") { ?>
<h4 class="ew-detail-caption"><?= $Language->tablePhrase("nilai_formatif", "TblCaption") ?>&nbsp;<?= str_replace("%c", Container("nilai_formatif")->Count, $Language->phrase("DetailCount")) ?></h4>
<?php } ?>
<?php include_once "NilaiFormatifGrid.php" ?>
<?php } ?>
</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 } ?>
