<?php

namespace PHPMaker2021\rdigital21;

// Page object
$PesertaDidikDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fpeserta_didikdelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fpeserta_didikdelete = currentForm = new ew.Form("fpeserta_didikdelete", "delete");
    loadjs.done("fpeserta_didikdelete");
});
</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.peserta_didik) ew.vars.tables.peserta_didik = <?= JsonEncode(GetClientVar("tables", "peserta_didik")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fpeserta_didikdelete" id="fpeserta_didikdelete" 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="peserta_didik">
<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_peserta_didik_kode_tapel" class="peserta_didik_kode_tapel"><?= $Page->kode_tapel->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kelas->Visible) { // kelas ?>
        <th class="<?= $Page->kelas->headerCellClass() ?>"><span id="elh_peserta_didik_kelas" class="peserta_didik_kelas"><?= $Page->kelas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nisn->Visible) { // nisn ?>
        <th class="<?= $Page->nisn->headerCellClass() ?>"><span id="elh_peserta_didik_nisn" class="peserta_didik_nisn"><?= $Page->nisn->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <th class="<?= $Page->nis->headerCellClass() ?>"><span id="elh_peserta_didik_nis" class="peserta_didik_nis"><?= $Page->nis->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
        <th class="<?= $Page->nama->headerCellClass() ?>"><span id="elh_peserta_didik_nama" class="peserta_didik_nama"><?= $Page->nama->caption() ?></span></th>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
        <th class="<?= $Page->jk->headerCellClass() ?>"><span id="elh_peserta_didik_jk" class="peserta_didik_jk"><?= $Page->jk->caption() ?></span></th>
<?php } ?>
<?php if ($Page->tmp_lahir->Visible) { // tmp_lahir ?>
        <th class="<?= $Page->tmp_lahir->headerCellClass() ?>"><span id="elh_peserta_didik_tmp_lahir" class="peserta_didik_tmp_lahir"><?= $Page->tmp_lahir->caption() ?></span></th>
<?php } ?>
<?php if ($Page->tgl_lahir->Visible) { // tgl_lahir ?>
        <th class="<?= $Page->tgl_lahir->headerCellClass() ?>"><span id="elh_peserta_didik_tgl_lahir" class="peserta_didik_tgl_lahir"><?= $Page->tgl_lahir->caption() ?></span></th>
<?php } ?>
<?php if ($Page->agama->Visible) { // agama ?>
        <th class="<?= $Page->agama->headerCellClass() ?>"><span id="elh_peserta_didik_agama" class="peserta_didik_agama"><?= $Page->agama->caption() ?></span></th>
<?php } ?>
<?php if ($Page->status->Visible) { // status ?>
        <th class="<?= $Page->status->headerCellClass() ?>"><span id="elh_peserta_didik_status" class="peserta_didik_status"><?= $Page->status->caption() ?></span></th>
<?php } ?>
<?php if ($Page->sekolah_asal->Visible) { // sekolah_asal ?>
        <th class="<?= $Page->sekolah_asal->headerCellClass() ?>"><span id="elh_peserta_didik_sekolah_asal" class="peserta_didik_sekolah_asal"><?= $Page->sekolah_asal->caption() ?></span></th>
<?php } ?>
<?php if ($Page->diterima_di_kls->Visible) { // diterima_di_kls ?>
        <th class="<?= $Page->diterima_di_kls->headerCellClass() ?>"><span id="elh_peserta_didik_diterima_di_kls" class="peserta_didik_diterima_di_kls"><?= $Page->diterima_di_kls->caption() ?></span></th>
<?php } ?>
<?php if ($Page->tanggal->Visible) { // tanggal ?>
        <th class="<?= $Page->tanggal->headerCellClass() ?>"><span id="elh_peserta_didik_tanggal" class="peserta_didik_tanggal"><?= $Page->tanggal->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 ?>_peserta_didik_kode_tapel" class="peserta_didik_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 ?>_peserta_didik_kelas" class="peserta_didik_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 ?>_peserta_didik_nisn" class="peserta_didik_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 ?>_peserta_didik_nis" class="peserta_didik_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 ?>_peserta_didik_nama" class="peserta_didik_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 ?>_peserta_didik_jk" class="peserta_didik_jk">
<span<?= $Page->jk->viewAttributes() ?>>
<?= $Page->jk->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->tmp_lahir->Visible) { // tmp_lahir ?>
        <td <?= $Page->tmp_lahir->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_tmp_lahir" class="peserta_didik_tmp_lahir">
<span<?= $Page->tmp_lahir->viewAttributes() ?>>
<?= $Page->tmp_lahir->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->tgl_lahir->Visible) { // tgl_lahir ?>
        <td <?= $Page->tgl_lahir->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_tgl_lahir" class="peserta_didik_tgl_lahir">
<span<?= $Page->tgl_lahir->viewAttributes() ?>>
<?= $Page->tgl_lahir->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->agama->Visible) { // agama ?>
        <td <?= $Page->agama->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_agama" class="peserta_didik_agama">
<span<?= $Page->agama->viewAttributes() ?>>
<?= $Page->agama->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->status->Visible) { // status ?>
        <td <?= $Page->status->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_status" class="peserta_didik_status">
<span<?= $Page->status->viewAttributes() ?>>
<?= $Page->status->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->sekolah_asal->Visible) { // sekolah_asal ?>
        <td <?= $Page->sekolah_asal->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_sekolah_asal" class="peserta_didik_sekolah_asal">
<span<?= $Page->sekolah_asal->viewAttributes() ?>>
<?= $Page->sekolah_asal->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->diterima_di_kls->Visible) { // diterima_di_kls ?>
        <td <?= $Page->diterima_di_kls->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_diterima_di_kls" class="peserta_didik_diterima_di_kls">
<span<?= $Page->diterima_di_kls->viewAttributes() ?>>
<?= $Page->diterima_di_kls->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->tanggal->Visible) { // tanggal ?>
        <td <?= $Page->tanggal->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_peserta_didik_tanggal" class="peserta_didik_tanggal">
<span<?= $Page->tanggal->viewAttributes() ?>>
<?= $Page->tanggal->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>
