<?php

namespace PHPMaker2021\rdigital21;

// Page object
$EktrakurikulerDelete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fektrakurikulerdelete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fektrakurikulerdelete = currentForm = new ew.Form("fektrakurikulerdelete", "delete");
    loadjs.done("fektrakurikulerdelete");
});
</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.ektrakurikuler) ew.vars.tables.ektrakurikuler = <?= JsonEncode(GetClientVar("tables", "ektrakurikuler")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fektrakurikulerdelete" id="fektrakurikulerdelete" 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="ektrakurikuler">
<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->ekstra_id->Visible) { // ekstra_id ?>
        <th class="<?= $Page->ekstra_id->headerCellClass() ?>"><span id="elh_ektrakurikuler_ekstra_id" class="ektrakurikuler_ekstra_id"><?= $Page->ekstra_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->kode_tapel->Visible) { // kode_tapel ?>
        <th class="<?= $Page->kode_tapel->headerCellClass() ?>"><span id="elh_ektrakurikuler_kode_tapel" class="ektrakurikuler_kode_tapel"><?= $Page->kode_tapel->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ektrakurikuler->Visible) { // ektrakurikuler ?>
        <th class="<?= $Page->ektrakurikuler->headerCellClass() ?>"><span id="elh_ektrakurikuler_ektrakurikuler" class="ektrakurikuler_ektrakurikuler"><?= $Page->ektrakurikuler->caption() ?></span></th>
<?php } ?>
<?php if ($Page->pembina->Visible) { // pembina ?>
        <th class="<?= $Page->pembina->headerCellClass() ?>"><span id="elh_ektrakurikuler_pembina" class="ektrakurikuler_pembina"><?= $Page->pembina->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->ekstra_id->Visible) { // ekstra_id ?>
        <td <?= $Page->ekstra_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_ektrakurikuler_ekstra_id" class="ektrakurikuler_ekstra_id">
<span<?= $Page->ekstra_id->viewAttributes() ?>>
<?= $Page->ekstra_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->kode_tapel->Visible) { // kode_tapel ?>
        <td <?= $Page->kode_tapel->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_ektrakurikuler_kode_tapel" class="ektrakurikuler_kode_tapel">
<span<?= $Page->kode_tapel->viewAttributes() ?>>
<?= $Page->kode_tapel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ektrakurikuler->Visible) { // ektrakurikuler ?>
        <td <?= $Page->ektrakurikuler->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_ektrakurikuler_ektrakurikuler" class="ektrakurikuler_ektrakurikuler">
<span<?= $Page->ektrakurikuler->viewAttributes() ?>>
<?= $Page->ektrakurikuler->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->pembina->Visible) { // pembina ?>
        <td <?= $Page->pembina->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_ektrakurikuler_pembina" class="ektrakurikuler_pembina">
<span<?= $Page->pembina->viewAttributes() ?>>
<?= $Page->pembina->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>
