<?php

namespace PHPMaker2021\rdigital21;

// Page object
$NilaiFormatifDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fnilai_formatifdelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fnilai_formatifdelete = currentForm = new ew.Form("fnilai_formatifdelete", "delete");
    loadjs.done("fnilai_formatifdelete");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<script>
if (!ew.vars.tables.nilai_formatif) ew.vars.tables.nilai_formatif = <?= JsonEncode(GetClientVar("tables", "nilai_formatif")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fnilai_formatifdelete" id="fnilai_formatifdelete" class="form-inline ew-form ew-delete-form" action="<?= CurrentPageUrl(false) ?>" method="post">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="nilai_formatif">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($Page->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?= HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid">
<div class="<?= ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
    <thead>
    <tr class="ew-table-header">
<?php if ($Page->nilai_f_id->Visible) { // nilai_f_id ?>
        <th class="<?= $Page->nilai_f_id->headerCellClass() ?>"><span id="elh_nilai_formatif_nilai_f_id" class="nilai_formatif_nilai_f_id"><?= $Page->nilai_f_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->guru_id->Visible) { // guru_id ?>
        <th class="<?= $Page->guru_id->headerCellClass() ?>"><span id="elh_nilai_formatif_guru_id" class="nilai_formatif_guru_id"><?= $Page->guru_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kode_mapel->Visible) { // kode_mapel ?>
        <th class="<?= $Page->kode_mapel->headerCellClass() ?>"><span id="elh_nilai_formatif_kode_mapel" class="nilai_formatif_kode_mapel"><?= $Page->kode_mapel->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
        <th class="<?= $Page->kelas->headerCellClass() ?>"><span id="elh_nilai_formatif_kelas" class="nilai_formatif_kelas"><?= $Page->kelas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <th class="<?= $Page->nama->headerCellClass() ?>"><span id="elh_nilai_formatif_nama" class="nilai_formatif_nama"><?= $Page->nama->caption() ?></span></th>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
        <th class="<?= $Page->jk->headerCellClass() ?>"><span id="elh_nilai_formatif_jk" class="nilai_formatif_jk"><?= $Page->jk->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f1->Visible) { // f1 ?>
        <th class="<?= $Page->f1->headerCellClass() ?>"><span id="elh_nilai_formatif_f1" class="nilai_formatif_f1"><?= $Page->f1->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f2->Visible) { // f2 ?>
        <th class="<?= $Page->f2->headerCellClass() ?>"><span id="elh_nilai_formatif_f2" class="nilai_formatif_f2"><?= $Page->f2->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f3->Visible) { // f3 ?>
        <th class="<?= $Page->f3->headerCellClass() ?>"><span id="elh_nilai_formatif_f3" class="nilai_formatif_f3"><?= $Page->f3->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f4->Visible) { // f4 ?>
        <th class="<?= $Page->f4->headerCellClass() ?>"><span id="elh_nilai_formatif_f4" class="nilai_formatif_f4"><?= $Page->f4->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f5->Visible) { // f5 ?>
        <th class="<?= $Page->f5->headerCellClass() ?>"><span id="elh_nilai_formatif_f5" class="nilai_formatif_f5"><?= $Page->f5->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f6->Visible) { // f6 ?>
        <th class="<?= $Page->f6->headerCellClass() ?>"><span id="elh_nilai_formatif_f6" class="nilai_formatif_f6"><?= $Page->f6->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f7->Visible) { // f7 ?>
        <th class="<?= $Page->f7->headerCellClass() ?>"><span id="elh_nilai_formatif_f7" class="nilai_formatif_f7"><?= $Page->f7->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f8->Visible) { // f8 ?>
        <th class="<?= $Page->f8->headerCellClass() ?>"><span id="elh_nilai_formatif_f8" class="nilai_formatif_f8"><?= $Page->f8->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f9->Visible) { // f9 ?>
        <th class="<?= $Page->f9->headerCellClass() ?>"><span id="elh_nilai_formatif_f9" class="nilai_formatif_f9"><?= $Page->f9->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f10->Visible) { // f10 ?>
        <th class="<?= $Page->f10->headerCellClass() ?>"><span id="elh_nilai_formatif_f10" class="nilai_formatif_f10"><?= $Page->f10->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f11->Visible) { // f11 ?>
        <th class="<?= $Page->f11->headerCellClass() ?>"><span id="elh_nilai_formatif_f11" class="nilai_formatif_f11"><?= $Page->f11->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f12->Visible) { // f12 ?>
        <th class="<?= $Page->f12->headerCellClass() ?>"><span id="elh_nilai_formatif_f12" class="nilai_formatif_f12"><?= $Page->f12->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f13->Visible) { // f13 ?>
        <th class="<?= $Page->f13->headerCellClass() ?>"><span id="elh_nilai_formatif_f13" class="nilai_formatif_f13"><?= $Page->f13->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f14->Visible) { // f14 ?>
        <th class="<?= $Page->f14->headerCellClass() ?>"><span id="elh_nilai_formatif_f14" class="nilai_formatif_f14"><?= $Page->f14->caption() ?></span></th>
<?php } ?>
<?php if ($Page->f15->Visible) { // f15 ?>
        <th class="<?= $Page->f15->headerCellClass() ?>"><span id="elh_nilai_formatif_f15" class="nilai_formatif_f15"><?= $Page->f15->caption() ?></span></th>
<?php } ?>
<?php if ($Page->naf->Visible) { // naf ?>
        <th class="<?= $Page->naf->headerCellClass() ?>"><span id="elh_nilai_formatif_naf" class="nilai_formatif_naf"><?= $Page->naf->caption() ?></span></th>
<?php } ?>
    </tr>
    </thead>
    <tbody>
<?php
$Page->RecordCount = 0;
$i = 0;
while (!$Page->Recordset->EOF) {
    $Page->RecordCount++;
    $Page->RowCount++;

    // Set row properties
    $Page->resetAttributes();
    $Page->RowType = ROWTYPE_VIEW; // View

    // Get the field contents
    $Page->loadRowValues($Page->Recordset);

    // Render row
    $Page->renderRow();
?>
    <tr <?= $Page->rowAttributes() ?>>
<?php if ($Page->nilai_f_id->Visible) { // nilai_f_id ?>
        <td <?= $Page->nilai_f_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_nilai_f_id" class="nilai_formatif_nilai_f_id">
<span<?= $Page->nilai_f_id->viewAttributes() ?>>
<?= $Page->nilai_f_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->guru_id->Visible) { // guru_id ?>
        <td <?= $Page->guru_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_guru_id" class="nilai_formatif_guru_id">
<span<?= $Page->guru_id->viewAttributes() ?>>
<?= $Page->guru_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->kode_mapel->Visible) { // kode_mapel ?>
        <td <?= $Page->kode_mapel->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_kode_mapel" class="nilai_formatif_kode_mapel">
<span<?= $Page->kode_mapel->viewAttributes() ?>>
<?= $Page->kode_mapel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
        <td <?= $Page->kelas->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_kelas" class="nilai_formatif_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<?= $Page->kelas->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <td <?= $Page->nama->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_nama" class="nilai_formatif_nama">
<span<?= $Page->nama->viewAttributes() ?>>
<?= $Page->nama->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
        <td <?= $Page->jk->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_jk" class="nilai_formatif_jk">
<span<?= $Page->jk->viewAttributes() ?>>
<?= $Page->jk->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f1->Visible) { // f1 ?>
        <td <?= $Page->f1->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f1" class="nilai_formatif_f1">
<span<?= $Page->f1->viewAttributes() ?>>
<?= $Page->f1->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f2->Visible) { // f2 ?>
        <td <?= $Page->f2->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f2" class="nilai_formatif_f2">
<span<?= $Page->f2->viewAttributes() ?>>
<?= $Page->f2->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f3->Visible) { // f3 ?>
        <td <?= $Page->f3->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f3" class="nilai_formatif_f3">
<span<?= $Page->f3->viewAttributes() ?>>
<?= $Page->f3->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f4->Visible) { // f4 ?>
        <td <?= $Page->f4->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f4" class="nilai_formatif_f4">
<span<?= $Page->f4->viewAttributes() ?>>
<?= $Page->f4->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f5->Visible) { // f5 ?>
        <td <?= $Page->f5->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f5" class="nilai_formatif_f5">
<span<?= $Page->f5->viewAttributes() ?>>
<?= $Page->f5->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f6->Visible) { // f6 ?>
        <td <?= $Page->f6->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f6" class="nilai_formatif_f6">
<span<?= $Page->f6->viewAttributes() ?>>
<?= $Page->f6->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f7->Visible) { // f7 ?>
        <td <?= $Page->f7->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f7" class="nilai_formatif_f7">
<span<?= $Page->f7->viewAttributes() ?>>
<?= $Page->f7->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f8->Visible) { // f8 ?>
        <td <?= $Page->f8->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f8" class="nilai_formatif_f8">
<span<?= $Page->f8->viewAttributes() ?>>
<?= $Page->f8->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f9->Visible) { // f9 ?>
        <td <?= $Page->f9->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f9" class="nilai_formatif_f9">
<span<?= $Page->f9->viewAttributes() ?>>
<?= $Page->f9->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f10->Visible) { // f10 ?>
        <td <?= $Page->f10->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f10" class="nilai_formatif_f10">
<span<?= $Page->f10->viewAttributes() ?>>
<?= $Page->f10->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f11->Visible) { // f11 ?>
        <td <?= $Page->f11->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f11" class="nilai_formatif_f11">
<span<?= $Page->f11->viewAttributes() ?>>
<?= $Page->f11->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f12->Visible) { // f12 ?>
        <td <?= $Page->f12->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f12" class="nilai_formatif_f12">
<span<?= $Page->f12->viewAttributes() ?>>
<?= $Page->f12->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f13->Visible) { // f13 ?>
        <td <?= $Page->f13->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f13" class="nilai_formatif_f13">
<span<?= $Page->f13->viewAttributes() ?>>
<?= $Page->f13->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f14->Visible) { // f14 ?>
        <td <?= $Page->f14->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f14" class="nilai_formatif_f14">
<span<?= $Page->f14->viewAttributes() ?>>
<?= $Page->f14->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->f15->Visible) { // f15 ?>
        <td <?= $Page->f15->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_f15" class="nilai_formatif_f15">
<span<?= $Page->f15->viewAttributes() ?>>
<?= $Page->f15->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->naf->Visible) { // naf ?>
        <td <?= $Page->naf->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_formatif_naf" class="nilai_formatif_naf">
<span<?= $Page->naf->viewAttributes() ?>><?= number_format($Page->naf->getViewValue(),2) ?>
</span>
</span>
</td>
<?php } ?>
    </tr>
<?php
    $Page->Recordset->moveNext();
}
$Page->Recordset->close();
?>
</tbody>
</table>
</div>
</div>
<div>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?= $Language->phrase("DeleteBtn") ?></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>
</form>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
