<?php

namespace PHPMaker2021\rdigital21;

// Page object
$ExtraAbsensiDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fextra_absensidelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fextra_absensidelete = currentForm = new ew.Form("fextra_absensidelete", "delete");
    loadjs.done("fextra_absensidelete");
});
</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.extra_absensi) ew.vars.tables.extra_absensi = <?= JsonEncode(GetClientVar("tables", "extra_absensi")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fextra_absensidelete" id="fextra_absensidelete" 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="extra_absensi">
<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->kode_tapel->Visible) { // kode_tapel ?>
        <th class="<?= $Page->kode_tapel->headerCellClass() ?>"><span id="elh_extra_absensi_kode_tapel" class="extra_absensi_kode_tapel"><?= $Page->kode_tapel->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
        <th class="<?= $Page->kelas->headerCellClass() ?>"><span id="elh_extra_absensi_kelas" class="extra_absensi_kelas"><?= $Page->kelas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nisn->Visible) { // nisn ?>
        <th class="<?= $Page->nisn->headerCellClass() ?>"><span id="elh_extra_absensi_nisn" class="extra_absensi_nisn"><?= $Page->nisn->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <th class="<?= $Page->nis->headerCellClass() ?>"><span id="elh_extra_absensi_nis" class="extra_absensi_nis"><?= $Page->nis->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <th class="<?= $Page->nama->headerCellClass() ?>"><span id="elh_extra_absensi_nama" class="extra_absensi_nama"><?= $Page->nama->caption() ?></span></th>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
        <th class="<?= $Page->jk->headerCellClass() ?>"><span id="elh_extra_absensi_jk" class="extra_absensi_jk"><?= $Page->jk->caption() ?></span></th>
<?php } ?>
<?php if ($Page->s->Visible) { // s ?>
        <th class="<?= $Page->s->headerCellClass() ?>"><span id="elh_extra_absensi_s" class="extra_absensi_s"><?= $Page->s->caption() ?></span></th>
<?php } ?>
<?php if ($Page->_i->Visible) { // i ?>
        <th class="<?= $Page->_i->headerCellClass() ?>"><span id="elh_extra_absensi__i" class="extra_absensi__i"><?= $Page->_i->caption() ?></span></th>
<?php } ?>
<?php if ($Page->a->Visible) { // a ?>
        <th class="<?= $Page->a->headerCellClass() ?>"><span id="elh_extra_absensi_a" class="extra_absensi_a"><?= $Page->a->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ekstra1->Visible) { // ekstra1 ?>
        <th class="<?= $Page->ekstra1->headerCellClass() ?>"><span id="elh_extra_absensi_ekstra1" class="extra_absensi_ekstra1"><?= $Page->ekstra1->caption() ?></span></th>
<?php } ?>
<?php if ($Page->deskripsi1->Visible) { // deskripsi1 ?>
        <th class="<?= $Page->deskripsi1->headerCellClass() ?>"><span id="elh_extra_absensi_deskripsi1" class="extra_absensi_deskripsi1"><?= $Page->deskripsi1->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ekstra2->Visible) { // ekstra2 ?>
        <th class="<?= $Page->ekstra2->headerCellClass() ?>"><span id="elh_extra_absensi_ekstra2" class="extra_absensi_ekstra2"><?= $Page->ekstra2->caption() ?></span></th>
<?php } ?>
<?php if ($Page->deskripsi2->Visible) { // deskripsi2 ?>
        <th class="<?= $Page->deskripsi2->headerCellClass() ?>"><span id="elh_extra_absensi_deskripsi2" class="extra_absensi_deskripsi2"><?= $Page->deskripsi2->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ekstra3->Visible) { // ekstra3 ?>
        <th class="<?= $Page->ekstra3->headerCellClass() ?>"><span id="elh_extra_absensi_ekstra3" class="extra_absensi_ekstra3"><?= $Page->ekstra3->caption() ?></span></th>
<?php } ?>
<?php if ($Page->deskripsi3->Visible) { // deskripsi3 ?>
        <th class="<?= $Page->deskripsi3->headerCellClass() ?>"><span id="elh_extra_absensi_deskripsi3" class="extra_absensi_deskripsi3"><?= $Page->deskripsi3->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ekstra4->Visible) { // ekstra4 ?>
        <th class="<?= $Page->ekstra4->headerCellClass() ?>"><span id="elh_extra_absensi_ekstra4" class="extra_absensi_ekstra4"><?= $Page->ekstra4->caption() ?></span></th>
<?php } ?>
<?php if ($Page->deskripsi4->Visible) { // deskripsi4 ?>
        <th class="<?= $Page->deskripsi4->headerCellClass() ?>"><span id="elh_extra_absensi_deskripsi4" class="extra_absensi_deskripsi4"><?= $Page->deskripsi4->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->kode_tapel->Visible) { // kode_tapel ?>
        <td <?= $Page->kode_tapel->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_kode_tapel" class="extra_absensi_kode_tapel">
<span<?= $Page->kode_tapel->viewAttributes() ?>>
<?= $Page->kode_tapel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
        <td <?= $Page->kelas->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_kelas" class="extra_absensi_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<?= $Page->kelas->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nisn->Visible) { // nisn ?>
        <td <?= $Page->nisn->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_nisn" class="extra_absensi_nisn">
<span<?= $Page->nisn->viewAttributes() ?>>
<?= $Page->nisn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <td <?= $Page->nis->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_nis" class="extra_absensi_nis">
<span<?= $Page->nis->viewAttributes() ?>>
<?= $Page->nis->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <td <?= $Page->nama->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_nama" class="extra_absensi_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 ?>_extra_absensi_jk" class="extra_absensi_jk">
<span<?= $Page->jk->viewAttributes() ?>>
<?= $Page->jk->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->s->Visible) { // s ?>
        <td <?= $Page->s->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_s" class="extra_absensi_s">
<span<?= $Page->s->viewAttributes() ?>>
<?= $Page->s->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->_i->Visible) { // i ?>
        <td <?= $Page->_i->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi__i" class="extra_absensi__i">
<span<?= $Page->_i->viewAttributes() ?>>
<?= $Page->_i->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->a->Visible) { // a ?>
        <td <?= $Page->a->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_a" class="extra_absensi_a">
<span<?= $Page->a->viewAttributes() ?>>
<?= $Page->a->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ekstra1->Visible) { // ekstra1 ?>
        <td <?= $Page->ekstra1->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_ekstra1" class="extra_absensi_ekstra1">
<span<?= $Page->ekstra1->viewAttributes() ?>>
<?= $Page->ekstra1->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->deskripsi1->Visible) { // deskripsi1 ?>
        <td <?= $Page->deskripsi1->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_deskripsi1" class="extra_absensi_deskripsi1">
<span<?= $Page->deskripsi1->viewAttributes() ?>>
<?= $Page->deskripsi1->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ekstra2->Visible) { // ekstra2 ?>
        <td <?= $Page->ekstra2->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_ekstra2" class="extra_absensi_ekstra2">
<span<?= $Page->ekstra2->viewAttributes() ?>>
<?= $Page->ekstra2->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->deskripsi2->Visible) { // deskripsi2 ?>
        <td <?= $Page->deskripsi2->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_deskripsi2" class="extra_absensi_deskripsi2">
<span<?= $Page->deskripsi2->viewAttributes() ?>>
<?= $Page->deskripsi2->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ekstra3->Visible) { // ekstra3 ?>
        <td <?= $Page->ekstra3->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_ekstra3" class="extra_absensi_ekstra3">
<span<?= $Page->ekstra3->viewAttributes() ?>>
<?= $Page->ekstra3->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->deskripsi3->Visible) { // deskripsi3 ?>
        <td <?= $Page->deskripsi3->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_deskripsi3" class="extra_absensi_deskripsi3">
<span<?= $Page->deskripsi3->viewAttributes() ?>>
<?= $Page->deskripsi3->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ekstra4->Visible) { // ekstra4 ?>
        <td <?= $Page->ekstra4->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_ekstra4" class="extra_absensi_ekstra4">
<span<?= $Page->ekstra4->viewAttributes() ?>>
<?= $Page->ekstra4->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->deskripsi4->Visible) { // deskripsi4 ?>
        <td <?= $Page->deskripsi4->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_extra_absensi_deskripsi4" class="extra_absensi_deskripsi4">
<span<?= $Page->deskripsi4->viewAttributes() ?>>
<?= $Page->deskripsi4->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>
