<?php

namespace PHPMaker2021\rdigital21;

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

    // Add fields
    var currentTable = <?= JsonEncode(GetClientVar("tables", "nilai_formatif")) ?>,
        fields = currentTable.fields;
    if (!ew.vars.tables.nilai_formatif)
        ew.vars.tables.nilai_formatif = currentTable;
    fnilai_formatifgrid.addFields([
        ["nilai_f_id", [fields.nilai_f_id.visible && fields.nilai_f_id.required ? ew.Validators.required(fields.nilai_f_id.caption) : null], fields.nilai_f_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],
        ["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],
        ["f1", [fields.f1.visible && fields.f1.required ? ew.Validators.required(fields.f1.caption) : null], fields.f1.isInvalid],
        ["f2", [fields.f2.visible && fields.f2.required ? ew.Validators.required(fields.f2.caption) : null], fields.f2.isInvalid],
        ["f3", [fields.f3.visible && fields.f3.required ? ew.Validators.required(fields.f3.caption) : null], fields.f3.isInvalid],
        ["f4", [fields.f4.visible && fields.f4.required ? ew.Validators.required(fields.f4.caption) : null], fields.f4.isInvalid],
        ["f5", [fields.f5.visible && fields.f5.required ? ew.Validators.required(fields.f5.caption) : null], fields.f5.isInvalid],
        ["f6", [fields.f6.visible && fields.f6.required ? ew.Validators.required(fields.f6.caption) : null], fields.f6.isInvalid],
        ["f7", [fields.f7.visible && fields.f7.required ? ew.Validators.required(fields.f7.caption) : null], fields.f7.isInvalid],
        ["f8", [fields.f8.visible && fields.f8.required ? ew.Validators.required(fields.f8.caption) : null], fields.f8.isInvalid],
        ["f9", [fields.f9.visible && fields.f9.required ? ew.Validators.required(fields.f9.caption) : null], fields.f9.isInvalid],
        ["f10", [fields.f10.visible && fields.f10.required ? ew.Validators.required(fields.f10.caption) : null], fields.f10.isInvalid],
        ["f11", [fields.f11.visible && fields.f11.required ? ew.Validators.required(fields.f11.caption) : null], fields.f11.isInvalid],
        ["f12", [fields.f12.visible && fields.f12.required ? ew.Validators.required(fields.f12.caption) : null], fields.f12.isInvalid],
        ["f13", [fields.f13.visible && fields.f13.required ? ew.Validators.required(fields.f13.caption) : null], fields.f13.isInvalid],
        ["f14", [fields.f14.visible && fields.f14.required ? ew.Validators.required(fields.f14.caption) : null], fields.f14.isInvalid],
        ["f15", [fields.f15.visible && fields.f15.required ? ew.Validators.required(fields.f15.caption) : null], fields.f15.isInvalid],
        ["naf", [fields.naf.visible && fields.naf.required ? ew.Validators.required(fields.naf.caption) : null], fields.naf.isInvalid]
    ]);

    // Set invalid fields
    $(function() {
        var f = fnilai_formatifgrid,
            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_formatifgrid.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_formatifgrid.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, "nama", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "jk", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f1", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f2", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f3", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f4", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f5", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f6", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f7", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f8", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f9", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f10", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f11", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f12", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f13", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f14", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "f15", false))
            return false;
        if (ew.valueChanged(fobj, rowIndex, "naf", false))
            return false;
        return true;
    }

    // Form_CustomValidate
    fnilai_formatifgrid.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_formatifgrid.validateRequired = <?= Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

    // Dynamic selection lists
    fnilai_formatifgrid.lists.kode_mapel = <?= $Grid->kode_mapel->toClientList($Grid) ?>;
    fnilai_formatifgrid.lists.kelas = <?= $Grid->kelas->toClientList($Grid) ?>;
    loadjs.done("fnilai_formatifgrid");
});
</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_formatif">
<?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_formatifgrid" class="ew-form ew-list-form form-inline">
<div id="gmp_nilai_formatif" class="<?= ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table id="tbl_nilai_formatifgrid" 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_f_id->Visible) { // nilai_f_id ?>
        <th data-name="nilai_f_id" class="<?= $Grid->nilai_f_id->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_nilai_f_id" class="nilai_formatif_nilai_f_id"><?= $Grid->renderSort($Grid->nilai_f_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_formatif_guru_id" class="nilai_formatif_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_formatif_kode_mapel" class="nilai_formatif_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_formatif_kelas" class="nilai_formatif_kelas"><?= $Grid->renderSort($Grid->kelas) ?></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_formatif_nama" class="nilai_formatif_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_formatif_jk" class="nilai_formatif_jk"><?= $Grid->renderSort($Grid->jk) ?></div></th>
<?php } ?>
<?php if ($Grid->f1->Visible) { // f1 ?>
        <th data-name="f1" class="<?= $Grid->f1->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f1" class="nilai_formatif_f1"><?= $Grid->renderSort($Grid->f1) ?></div></th>
<?php } ?>
<?php if ($Grid->f2->Visible) { // f2 ?>
        <th data-name="f2" class="<?= $Grid->f2->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f2" class="nilai_formatif_f2"><?= $Grid->renderSort($Grid->f2) ?></div></th>
<?php } ?>
<?php if ($Grid->f3->Visible) { // f3 ?>
        <th data-name="f3" class="<?= $Grid->f3->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f3" class="nilai_formatif_f3"><?= $Grid->renderSort($Grid->f3) ?></div></th>
<?php } ?>
<?php if ($Grid->f4->Visible) { // f4 ?>
        <th data-name="f4" class="<?= $Grid->f4->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f4" class="nilai_formatif_f4"><?= $Grid->renderSort($Grid->f4) ?></div></th>
<?php } ?>
<?php if ($Grid->f5->Visible) { // f5 ?>
        <th data-name="f5" class="<?= $Grid->f5->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f5" class="nilai_formatif_f5"><?= $Grid->renderSort($Grid->f5) ?></div></th>
<?php } ?>
<?php if ($Grid->f6->Visible) { // f6 ?>
        <th data-name="f6" class="<?= $Grid->f6->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f6" class="nilai_formatif_f6"><?= $Grid->renderSort($Grid->f6) ?></div></th>
<?php } ?>
<?php if ($Grid->f7->Visible) { // f7 ?>
        <th data-name="f7" class="<?= $Grid->f7->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f7" class="nilai_formatif_f7"><?= $Grid->renderSort($Grid->f7) ?></div></th>
<?php } ?>
<?php if ($Grid->f8->Visible) { // f8 ?>
        <th data-name="f8" class="<?= $Grid->f8->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f8" class="nilai_formatif_f8"><?= $Grid->renderSort($Grid->f8) ?></div></th>
<?php } ?>
<?php if ($Grid->f9->Visible) { // f9 ?>
        <th data-name="f9" class="<?= $Grid->f9->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f9" class="nilai_formatif_f9"><?= $Grid->renderSort($Grid->f9) ?></div></th>
<?php } ?>
<?php if ($Grid->f10->Visible) { // f10 ?>
        <th data-name="f10" class="<?= $Grid->f10->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f10" class="nilai_formatif_f10"><?= $Grid->renderSort($Grid->f10) ?></div></th>
<?php } ?>
<?php if ($Grid->f11->Visible) { // f11 ?>
        <th data-name="f11" class="<?= $Grid->f11->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f11" class="nilai_formatif_f11"><?= $Grid->renderSort($Grid->f11) ?></div></th>
<?php } ?>
<?php if ($Grid->f12->Visible) { // f12 ?>
        <th data-name="f12" class="<?= $Grid->f12->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f12" class="nilai_formatif_f12"><?= $Grid->renderSort($Grid->f12) ?></div></th>
<?php } ?>
<?php if ($Grid->f13->Visible) { // f13 ?>
        <th data-name="f13" class="<?= $Grid->f13->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f13" class="nilai_formatif_f13"><?= $Grid->renderSort($Grid->f13) ?></div></th>
<?php } ?>
<?php if ($Grid->f14->Visible) { // f14 ?>
        <th data-name="f14" class="<?= $Grid->f14->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f14" class="nilai_formatif_f14"><?= $Grid->renderSort($Grid->f14) ?></div></th>
<?php } ?>
<?php if ($Grid->f15->Visible) { // f15 ?>
        <th data-name="f15" class="<?= $Grid->f15->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_f15" class="nilai_formatif_f15"><?= $Grid->renderSort($Grid->f15) ?></div></th>
<?php } ?>
<?php if ($Grid->naf->Visible) { // naf ?>
        <th data-name="naf" class="<?= $Grid->naf->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_nilai_formatif_naf" class="nilai_formatif_naf"><?= $Grid->renderSort($Grid->naf) ?></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_formatif", "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_f_id->Visible) { // nilai_f_id ?>
        <td data-name="nilai_f_id" <?= $Grid->nilai_f_id->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_nilai_f_id" class="form-group"></span>
<input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nilai_f_id" id="o<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_id->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_nilai_f_id" class="form-group">
<span<?= $Grid->nilai_f_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nilai_f_id->getDisplayValue($Grid->nilai_f_id->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nilai_f_id" id="x<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_id->CurrentValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_nilai_f_id">
<span<?= $Grid->nilai_f_id->viewAttributes() ?>>
<?= $Grid->nilai_f_id->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_nilai_f_id" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_id->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_nilai_f_id" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_id->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } else { ?>
            <input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nilai_f_id" id="x<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_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_formatif_guru_id" class="form-group">
<input type="<?= $Grid->guru_id->getInputTextType() ?>" data-table="nilai_formatif" 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_formatif" 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_formatif_guru_id" class="form-group">
<input type="<?= $Grid->guru_id->getInputTextType() ?>" data-table="nilai_formatif" 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 } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_guru_id">
<span<?= $Grid->guru_id->viewAttributes() ?>>
<?= $Grid->guru_id->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_guru_id" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_guru_id" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_guru_id" value="<?= HtmlEncode($Grid->guru_id->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_guru_id" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_guru_id" id="fnilai_formatifgrid$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_formatif_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_formatif_x<?= $Grid->RowIndex ?>_kode_mapel"
        data-table="nilai_formatif"
        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_formatif_x<?= $Grid->RowIndex ?>_kode_mapel']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kode_mapel", selectId: "nilai_formatif_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_formatif.fields.kode_mapel.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<input type="hidden" data-table="nilai_formatif" 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_formatif_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_formatif_x<?= $Grid->RowIndex ?>_kode_mapel"
        data-table="nilai_formatif"
        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_formatif_x<?= $Grid->RowIndex ?>_kode_mapel']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kode_mapel", selectId: "nilai_formatif_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_formatif.fields.kode_mapel.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_kode_mapel">
<span<?= $Grid->kode_mapel->viewAttributes() ?>>
<?= $Grid->kode_mapel->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_kode_mapel" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_kode_mapel" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_kode_mapel" value="<?= HtmlEncode($Grid->kode_mapel->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_kode_mapel" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_kode_mapel" id="fnilai_formatifgrid$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_formatif_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_formatif_x<?= $Grid->RowIndex ?>_kelas"
        data-table="nilai_formatif"
        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_formatif_x<?= $Grid->RowIndex ?>_kelas']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kelas", selectId: "nilai_formatif_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_formatif.fields.kelas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<input type="hidden" data-table="nilai_formatif" 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_formatif_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_formatif_x<?= $Grid->RowIndex ?>_kelas"
        data-table="nilai_formatif"
        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_formatif_x<?= $Grid->RowIndex ?>_kelas']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kelas", selectId: "nilai_formatif_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_formatif.fields.kelas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_kelas">
<span<?= $Grid->kelas->viewAttributes() ?>>
<?= $Grid->kelas->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_kelas" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_kelas" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_kelas" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_kelas" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_kelas" value="<?= HtmlEncode($Grid->kelas->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_formatif_nama" class="form-group">
<input type="<?= $Grid->nama->getInputTextType() ?>" data-table="nilai_formatif" 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_formatif" 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_formatif_nama" class="form-group">
<input type="<?= $Grid->nama->getInputTextType() ?>" data-table="nilai_formatif" 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 } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_nama">
<span<?= $Grid->nama->viewAttributes() ?>>
<?= $Grid->nama->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_nama" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_nama" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_nama" value="<?= HtmlEncode($Grid->nama->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_nama" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_nama" id="fnilai_formatifgrid$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_formatif_jk" class="form-group">
<input type="<?= $Grid->jk->getInputTextType() ?>" data-table="nilai_formatif" 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_formatif" 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_formatif_jk" class="form-group">
<input type="<?= $Grid->jk->getInputTextType() ?>" data-table="nilai_formatif" 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 } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_jk">
<span<?= $Grid->jk->viewAttributes() ?>>
<?= $Grid->jk->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_jk" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_jk" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_jk" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_jk" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_jk" value="<?= HtmlEncode($Grid->jk->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f1->Visible) { // f1 ?>
        <td data-name="f1" <?= $Grid->f1->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f1" class="form-group">
<input type="<?= $Grid->f1->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f1" name="x<?= $Grid->RowIndex ?>_f1" id="x<?= $Grid->RowIndex ?>_f1" maxlength="255" value="<?= $Grid->f1->EditValue ?>"<?= $Grid->f1->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f1->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f1" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f1" id="o<?= $Grid->RowIndex ?>_f1" value="<?= HtmlEncode($Grid->f1->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f1" class="form-group">
<input type="<?= $Grid->f1->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f1" name="x<?= $Grid->RowIndex ?>_f1" id="x<?= $Grid->RowIndex ?>_f1" maxlength="255" value="<?= $Grid->f1->EditValue ?>"<?= $Grid->f1->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f1->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f1">
<span<?= $Grid->f1->viewAttributes() ?>>
<?= $Grid->f1->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f1" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f1" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f1" value="<?= HtmlEncode($Grid->f1->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f1" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f1" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f1" value="<?= HtmlEncode($Grid->f1->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f2->Visible) { // f2 ?>
        <td data-name="f2" <?= $Grid->f2->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f2" class="form-group">
<input type="<?= $Grid->f2->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f2" name="x<?= $Grid->RowIndex ?>_f2" id="x<?= $Grid->RowIndex ?>_f2" maxlength="255" value="<?= $Grid->f2->EditValue ?>"<?= $Grid->f2->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f2->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f2" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f2" id="o<?= $Grid->RowIndex ?>_f2" value="<?= HtmlEncode($Grid->f2->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f2" class="form-group">
<input type="<?= $Grid->f2->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f2" name="x<?= $Grid->RowIndex ?>_f2" id="x<?= $Grid->RowIndex ?>_f2" maxlength="255" value="<?= $Grid->f2->EditValue ?>"<?= $Grid->f2->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f2->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f2">
<span<?= $Grid->f2->viewAttributes() ?>>
<?= $Grid->f2->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f2" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f2" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f2" value="<?= HtmlEncode($Grid->f2->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f2" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f2" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f2" value="<?= HtmlEncode($Grid->f2->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f3->Visible) { // f3 ?>
        <td data-name="f3" <?= $Grid->f3->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f3" class="form-group">
<input type="<?= $Grid->f3->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f3" name="x<?= $Grid->RowIndex ?>_f3" id="x<?= $Grid->RowIndex ?>_f3" maxlength="255" value="<?= $Grid->f3->EditValue ?>"<?= $Grid->f3->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f3->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f3" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f3" id="o<?= $Grid->RowIndex ?>_f3" value="<?= HtmlEncode($Grid->f3->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f3" class="form-group">
<input type="<?= $Grid->f3->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f3" name="x<?= $Grid->RowIndex ?>_f3" id="x<?= $Grid->RowIndex ?>_f3" maxlength="255" value="<?= $Grid->f3->EditValue ?>"<?= $Grid->f3->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f3->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f3">
<span<?= $Grid->f3->viewAttributes() ?>>
<?= $Grid->f3->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f3" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f3" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f3" value="<?= HtmlEncode($Grid->f3->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f3" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f3" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f3" value="<?= HtmlEncode($Grid->f3->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f4->Visible) { // f4 ?>
        <td data-name="f4" <?= $Grid->f4->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f4" class="form-group">
<input type="<?= $Grid->f4->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f4" name="x<?= $Grid->RowIndex ?>_f4" id="x<?= $Grid->RowIndex ?>_f4" maxlength="255" value="<?= $Grid->f4->EditValue ?>"<?= $Grid->f4->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f4->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f4" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f4" id="o<?= $Grid->RowIndex ?>_f4" value="<?= HtmlEncode($Grid->f4->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f4" class="form-group">
<input type="<?= $Grid->f4->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f4" name="x<?= $Grid->RowIndex ?>_f4" id="x<?= $Grid->RowIndex ?>_f4" maxlength="255" value="<?= $Grid->f4->EditValue ?>"<?= $Grid->f4->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f4->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f4">
<span<?= $Grid->f4->viewAttributes() ?>>
<?= $Grid->f4->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f4" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f4" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f4" value="<?= HtmlEncode($Grid->f4->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f4" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f4" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f4" value="<?= HtmlEncode($Grid->f4->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f5->Visible) { // f5 ?>
        <td data-name="f5" <?= $Grid->f5->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f5" class="form-group">
<input type="<?= $Grid->f5->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f5" name="x<?= $Grid->RowIndex ?>_f5" id="x<?= $Grid->RowIndex ?>_f5" maxlength="255" value="<?= $Grid->f5->EditValue ?>"<?= $Grid->f5->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f5->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f5" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f5" id="o<?= $Grid->RowIndex ?>_f5" value="<?= HtmlEncode($Grid->f5->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f5" class="form-group">
<input type="<?= $Grid->f5->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f5" name="x<?= $Grid->RowIndex ?>_f5" id="x<?= $Grid->RowIndex ?>_f5" maxlength="255" value="<?= $Grid->f5->EditValue ?>"<?= $Grid->f5->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f5->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f5">
<span<?= $Grid->f5->viewAttributes() ?>>
<?= $Grid->f5->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f5" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f5" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f5" value="<?= HtmlEncode($Grid->f5->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f5" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f5" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f5" value="<?= HtmlEncode($Grid->f5->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f6->Visible) { // f6 ?>
        <td data-name="f6" <?= $Grid->f6->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f6" class="form-group">
<input type="<?= $Grid->f6->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f6" name="x<?= $Grid->RowIndex ?>_f6" id="x<?= $Grid->RowIndex ?>_f6" maxlength="255" value="<?= $Grid->f6->EditValue ?>"<?= $Grid->f6->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f6->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f6" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f6" id="o<?= $Grid->RowIndex ?>_f6" value="<?= HtmlEncode($Grid->f6->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f6" class="form-group">
<input type="<?= $Grid->f6->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f6" name="x<?= $Grid->RowIndex ?>_f6" id="x<?= $Grid->RowIndex ?>_f6" maxlength="255" value="<?= $Grid->f6->EditValue ?>"<?= $Grid->f6->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f6->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f6">
<span<?= $Grid->f6->viewAttributes() ?>>
<?= $Grid->f6->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f6" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f6" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f6" value="<?= HtmlEncode($Grid->f6->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f6" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f6" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f6" value="<?= HtmlEncode($Grid->f6->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f7->Visible) { // f7 ?>
        <td data-name="f7" <?= $Grid->f7->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f7" class="form-group">
<input type="<?= $Grid->f7->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f7" name="x<?= $Grid->RowIndex ?>_f7" id="x<?= $Grid->RowIndex ?>_f7" maxlength="255" value="<?= $Grid->f7->EditValue ?>"<?= $Grid->f7->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f7->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f7" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f7" id="o<?= $Grid->RowIndex ?>_f7" value="<?= HtmlEncode($Grid->f7->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f7" class="form-group">
<input type="<?= $Grid->f7->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f7" name="x<?= $Grid->RowIndex ?>_f7" id="x<?= $Grid->RowIndex ?>_f7" maxlength="255" value="<?= $Grid->f7->EditValue ?>"<?= $Grid->f7->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f7->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f7">
<span<?= $Grid->f7->viewAttributes() ?>>
<?= $Grid->f7->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f7" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f7" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f7" value="<?= HtmlEncode($Grid->f7->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f7" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f7" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f7" value="<?= HtmlEncode($Grid->f7->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f8->Visible) { // f8 ?>
        <td data-name="f8" <?= $Grid->f8->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f8" class="form-group">
<input type="<?= $Grid->f8->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f8" name="x<?= $Grid->RowIndex ?>_f8" id="x<?= $Grid->RowIndex ?>_f8" maxlength="255" value="<?= $Grid->f8->EditValue ?>"<?= $Grid->f8->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f8->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f8" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f8" id="o<?= $Grid->RowIndex ?>_f8" value="<?= HtmlEncode($Grid->f8->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f8" class="form-group">
<input type="<?= $Grid->f8->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f8" name="x<?= $Grid->RowIndex ?>_f8" id="x<?= $Grid->RowIndex ?>_f8" maxlength="255" value="<?= $Grid->f8->EditValue ?>"<?= $Grid->f8->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f8->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f8">
<span<?= $Grid->f8->viewAttributes() ?>>
<?= $Grid->f8->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f8" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f8" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f8" value="<?= HtmlEncode($Grid->f8->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f8" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f8" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f8" value="<?= HtmlEncode($Grid->f8->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f9->Visible) { // f9 ?>
        <td data-name="f9" <?= $Grid->f9->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f9" class="form-group">
<input type="<?= $Grid->f9->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f9" name="x<?= $Grid->RowIndex ?>_f9" id="x<?= $Grid->RowIndex ?>_f9" maxlength="255" value="<?= $Grid->f9->EditValue ?>"<?= $Grid->f9->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f9->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f9" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f9" id="o<?= $Grid->RowIndex ?>_f9" value="<?= HtmlEncode($Grid->f9->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f9" class="form-group">
<input type="<?= $Grid->f9->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f9" name="x<?= $Grid->RowIndex ?>_f9" id="x<?= $Grid->RowIndex ?>_f9" maxlength="255" value="<?= $Grid->f9->EditValue ?>"<?= $Grid->f9->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f9->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f9">
<span<?= $Grid->f9->viewAttributes() ?>>
<?= $Grid->f9->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f9" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f9" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f9" value="<?= HtmlEncode($Grid->f9->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f9" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f9" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f9" value="<?= HtmlEncode($Grid->f9->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f10->Visible) { // f10 ?>
        <td data-name="f10" <?= $Grid->f10->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f10" class="form-group">
<input type="<?= $Grid->f10->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f10" name="x<?= $Grid->RowIndex ?>_f10" id="x<?= $Grid->RowIndex ?>_f10" maxlength="255" value="<?= $Grid->f10->EditValue ?>"<?= $Grid->f10->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f10->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f10" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f10" id="o<?= $Grid->RowIndex ?>_f10" value="<?= HtmlEncode($Grid->f10->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f10" class="form-group">
<input type="<?= $Grid->f10->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f10" name="x<?= $Grid->RowIndex ?>_f10" id="x<?= $Grid->RowIndex ?>_f10" maxlength="255" value="<?= $Grid->f10->EditValue ?>"<?= $Grid->f10->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f10->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f10">
<span<?= $Grid->f10->viewAttributes() ?>>
<?= $Grid->f10->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f10" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f10" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f10" value="<?= HtmlEncode($Grid->f10->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f10" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f10" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f10" value="<?= HtmlEncode($Grid->f10->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f11->Visible) { // f11 ?>
        <td data-name="f11" <?= $Grid->f11->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f11" class="form-group">
<input type="<?= $Grid->f11->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f11" name="x<?= $Grid->RowIndex ?>_f11" id="x<?= $Grid->RowIndex ?>_f11" maxlength="255" value="<?= $Grid->f11->EditValue ?>"<?= $Grid->f11->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f11->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f11" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f11" id="o<?= $Grid->RowIndex ?>_f11" value="<?= HtmlEncode($Grid->f11->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f11" class="form-group">
<input type="<?= $Grid->f11->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f11" name="x<?= $Grid->RowIndex ?>_f11" id="x<?= $Grid->RowIndex ?>_f11" maxlength="255" value="<?= $Grid->f11->EditValue ?>"<?= $Grid->f11->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f11->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f11">
<span<?= $Grid->f11->viewAttributes() ?>>
<?= $Grid->f11->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f11" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f11" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f11" value="<?= HtmlEncode($Grid->f11->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f11" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f11" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f11" value="<?= HtmlEncode($Grid->f11->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f12->Visible) { // f12 ?>
        <td data-name="f12" <?= $Grid->f12->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f12" class="form-group">
<input type="<?= $Grid->f12->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f12" name="x<?= $Grid->RowIndex ?>_f12" id="x<?= $Grid->RowIndex ?>_f12" maxlength="255" value="<?= $Grid->f12->EditValue ?>"<?= $Grid->f12->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f12->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f12" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f12" id="o<?= $Grid->RowIndex ?>_f12" value="<?= HtmlEncode($Grid->f12->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f12" class="form-group">
<input type="<?= $Grid->f12->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f12" name="x<?= $Grid->RowIndex ?>_f12" id="x<?= $Grid->RowIndex ?>_f12" maxlength="255" value="<?= $Grid->f12->EditValue ?>"<?= $Grid->f12->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f12->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f12">
<span<?= $Grid->f12->viewAttributes() ?>>
<?= $Grid->f12->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f12" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f12" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f12" value="<?= HtmlEncode($Grid->f12->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f12" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f12" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f12" value="<?= HtmlEncode($Grid->f12->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f13->Visible) { // f13 ?>
        <td data-name="f13" <?= $Grid->f13->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f13" class="form-group">
<input type="<?= $Grid->f13->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f13" name="x<?= $Grid->RowIndex ?>_f13" id="x<?= $Grid->RowIndex ?>_f13" maxlength="255" value="<?= $Grid->f13->EditValue ?>"<?= $Grid->f13->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f13->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f13" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f13" id="o<?= $Grid->RowIndex ?>_f13" value="<?= HtmlEncode($Grid->f13->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f13" class="form-group">
<input type="<?= $Grid->f13->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f13" name="x<?= $Grid->RowIndex ?>_f13" id="x<?= $Grid->RowIndex ?>_f13" maxlength="255" value="<?= $Grid->f13->EditValue ?>"<?= $Grid->f13->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f13->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f13">
<span<?= $Grid->f13->viewAttributes() ?>>
<?= $Grid->f13->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f13" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f13" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f13" value="<?= HtmlEncode($Grid->f13->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f13" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f13" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f13" value="<?= HtmlEncode($Grid->f13->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f14->Visible) { // f14 ?>
        <td data-name="f14" <?= $Grid->f14->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f14" class="form-group">
<input type="<?= $Grid->f14->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f14" name="x<?= $Grid->RowIndex ?>_f14" id="x<?= $Grid->RowIndex ?>_f14" maxlength="255" value="<?= $Grid->f14->EditValue ?>"<?= $Grid->f14->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f14->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f14" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f14" id="o<?= $Grid->RowIndex ?>_f14" value="<?= HtmlEncode($Grid->f14->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f14" class="form-group">
<input type="<?= $Grid->f14->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f14" name="x<?= $Grid->RowIndex ?>_f14" id="x<?= $Grid->RowIndex ?>_f14" maxlength="255" value="<?= $Grid->f14->EditValue ?>"<?= $Grid->f14->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f14->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f14">
<span<?= $Grid->f14->viewAttributes() ?>>
<?= $Grid->f14->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f14" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f14" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f14" value="<?= HtmlEncode($Grid->f14->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f14" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f14" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f14" value="<?= HtmlEncode($Grid->f14->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->f15->Visible) { // f15 ?>
        <td data-name="f15" <?= $Grid->f15->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f15" class="form-group">
<input type="<?= $Grid->f15->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f15" name="x<?= $Grid->RowIndex ?>_f15" id="x<?= $Grid->RowIndex ?>_f15" maxlength="255" value="<?= $Grid->f15->EditValue ?>"<?= $Grid->f15->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f15->getErrorMessage() ?></div>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f15" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f15" id="o<?= $Grid->RowIndex ?>_f15" value="<?= HtmlEncode($Grid->f15->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f15" class="form-group">
<input type="<?= $Grid->f15->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f15" name="x<?= $Grid->RowIndex ?>_f15" id="x<?= $Grid->RowIndex ?>_f15" maxlength="255" value="<?= $Grid->f15->EditValue ?>"<?= $Grid->f15->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f15->getErrorMessage() ?></div>
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_f15">
<span<?= $Grid->f15->viewAttributes() ?>>
<?= $Grid->f15->getViewValue() ?></span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f15" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f15" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_f15" value="<?= HtmlEncode($Grid->f15->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_f15" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f15" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_f15" value="<?= HtmlEncode($Grid->f15->OldValue) ?>">
<?php } ?>
<?php } ?>
</td>
    <?php } ?>
    <?php if ($Grid->naf->Visible) { // naf ?>
        <td data-name="naf" <?= $Grid->naf->cellAttributes() ?>>
<?php if ($Grid->RowType == ROWTYPE_ADD) { // Add record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_naf" class="form-group">
<input readonly type="<?= $Page->naf->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_naf" name="x_naf" id="x_naf" maxlength="255" value="<?= $Page->naf->EditValue ?>" <?= $Page->naf->editAttributes() ?> aria-describedby="x_naf_help">
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_naf" data-hidden="1" name="o<?= $Grid->RowIndex ?>_naf" id="o<?= $Grid->RowIndex ?>_naf" value="<?= HtmlEncode($Grid->naf->OldValue) ?>">
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_naf" class="form-group">
<input readonly type="<?= $Page->naf->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_naf" name="x_naf" id="x_naf" maxlength="255" value="<?= $Page->naf->EditValue ?>" <?= $Page->naf->editAttributes() ?> aria-describedby="x_naf_help">
</span>
<?php } ?>
<?php if ($Grid->RowType == ROWTYPE_VIEW) { // View record ?>
<span id="el<?= $Grid->RowCount ?>_nilai_formatif_naf">
<span<?= $Grid->naf->viewAttributes() ?>><?= number_format($Page->naf->getViewValue(),2) ?>
</span>
</span>
<?php if ($Grid->isConfirm()) { ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_naf" data-hidden="1" name="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_naf" id="fnilai_formatifgrid$x<?= $Grid->RowIndex ?>_naf" value="<?= HtmlEncode($Grid->naf->FormValue) ?>">
<input type="hidden" data-table="nilai_formatif" data-field="x_naf" data-hidden="1" name="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_naf" id="fnilai_formatifgrid$o<?= $Grid->RowIndex ?>_naf" value="<?= HtmlEncode($Grid->naf->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_formatifgrid","load"], function () {
    fnilai_formatifgrid.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_formatif", "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_f_id->Visible) { // nilai_f_id ?>
        <td data-name="nilai_f_id">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_nilai_f_id" class="form-group nilai_formatif_nilai_f_id"></span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_nilai_f_id" class="form-group nilai_formatif_nilai_f_id">
<span<?= $Grid->nilai_f_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->nilai_f_id->getDisplayValue($Grid->nilai_f_id->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="x<?= $Grid->RowIndex ?>_nilai_f_id" id="x<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_id->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_nilai_f_id" data-hidden="1" name="o<?= $Grid->RowIndex ?>_nilai_f_id" id="o<?= $Grid->RowIndex ?>_nilai_f_id" value="<?= HtmlEncode($Grid->nilai_f_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_formatif_guru_id" class="form-group nilai_formatif_guru_id">
<input type="<?= $Grid->guru_id->getInputTextType() ?>" data-table="nilai_formatif" 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_formatif_guru_id" class="form-group nilai_formatif_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_formatif" 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_formatif" 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_formatif_kode_mapel" class="form-group nilai_formatif_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_formatif_x<?= $Grid->RowIndex ?>_kode_mapel"
        data-table="nilai_formatif"
        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_formatif_x<?= $Grid->RowIndex ?>_kode_mapel']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kode_mapel", selectId: "nilai_formatif_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_formatif.fields.kode_mapel.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_kode_mapel" class="form-group nilai_formatif_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_formatif" 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_formatif" 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_formatif_kelas" class="form-group nilai_formatif_kelas">
    <select
        id="x<?= $Grid->RowIndex ?>_kelas"
        name="x<?= $Grid->RowIndex ?>_kelas"
        class="form-control ew-select<?= $Grid->kelas->isInvalidClass() ?>"
        data-select2-id="nilai_formatif_x<?= $Grid->RowIndex ?>_kelas"
        data-table="nilai_formatif"
        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_formatif_x<?= $Grid->RowIndex ?>_kelas']"),
        options = { name: "x<?= $Grid->RowIndex ?>_kelas", selectId: "nilai_formatif_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_formatif.fields.kelas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_kelas" class="form-group nilai_formatif_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_formatif" 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_formatif" 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->nama->Visible) { // nama ?>
        <td data-name="nama">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_nama" class="form-group nilai_formatif_nama">
<input type="<?= $Grid->nama->getInputTextType() ?>" data-table="nilai_formatif" 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_formatif_nama" class="form-group nilai_formatif_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_formatif" 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_formatif" 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_formatif_jk" class="form-group nilai_formatif_jk">
<input type="<?= $Grid->jk->getInputTextType() ?>" data-table="nilai_formatif" 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_formatif_jk" class="form-group nilai_formatif_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_formatif" 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_formatif" 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->f1->Visible) { // f1 ?>
        <td data-name="f1">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f1" class="form-group nilai_formatif_f1">
<input type="<?= $Grid->f1->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f1" name="x<?= $Grid->RowIndex ?>_f1" id="x<?= $Grid->RowIndex ?>_f1" maxlength="255" value="<?= $Grid->f1->EditValue ?>"<?= $Grid->f1->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f1->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f1" class="form-group nilai_formatif_f1">
<span<?= $Grid->f1->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f1->getDisplayValue($Grid->f1->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f1" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f1" id="x<?= $Grid->RowIndex ?>_f1" value="<?= HtmlEncode($Grid->f1->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f1" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f1" id="o<?= $Grid->RowIndex ?>_f1" value="<?= HtmlEncode($Grid->f1->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f2->Visible) { // f2 ?>
        <td data-name="f2">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f2" class="form-group nilai_formatif_f2">
<input type="<?= $Grid->f2->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f2" name="x<?= $Grid->RowIndex ?>_f2" id="x<?= $Grid->RowIndex ?>_f2" maxlength="255" value="<?= $Grid->f2->EditValue ?>"<?= $Grid->f2->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f2->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f2" class="form-group nilai_formatif_f2">
<span<?= $Grid->f2->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f2->getDisplayValue($Grid->f2->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f2" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f2" id="x<?= $Grid->RowIndex ?>_f2" value="<?= HtmlEncode($Grid->f2->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f2" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f2" id="o<?= $Grid->RowIndex ?>_f2" value="<?= HtmlEncode($Grid->f2->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f3->Visible) { // f3 ?>
        <td data-name="f3">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f3" class="form-group nilai_formatif_f3">
<input type="<?= $Grid->f3->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f3" name="x<?= $Grid->RowIndex ?>_f3" id="x<?= $Grid->RowIndex ?>_f3" maxlength="255" value="<?= $Grid->f3->EditValue ?>"<?= $Grid->f3->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f3->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f3" class="form-group nilai_formatif_f3">
<span<?= $Grid->f3->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f3->getDisplayValue($Grid->f3->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f3" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f3" id="x<?= $Grid->RowIndex ?>_f3" value="<?= HtmlEncode($Grid->f3->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f3" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f3" id="o<?= $Grid->RowIndex ?>_f3" value="<?= HtmlEncode($Grid->f3->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f4->Visible) { // f4 ?>
        <td data-name="f4">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f4" class="form-group nilai_formatif_f4">
<input type="<?= $Grid->f4->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f4" name="x<?= $Grid->RowIndex ?>_f4" id="x<?= $Grid->RowIndex ?>_f4" maxlength="255" value="<?= $Grid->f4->EditValue ?>"<?= $Grid->f4->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f4->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f4" class="form-group nilai_formatif_f4">
<span<?= $Grid->f4->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f4->getDisplayValue($Grid->f4->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f4" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f4" id="x<?= $Grid->RowIndex ?>_f4" value="<?= HtmlEncode($Grid->f4->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f4" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f4" id="o<?= $Grid->RowIndex ?>_f4" value="<?= HtmlEncode($Grid->f4->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f5->Visible) { // f5 ?>
        <td data-name="f5">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f5" class="form-group nilai_formatif_f5">
<input type="<?= $Grid->f5->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f5" name="x<?= $Grid->RowIndex ?>_f5" id="x<?= $Grid->RowIndex ?>_f5" maxlength="255" value="<?= $Grid->f5->EditValue ?>"<?= $Grid->f5->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f5->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f5" class="form-group nilai_formatif_f5">
<span<?= $Grid->f5->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f5->getDisplayValue($Grid->f5->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f5" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f5" id="x<?= $Grid->RowIndex ?>_f5" value="<?= HtmlEncode($Grid->f5->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f5" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f5" id="o<?= $Grid->RowIndex ?>_f5" value="<?= HtmlEncode($Grid->f5->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f6->Visible) { // f6 ?>
        <td data-name="f6">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f6" class="form-group nilai_formatif_f6">
<input type="<?= $Grid->f6->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f6" name="x<?= $Grid->RowIndex ?>_f6" id="x<?= $Grid->RowIndex ?>_f6" maxlength="255" value="<?= $Grid->f6->EditValue ?>"<?= $Grid->f6->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f6->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f6" class="form-group nilai_formatif_f6">
<span<?= $Grid->f6->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f6->getDisplayValue($Grid->f6->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f6" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f6" id="x<?= $Grid->RowIndex ?>_f6" value="<?= HtmlEncode($Grid->f6->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f6" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f6" id="o<?= $Grid->RowIndex ?>_f6" value="<?= HtmlEncode($Grid->f6->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f7->Visible) { // f7 ?>
        <td data-name="f7">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f7" class="form-group nilai_formatif_f7">
<input type="<?= $Grid->f7->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f7" name="x<?= $Grid->RowIndex ?>_f7" id="x<?= $Grid->RowIndex ?>_f7" maxlength="255" value="<?= $Grid->f7->EditValue ?>"<?= $Grid->f7->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f7->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f7" class="form-group nilai_formatif_f7">
<span<?= $Grid->f7->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f7->getDisplayValue($Grid->f7->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f7" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f7" id="x<?= $Grid->RowIndex ?>_f7" value="<?= HtmlEncode($Grid->f7->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f7" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f7" id="o<?= $Grid->RowIndex ?>_f7" value="<?= HtmlEncode($Grid->f7->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f8->Visible) { // f8 ?>
        <td data-name="f8">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f8" class="form-group nilai_formatif_f8">
<input type="<?= $Grid->f8->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f8" name="x<?= $Grid->RowIndex ?>_f8" id="x<?= $Grid->RowIndex ?>_f8" maxlength="255" value="<?= $Grid->f8->EditValue ?>"<?= $Grid->f8->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f8->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f8" class="form-group nilai_formatif_f8">
<span<?= $Grid->f8->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f8->getDisplayValue($Grid->f8->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f8" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f8" id="x<?= $Grid->RowIndex ?>_f8" value="<?= HtmlEncode($Grid->f8->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f8" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f8" id="o<?= $Grid->RowIndex ?>_f8" value="<?= HtmlEncode($Grid->f8->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f9->Visible) { // f9 ?>
        <td data-name="f9">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f9" class="form-group nilai_formatif_f9">
<input type="<?= $Grid->f9->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f9" name="x<?= $Grid->RowIndex ?>_f9" id="x<?= $Grid->RowIndex ?>_f9" maxlength="255" value="<?= $Grid->f9->EditValue ?>"<?= $Grid->f9->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f9->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f9" class="form-group nilai_formatif_f9">
<span<?= $Grid->f9->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f9->getDisplayValue($Grid->f9->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f9" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f9" id="x<?= $Grid->RowIndex ?>_f9" value="<?= HtmlEncode($Grid->f9->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f9" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f9" id="o<?= $Grid->RowIndex ?>_f9" value="<?= HtmlEncode($Grid->f9->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f10->Visible) { // f10 ?>
        <td data-name="f10">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f10" class="form-group nilai_formatif_f10">
<input type="<?= $Grid->f10->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f10" name="x<?= $Grid->RowIndex ?>_f10" id="x<?= $Grid->RowIndex ?>_f10" maxlength="255" value="<?= $Grid->f10->EditValue ?>"<?= $Grid->f10->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f10->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f10" class="form-group nilai_formatif_f10">
<span<?= $Grid->f10->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f10->getDisplayValue($Grid->f10->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f10" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f10" id="x<?= $Grid->RowIndex ?>_f10" value="<?= HtmlEncode($Grid->f10->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f10" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f10" id="o<?= $Grid->RowIndex ?>_f10" value="<?= HtmlEncode($Grid->f10->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f11->Visible) { // f11 ?>
        <td data-name="f11">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f11" class="form-group nilai_formatif_f11">
<input type="<?= $Grid->f11->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f11" name="x<?= $Grid->RowIndex ?>_f11" id="x<?= $Grid->RowIndex ?>_f11" maxlength="255" value="<?= $Grid->f11->EditValue ?>"<?= $Grid->f11->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f11->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f11" class="form-group nilai_formatif_f11">
<span<?= $Grid->f11->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f11->getDisplayValue($Grid->f11->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f11" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f11" id="x<?= $Grid->RowIndex ?>_f11" value="<?= HtmlEncode($Grid->f11->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f11" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f11" id="o<?= $Grid->RowIndex ?>_f11" value="<?= HtmlEncode($Grid->f11->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f12->Visible) { // f12 ?>
        <td data-name="f12">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f12" class="form-group nilai_formatif_f12">
<input type="<?= $Grid->f12->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f12" name="x<?= $Grid->RowIndex ?>_f12" id="x<?= $Grid->RowIndex ?>_f12" maxlength="255" value="<?= $Grid->f12->EditValue ?>"<?= $Grid->f12->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f12->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f12" class="form-group nilai_formatif_f12">
<span<?= $Grid->f12->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f12->getDisplayValue($Grid->f12->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f12" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f12" id="x<?= $Grid->RowIndex ?>_f12" value="<?= HtmlEncode($Grid->f12->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f12" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f12" id="o<?= $Grid->RowIndex ?>_f12" value="<?= HtmlEncode($Grid->f12->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f13->Visible) { // f13 ?>
        <td data-name="f13">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f13" class="form-group nilai_formatif_f13">
<input type="<?= $Grid->f13->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f13" name="x<?= $Grid->RowIndex ?>_f13" id="x<?= $Grid->RowIndex ?>_f13" maxlength="255" value="<?= $Grid->f13->EditValue ?>"<?= $Grid->f13->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f13->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f13" class="form-group nilai_formatif_f13">
<span<?= $Grid->f13->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f13->getDisplayValue($Grid->f13->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f13" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f13" id="x<?= $Grid->RowIndex ?>_f13" value="<?= HtmlEncode($Grid->f13->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f13" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f13" id="o<?= $Grid->RowIndex ?>_f13" value="<?= HtmlEncode($Grid->f13->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f14->Visible) { // f14 ?>
        <td data-name="f14">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f14" class="form-group nilai_formatif_f14">
<input type="<?= $Grid->f14->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f14" name="x<?= $Grid->RowIndex ?>_f14" id="x<?= $Grid->RowIndex ?>_f14" maxlength="255" value="<?= $Grid->f14->EditValue ?>"<?= $Grid->f14->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f14->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f14" class="form-group nilai_formatif_f14">
<span<?= $Grid->f14->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f14->getDisplayValue($Grid->f14->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f14" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f14" id="x<?= $Grid->RowIndex ?>_f14" value="<?= HtmlEncode($Grid->f14->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f14" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f14" id="o<?= $Grid->RowIndex ?>_f14" value="<?= HtmlEncode($Grid->f14->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->f15->Visible) { // f15 ?>
        <td data-name="f15">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_f15" class="form-group nilai_formatif_f15">
<input type="<?= $Grid->f15->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_f15" name="x<?= $Grid->RowIndex ?>_f15" id="x<?= $Grid->RowIndex ?>_f15" maxlength="255" value="<?= $Grid->f15->EditValue ?>"<?= $Grid->f15->editAttributes() ?>>
<div class="invalid-feedback"><?= $Grid->f15->getErrorMessage() ?></div>
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_f15" class="form-group nilai_formatif_f15">
<span<?= $Grid->f15->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->f15->getDisplayValue($Grid->f15->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_f15" data-hidden="1" name="x<?= $Grid->RowIndex ?>_f15" id="x<?= $Grid->RowIndex ?>_f15" value="<?= HtmlEncode($Grid->f15->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_f15" data-hidden="1" name="o<?= $Grid->RowIndex ?>_f15" id="o<?= $Grid->RowIndex ?>_f15" value="<?= HtmlEncode($Grid->f15->OldValue) ?>">
</td>
    <?php } ?>
    <?php if ($Grid->naf->Visible) { // naf ?>
        <td data-name="naf">
<?php if (!$Grid->isConfirm()) { ?>
<span id="el$rowindex$_nilai_formatif_naf" class="form-group nilai_formatif_naf">
<input readonly type="<?= $Page->naf->getInputTextType() ?>" data-table="nilai_formatif" data-field="x_naf" name="x_naf" id="x_naf" maxlength="255" value="<?= $Page->naf->EditValue ?>" <?= $Page->naf->editAttributes() ?> aria-describedby="x_naf_help">
</span>
<?php } else { ?>
<span id="el$rowindex$_nilai_formatif_naf" class="form-group nilai_formatif_naf">
<span<?= $Grid->naf->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Grid->naf->getDisplayValue($Grid->naf->ViewValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai_formatif" data-field="x_naf" data-hidden="1" name="x<?= $Grid->RowIndex ?>_naf" id="x<?= $Grid->RowIndex ?>_naf" value="<?= HtmlEncode($Grid->naf->FormValue) ?>">
<?php } ?>
<input type="hidden" data-table="nilai_formatif" data-field="x_naf" data-hidden="1" name="o<?= $Grid->RowIndex ?>_naf" id="o<?= $Grid->RowIndex ?>_naf" value="<?= HtmlEncode($Grid->naf->OldValue) ?>">
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Grid->ListOptions->render("body", "right", $Grid->RowIndex);
?>
<script>
loadjs.ready(["fnilai_formatifgrid","load"], function() {
    fnilai_formatifgrid.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_formatifgrid">
</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_formatif");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
