<?php

namespace PHPMaker2021\rdigital21;

// Page object
$NilaiSumatifDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fnilai_sumatifdelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fnilai_sumatifdelete = currentForm = new ew.Form("fnilai_sumatifdelete", "delete");
    loadjs.done("fnilai_sumatifdelete");
});
</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_sumatif) ew.vars.tables.nilai_sumatif = <?= JsonEncode(GetClientVar("tables", "nilai_sumatif")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fnilai_sumatifdelete" id="fnilai_sumatifdelete" 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_sumatif">
<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_s_id->Visible) { // nilai_s_id ?>
        <th class="<?= $Page->nilai_s_id->headerCellClass() ?>"><span id="elh_nilai_sumatif_nilai_s_id" class="nilai_sumatif_nilai_s_id"><?= $Page->nilai_s_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->guru_id->Visible) { // guru_id ?>
        <th class="<?= $Page->guru_id->headerCellClass() ?>"><span id="elh_nilai_sumatif_guru_id" class="nilai_sumatif_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_sumatif_kode_mapel" class="nilai_sumatif_kode_mapel"><?= $Page->kode_mapel->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
        <th class="<?= $Page->kelas->headerCellClass() ?>"><span id="elh_nilai_sumatif_kelas" class="nilai_sumatif_kelas"><?= $Page->kelas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <th class="<?= $Page->nis->headerCellClass() ?>"><span id="elh_nilai_sumatif_nis" class="nilai_sumatif_nis"><?= $Page->nis->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nisn->Visible) { // nisn ?>
        <th class="<?= $Page->nisn->headerCellClass() ?>"><span id="elh_nilai_sumatif_nisn" class="nilai_sumatif_nisn"><?= $Page->nisn->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <th class="<?= $Page->nama->headerCellClass() ?>"><span id="elh_nilai_sumatif_nama" class="nilai_sumatif_nama"><?= $Page->nama->caption() ?></span></th>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
        <th class="<?= $Page->jk->headerCellClass() ?>"><span id="elh_nilai_sumatif_jk" class="nilai_sumatif_jk"><?= $Page->jk->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s1->Visible) { // s1 ?>
        <th class="<?= $Page->s1->headerCellClass() ?>"><span id="elh_nilai_sumatif_s1" class="nilai_sumatif_s1"><?= $Page->s1->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s2->Visible) { // s2 ?>
        <th class="<?= $Page->s2->headerCellClass() ?>"><span id="elh_nilai_sumatif_s2" class="nilai_sumatif_s2"><?= $Page->s2->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s3->Visible) { // s3 ?>
        <th class="<?= $Page->s3->headerCellClass() ?>"><span id="elh_nilai_sumatif_s3" class="nilai_sumatif_s3"><?= $Page->s3->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s4->Visible) { // s4 ?>
        <th class="<?= $Page->s4->headerCellClass() ?>"><span id="elh_nilai_sumatif_s4" class="nilai_sumatif_s4"><?= $Page->s4->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s5->Visible) { // s5 ?>
        <th class="<?= $Page->s5->headerCellClass() ?>"><span id="elh_nilai_sumatif_s5" class="nilai_sumatif_s5"><?= $Page->s5->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s6->Visible) { // s6 ?>
        <th class="<?= $Page->s6->headerCellClass() ?>"><span id="elh_nilai_sumatif_s6" class="nilai_sumatif_s6"><?= $Page->s6->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s7->Visible) { // s7 ?>
        <th class="<?= $Page->s7->headerCellClass() ?>"><span id="elh_nilai_sumatif_s7" class="nilai_sumatif_s7"><?= $Page->s7->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s8->Visible) { // s8 ?>
        <th class="<?= $Page->s8->headerCellClass() ?>"><span id="elh_nilai_sumatif_s8" class="nilai_sumatif_s8"><?= $Page->s8->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nas->Visible) { // nas ?>
        <th class="<?= $Page->nas->headerCellClass() ?>"><span id="elh_nilai_sumatif_nas" class="nilai_sumatif_nas"><?= $Page->nas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->sts->Visible) { // sts ?>
        <th class="<?= $Page->sts->headerCellClass() ?>"><span id="elh_nilai_sumatif_sts" class="nilai_sumatif_sts"><?= $Page->sts->caption() ?></span></th>
<?php } ?>
<?php if ($Page->sas->Visible) { // sas ?>
        <th class="<?= $Page->sas->headerCellClass() ?>"><span id="elh_nilai_sumatif_sas" class="nilai_sumatif_sas"><?= $Page->sas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nr1->Visible) { // nr1 ?>
        <th class="<?= $Page->nr1->headerCellClass() ?>"><span id="elh_nilai_sumatif_nr1" class="nilai_sumatif_nr1"><?= $Page->nr1->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nr2->Visible) { // nr2 ?>
        <th class="<?= $Page->nr2->headerCellClass() ?>"><span id="elh_nilai_sumatif_nr2" class="nilai_sumatif_nr2"><?= $Page->nr2->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_s_id->Visible) { // nilai_s_id ?>
        <td <?= $Page->nilai_s_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nilai_s_id" class="nilai_sumatif_nilai_s_id">
<span<?= $Page->nilai_s_id->viewAttributes() ?>>
<?= $Page->nilai_s_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_sumatif_guru_id" class="nilai_sumatif_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_sumatif_kode_mapel" class="nilai_sumatif_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_sumatif_kelas" class="nilai_sumatif_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<?= $Page->kelas->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <td <?= $Page->nis->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nis" class="nilai_sumatif_nis">
<span<?= $Page->nis->viewAttributes() ?>>
<?= $Page->nis->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nisn->Visible) { // nisn ?>
        <td <?= $Page->nisn->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nisn" class="nilai_sumatif_nisn">
<span<?= $Page->nisn->viewAttributes() ?>>
<?= $Page->nisn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <td <?= $Page->nama->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nama" class="nilai_sumatif_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_sumatif_jk" class="nilai_sumatif_jk">
<span<?= $Page->jk->viewAttributes() ?>>
<?= $Page->jk->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s1->Visible) { // s1 ?>
        <td <?= $Page->s1->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s1" class="nilai_sumatif_s1">
<span<?= $Page->s1->viewAttributes() ?>>
<?= $Page->s1->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s2->Visible) { // s2 ?>
        <td <?= $Page->s2->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s2" class="nilai_sumatif_s2">
<span<?= $Page->s2->viewAttributes() ?>>
<?= $Page->s2->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s3->Visible) { // s3 ?>
        <td <?= $Page->s3->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s3" class="nilai_sumatif_s3">
<span<?= $Page->s3->viewAttributes() ?>>
<?= $Page->s3->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s4->Visible) { // s4 ?>
        <td <?= $Page->s4->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s4" class="nilai_sumatif_s4">
<span<?= $Page->s4->viewAttributes() ?>>
<?= $Page->s4->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s5->Visible) { // s5 ?>
        <td <?= $Page->s5->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s5" class="nilai_sumatif_s5">
<span<?= $Page->s5->viewAttributes() ?>>
<?= $Page->s5->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s6->Visible) { // s6 ?>
        <td <?= $Page->s6->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s6" class="nilai_sumatif_s6">
<span<?= $Page->s6->viewAttributes() ?>>
<?= $Page->s6->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s7->Visible) { // s7 ?>
        <td <?= $Page->s7->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s7" class="nilai_sumatif_s7">
<span<?= $Page->s7->viewAttributes() ?>>
<?= $Page->s7->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s8->Visible) { // s8 ?>
        <td <?= $Page->s8->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_s8" class="nilai_sumatif_s8">
<span<?= $Page->s8->viewAttributes() ?>>
<?= $Page->s8->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nas->Visible) { // nas ?>
        <td <?= $Page->nas->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nas" class="nilai_sumatif_nas">
<span<?= $Page->nas->viewAttributes() ?>><?= number_format($Page->nas->getViewValue(),2) ?>
</span>
</span>
</td>
<?php } ?>
<?php if ($Page->sts->Visible) { // sts ?>
        <td <?= $Page->sts->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_sts" class="nilai_sumatif_sts">
<span<?= $Page->sts->viewAttributes() ?>>
<?= $Page->sts->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->sas->Visible) { // sas ?>
        <td <?= $Page->sas->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_sas" class="nilai_sumatif_sas">
<span<?= $Page->sas->viewAttributes() ?>>
<?= $Page->sas->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nr1->Visible) { // nr1 ?>
        <td <?= $Page->nr1->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nr1" class="nilai_sumatif_nr1">
<span<?= $Page->nr1->viewAttributes() ?>>
<?= $Page->nr1->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nr2->Visible) { // nr2 ?>
        <td <?= $Page->nr2->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_sumatif_nr2" class="nilai_sumatif_nr2">
<span<?= $Page->nr2->viewAttributes() ?>>
<?= $Page->nr2->getViewValue() ?></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>
