<?php

namespace PHPMaker2021\rdigital21;

// Set up and run Grid object
$Grid = Container("NilaiSumatifGrid");
$Grid->run();
?>
<?php if (!$Grid->isExport()) { ?>
<script>
var currentForm, currentPageID;
var fnilai_sumatifgrid;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    fnilai_sumatifgrid = new ew.Form("fnilai_sumatifgrid", "grid");
    fnilai_sumatifgrid.formKeyCountName = '<?= $Grid->FormKeyCountName ?>';

    // Add fields
    var currentTable = <?= JsonEncode(GetClientVar("tables", "nilai_sumatif")) ?>,
        fields = currentTable.fields;
    if (!ew.vars.tables.nilai_sumatif)
        ew.vars.tables.nilai_sumatif = currentTable;
    fnilai_sumatifgrid.addFields([
        ["nilai_s_id", [fields.nilai_s_id.visible && fields.nilai_s_id.required ? ew.Validators.required(fields.nilai_s_id.caption) : null], fields.nilai_s_id.isInvalid],
        ["guru_id", [fields.guru_id.visible && fields.guru_id.required ? ew.Validators.required(fields.guru_id.caption) : null], fields.guru_id.isInvalid],
        ["kode_mapel", [fields.kode_mapel.visible && fields.kode_mapel.required ? ew.Validators.required(fields.kode_mapel.caption) : null], fields.kode_mapel.isInvalid],
        ["kelas", [fields.kelas.visible && fields.kelas.required ? ew.Validators.required(fields.kelas.caption) : null], fields.kelas.isInvalid],
        ["nis", [fields.nis.visible && fields.nis.required ? ew.Validators.required(fields.nis.caption) : null], fields.nis.isInvalid],
        ["nisn", [fields.nisn.visible && fields.nisn.required ? ew.Validators.required(fields.nisn.caption) : null], fields.nisn.isInvalid],
        ["nama", [fields.nama.visible && fields.nama.required ? ew.Validators.required(fields.nama.caption) : null], fields.nama.isInvalid],
        ["jk", [fields.jk.visible && fields.jk.required ? ew.Validators.required(fields.jk.caption) : null], fields.jk.isInvalid],
        ["s1", [fields.s1.visible && fields.s1.required ? ew.Validators.required(fields.s1.caption) : null], fields.s1.isInvalid],
        ["s2", [fields.s2.visible && fields.s2.required ? ew.Validators.required(fields.s2.caption) : null], fields.s2.isInvalid],
        ["s3", [fields.s3.visible && fields.s3.required ? ew.Validators.required(fields.s3.caption) : null], fields.s3.isInvalid],
        ["s4", [fields.s4.visible && fields.s4.required ? ew.Validators.required(fields.s4.caption) : null], fields.s4.isInvalid],
        ["s5", [fields.s5.visible && fields.s5.required ? ew.Validators.required(fields.s5.caption) : null], fields.s5.isInvalid],
        ["s6", [fields.s6.visible && fields.s6.required ? ew.Validators.required(fields.s6.caption) : null], fields.s6.isInvalid],
        ["s7", [fields.s7.visible && fields.s7.required ? ew.Validators.required(fields.s7.caption) : null], fields.s7.isInvalid],
        ["s8", [fields.s8.visible && fields.s8.required ? ew.Validators.required(fields.s8.caption) : null], fields.s8.isInvalid],
        ["nas", [fields.nas.visible && fields.nas.required ? ew.Validators.required(fields.nas.caption) : null], fields.nas.isInvalid],
        ["sts", [fields.sts.visible && fields.sts.required ? ew.Validators.required(fields.sts.caption) : null], fields.sts.isInvalid],
        ["sas", [fields.sas.visible && fields.sas.required ? ew.Validators.required(fields.sas.caption) : null], fields.sas.isInvalid],
        ["nr1", [fields.nr1.visible && fields.nr1.required ? ew.Validators.required(fields.nr1.caption) : null], fields.nr1.isInvalid],
        ["nr2", [fields.nr2.visible && fields.nr2.required ? ew.Validators.required(fields.nr2.caption) : null], fields.nr2.isInvalid]
    ]);

    // Set invalid fields
    $(function() {
        var f = fnilai_sumatifgrid,
            fobj = f.getForm(),
            $fobj = $(fobj),
            $k = $fobj.find("#" + f.formKeyCountName), // Get key_count
            rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1,
            startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
        for (var i = startcnt; i <= rowcnt; i++) {
            var rowIndex = ($k[0]) ? String(i) : "";
            f.setInvalid(rowIndex);
        }
    });

    // Validate form
    fnilai_sumatifgrid.validate = function () {
        if (!this.validateRequired)
            return true; // Ignore validation
        var fobj = this.getForm(),
            $fobj = $(fobj);
        if ($fobj.find("#confirm").val() == "confirm")
            return true;
        var addcnt = 0,
            $k = $fobj.find("#" + this.formKeyCountName), // Get key_count
            rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1,
            startcnt = (rowcnt == 0) ? 0 : 1, // Check rowcnt == 0 => Inline-Add
            gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
        for (var i = startcnt; i <= rowcnt; i++) {
            var rowIndex = ($k[0]) ? String(i) : "";
            $fobj.data("rowindex", rowIndex);
            var checkrow = (gridinsert) ? !this.emptyRow(rowIndex) : true;
            if (checkrow) {
                addcnt++;

            // Validate fields
            if (!this.validateFields(rowIndex))
                return false;

            // Call Form_CustomValidate event
            if (!this.customValidate(fobj)) {
                this.focus();
                return false;
            }
            } // End Grid Add checking
        }
        return true;
    }

    // Check empty row
    fnilai_sumatifgrid.emptyRow = function (rowIndex) {
        var fobj = this.getForm();
        if (ew.valueChanged(fobj, rowIndex, "guru_id", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "kode_mapel", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "kelas", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "nis", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "nisn", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "nama", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "jk", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s1", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s2", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s3", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s4", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s5", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s6", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s7", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "s8", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "nas", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "sts", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "sas", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "nr1", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "nr2", false))
            return false;
        return true;
    }

    // Form_CustomValidate
    fnilai_sumatifgrid.customValidate = function(fobj) { // DO NOT CHANGE THIS LINE!
        // Your custom validation code here, return false if invalid.
        return true;
    }

    // Use JavaScript validation or not
    fnilai_sumatifgrid.validateRequired = <?= Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

    // Dynamic selection lists
    fnilai_sumatifgrid.lists.kode_mapel = <?= $Grid->kode_mapel->toClientList($Grid) ?>;
    fnilai_sumatifgrid.lists.kelas = <?= $Grid->kelas->toClientList($Grid) ?>;
    loadjs.done("fnilai_sumatifgrid");
});
</script>
<?php } ?>
<?php
$Grid->renderOtherOptions();
?>
<?php if ($Grid->TotalRecords > 0 || $Grid->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($Grid->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> nilai_sumatif">
<?php if ($Grid->ShowOtherOptions) { ?>
<div class="card-header ew-grid-upper-panel">
<?php $Grid->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<div id="fnilai_sumatifgrid" class="ew-form ew-list-form form-inline">
<div id="gmp_nilai_sumatif" class="<?= ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table id="tbl_nilai_sumatifgrid" class="table ew-table"><!-- .ew-table -->
<thead>
    <tr class="ew-table-header">
<?php
// Header row
$Grid->RowType = ROWTYPE_HEADER;

// Render list options
$Grid->renderListOptions();

// Render list options (header, left)
$Grid->ListOptions->render("header", "left");
?>
<?php if ($Grid->nilai_s_id->Visible) { // nilai_s_id ?>
        <th data-name="nilai_s_id" class="<?= $Grid->nilai_s_id->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_nilai_s_id" class="nilai_sumatif_nilai_s_id"><?= $Grid->renderSort($Grid->nilai_s_id) ?></div></th>
<?php } ?>
<?php if ($Grid->guru_id->Visible) { // guru_id ?>
        <th data-name="guru_id" class="<?= $Grid->guru_id->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_guru_id" class="nilai_sumatif_guru_id"><?= $Grid->renderSort($Grid->guru_id) ?></div></th>
<?php } ?>
<?php if ($Grid->kode_mapel->Visible) { // kode_mapel ?>
        <th data-name="kode_mapel" class="<?= $Grid->kode_mapel->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_kode_mapel" class="nilai_sumatif_kode_mapel"><?= $Grid->renderSort($Grid->kode_mapel) ?></div></th>
<?php } ?>
<?php if ($Grid->kelas->Visible) { // kelas ?>
        <th data-name="kelas" class="<?= $Grid->kelas->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_kelas" class="nilai_sumatif_kelas"><?= $Grid->renderSort($Grid->kelas) ?></div></th>
<?php } ?>
<?php if ($Grid->nis->Visible) { // nis ?>
        <th data-name="nis" class="<?= $Grid->nis->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_nis" class="nilai_sumatif_nis"><?= $Grid->renderSort($Grid->nis) ?></div></th>
<?php } ?>
<?php if ($Grid->nisn->Visible) { // nisn ?>
        <th data-name="nisn" class="<?= $Grid->nisn->headerCellClass() ?>"><div id="elh_nilai_sumatif_nisn" class="nilai_sumatif_nisn"><?= $Grid->renderSort($Grid->nisn) ?></div></th>
<?php } ?>
<?php if ($Grid->nama->Visible) { // nama ?>
        <th data-name="nama" class="<?= $Grid->nama->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_nama" class="nilai_sumatif_nama"><?= $Grid->renderSort($Grid->nama) ?></div></th>
<?php } ?>
<?php if ($Grid->jk->Visible) { // jk ?>
        <th data-name="jk" class="<?= $Grid->jk->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_jk" class="nilai_sumatif_jk"><?= $Grid->renderSort($Grid->jk) ?></div></th>
<?php } ?>
<?php if ($Grid->s1->Visible) { // s1 ?>
        <th data-name="s1" class="<?= $Grid->s1->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s1" class="nilai_sumatif_s1"><?= $Grid->renderSort($Grid->s1) ?></div></th>
<?php } ?>
<?php if ($Grid->s2->Visible) { // s2 ?>
        <th data-name="s2" class="<?= $Grid->s2->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s2" class="nilai_sumatif_s2"><?= $Grid->renderSort($Grid->s2) ?></div></th>
<?php } ?>
<?php if ($Grid->s3->Visible) { // s3 ?>
        <th data-name="s3" class="<?= $Grid->s3->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s3" class="nilai_sumatif_s3"><?= $Grid->renderSort($Grid->s3) ?></div></th>
<?php } ?>
<?php if ($Grid->s4->Visible) { // s4 ?>
        <th data-name="s4" class="<?= $Grid->s4->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s4" class="nilai_sumatif_s4"><?= $Grid->renderSort($Grid->s4) ?></div></th>
<?php } ?>
<?php if ($Grid->s5->Visible) { // s5 ?>
        <th data-name="s5" class="<?= $Grid->s5->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s5" class="nilai_sumatif_s5"><?= $Grid->renderSort($Grid->s5) ?></div></th>
<?php } ?>
<?php if ($Grid->s6->Visible) { // s6 ?>
        <th data-name="s6" class="<?= $Grid->s6->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s6" class="nilai_sumatif_s6"><?= $Grid->renderSort($Grid->s6) ?></div></th>
<?php } ?>
<?php if ($Grid->s7->Visible) { // s7 ?>
        <th data-name="s7" class="<?= $Grid->s7->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s7" class="nilai_sumatif_s7"><?= $Grid->renderSort($Grid->s7) ?></div></th>
<?php } ?>
<?php if ($Grid->s8->Visible) { // s8 ?>
        <th data-name="s8" class="<?= $Grid->s8->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_s8" class="nilai_sumatif_s8"><?= $Grid->renderSort($Grid->s8) ?></div></th>
<?php } ?>
<?php if ($Grid->nas->Visible) { // nas ?>
        <th data-name="nas" class="<?= $Grid->nas->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_nas" class="nilai_sumatif_nas"><?= $Grid->renderSort($Grid->nas) ?></div></th>
<?php } ?>
<?php if ($Grid->sts->Visible) { // sts ?>
        <th data-name="sts" class="<?= $Grid->sts->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_sts" class="nilai_sumatif_sts"><?= $Grid->renderSort($Grid->sts) ?></div></th>
<?php } ?>
<?php if ($Grid->sas->Visible) { // sas ?>
        <th data-name="sas" class="<?= $Grid->sas->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_sas" class="nilai_sumatif_sas"><?= $Grid->renderSort($Grid->sas) ?></div></th>
<?php } ?>
<?php if ($Grid->nr1->Visible) { // nr1 ?>
        <th data-name="nr1" class="<?= $Grid->nr1->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_nr1" class="nilai_sumatif_nr1"><?= $Grid->renderSort($Grid->nr1) ?></div></th>
<?php } ?>
<?php if ($Grid->nr2->Visible) { // nr2 ?>
        <th data-name="nr2" class="<?= $Grid->nr2->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_sumatif_nr2" class="nilai_sumatif_nr2"><?= $Grid->renderSort($Grid->nr2) ?></div></th>
<?php } ?>
<?php
// Render list options (header, right)
$Grid->ListOptions->render("header", "right");
?>
    </tr>
</thead>
<tbody>
<?php
$Grid->StartRecord = 1;
$Grid->StopRecord = $Grid->TotalRecords; // Show all records

// Restore number of post back records
if ($CurrentForm && ($Grid->isConfirm() || $Grid->EventCancelled)) {
    $CurrentForm->Index = -1;
    if ($CurrentForm->hasValue($Grid->FormKeyCountName) && ($Grid->isGridAdd() || $Grid->isGridEdit() || $Grid->isConfirm())) {
        $Grid->KeyCount = $CurrentForm->getValue($Grid->FormKeyCountName);
        $Grid->StopRecord = $Grid->StartRecord + $Grid->KeyCount - 1;
    }
}
$Grid->RecordCount = $Grid->StartRecord - 1;
if ($Grid->Recordset && !$Grid->Recordset->EOF) {
    // Nothing to do
} elseif (!$Grid->AllowAddDeleteRow && $Grid->StopRecord == 0) {
    $Grid->StopRecord = $Grid->GridAddRowCount;
}

// Initialize aggregate
$Grid->RowType = ROWTYPE_AGGREGATEINIT;
$Grid->resetAttributes();
$Grid->renderRow();
if ($Grid->isGridAdd())
    $Grid->RowIndex = 0;
if ($Grid->isGridEdit())
    $Grid->RowIndex = 0;
while ($Grid->RecordCount < $Grid->StopRecord) {
    $Grid->RecordCount++;
    if ($Grid->RecordCount >= $Grid->StartRecord) {
        $Grid->RowCount++;
        if ($Grid->isGridAdd() || $Grid->isGridEdit() || $Grid->isConfirm()) {
            $Grid->RowIndex++;
            $CurrentForm->Index = $Grid->RowIndex;
            if ($CurrentForm->hasValue($Grid->FormActionName) && ($Grid->isConfirm() || $Grid->EventCancelled)) {
                $Grid->RowAction = strval($CurrentForm->getValue($Grid->FormActionName));
            } elseif ($Grid->isGridAdd()) {
                $Grid->RowAction = "insert";
            } else {
                $Grid->RowAction = "";
            }
        }

        // Set up key count
        $Grid->KeyCount = $Grid->RowIndex;

        // Init row class and style
        $Grid->resetAttributes();
        $Grid->CssClass = "";
        if ($Grid->isGridAdd()) {
            if ($Grid->CurrentMode == "copy") {
                $Grid->loadRowValues($Grid->Recordset); // Load row values
                $Grid->OldKey = $Grid->getKey(true); // Get from CurrentValue
            } else {
                $Grid->loadRowValues(); // Load default values
                $Grid->OldKey = "";
            }
        } else {
            $Grid->loadRowValues($Grid->Recordset); // Load row values
            $Grid->OldKey = $Grid->getKey(true); // Get from CurrentValue
        }
        $Grid->setKey($Grid->OldKey);
        $Grid->RowType = ROWTYPE_VIEW; // Render view
        if ($Grid->isGridAdd()) { // Grid add
            $Grid->RowType = ROWTYPE_ADD; // Render add
        }
        if ($Grid->isGridAdd() && $Grid->EventCancelled && !$CurrentForm->hasValue("k_blankrow")) { // Insert failed
            $Grid->restoreCurrentRowFormValues($Grid->RowIndex); // Restore form values
        }
        if ($Grid->isGridEdit()) { // Grid edit
            if ($Grid->EventCancelled) {
                $Grid->restoreCurrentRowFormValues($Grid->RowIndex); // Restore form values
            }
            if ($Grid->RowAction == "insert") {
                $Grid->RowType = ROWTYPE_ADD; // Render add
            } else {
                $Grid->RowType = ROWTYPE_EDIT; // Render edit
            }
        }
        if ($Grid->isGridEdit() && ($Grid->RowType == ROWTYPE_EDIT || $Grid->RowType == ROWTYPE_ADD) && $Grid->EventCancelled) { // Update failed
            $Grid->restoreCurrentRowFormValues($Grid->RowIndex); // Restore form values
        }
        if ($Grid->RowType == ROWTYPE_EDIT) { // Edit row
            $Grid->EditRowCount++;
        }
        if ($Grid->isConfirm()) { // Confirm row
            $Grid->restoreCurrentRowFormValues($Grid->RowIndex); // Restore form values
        }

        // Set up row id / data-rowindex
        $Grid->RowAttrs->merge(["data-rowindex" => $Grid->RowCount, "id" => "r" . $Grid->RowCount . "_nilai_sumatif", "data-rowtype" => $Grid->RowType]);

        // Render row
        $Grid->renderRow();

        // Render list options
        $Grid->renderListOptions();

        // Skip delete row / empty row for confirm page
        if ($Grid->RowAction != "delete" && $Grid->RowAction != "insertdelete" && !($Grid->RowAction == "insert" && $Grid->isConfirm() && $Grid->emptyRow())) {
?>
    <tr <?= $Grid->rowAttributes() ?>>
<?php
// Render list options (body, left)
$Grid->ListOptions->render("body", "left", $Grid->RowCount);
?>
    <?php if ($Grid->nilai_s_id->Visible) { // nilai_s_id ?>
        <td data-name="nilai_s_id" <?= $Grid->nilai_s_id->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nilai_s_id" class="form-group"></span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nilai_s_id" id="o<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nilai_s_id" class="form-group">
<span<?= $Grid->nilai_s_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nilai_s_id->getDisplayValue($Grid->nilai_s_id->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nilai_s_id" id="x<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nilai_s_id">
<span<?= $Grid->nilai_s_id->viewAttributes() ?>>
<?= $Grid->nilai_s_id->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nilai_s_id" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nilai_s_id" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } else { ?>
            <input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nilai_s_id" id="x<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->CurrentValue) ?>">
    <?php } ?>
    <?php if ($Grid->guru_id->Visible) { // guru_id ?>
        <td data-name="guru_id" <?= $Grid->guru_id->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_guru_id" class="form-group">
<input type="<?= $Grid->guru_id->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_guru_id" name="x<?= $Grid->RowIndex ?>_guru_id" id="x<?= $Grid->RowIndex ?>_guru_id" maxlength="255" value="<?= $Grid->guru_id->EditValue ?>"<?= $Grid->guru_id->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->guru_id->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_guru_id" data-hidden="1" name="o<?= $Grid->RowIndex ?>_guru_id" id="o<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_guru_id" class="form-group">
<span<?= $Grid->guru_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->guru_id->getDisplayValue($Grid->guru_id->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_guru_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_guru_id" id="x<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_guru_id">
<span<?= $Grid->guru_id->viewAttributes() ?>>
<?= $Grid->guru_id->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_guru_id" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_guru_id" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_guru_id" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_guru_id" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->kode_mapel->Visible) { // kode_mapel ?>
        <td data-name="kode_mapel" <?= $Grid->kode_mapel->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_kode_mapel" class="form-group">
    <select
        id="x<?= $Grid->RowIndex ?>_kode_mapel"
        name="x<?= $Grid->RowIndex ?>_kode_mapel"
        class="form-control ew-select<?= $Grid->kode_mapel->isInvalidClass() ?>"
        data-select2-id="nilai_sumatif_x<?= $Grid->RowIndex ?>_kode_mapel"
        data-table="nilai_sumatif"
        data-field="x_kode_mapel"
        data-value-separator="<?= $Grid->kode_mapel->displayValueSeparatorAttribute() ?>"
        <?= $Grid->kode_mapel->editAttributes() ?>>
        <?= $Grid->kode_mapel->selectOptionListHtml("x{$Grid->RowIndex}_kode_mapel") ?>
    </select>
    <div class="invalid-feedback"><?= $Grid->kode_mapel->getErrorMessage() ?></div>
<?= $Grid->kode_mapel->Lookup->getParamTag($Grid, "p_x" . $Grid->RowIndex . "_kode_mapel") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='nilai_sumatif_x<?= $Grid->RowIndex ?>_kode_mapel']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kode_mapel", selectId: "nilai_sumatif_x<?= $Grid->RowIndex ?>_kode_mapel", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.nilai_sumatif.fields.kode_mapel.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kode_mapel" data-hidden="1" name="o<?= $Grid->RowIndex ?>_kode_mapel" id="o<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_kode_mapel" class="form-group">
<span<?= $Grid->kode_mapel->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->kode_mapel->getDisplayValue($Grid->kode_mapel->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kode_mapel" data-hidden="1" name="x<?= $Grid->RowIndex ?>_kode_mapel" id="x<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_kode_mapel">
<span<?= $Grid->kode_mapel->viewAttributes() ?>>
<?= $Grid->kode_mapel->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kode_mapel" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_kode_mapel" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_kode_mapel" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_kode_mapel" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->kelas->Visible) { // kelas ?>
        <td data-name="kelas" <?= $Grid->kelas->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_kelas" class="form-group">
    <select
        id="x<?= $Grid->RowIndex ?>_kelas"
        name="x<?= $Grid->RowIndex ?>_kelas"
        class="form-control ew-select<?= $Grid->kelas->isInvalidClass() ?>"
        data-select2-id="nilai_sumatif_x<?= $Grid->RowIndex ?>_kelas"
        data-table="nilai_sumatif"
        data-field="x_kelas"
        data-value-separator="<?= $Grid->kelas->displayValueSeparatorAttribute() ?>"
        <?= $Grid->kelas->editAttributes() ?>>
        <?= $Grid->kelas->selectOptionListHtml("x{$Grid->RowIndex}_kelas") ?>
    </select>
    <div class="invalid-feedback"><?= $Grid->kelas->getErrorMessage() ?></div>
<?= $Grid->kelas->Lookup->getParamTag($Grid, "p_x" . $Grid->RowIndex . "_kelas") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='nilai_sumatif_x<?= $Grid->RowIndex ?>_kelas']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kelas", selectId: "nilai_sumatif_x<?= $Grid->RowIndex ?>_kelas", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.nilai_sumatif.fields.kelas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kelas" data-hidden="1" name="o<?= $Grid->RowIndex ?>_kelas" id="o<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_kelas" class="form-group">
<span<?= $Grid->kelas->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->kelas->getDisplayValue($Grid->kelas->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kelas" data-hidden="1" name="x<?= $Grid->RowIndex ?>_kelas" id="x<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_kelas">
<span<?= $Grid->kelas->viewAttributes() ?>>
<?= $Grid->kelas->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kelas" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_kelas" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_kelas" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_kelas" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->nis->Visible) { // nis ?>
        <td data-name="nis" <?= $Grid->nis->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nis" class="form-group">
<input type="<?= $Grid->nis->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nis" name="x<?= $Grid->RowIndex ?>_nis" id="x<?= $Grid->RowIndex ?>_nis" maxlength="255" value="<?= $Grid->nis->EditValue ?>"<?= $Grid->nis->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nis->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nis" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nis" id="o<?= $Grid->RowIndex ?>_nis" value="<?= HtmlEncode($Grid->nis->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nis" class="form-group">
<span<?= $Grid->nis->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nis->getDisplayValue($Grid->nis->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nis" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nis" id="x<?= $Grid->RowIndex ?>_nis" value="<?= HtmlEncode($Grid->nis->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nis">
<span<?= $Grid->nis->viewAttributes() ?>>
<?= $Grid->nis->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nis" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nis" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nis" value="<?= HtmlEncode($Grid->nis->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nis" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nis" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nis" value="<?= HtmlEncode($Grid->nis->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->nisn->Visible) { // nisn ?>
        <td data-name="nisn" <?= $Grid->nisn->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nisn" class="form-group">
<input type="<?= $Grid->nisn->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nisn" name="x<?= $Grid->RowIndex ?>_nisn" id="x<?= $Grid->RowIndex ?>_nisn" value="<?= $Grid->nisn->EditValue ?>"<?= $Grid->nisn->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nisn->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nisn" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nisn" id="o<?= $Grid->RowIndex ?>_nisn" value="<?= HtmlEncode($Grid->nisn->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nisn" class="form-group">
<input type="<?= $Grid->nisn->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nisn" name="x<?= $Grid->RowIndex ?>_nisn" id="x<?= $Grid->RowIndex ?>_nisn" value="<?= $Grid->nisn->EditValue ?>"<?= $Grid->nisn->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nisn->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nisn">
<span<?= $Grid->nisn->viewAttributes() ?>>
<?= $Grid->nisn->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nisn" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nisn" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nisn" value="<?= HtmlEncode($Grid->nisn->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nisn" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nisn" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nisn" value="<?= HtmlEncode($Grid->nisn->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->nama->Visible) { // nama ?>
        <td data-name="nama" <?= $Grid->nama->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nama" class="form-group">
<input type="<?= $Grid->nama->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nama" name="x<?= $Grid->RowIndex ?>_nama" id="x<?= $Grid->RowIndex ?>_nama" maxlength="255" value="<?= $Grid->nama->EditValue ?>"<?= $Grid->nama->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nama->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nama" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nama" id="o<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nama" class="form-group">
<span<?= $Grid->nama->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nama->getDisplayValue($Grid->nama->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nama" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nama" id="x<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nama">
<span<?= $Grid->nama->viewAttributes() ?>>
<?= $Grid->nama->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nama" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nama" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nama" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nama" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->jk->Visible) { // jk ?>
        <td data-name="jk" <?= $Grid->jk->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_jk" class="form-group">
<input type="<?= $Grid->jk->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_jk" name="x<?= $Grid->RowIndex ?>_jk" id="x<?= $Grid->RowIndex ?>_jk" maxlength="255" value="<?= $Grid->jk->EditValue ?>"<?= $Grid->jk->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->jk->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_jk" data-hidden="1" name="o<?= $Grid->RowIndex ?>_jk" id="o<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_jk" class="form-group">
<span<?= $Grid->jk->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->jk->getDisplayValue($Grid->jk->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_jk" data-hidden="1" name="x<?= $Grid->RowIndex ?>_jk" id="x<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_jk">
<span<?= $Grid->jk->viewAttributes() ?>>
<?= $Grid->jk->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_jk" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_jk" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_jk" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_jk" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s1->Visible) { // s1 ?>
        <td data-name="s1" <?= $Grid->s1->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s1" class="form-group">
<input type="<?= $Grid->s1->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s1" name="x<?= $Grid->RowIndex ?>_s1" id="x<?= $Grid->RowIndex ?>_s1" size="10" maxlength="255" value="<?= $Grid->s1->EditValue ?>"<?= $Grid->s1->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s1->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s1" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s1" id="o<?= $Grid->RowIndex ?>_s1" value="<?= HtmlEncode($Grid->s1->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s1" class="form-group">
<input type="<?= $Grid->s1->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s1" name="x<?= $Grid->RowIndex ?>_s1" id="x<?= $Grid->RowIndex ?>_s1" size="10" maxlength="255" value="<?= $Grid->s1->EditValue ?>"<?= $Grid->s1->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s1->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s1">
<span<?= $Grid->s1->viewAttributes() ?>>
<?= $Grid->s1->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s1" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s1" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s1" value="<?= HtmlEncode($Grid->s1->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s1" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s1" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s1" value="<?= HtmlEncode($Grid->s1->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s2->Visible) { // s2 ?>
        <td data-name="s2" <?= $Grid->s2->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s2" class="form-group">
<input type="<?= $Grid->s2->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s2" name="x<?= $Grid->RowIndex ?>_s2" id="x<?= $Grid->RowIndex ?>_s2" size="10" maxlength="255" value="<?= $Grid->s2->EditValue ?>"<?= $Grid->s2->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s2->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s2" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s2" id="o<?= $Grid->RowIndex ?>_s2" value="<?= HtmlEncode($Grid->s2->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s2" class="form-group">
<input type="<?= $Grid->s2->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s2" name="x<?= $Grid->RowIndex ?>_s2" id="x<?= $Grid->RowIndex ?>_s2" size="10" maxlength="255" value="<?= $Grid->s2->EditValue ?>"<?= $Grid->s2->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s2->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s2">
<span<?= $Grid->s2->viewAttributes() ?>>
<?= $Grid->s2->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s2" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s2" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s2" value="<?= HtmlEncode($Grid->s2->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s2" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s2" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s2" value="<?= HtmlEncode($Grid->s2->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s3->Visible) { // s3 ?>
        <td data-name="s3" <?= $Grid->s3->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s3" class="form-group">
<input type="<?= $Grid->s3->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s3" name="x<?= $Grid->RowIndex ?>_s3" id="x<?= $Grid->RowIndex ?>_s3" size="10" maxlength="255" value="<?= $Grid->s3->EditValue ?>"<?= $Grid->s3->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s3->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s3" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s3" id="o<?= $Grid->RowIndex ?>_s3" value="<?= HtmlEncode($Grid->s3->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s3" class="form-group">
<input type="<?= $Grid->s3->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s3" name="x<?= $Grid->RowIndex ?>_s3" id="x<?= $Grid->RowIndex ?>_s3" size="10" maxlength="255" value="<?= $Grid->s3->EditValue ?>"<?= $Grid->s3->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s3->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s3">
<span<?= $Grid->s3->viewAttributes() ?>>
<?= $Grid->s3->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s3" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s3" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s3" value="<?= HtmlEncode($Grid->s3->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s3" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s3" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s3" value="<?= HtmlEncode($Grid->s3->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s4->Visible) { // s4 ?>
        <td data-name="s4" <?= $Grid->s4->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s4" class="form-group">
<input type="<?= $Grid->s4->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s4" name="x<?= $Grid->RowIndex ?>_s4" id="x<?= $Grid->RowIndex ?>_s4" size="10" maxlength="255" value="<?= $Grid->s4->EditValue ?>"<?= $Grid->s4->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s4->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s4" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s4" id="o<?= $Grid->RowIndex ?>_s4" value="<?= HtmlEncode($Grid->s4->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s4" class="form-group">
<input type="<?= $Grid->s4->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s4" name="x<?= $Grid->RowIndex ?>_s4" id="x<?= $Grid->RowIndex ?>_s4" size="10" maxlength="255" value="<?= $Grid->s4->EditValue ?>"<?= $Grid->s4->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s4->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s4">
<span<?= $Grid->s4->viewAttributes() ?>>
<?= $Grid->s4->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s4" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s4" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s4" value="<?= HtmlEncode($Grid->s4->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s4" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s4" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s4" value="<?= HtmlEncode($Grid->s4->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s5->Visible) { // s5 ?>
        <td data-name="s5" <?= $Grid->s5->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s5" class="form-group">
<input type="<?= $Grid->s5->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s5" name="x<?= $Grid->RowIndex ?>_s5" id="x<?= $Grid->RowIndex ?>_s5" size="10" maxlength="255" value="<?= $Grid->s5->EditValue ?>"<?= $Grid->s5->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s5->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s5" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s5" id="o<?= $Grid->RowIndex ?>_s5" value="<?= HtmlEncode($Grid->s5->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s5" class="form-group">
<input type="<?= $Grid->s5->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s5" name="x<?= $Grid->RowIndex ?>_s5" id="x<?= $Grid->RowIndex ?>_s5" size="10" maxlength="255" value="<?= $Grid->s5->EditValue ?>"<?= $Grid->s5->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s5->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s5">
<span<?= $Grid->s5->viewAttributes() ?>>
<?= $Grid->s5->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s5" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s5" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s5" value="<?= HtmlEncode($Grid->s5->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s5" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s5" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s5" value="<?= HtmlEncode($Grid->s5->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s6->Visible) { // s6 ?>
        <td data-name="s6" <?= $Grid->s6->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s6" class="form-group">
<input type="<?= $Grid->s6->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s6" name="x<?= $Grid->RowIndex ?>_s6" id="x<?= $Grid->RowIndex ?>_s6" size="10" maxlength="255" value="<?= $Grid->s6->EditValue ?>"<?= $Grid->s6->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s6->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s6" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s6" id="o<?= $Grid->RowIndex ?>_s6" value="<?= HtmlEncode($Grid->s6->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s6" class="form-group">
<input type="<?= $Grid->s6->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s6" name="x<?= $Grid->RowIndex ?>_s6" id="x<?= $Grid->RowIndex ?>_s6" size="10" maxlength="255" value="<?= $Grid->s6->EditValue ?>"<?= $Grid->s6->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s6->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s6">
<span<?= $Grid->s6->viewAttributes() ?>>
<?= $Grid->s6->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s6" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s6" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s6" value="<?= HtmlEncode($Grid->s6->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s6" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s6" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s6" value="<?= HtmlEncode($Grid->s6->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s7->Visible) { // s7 ?>
        <td data-name="s7" <?= $Grid->s7->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s7" class="form-group">
<input type="<?= $Grid->s7->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s7" name="x<?= $Grid->RowIndex ?>_s7" id="x<?= $Grid->RowIndex ?>_s7" size="10" maxlength="255" value="<?= $Grid->s7->EditValue ?>"<?= $Grid->s7->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s7->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s7" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s7" id="o<?= $Grid->RowIndex ?>_s7" value="<?= HtmlEncode($Grid->s7->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s7" class="form-group">
<input type="<?= $Grid->s7->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s7" name="x<?= $Grid->RowIndex ?>_s7" id="x<?= $Grid->RowIndex ?>_s7" size="10" maxlength="255" value="<?= $Grid->s7->EditValue ?>"<?= $Grid->s7->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s7->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s7">
<span<?= $Grid->s7->viewAttributes() ?>>
<?= $Grid->s7->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s7" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s7" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s7" value="<?= HtmlEncode($Grid->s7->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s7" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s7" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s7" value="<?= HtmlEncode($Grid->s7->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->s8->Visible) { // s8 ?>
        <td data-name="s8" <?= $Grid->s8->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s8" class="form-group">
<input type="<?= $Grid->s8->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s8" name="x<?= $Grid->RowIndex ?>_s8" id="x<?= $Grid->RowIndex ?>_s8" size="10" maxlength="255" value="<?= $Grid->s8->EditValue ?>"<?= $Grid->s8->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s8->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s8" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s8" id="o<?= $Grid->RowIndex ?>_s8" value="<?= HtmlEncode($Grid->s8->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s8" class="form-group">
<input type="<?= $Grid->s8->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s8" name="x<?= $Grid->RowIndex ?>_s8" id="x<?= $Grid->RowIndex ?>_s8" size="10" maxlength="255" value="<?= $Grid->s8->EditValue ?>"<?= $Grid->s8->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s8->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_s8">
<span<?= $Grid->s8->viewAttributes() ?>>
<?= $Grid->s8->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s8" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s8" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_s8" value="<?= HtmlEncode($Grid->s8->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_s8" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s8" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_s8" value="<?= HtmlEncode($Grid->s8->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->nas->Visible) { // nas ?>
        <td data-name="nas" <?= $Grid->nas->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nas" class="form-group">
<input readonly=readonly type="<?= $Page->nas->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nas" name="x_nas" id="x_nas" size="10" maxlength="255" value="<?= $Page->nas->EditValue ?>"<?= $Page->nas->editAttributes() ?> aria-describedby="x_nas_help">
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nas" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nas" id="o<?= $Grid->RowIndex ?>_nas" value="<?= HtmlEncode($Grid->nas->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nas" class="form-group">
<input readonly=readonly type="<?= $Page->nas->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nas" name="x_nas" id="x_nas" size="10" maxlength="255" value="<?= $Page->nas->EditValue ?>"<?= $Page->nas->editAttributes() ?> aria-describedby="x_nas_help">
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nas">
<span<?= $Grid->nas->viewAttributes() ?>><?= number_format($Page->nas->getViewValue(),2) ?>
</span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nas" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nas" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nas" value="<?= HtmlEncode($Grid->nas->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nas" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nas" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nas" value="<?= HtmlEncode($Grid->nas->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->sts->Visible) { // sts ?>
        <td data-name="sts" <?= $Grid->sts->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_sts" class="form-group">
<input type="<?= $Grid->sts->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_sts" name="x<?= $Grid->RowIndex ?>_sts" id="x<?= $Grid->RowIndex ?>_sts" size="10" maxlength="255" value="<?= $Grid->sts->EditValue ?>"<?= $Grid->sts->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->sts->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sts" data-hidden="1" name="o<?= $Grid->RowIndex ?>_sts" id="o<?= $Grid->RowIndex ?>_sts" value="<?= HtmlEncode($Grid->sts->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_sts" class="form-group">
<input type="<?= $Grid->sts->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_sts" name="x<?= $Grid->RowIndex ?>_sts" id="x<?= $Grid->RowIndex ?>_sts" size="10" maxlength="255" value="<?= $Grid->sts->EditValue ?>"<?= $Grid->sts->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->sts->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_sts">
<span<?= $Grid->sts->viewAttributes() ?>>
<?= $Grid->sts->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sts" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_sts" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_sts" value="<?= HtmlEncode($Grid->sts->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_sts" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_sts" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_sts" value="<?= HtmlEncode($Grid->sts->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->sas->Visible) { // sas ?>
        <td data-name="sas" <?= $Grid->sas->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_sas" class="form-group">
<input type="<?= $Grid->sas->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_sas" name="x<?= $Grid->RowIndex ?>_sas" id="x<?= $Grid->RowIndex ?>_sas" size="10" maxlength="255" value="<?= $Grid->sas->EditValue ?>"<?= $Grid->sas->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->sas->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sas" data-hidden="1" name="o<?= $Grid->RowIndex ?>_sas" id="o<?= $Grid->RowIndex ?>_sas" value="<?= HtmlEncode($Grid->sas->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_sas" class="form-group">
<input type="<?= $Grid->sas->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_sas" name="x<?= $Grid->RowIndex ?>_sas" id="x<?= $Grid->RowIndex ?>_sas" size="10" maxlength="255" value="<?= $Grid->sas->EditValue ?>"<?= $Grid->sas->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->sas->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_sas">
<span<?= $Grid->sas->viewAttributes() ?>>
<?= $Grid->sas->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sas" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_sas" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_sas" value="<?= HtmlEncode($Grid->sas->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_sas" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_sas" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_sas" value="<?= HtmlEncode($Grid->sas->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->nr1->Visible) { // nr1 ?>
        <td data-name="nr1" <?= $Grid->nr1->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nr1" class="form-group">
<input readonly=readonly type="<?= $Page->nr1->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nr1" name="x_nr1" id="x_nr1" size="10" maxlength="255" value="<?= $Page->nr1->EditValue ?>"<?= $Page->nr1->editAttributes() ?> aria-describedby="x_nr1_help">
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr1" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nr1" id="o<?= $Grid->RowIndex ?>_nr1" value="<?= HtmlEncode($Grid->nr1->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nr1" class="form-group">
<input readonly=readonly type="<?= $Page->nr1->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nr1" name="x_nr1" id="x_nr1" size="10" maxlength="255" value="<?= $Page->nr1->EditValue ?>"<?= $Page->nr1->editAttributes() ?> aria-describedby="x_nr1_help">
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nr1">
<span<?= $Grid->nr1->viewAttributes() ?>>
<?= $Grid->nr1->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr1" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nr1" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nr1" value="<?= HtmlEncode($Grid->nr1->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr1" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nr1" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nr1" value="<?= HtmlEncode($Grid->nr1->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->nr2->Visible) { // nr2 ?>
        <td data-name="nr2" <?= $Grid->nr2->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nr2" class="form-group">
<input readonly=readonly type="<?= $Page->nr2->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nr2" name="x_nr2" id="x_nr2" size="10" maxlength="255" value="<?= $Page->nr2->EditValue ?>"<?= $Page->nr2->editAttributes() ?> aria-describedby="x_nr2_help">
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr2" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nr2" id="o<?= $Grid->RowIndex ?>_nr2" value="<?= HtmlEncode($Grid->nr2->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nr2" class="form-group">
<input readonly=readonly type="<?= $Page->nr2->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nr2" name="x_nr2" id="x_nr2" size="10" maxlength="255" value="<?= $Page->nr2->EditValue ?>"<?= $Page->nr2->editAttributes() ?> aria-describedby="x_nr2_help">
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_sumatif_nr2">
<span<?= $Grid->nr2->viewAttributes() ?>>
<?= $Grid->nr2->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr2" data-hidden="1" name="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nr2" id="fnilai_sumatifgrid$x<?= $Grid->RowIndex ?>_nr2" value="<?= HtmlEncode($Grid->nr2->FormValue) ?>">
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr2" data-hidden="1" name="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nr2" id="fnilai_sumatifgrid$o<?= $Grid->RowIndex ?>_nr2" value="<?= HtmlEncode($Grid->nr2->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Grid->ListOptions->render("body", "right", $Grid->RowCount);
?>
    </tr>
<?php if ($Grid->RowType == ROWTYPE_ADD || $Grid->RowType == ROWTYPE_EDIT) { ?>
<script>
loadjs.ready(["fnilai_sumatifgrid","load"], function () {
    fnilai_sumatifgrid.updateLists(<?= $Grid->RowIndex ?>);
});
</script>
<?php } ?>
<?php
    }
    } // End delete row checking
    if (!$Grid->isGridAdd() || $Grid->CurrentMode == "copy")
        if (!$Grid->Recordset->EOF) {
            $Grid->Recordset->moveNext();
        }
}
?>
<?php
    if ($Grid->CurrentMode == "add" || $Grid->CurrentMode == "copy" || $Grid->CurrentMode == "edit") {
        $Grid->RowIndex = '$rowindex$';
        $Grid->loadRowValues();

        // Set row properties
        $Grid->resetAttributes();
        $Grid->RowAttrs->merge(["data-rowindex" => $Grid->RowIndex, "id" => "r0_nilai_sumatif", "data-rowtype" => ROWTYPE_ADD]);
        $Grid->RowAttrs->appendClass("ew-template");
        $Grid->RowType = ROWTYPE_ADD;

        // Render row
        $Grid->renderRow();

        // Render list options
        $Grid->renderListOptions();
        $Grid->StartRowCount = 0;
?>
    <tr <?= $Grid->rowAttributes() ?>>
<?php
// Render list options (body, left)
$Grid->ListOptions->render("body", "left", $Grid->RowIndex);
?>
    <?php if ($Grid->nilai_s_id->Visible) { // nilai_s_id ?>
        <td data-name="nilai_s_id">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nilai_s_id" class="form-group nilai_sumatif_nilai_s_id"></span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nilai_s_id" class="form-group nilai_sumatif_nilai_s_id">
<span<?= $Grid->nilai_s_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nilai_s_id->getDisplayValue($Grid->nilai_s_id->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nilai_s_id" id="x<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nilai_s_id" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nilai_s_id" id="o<?= $Grid->RowIndex ?>_nilai_s_id" value="<?= HtmlEncode($Grid->nilai_s_id->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->guru_id->Visible) { // guru_id ?>
        <td data-name="guru_id">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_guru_id" class="form-group nilai_sumatif_guru_id">
<input type="<?= $Grid->guru_id->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_guru_id" name="x<?= $Grid->RowIndex ?>_guru_id" id="x<?= $Grid->RowIndex ?>_guru_id" maxlength="255" value="<?= $Grid->guru_id->EditValue ?>"<?= $Grid->guru_id->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->guru_id->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_guru_id" class="form-group nilai_sumatif_guru_id">
<span<?= $Grid->guru_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->guru_id->getDisplayValue($Grid->guru_id->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_guru_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_guru_id" id="x<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_guru_id" data-hidden="1" name="o<?= $Grid->RowIndex ?>_guru_id" id="o<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->kode_mapel->Visible) { // kode_mapel ?>
        <td data-name="kode_mapel">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_kode_mapel" class="form-group nilai_sumatif_kode_mapel">
    <select
        id="x<?= $Grid->RowIndex ?>_kode_mapel"
        name="x<?= $Grid->RowIndex ?>_kode_mapel"
        class="form-control ew-select<?= $Grid->kode_mapel->isInvalidClass() ?>"
        data-select2-id="nilai_sumatif_x<?= $Grid->RowIndex ?>_kode_mapel"
        data-table="nilai_sumatif"
        data-field="x_kode_mapel"
        data-value-separator="<?= $Grid->kode_mapel->displayValueSeparatorAttribute() ?>"
        <?= $Grid->kode_mapel->editAttributes() ?>>
        <?= $Grid->kode_mapel->selectOptionListHtml("x{$Grid->RowIndex}_kode_mapel") ?>
    </select>
    <div class="invalid-feedback"><?= $Grid->kode_mapel->getErrorMessage() ?></div>
<?= $Grid->kode_mapel->Lookup->getParamTag($Grid, "p_x" . $Grid->RowIndex . "_kode_mapel") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='nilai_sumatif_x<?= $Grid->RowIndex ?>_kode_mapel']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kode_mapel", selectId: "nilai_sumatif_x<?= $Grid->RowIndex ?>_kode_mapel", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.nilai_sumatif.fields.kode_mapel.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_kode_mapel" class="form-group nilai_sumatif_kode_mapel">
<span<?= $Grid->kode_mapel->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->kode_mapel->getDisplayValue($Grid->kode_mapel->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kode_mapel" data-hidden="1" name="x<?= $Grid->RowIndex ?>_kode_mapel" id="x<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kode_mapel" data-hidden="1" name="o<?= $Grid->RowIndex ?>_kode_mapel" id="o<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->kelas->Visible) { // kelas ?>
        <td data-name="kelas">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_kelas" class="form-group nilai_sumatif_kelas">
    <select
        id="x<?= $Grid->RowIndex ?>_kelas"
        name="x<?= $Grid->RowIndex ?>_kelas"
        class="form-control ew-select<?= $Grid->kelas->isInvalidClass() ?>"
        data-select2-id="nilai_sumatif_x<?= $Grid->RowIndex ?>_kelas"
        data-table="nilai_sumatif"
        data-field="x_kelas"
        data-value-separator="<?= $Grid->kelas->displayValueSeparatorAttribute() ?>"
        <?= $Grid->kelas->editAttributes() ?>>
        <?= $Grid->kelas->selectOptionListHtml("x{$Grid->RowIndex}_kelas") ?>
    </select>
    <div class="invalid-feedback"><?= $Grid->kelas->getErrorMessage() ?></div>
<?= $Grid->kelas->Lookup->getParamTag($Grid, "p_x" . $Grid->RowIndex . "_kelas") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='nilai_sumatif_x<?= $Grid->RowIndex ?>_kelas']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kelas", selectId: "nilai_sumatif_x<?= $Grid->RowIndex ?>_kelas", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.nilai_sumatif.fields.kelas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_kelas" class="form-group nilai_sumatif_kelas">
<span<?= $Grid->kelas->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->kelas->getDisplayValue($Grid->kelas->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kelas" data-hidden="1" name="x<?= $Grid->RowIndex ?>_kelas" id="x<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_kelas" data-hidden="1" name="o<?= $Grid->RowIndex ?>_kelas" id="o<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->nis->Visible) { // nis ?>
        <td data-name="nis">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nis" class="form-group nilai_sumatif_nis">
<input type="<?= $Grid->nis->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nis" name="x<?= $Grid->RowIndex ?>_nis" id="x<?= $Grid->RowIndex ?>_nis" maxlength="255" value="<?= $Grid->nis->EditValue ?>"<?= $Grid->nis->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nis->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nis" class="form-group nilai_sumatif_nis">
<span<?= $Grid->nis->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nis->getDisplayValue($Grid->nis->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nis" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nis" id="x<?= $Grid->RowIndex ?>_nis" value="<?= HtmlEncode($Grid->nis->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nis" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nis" id="o<?= $Grid->RowIndex ?>_nis" value="<?= HtmlEncode($Grid->nis->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->nisn->Visible) { // nisn ?>
        <td data-name="nisn">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nisn" class="form-group nilai_sumatif_nisn">
<input type="<?= $Grid->nisn->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nisn" name="x<?= $Grid->RowIndex ?>_nisn" id="x<?= $Grid->RowIndex ?>_nisn" value="<?= $Grid->nisn->EditValue ?>"<?= $Grid->nisn->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nisn->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nisn" class="form-group nilai_sumatif_nisn">
<span<?= $Grid->nisn->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nisn->getDisplayValue($Grid->nisn->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nisn" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nisn" id="x<?= $Grid->RowIndex ?>_nisn" value="<?= HtmlEncode($Grid->nisn->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nisn" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nisn" id="o<?= $Grid->RowIndex ?>_nisn" value="<?= HtmlEncode($Grid->nisn->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->nama->Visible) { // nama ?>
        <td data-name="nama">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nama" class="form-group nilai_sumatif_nama">
<input type="<?= $Grid->nama->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nama" name="x<?= $Grid->RowIndex ?>_nama" id="x<?= $Grid->RowIndex ?>_nama" maxlength="255" value="<?= $Grid->nama->EditValue ?>"<?= $Grid->nama->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->nama->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nama" class="form-group nilai_sumatif_nama">
<span<?= $Grid->nama->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nama->getDisplayValue($Grid->nama->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nama" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nama" id="x<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nama" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nama" id="o<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->jk->Visible) { // jk ?>
        <td data-name="jk">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_jk" class="form-group nilai_sumatif_jk">
<input type="<?= $Grid->jk->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_jk" name="x<?= $Grid->RowIndex ?>_jk" id="x<?= $Grid->RowIndex ?>_jk" maxlength="255" value="<?= $Grid->jk->EditValue ?>"<?= $Grid->jk->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->jk->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_jk" class="form-group nilai_sumatif_jk">
<span<?= $Grid->jk->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->jk->getDisplayValue($Grid->jk->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_jk" data-hidden="1" name="x<?= $Grid->RowIndex ?>_jk" id="x<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_jk" data-hidden="1" name="o<?= $Grid->RowIndex ?>_jk" id="o<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s1->Visible) { // s1 ?>
        <td data-name="s1">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s1" class="form-group nilai_sumatif_s1">
<input type="<?= $Grid->s1->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s1" name="x<?= $Grid->RowIndex ?>_s1" id="x<?= $Grid->RowIndex ?>_s1" size="10" maxlength="255" value="<?= $Grid->s1->EditValue ?>"<?= $Grid->s1->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s1->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s1" class="form-group nilai_sumatif_s1">
<span<?= $Grid->s1->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s1->getDisplayValue($Grid->s1->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s1" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s1" id="x<?= $Grid->RowIndex ?>_s1" value="<?= HtmlEncode($Grid->s1->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s1" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s1" id="o<?= $Grid->RowIndex ?>_s1" value="<?= HtmlEncode($Grid->s1->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s2->Visible) { // s2 ?>
        <td data-name="s2">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s2" class="form-group nilai_sumatif_s2">
<input type="<?= $Grid->s2->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s2" name="x<?= $Grid->RowIndex ?>_s2" id="x<?= $Grid->RowIndex ?>_s2" size="10" maxlength="255" value="<?= $Grid->s2->EditValue ?>"<?= $Grid->s2->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s2->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s2" class="form-group nilai_sumatif_s2">
<span<?= $Grid->s2->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s2->getDisplayValue($Grid->s2->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s2" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s2" id="x<?= $Grid->RowIndex ?>_s2" value="<?= HtmlEncode($Grid->s2->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s2" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s2" id="o<?= $Grid->RowIndex ?>_s2" value="<?= HtmlEncode($Grid->s2->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s3->Visible) { // s3 ?>
        <td data-name="s3">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s3" class="form-group nilai_sumatif_s3">
<input type="<?= $Grid->s3->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s3" name="x<?= $Grid->RowIndex ?>_s3" id="x<?= $Grid->RowIndex ?>_s3" size="10" maxlength="255" value="<?= $Grid->s3->EditValue ?>"<?= $Grid->s3->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s3->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s3" class="form-group nilai_sumatif_s3">
<span<?= $Grid->s3->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s3->getDisplayValue($Grid->s3->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s3" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s3" id="x<?= $Grid->RowIndex ?>_s3" value="<?= HtmlEncode($Grid->s3->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s3" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s3" id="o<?= $Grid->RowIndex ?>_s3" value="<?= HtmlEncode($Grid->s3->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s4->Visible) { // s4 ?>
        <td data-name="s4">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s4" class="form-group nilai_sumatif_s4">
<input type="<?= $Grid->s4->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s4" name="x<?= $Grid->RowIndex ?>_s4" id="x<?= $Grid->RowIndex ?>_s4" size="10" maxlength="255" value="<?= $Grid->s4->EditValue ?>"<?= $Grid->s4->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s4->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s4" class="form-group nilai_sumatif_s4">
<span<?= $Grid->s4->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s4->getDisplayValue($Grid->s4->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s4" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s4" id="x<?= $Grid->RowIndex ?>_s4" value="<?= HtmlEncode($Grid->s4->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s4" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s4" id="o<?= $Grid->RowIndex ?>_s4" value="<?= HtmlEncode($Grid->s4->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s5->Visible) { // s5 ?>
        <td data-name="s5">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s5" class="form-group nilai_sumatif_s5">
<input type="<?= $Grid->s5->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s5" name="x<?= $Grid->RowIndex ?>_s5" id="x<?= $Grid->RowIndex ?>_s5" size="10" maxlength="255" value="<?= $Grid->s5->EditValue ?>"<?= $Grid->s5->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s5->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s5" class="form-group nilai_sumatif_s5">
<span<?= $Grid->s5->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s5->getDisplayValue($Grid->s5->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s5" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s5" id="x<?= $Grid->RowIndex ?>_s5" value="<?= HtmlEncode($Grid->s5->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s5" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s5" id="o<?= $Grid->RowIndex ?>_s5" value="<?= HtmlEncode($Grid->s5->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s6->Visible) { // s6 ?>
        <td data-name="s6">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s6" class="form-group nilai_sumatif_s6">
<input type="<?= $Grid->s6->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s6" name="x<?= $Grid->RowIndex ?>_s6" id="x<?= $Grid->RowIndex ?>_s6" size="10" maxlength="255" value="<?= $Grid->s6->EditValue ?>"<?= $Grid->s6->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s6->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s6" class="form-group nilai_sumatif_s6">
<span<?= $Grid->s6->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s6->getDisplayValue($Grid->s6->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s6" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s6" id="x<?= $Grid->RowIndex ?>_s6" value="<?= HtmlEncode($Grid->s6->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s6" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s6" id="o<?= $Grid->RowIndex ?>_s6" value="<?= HtmlEncode($Grid->s6->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s7->Visible) { // s7 ?>
        <td data-name="s7">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s7" class="form-group nilai_sumatif_s7">
<input type="<?= $Grid->s7->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s7" name="x<?= $Grid->RowIndex ?>_s7" id="x<?= $Grid->RowIndex ?>_s7" size="10" maxlength="255" value="<?= $Grid->s7->EditValue ?>"<?= $Grid->s7->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s7->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s7" class="form-group nilai_sumatif_s7">
<span<?= $Grid->s7->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s7->getDisplayValue($Grid->s7->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s7" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s7" id="x<?= $Grid->RowIndex ?>_s7" value="<?= HtmlEncode($Grid->s7->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s7" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s7" id="o<?= $Grid->RowIndex ?>_s7" value="<?= HtmlEncode($Grid->s7->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->s8->Visible) { // s8 ?>
        <td data-name="s8">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_s8" class="form-group nilai_sumatif_s8">
<input type="<?= $Grid->s8->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_s8" name="x<?= $Grid->RowIndex ?>_s8" id="x<?= $Grid->RowIndex ?>_s8" size="10" maxlength="255" value="<?= $Grid->s8->EditValue ?>"<?= $Grid->s8->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->s8->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_s8" class="form-group nilai_sumatif_s8">
<span<?= $Grid->s8->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->s8->getDisplayValue($Grid->s8->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s8" data-hidden="1" name="x<?= $Grid->RowIndex ?>_s8" id="x<?= $Grid->RowIndex ?>_s8" value="<?= HtmlEncode($Grid->s8->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_s8" data-hidden="1" name="o<?= $Grid->RowIndex ?>_s8" id="o<?= $Grid->RowIndex ?>_s8" value="<?= HtmlEncode($Grid->s8->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->nas->Visible) { // nas ?>
        <td data-name="nas">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nas" class="form-group nilai_sumatif_nas">
<input readonly=readonly type="<?= $Page->nas->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nas" name="x_nas" id="x_nas" size="10" maxlength="255" value="<?= $Page->nas->EditValue ?>"<?= $Page->nas->editAttributes() ?> aria-describedby="x_nas_help">
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nas" class="form-group nilai_sumatif_nas">
<span<?= $Grid->nas->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nas->getDisplayValue($Grid->nas->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nas" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nas" id="x<?= $Grid->RowIndex ?>_nas" value="<?= HtmlEncode($Grid->nas->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nas" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nas" id="o<?= $Grid->RowIndex ?>_nas" value="<?= HtmlEncode($Grid->nas->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->sts->Visible) { // sts ?>
        <td data-name="sts">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_sts" class="form-group nilai_sumatif_sts">
<input type="<?= $Grid->sts->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_sts" name="x<?= $Grid->RowIndex ?>_sts" id="x<?= $Grid->RowIndex ?>_sts" size="10" maxlength="255" value="<?= $Grid->sts->EditValue ?>"<?= $Grid->sts->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->sts->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_sts" class="form-group nilai_sumatif_sts">
<span<?= $Grid->sts->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->sts->getDisplayValue($Grid->sts->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sts" data-hidden="1" name="x<?= $Grid->RowIndex ?>_sts" id="x<?= $Grid->RowIndex ?>_sts" value="<?= HtmlEncode($Grid->sts->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sts" data-hidden="1" name="o<?= $Grid->RowIndex ?>_sts" id="o<?= $Grid->RowIndex ?>_sts" value="<?= HtmlEncode($Grid->sts->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->sas->Visible) { // sas ?>
        <td data-name="sas">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_sas" class="form-group nilai_sumatif_sas">
<input type="<?= $Grid->sas->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_sas" name="x<?= $Grid->RowIndex ?>_sas" id="x<?= $Grid->RowIndex ?>_sas" size="10" maxlength="255" value="<?= $Grid->sas->EditValue ?>"<?= $Grid->sas->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->sas->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_sas" class="form-group nilai_sumatif_sas">
<span<?= $Grid->sas->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->sas->getDisplayValue($Grid->sas->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sas" data-hidden="1" name="x<?= $Grid->RowIndex ?>_sas" id="x<?= $Grid->RowIndex ?>_sas" value="<?= HtmlEncode($Grid->sas->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_sas" data-hidden="1" name="o<?= $Grid->RowIndex ?>_sas" id="o<?= $Grid->RowIndex ?>_sas" value="<?= HtmlEncode($Grid->sas->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->nr1->Visible) { // nr1 ?>
        <td data-name="nr1">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nr1" class="form-group nilai_sumatif_nr1">
<input readonly=readonly type="<?= $Page->nr1->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nr1" name="x_nr1" id="x_nr1" size="10" maxlength="255" value="<?= $Page->nr1->EditValue ?>"<?= $Page->nr1->editAttributes() ?> aria-describedby="x_nr1_help">
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nr1" class="form-group nilai_sumatif_nr1">
<span<?= $Grid->nr1->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nr1->getDisplayValue($Grid->nr1->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr1" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nr1" id="x<?= $Grid->RowIndex ?>_nr1" value="<?= HtmlEncode($Grid->nr1->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr1" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nr1" id="o<?= $Grid->RowIndex ?>_nr1" value="<?= HtmlEncode($Grid->nr1->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->nr2->Visible) { // nr2 ?>
        <td data-name="nr2">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_sumatif_nr2" class="form-group nilai_sumatif_nr2">
<input readonly=readonly type="<?= $Page->nr2->getInputTextType() ?>" data-table="nilai_sumatif" data-field="x_nr2" name="x_nr2" id="x_nr2" size="10" maxlength="255" value="<?= $Page->nr2->EditValue ?>"<?= $Page->nr2->editAttributes() ?> aria-describedby="x_nr2_help">
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_sumatif_nr2" class="form-group nilai_sumatif_nr2">
<span<?= $Grid->nr2->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nr2->getDisplayValue($Grid->nr2->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr2" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nr2" id="x<?= $Grid->RowIndex ?>_nr2" value="<?= HtmlEncode($Grid->nr2->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_sumatif" data-field="x_nr2" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nr2" id="o<?= $Grid->RowIndex ?>_nr2" value="<?= HtmlEncode($Grid->nr2->OldValue) ?>">
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Grid->ListOptions->render("body", "right", $Grid->RowIndex);
?>
<script>
loadjs.ready(["fnilai_sumatifgrid","load"], function() {
    fnilai_sumatifgrid.updateLists(<?= $Grid->RowIndex ?>);
});
</script>
    </tr>
<?php
    }
?>
</tbody>
</table><!-- /.ew-table -->
</div><!-- /.ew-grid-middle-panel -->
<?php if ($Grid->CurrentMode == "add" || $Grid->CurrentMode == "copy") { ?>
<input type="hidden" name="<?= $Grid->FormKeyCountName ?>" id="<?= $Grid->FormKeyCountName ?>" value="<?= $Grid->KeyCount ?>">
<?= $Grid->MultiSelectKey ?>
<?php } ?>
<?php if ($Grid->CurrentMode == "edit") { ?>
<input type="hidden" name="<?= $Grid->FormKeyCountName ?>" id="<?= $Grid->FormKeyCountName ?>" value="<?= $Grid->KeyCount ?>">
<?= $Grid->MultiSelectKey ?>
<?php } ?>
<?php if ($Grid->CurrentMode == "") { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
<input type="hidden" name="detailpage" value="fnilai_sumatifgrid">
</div><!-- /.ew-list-form -->
<?php
// Close recordset
if ($Grid->Recordset) {
    $Grid->Recordset->close();
}
?>
<?php if ($Grid->ShowOtherOptions) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php $Grid->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($Grid->TotalRecords == 0 && !$Grid->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $Grid->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php if (!$Grid->isExport()) { ?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("nilai_sumatif");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
