<?php

namespace PHPMaker2021\rdigital21;

// Page object
$KktpSumatifDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fkktp_sumatifdelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fkktp_sumatifdelete = currentForm = new ew.Form("fkktp_sumatifdelete", "delete");
    loadjs.done("fkktp_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.kktp_sumatif) ew.vars.tables.kktp_sumatif = <?= JsonEncode(GetClientVar("tables", "kktp_sumatif")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fkktp_sumatifdelete" id="fkktp_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="kktp_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->desk_id->Visible) { // desk_id ?>
        <th class="<?= $Page->desk_id->headerCellClass() ?>"><span id="elh_kktp_sumatif_desk_id" class="kktp_sumatif_desk_id"><?= $Page->desk_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->tahun_pelajaran->Visible) { // tahun_pelajaran ?>
        <th class="<?= $Page->tahun_pelajaran->headerCellClass() ?>"><span id="elh_kktp_sumatif_tahun_pelajaran" class="kktp_sumatif_tahun_pelajaran"><?= $Page->tahun_pelajaran->caption() ?></span></th>
<?php } ?>
<?php if ($Page->abjad->Visible) { // abjad ?>
        <th class="<?= $Page->abjad->headerCellClass() ?>"><span id="elh_kktp_sumatif_abjad" class="kktp_sumatif_abjad"><?= $Page->abjad->caption() ?></span></th>
<?php } ?>
<?php if ($Page->min->Visible) { // min ?>
        <th class="<?= $Page->min->headerCellClass() ?>"><span id="elh_kktp_sumatif_min" class="kktp_sumatif_min"><?= $Page->min->caption() ?></span></th>
<?php } ?>
<?php if ($Page->max->Visible) { // max ?>
        <th class="<?= $Page->max->headerCellClass() ?>"><span id="elh_kktp_sumatif_max" class="kktp_sumatif_max"><?= $Page->max->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ket->Visible) { // ket ?>
        <th class="<?= $Page->ket->headerCellClass() ?>"><span id="elh_kktp_sumatif_ket" class="kktp_sumatif_ket"><?= $Page->ket->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->desk_id->Visible) { // desk_id ?>
        <td <?= $Page->desk_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_kktp_sumatif_desk_id" class="kktp_sumatif_desk_id">
<span<?= $Page->desk_id->viewAttributes() ?>>
<?= $Page->desk_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->tahun_pelajaran->Visible) { // tahun_pelajaran ?>
        <td <?= $Page->tahun_pelajaran->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_kktp_sumatif_tahun_pelajaran" class="kktp_sumatif_tahun_pelajaran">
<span<?= $Page->tahun_pelajaran->viewAttributes() ?>>
<?= $Page->tahun_pelajaran->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->abjad->Visible) { // abjad ?>
        <td <?= $Page->abjad->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_kktp_sumatif_abjad" class="kktp_sumatif_abjad">
<span<?= $Page->abjad->viewAttributes() ?>>
<?= $Page->abjad->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->min->Visible) { // min ?>
        <td <?= $Page->min->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_kktp_sumatif_min" class="kktp_sumatif_min">
<span<?= $Page->min->viewAttributes() ?>>
<?= $Page->min->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->max->Visible) { // max ?>
        <td <?= $Page->max->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_kktp_sumatif_max" class="kktp_sumatif_max">
<span<?= $Page->max->viewAttributes() ?>>
<?= $Page->max->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ket->Visible) { // ket ?>
        <td <?= $Page->ket->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_kktp_sumatif_ket" class="kktp_sumatif_ket">
<span<?= $Page->ket->viewAttributes() ?>>
<?= $Page->ket->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>
