<?php

namespace PHPMaker2021\rkm21;

// Page object
$SekolahDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fsekolahdelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fsekolahdelete = currentForm = new ew.Form("fsekolahdelete", "delete");
    loadjs.done("fsekolahdelete");
});
</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.sekolah) ew.vars.tables.sekolah = <?= JsonEncode(GetClientVar("tables", "sekolah")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fsekolahdelete" id="fsekolahdelete" 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="sekolah">
<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->sekolah_id->Visible) { // sekolah_id ?>
        <th class="<?= $Page->sekolah_id->headerCellClass() ?>"><span id="elh_sekolah_sekolah_id" class="sekolah_sekolah_id"><?= $Page->sekolah_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->npsn->Visible) { // npsn ?>
        <th class="<?= $Page->npsn->headerCellClass() ?>"><span id="elh_sekolah_npsn" class="sekolah_npsn"><?= $Page->npsn->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nama_sekolah->Visible) { // nama_sekolah ?>
        <th class="<?= $Page->nama_sekolah->headerCellClass() ?>"><span id="elh_sekolah_nama_sekolah" class="sekolah_nama_sekolah"><?= $Page->nama_sekolah->caption() ?></span></th>
<?php } ?>
<?php if ($Page->status->Visible) { // status ?>
        <th class="<?= $Page->status->headerCellClass() ?>"><span id="elh_sekolah_status" class="sekolah_status"><?= $Page->status->caption() ?></span></th>
<?php } ?>
<?php if ($Page->alamat->Visible) { // alamat ?>
        <th class="<?= $Page->alamat->headerCellClass() ?>"><span id="elh_sekolah_alamat" class="sekolah_alamat"><?= $Page->alamat->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kecamatan->Visible) { // kecamatan ?>
        <th class="<?= $Page->kecamatan->headerCellClass() ?>"><span id="elh_sekolah_kecamatan" class="sekolah_kecamatan"><?= $Page->kecamatan->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kabupaten->Visible) { // kabupaten ?>
        <th class="<?= $Page->kabupaten->headerCellClass() ?>"><span id="elh_sekolah_kabupaten" class="sekolah_kabupaten"><?= $Page->kabupaten->caption() ?></span></th>
<?php } ?>
<?php if ($Page->namaks->Visible) { // namaks ?>
        <th class="<?= $Page->namaks->headerCellClass() ?>"><span id="elh_sekolah_namaks" class="sekolah_namaks"><?= $Page->namaks->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nipks->Visible) { // nipks ?>
        <th class="<?= $Page->nipks->headerCellClass() ?>"><span id="elh_sekolah_nipks" class="sekolah_nipks"><?= $Page->nipks->caption() ?></span></th>
<?php } ?>
<?php if ($Page->datetime->Visible) { // datetime ?>
        <th class="<?= $Page->datetime->headerCellClass() ?>"><span id="elh_sekolah_datetime" class="sekolah_datetime"><?= $Page->datetime->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->sekolah_id->Visible) { // sekolah_id ?>
        <td <?= $Page->sekolah_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_sekolah_id" class="sekolah_sekolah_id">
<span<?= $Page->sekolah_id->viewAttributes() ?>>
<?= $Page->sekolah_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->npsn->Visible) { // npsn ?>
        <td <?= $Page->npsn->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_npsn" class="sekolah_npsn">
<span<?= $Page->npsn->viewAttributes() ?>>
<?= $Page->npsn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nama_sekolah->Visible) { // nama_sekolah ?>
        <td <?= $Page->nama_sekolah->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_nama_sekolah" class="sekolah_nama_sekolah">
<span<?= $Page->nama_sekolah->viewAttributes() ?>>
<?= $Page->nama_sekolah->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->status->Visible) { // status ?>
        <td <?= $Page->status->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_status" class="sekolah_status">
<span<?= $Page->status->viewAttributes() ?>>
<?= $Page->status->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->alamat->Visible) { // alamat ?>
        <td <?= $Page->alamat->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_alamat" class="sekolah_alamat">
<span<?= $Page->alamat->viewAttributes() ?>>
<?= $Page->alamat->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->kecamatan->Visible) { // kecamatan ?>
        <td <?= $Page->kecamatan->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_kecamatan" class="sekolah_kecamatan">
<span<?= $Page->kecamatan->viewAttributes() ?>>
<?= $Page->kecamatan->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->kabupaten->Visible) { // kabupaten ?>
        <td <?= $Page->kabupaten->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_kabupaten" class="sekolah_kabupaten">
<span<?= $Page->kabupaten->viewAttributes() ?>>
<?= $Page->kabupaten->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->namaks->Visible) { // namaks ?>
        <td <?= $Page->namaks->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_namaks" class="sekolah_namaks">
<span<?= $Page->namaks->viewAttributes() ?>>
<?= $Page->namaks->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nipks->Visible) { // nipks ?>
        <td <?= $Page->nipks->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_nipks" class="sekolah_nipks">
<span<?= $Page->nipks->viewAttributes() ?>>
<?= $Page->nipks->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->datetime->Visible) { // datetime ?>
        <td <?= $Page->datetime->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sekolah_datetime" class="sekolah_datetime">
<span<?= $Page->datetime->viewAttributes() ?>>
<?= $Page->datetime->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>
