<?php

namespace PHPMaker2021\rkm21;

// Page object
$NilaiAdd = &$Page;
?>
<script>
var currentForm, currentPageID;
var fnilaiadd;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "add";
    fnilaiadd = currentForm = new ew.Form("fnilaiadd", "add");

    // Add fields
    var currentTable = <?= JsonEncode(GetClientVar("tables", "nilai")) ?>,
        fields = currentTable.fields;
    if (!ew.vars.tables.nilai)
        ew.vars.tables.nilai = currentTable;
    fnilaiadd.addFields([
        ["kode_tapel", [fields.kode_tapel.visible && fields.kode_tapel.required ? ew.Validators.required(fields.kode_tapel.caption) : null], fields.kode_tapel.isInvalid],
        ["guru_id", [fields.guru_id.visible && fields.guru_id.required ? ew.Validators.required(fields.guru_id.caption) : null], fields.guru_id.isInvalid],
        ["kode_mapel", [fields.kode_mapel.visible && fields.kode_mapel.required ? ew.Validators.required(fields.kode_mapel.caption) : null], fields.kode_mapel.isInvalid],
        ["kelas", [fields.kelas.visible && fields.kelas.required ? ew.Validators.required(fields.kelas.caption) : null], fields.kelas.isInvalid],
        ["nis", [fields.nis.visible && fields.nis.required ? ew.Validators.required(fields.nis.caption) : null], fields.nis.isInvalid],
        ["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, ew.Validators.integer], fields.f1.isInvalid],
        ["f2", [fields.f2.visible && fields.f2.required ? ew.Validators.required(fields.f2.caption) : null, ew.Validators.integer], fields.f2.isInvalid],
        ["f3", [fields.f3.visible && fields.f3.required ? ew.Validators.required(fields.f3.caption) : null, ew.Validators.integer], fields.f3.isInvalid],
        ["f4", [fields.f4.visible && fields.f4.required ? ew.Validators.required(fields.f4.caption) : null, ew.Validators.integer], fields.f4.isInvalid],
        ["f5", [fields.f5.visible && fields.f5.required ? ew.Validators.required(fields.f5.caption) : null, ew.Validators.integer], fields.f5.isInvalid],
        ["f6", [fields.f6.visible && fields.f6.required ? ew.Validators.required(fields.f6.caption) : null, ew.Validators.integer], fields.f6.isInvalid],
        ["f7", [fields.f7.visible && fields.f7.required ? ew.Validators.required(fields.f7.caption) : null, ew.Validators.integer], fields.f7.isInvalid],
        ["f8", [fields.f8.visible && fields.f8.required ? ew.Validators.required(fields.f8.caption) : null, ew.Validators.integer], fields.f8.isInvalid],
        ["f9", [fields.f9.visible && fields.f9.required ? ew.Validators.required(fields.f9.caption) : null, ew.Validators.integer], fields.f9.isInvalid],
        ["f10", [fields.f10.visible && fields.f10.required ? ew.Validators.required(fields.f10.caption) : null, ew.Validators.integer], fields.f10.isInvalid],
        ["f11", [fields.f11.visible && fields.f11.required ? ew.Validators.required(fields.f11.caption) : null, ew.Validators.integer], fields.f11.isInvalid],
        ["f12", [fields.f12.visible && fields.f12.required ? ew.Validators.required(fields.f12.caption) : null, ew.Validators.integer], fields.f12.isInvalid],
        ["f13", [fields.f13.visible && fields.f13.required ? ew.Validators.required(fields.f13.caption) : null, ew.Validators.integer], fields.f13.isInvalid],
        ["f14", [fields.f14.visible && fields.f14.required ? ew.Validators.required(fields.f14.caption) : null, ew.Validators.integer], fields.f14.isInvalid],
        ["f15", [fields.f15.visible && fields.f15.required ? ew.Validators.required(fields.f15.caption) : null, ew.Validators.integer], fields.f15.isInvalid],
        ["naf", [fields.naf.visible && fields.naf.required ? ew.Validators.required(fields.naf.caption) : null, ew.Validators.integer], fields.naf.isInvalid],
        ["s1", [fields.s1.visible && fields.s1.required ? ew.Validators.required(fields.s1.caption) : null, ew.Validators.integer], fields.s1.isInvalid],
        ["s2", [fields.s2.visible && fields.s2.required ? ew.Validators.required(fields.s2.caption) : null, ew.Validators.integer], fields.s2.isInvalid],
        ["s3", [fields.s3.visible && fields.s3.required ? ew.Validators.required(fields.s3.caption) : null, ew.Validators.integer], fields.s3.isInvalid],
        ["s4", [fields.s4.visible && fields.s4.required ? ew.Validators.required(fields.s4.caption) : null, ew.Validators.integer], fields.s4.isInvalid],
        ["s5", [fields.s5.visible && fields.s5.required ? ew.Validators.required(fields.s5.caption) : null, ew.Validators.integer], fields.s5.isInvalid],
        ["s6", [fields.s6.visible && fields.s6.required ? ew.Validators.required(fields.s6.caption) : null, ew.Validators.integer], fields.s6.isInvalid],
        ["s7", [fields.s7.visible && fields.s7.required ? ew.Validators.required(fields.s7.caption) : null, ew.Validators.integer], fields.s7.isInvalid],
        ["s8", [fields.s8.visible && fields.s8.required ? ew.Validators.required(fields.s8.caption) : null, ew.Validators.integer], fields.s8.isInvalid],
        ["nas", [fields.nas.visible && fields.nas.required ? ew.Validators.required(fields.nas.caption) : null], fields.nas.isInvalid],
        ["sts", [fields.sts.visible && fields.sts.required ? ew.Validators.required(fields.sts.caption) : null], fields.sts.isInvalid],
        ["sas", [fields.sas.visible && fields.sas.required ? ew.Validators.required(fields.sas.caption) : null], fields.sas.isInvalid],
        ["nr1", [fields.nr1.visible && fields.nr1.required ? ew.Validators.required(fields.nr1.caption) : null], fields.nr1.isInvalid],
        ["nr2", [fields.nr2.visible && fields.nr2.required ? ew.Validators.required(fields.nr2.caption) : null, ew.Validators.integer], fields.nr2.isInvalid]
    ]);

    // Set invalid fields
    $(function() {
        var f = fnilaiadd,
            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
    fnilaiadd.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);

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

            // Call Form_CustomValidate event
            if (!this.customValidate(fobj)) {
                this.focus();
                return false;
            }
        }

        // Process detail forms
        var dfs = $fobj.find("input[name='detailpage']").get();
        for (var i = 0; i < dfs.length; i++) {
            var df = dfs[i],
                val = df.value,
                frm = ew.forms.get(val);
            if (val && frm && !frm.validate())
                return false;
        }
        return true;
    }

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

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

    // Dynamic selection lists
    loadjs.done("fnilaiadd");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fnilaiadd" id="fnilaiadd" class="<?= $Page->FormClassName ?>" action="<?= CurrentPageUrl(false) ?>" method="post">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="nilai">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<input type="hidden" name="<?= $Page->OldKeyName ?>" value="<?= $Page->OldKey ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($Page->kode_tapel->Visible) { // kode_tapel ?>
    <div id="r_kode_tapel" class="form-group row">
        <label id="elh_nilai_kode_tapel" for="x_kode_tapel" class="<?= $Page->LeftColumnClass ?>"><?= $Page->kode_tapel->caption() ?><?= $Page->kode_tapel->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->kode_tapel->cellAttributes() ?>>
<span id="el_nilai_kode_tapel">
<input type="<?= $Page->kode_tapel->getInputTextType() ?>" data-table="nilai" data-field="x_kode_tapel" name="x_kode_tapel" id="x_kode_tapel" size="30" maxlength="255" value="<?= $Page->kode_tapel->EditValue ?>"<?= $Page->kode_tapel->editAttributes() ?> aria-describedby="x_kode_tapel_help">
<?= $Page->kode_tapel->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->kode_tapel->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->guru_id->Visible) { // guru_id ?>
    <div id="r_guru_id" class="form-group row">
        <label id="elh_nilai_guru_id" for="x_guru_id" class="<?= $Page->LeftColumnClass ?>"><?= $Page->guru_id->caption() ?><?= $Page->guru_id->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->guru_id->cellAttributes() ?>>
<span id="el_nilai_guru_id">
<input type="<?= $Page->guru_id->getInputTextType() ?>" data-table="nilai" data-field="x_guru_id" name="x_guru_id" id="x_guru_id" size="30" maxlength="255" value="<?= $Page->guru_id->EditValue ?>"<?= $Page->guru_id->editAttributes() ?> aria-describedby="x_guru_id_help">
<?= $Page->guru_id->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->guru_id->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->kode_mapel->Visible) { // kode_mapel ?>
    <div id="r_kode_mapel" class="form-group row">
        <label id="elh_nilai_kode_mapel" for="x_kode_mapel" class="<?= $Page->LeftColumnClass ?>"><?= $Page->kode_mapel->caption() ?><?= $Page->kode_mapel->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->kode_mapel->cellAttributes() ?>>
<span id="el_nilai_kode_mapel">
<input type="<?= $Page->kode_mapel->getInputTextType() ?>" data-table="nilai" data-field="x_kode_mapel" name="x_kode_mapel" id="x_kode_mapel" size="30" maxlength="255" value="<?= $Page->kode_mapel->EditValue ?>"<?= $Page->kode_mapel->editAttributes() ?> aria-describedby="x_kode_mapel_help">
<?= $Page->kode_mapel->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->kode_mapel->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
    <div id="r_kelas" class="form-group row">
        <label id="elh_nilai_kelas" for="x_kelas" class="<?= $Page->LeftColumnClass ?>"><?= $Page->kelas->caption() ?><?= $Page->kelas->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->kelas->cellAttributes() ?>>
<?php if (!$Security->isAdmin() && $Security->isLoggedIn() && !$Page->userIDAllow("add")) { // Non system admin ?>
<span id="el_nilai_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Page->kelas->getDisplayValue($Page->kelas->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="nilai" data-field="x_kelas" data-hidden="1" name="x_kelas" id="x_kelas" value="<?= HtmlEncode($Page->kelas->CurrentValue) ?>">
<?php } else { ?>
<span id="el_nilai_kelas">
<input type="<?= $Page->kelas->getInputTextType() ?>" data-table="nilai" data-field="x_kelas" name="x_kelas" id="x_kelas" size="30" maxlength="255" value="<?= $Page->kelas->EditValue ?>"<?= $Page->kelas->editAttributes() ?> aria-describedby="x_kelas_help">
<?= $Page->kelas->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->kelas->getErrorMessage() ?></div>
</span>
<?php } ?>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
    <div id="r_nis" class="form-group row">
        <label id="elh_nilai_nis" for="x_nis" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nis->caption() ?><?= $Page->nis->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nis->cellAttributes() ?>>
<span id="el_nilai_nis">
<input type="<?= $Page->nis->getInputTextType() ?>" data-table="nilai" data-field="x_nis" name="x_nis" id="x_nis" size="30" maxlength="255" value="<?= $Page->nis->EditValue ?>"<?= $Page->nis->editAttributes() ?> aria-describedby="x_nis_help">
<?= $Page->nis->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nis->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
    <div id="r_nama" class="form-group row">
        <label id="elh_nilai_nama" for="x_nama" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nama->caption() ?><?= $Page->nama->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nama->cellAttributes() ?>>
<span id="el_nilai_nama">
<input type="<?= $Page->nama->getInputTextType() ?>" data-table="nilai" data-field="x_nama" name="x_nama" id="x_nama" size="30" maxlength="255" value="<?= $Page->nama->EditValue ?>"<?= $Page->nama->editAttributes() ?> aria-describedby="x_nama_help">
<?= $Page->nama->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nama->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
    <div id="r_jk" class="form-group row">
        <label id="elh_nilai_jk" for="x_jk" class="<?= $Page->LeftColumnClass ?>"><?= $Page->jk->caption() ?><?= $Page->jk->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->jk->cellAttributes() ?>>
<span id="el_nilai_jk">
<input type="<?= $Page->jk->getInputTextType() ?>" data-table="nilai" data-field="x_jk" name="x_jk" id="x_jk" size="30" maxlength="255" value="<?= $Page->jk->EditValue ?>"<?= $Page->jk->editAttributes() ?> aria-describedby="x_jk_help">
<?= $Page->jk->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->jk->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f1->Visible) { // f1 ?>
    <div id="r_f1" class="form-group row">
        <label id="elh_nilai_f1" for="x_f1" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f1->caption() ?><?= $Page->f1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f1->cellAttributes() ?>>
<span id="el_nilai_f1">
<input type="<?= $Page->f1->getInputTextType() ?>" data-table="nilai" data-field="x_f1" name="x_f1" id="x_f1" size="30" value="<?= $Page->f1->EditValue ?>"<?= $Page->f1->editAttributes() ?> aria-describedby="x_f1_help">
<?= $Page->f1->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f1->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f2->Visible) { // f2 ?>
    <div id="r_f2" class="form-group row">
        <label id="elh_nilai_f2" for="x_f2" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f2->caption() ?><?= $Page->f2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f2->cellAttributes() ?>>
<span id="el_nilai_f2">
<input type="<?= $Page->f2->getInputTextType() ?>" data-table="nilai" data-field="x_f2" name="x_f2" id="x_f2" size="30" value="<?= $Page->f2->EditValue ?>"<?= $Page->f2->editAttributes() ?> aria-describedby="x_f2_help">
<?= $Page->f2->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f2->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f3->Visible) { // f3 ?>
    <div id="r_f3" class="form-group row">
        <label id="elh_nilai_f3" for="x_f3" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f3->caption() ?><?= $Page->f3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f3->cellAttributes() ?>>
<span id="el_nilai_f3">
<input type="<?= $Page->f3->getInputTextType() ?>" data-table="nilai" data-field="x_f3" name="x_f3" id="x_f3" size="30" value="<?= $Page->f3->EditValue ?>"<?= $Page->f3->editAttributes() ?> aria-describedby="x_f3_help">
<?= $Page->f3->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f3->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f4->Visible) { // f4 ?>
    <div id="r_f4" class="form-group row">
        <label id="elh_nilai_f4" for="x_f4" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f4->caption() ?><?= $Page->f4->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f4->cellAttributes() ?>>
<span id="el_nilai_f4">
<input type="<?= $Page->f4->getInputTextType() ?>" data-table="nilai" data-field="x_f4" name="x_f4" id="x_f4" size="30" value="<?= $Page->f4->EditValue ?>"<?= $Page->f4->editAttributes() ?> aria-describedby="x_f4_help">
<?= $Page->f4->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f4->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f5->Visible) { // f5 ?>
    <div id="r_f5" class="form-group row">
        <label id="elh_nilai_f5" for="x_f5" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f5->caption() ?><?= $Page->f5->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f5->cellAttributes() ?>>
<span id="el_nilai_f5">
<input type="<?= $Page->f5->getInputTextType() ?>" data-table="nilai" data-field="x_f5" name="x_f5" id="x_f5" size="30" value="<?= $Page->f5->EditValue ?>"<?= $Page->f5->editAttributes() ?> aria-describedby="x_f5_help">
<?= $Page->f5->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f5->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f6->Visible) { // f6 ?>
    <div id="r_f6" class="form-group row">
        <label id="elh_nilai_f6" for="x_f6" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f6->caption() ?><?= $Page->f6->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f6->cellAttributes() ?>>
<span id="el_nilai_f6">
<input type="<?= $Page->f6->getInputTextType() ?>" data-table="nilai" data-field="x_f6" name="x_f6" id="x_f6" size="30" value="<?= $Page->f6->EditValue ?>"<?= $Page->f6->editAttributes() ?> aria-describedby="x_f6_help">
<?= $Page->f6->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f6->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f7->Visible) { // f7 ?>
    <div id="r_f7" class="form-group row">
        <label id="elh_nilai_f7" for="x_f7" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f7->caption() ?><?= $Page->f7->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f7->cellAttributes() ?>>
<span id="el_nilai_f7">
<input type="<?= $Page->f7->getInputTextType() ?>" data-table="nilai" data-field="x_f7" name="x_f7" id="x_f7" size="30" value="<?= $Page->f7->EditValue ?>"<?= $Page->f7->editAttributes() ?> aria-describedby="x_f7_help">
<?= $Page->f7->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f7->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f8->Visible) { // f8 ?>
    <div id="r_f8" class="form-group row">
        <label id="elh_nilai_f8" for="x_f8" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f8->caption() ?><?= $Page->f8->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f8->cellAttributes() ?>>
<span id="el_nilai_f8">
<input type="<?= $Page->f8->getInputTextType() ?>" data-table="nilai" data-field="x_f8" name="x_f8" id="x_f8" size="30" value="<?= $Page->f8->EditValue ?>"<?= $Page->f8->editAttributes() ?> aria-describedby="x_f8_help">
<?= $Page->f8->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f8->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f9->Visible) { // f9 ?>
    <div id="r_f9" class="form-group row">
        <label id="elh_nilai_f9" for="x_f9" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f9->caption() ?><?= $Page->f9->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f9->cellAttributes() ?>>
<span id="el_nilai_f9">
<input type="<?= $Page->f9->getInputTextType() ?>" data-table="nilai" data-field="x_f9" name="x_f9" id="x_f9" size="30" value="<?= $Page->f9->EditValue ?>"<?= $Page->f9->editAttributes() ?> aria-describedby="x_f9_help">
<?= $Page->f9->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f9->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f10->Visible) { // f10 ?>
    <div id="r_f10" class="form-group row">
        <label id="elh_nilai_f10" for="x_f10" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f10->caption() ?><?= $Page->f10->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f10->cellAttributes() ?>>
<span id="el_nilai_f10">
<input type="<?= $Page->f10->getInputTextType() ?>" data-table="nilai" data-field="x_f10" name="x_f10" id="x_f10" size="30" value="<?= $Page->f10->EditValue ?>"<?= $Page->f10->editAttributes() ?> aria-describedby="x_f10_help">
<?= $Page->f10->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f10->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f11->Visible) { // f11 ?>
    <div id="r_f11" class="form-group row">
        <label id="elh_nilai_f11" for="x_f11" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f11->caption() ?><?= $Page->f11->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f11->cellAttributes() ?>>
<span id="el_nilai_f11">
<input type="<?= $Page->f11->getInputTextType() ?>" data-table="nilai" data-field="x_f11" name="x_f11" id="x_f11" size="30" value="<?= $Page->f11->EditValue ?>"<?= $Page->f11->editAttributes() ?> aria-describedby="x_f11_help">
<?= $Page->f11->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f11->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f12->Visible) { // f12 ?>
    <div id="r_f12" class="form-group row">
        <label id="elh_nilai_f12" for="x_f12" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f12->caption() ?><?= $Page->f12->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f12->cellAttributes() ?>>
<span id="el_nilai_f12">
<input type="<?= $Page->f12->getInputTextType() ?>" data-table="nilai" data-field="x_f12" name="x_f12" id="x_f12" size="30" value="<?= $Page->f12->EditValue ?>"<?= $Page->f12->editAttributes() ?> aria-describedby="x_f12_help">
<?= $Page->f12->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f12->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f13->Visible) { // f13 ?>
    <div id="r_f13" class="form-group row">
        <label id="elh_nilai_f13" for="x_f13" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f13->caption() ?><?= $Page->f13->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f13->cellAttributes() ?>>
<span id="el_nilai_f13">
<input type="<?= $Page->f13->getInputTextType() ?>" data-table="nilai" data-field="x_f13" name="x_f13" id="x_f13" size="30" value="<?= $Page->f13->EditValue ?>"<?= $Page->f13->editAttributes() ?> aria-describedby="x_f13_help">
<?= $Page->f13->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f13->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f14->Visible) { // f14 ?>
    <div id="r_f14" class="form-group row">
        <label id="elh_nilai_f14" for="x_f14" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f14->caption() ?><?= $Page->f14->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f14->cellAttributes() ?>>
<span id="el_nilai_f14">
<input type="<?= $Page->f14->getInputTextType() ?>" data-table="nilai" data-field="x_f14" name="x_f14" id="x_f14" size="30" value="<?= $Page->f14->EditValue ?>"<?= $Page->f14->editAttributes() ?> aria-describedby="x_f14_help">
<?= $Page->f14->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f14->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->f15->Visible) { // f15 ?>
    <div id="r_f15" class="form-group row">
        <label id="elh_nilai_f15" for="x_f15" class="<?= $Page->LeftColumnClass ?>"><?= $Page->f15->caption() ?><?= $Page->f15->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->f15->cellAttributes() ?>>
<span id="el_nilai_f15">
<input type="<?= $Page->f15->getInputTextType() ?>" data-table="nilai" data-field="x_f15" name="x_f15" id="x_f15" size="30" value="<?= $Page->f15->EditValue ?>"<?= $Page->f15->editAttributes() ?> aria-describedby="x_f15_help">
<?= $Page->f15->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->f15->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->naf->Visible) { // naf ?>
    <div id="r_naf" class="form-group row">
        <label id="elh_nilai_naf" for="x_naf" class="<?= $Page->LeftColumnClass ?>"><?= $Page->naf->caption() ?><?= $Page->naf->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->naf->cellAttributes() ?>>
<span id="el_nilai_naf">
<input type="<?= $Page->naf->getInputTextType() ?>" data-table="nilai" data-field="x_naf" name="x_naf" id="x_naf" size="30" value="<?= $Page->naf->EditValue ?>"<?= $Page->naf->editAttributes() ?> aria-describedby="x_naf_help">
<?= $Page->naf->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->naf->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s1->Visible) { // s1 ?>
    <div id="r_s1" class="form-group row">
        <label id="elh_nilai_s1" for="x_s1" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s1->caption() ?><?= $Page->s1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s1->cellAttributes() ?>>
<span id="el_nilai_s1">
<input type="<?= $Page->s1->getInputTextType() ?>" data-table="nilai" data-field="x_s1" name="x_s1" id="x_s1" size="30" value="<?= $Page->s1->EditValue ?>"<?= $Page->s1->editAttributes() ?> aria-describedby="x_s1_help">
<?= $Page->s1->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s1->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s2->Visible) { // s2 ?>
    <div id="r_s2" class="form-group row">
        <label id="elh_nilai_s2" for="x_s2" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s2->caption() ?><?= $Page->s2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s2->cellAttributes() ?>>
<span id="el_nilai_s2">
<input type="<?= $Page->s2->getInputTextType() ?>" data-table="nilai" data-field="x_s2" name="x_s2" id="x_s2" size="30" value="<?= $Page->s2->EditValue ?>"<?= $Page->s2->editAttributes() ?> aria-describedby="x_s2_help">
<?= $Page->s2->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s2->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s3->Visible) { // s3 ?>
    <div id="r_s3" class="form-group row">
        <label id="elh_nilai_s3" for="x_s3" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s3->caption() ?><?= $Page->s3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s3->cellAttributes() ?>>
<span id="el_nilai_s3">
<input type="<?= $Page->s3->getInputTextType() ?>" data-table="nilai" data-field="x_s3" name="x_s3" id="x_s3" size="30" value="<?= $Page->s3->EditValue ?>"<?= $Page->s3->editAttributes() ?> aria-describedby="x_s3_help">
<?= $Page->s3->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s3->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s4->Visible) { // s4 ?>
    <div id="r_s4" class="form-group row">
        <label id="elh_nilai_s4" for="x_s4" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s4->caption() ?><?= $Page->s4->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s4->cellAttributes() ?>>
<span id="el_nilai_s4">
<input type="<?= $Page->s4->getInputTextType() ?>" data-table="nilai" data-field="x_s4" name="x_s4" id="x_s4" size="30" value="<?= $Page->s4->EditValue ?>"<?= $Page->s4->editAttributes() ?> aria-describedby="x_s4_help">
<?= $Page->s4->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s4->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s5->Visible) { // s5 ?>
    <div id="r_s5" class="form-group row">
        <label id="elh_nilai_s5" for="x_s5" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s5->caption() ?><?= $Page->s5->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s5->cellAttributes() ?>>
<span id="el_nilai_s5">
<input type="<?= $Page->s5->getInputTextType() ?>" data-table="nilai" data-field="x_s5" name="x_s5" id="x_s5" size="30" value="<?= $Page->s5->EditValue ?>"<?= $Page->s5->editAttributes() ?> aria-describedby="x_s5_help">
<?= $Page->s5->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s5->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s6->Visible) { // s6 ?>
    <div id="r_s6" class="form-group row">
        <label id="elh_nilai_s6" for="x_s6" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s6->caption() ?><?= $Page->s6->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s6->cellAttributes() ?>>
<span id="el_nilai_s6">
<input type="<?= $Page->s6->getInputTextType() ?>" data-table="nilai" data-field="x_s6" name="x_s6" id="x_s6" size="30" value="<?= $Page->s6->EditValue ?>"<?= $Page->s6->editAttributes() ?> aria-describedby="x_s6_help">
<?= $Page->s6->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s6->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s7->Visible) { // s7 ?>
    <div id="r_s7" class="form-group row">
        <label id="elh_nilai_s7" for="x_s7" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s7->caption() ?><?= $Page->s7->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s7->cellAttributes() ?>>
<span id="el_nilai_s7">
<input type="<?= $Page->s7->getInputTextType() ?>" data-table="nilai" data-field="x_s7" name="x_s7" id="x_s7" size="30" value="<?= $Page->s7->EditValue ?>"<?= $Page->s7->editAttributes() ?> aria-describedby="x_s7_help">
<?= $Page->s7->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s7->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s8->Visible) { // s8 ?>
    <div id="r_s8" class="form-group row">
        <label id="elh_nilai_s8" for="x_s8" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s8->caption() ?><?= $Page->s8->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s8->cellAttributes() ?>>
<span id="el_nilai_s8">
<input type="<?= $Page->s8->getInputTextType() ?>" data-table="nilai" data-field="x_s8" name="x_s8" id="x_s8" size="30" value="<?= $Page->s8->EditValue ?>"<?= $Page->s8->editAttributes() ?> aria-describedby="x_s8_help">
<?= $Page->s8->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s8->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nas->Visible) { // nas ?>
    <div id="r_nas" class="form-group row">
        <label id="elh_nilai_nas" for="x_nas" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nas->caption() ?><?= $Page->nas->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nas->cellAttributes() ?>>
<span id="el_nilai_nas">
<input type="<?= $Page->nas->getInputTextType() ?>" data-table="nilai" data-field="x_nas" name="x_nas" id="x_nas" size="30" maxlength="8192" value="<?= $Page->nas->EditValue ?>"<?= $Page->nas->editAttributes() ?> aria-describedby="x_nas_help">
<?= $Page->nas->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nas->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sts->Visible) { // sts ?>
    <div id="r_sts" class="form-group row">
        <label id="elh_nilai_sts" for="x_sts" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sts->caption() ?><?= $Page->sts->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sts->cellAttributes() ?>>
<span id="el_nilai_sts">
<input type="<?= $Page->sts->getInputTextType() ?>" data-table="nilai" data-field="x_sts" name="x_sts" id="x_sts" size="30" maxlength="8192" value="<?= $Page->sts->EditValue ?>"<?= $Page->sts->editAttributes() ?> aria-describedby="x_sts_help">
<?= $Page->sts->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sts->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sas->Visible) { // sas ?>
    <div id="r_sas" class="form-group row">
        <label id="elh_nilai_sas" for="x_sas" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sas->caption() ?><?= $Page->sas->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sas->cellAttributes() ?>>
<span id="el_nilai_sas">
<input type="<?= $Page->sas->getInputTextType() ?>" data-table="nilai" data-field="x_sas" name="x_sas" id="x_sas" size="30" maxlength="8192" value="<?= $Page->sas->EditValue ?>"<?= $Page->sas->editAttributes() ?> aria-describedby="x_sas_help">
<?= $Page->sas->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sas->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nr1->Visible) { // nr1 ?>
    <div id="r_nr1" class="form-group row">
        <label id="elh_nilai_nr1" for="x_nr1" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nr1->caption() ?><?= $Page->nr1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nr1->cellAttributes() ?>>
<span id="el_nilai_nr1">
<input type="<?= $Page->nr1->getInputTextType() ?>" data-table="nilai" data-field="x_nr1" name="x_nr1" id="x_nr1" size="30" maxlength="8192" value="<?= $Page->nr1->EditValue ?>"<?= $Page->nr1->editAttributes() ?> aria-describedby="x_nr1_help">
<?= $Page->nr1->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nr1->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nr2->Visible) { // nr2 ?>
    <div id="r_nr2" class="form-group row">
        <label id="elh_nilai_nr2" for="x_nr2" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nr2->caption() ?><?= $Page->nr2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nr2->cellAttributes() ?>>
<span id="el_nilai_nr2">
<input type="<?= $Page->nr2->getInputTextType() ?>" data-table="nilai" data-field="x_nr2" name="x_nr2" id="x_nr2" size="30" value="<?= $Page->nr2->EditValue ?>"<?= $Page->nr2->editAttributes() ?> aria-describedby="x_nr2_help">
<?= $Page->nr2->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nr2->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$Page->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
    <div class="<?= $Page->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?= $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?= HtmlEncode(GetUrl($Page->getReturnUrl())) ?>"><?= $Language->phrase("CancelBtn") ?></button>
    </div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("nilai");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
