<?php

namespace PHPMaker2021\rdigital21;

// Page object
$NilaiP5Delete = &$Page;
?>
<script>
var currentForm, currentPageID;
var fnilai_p5delete;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "delete";
    fnilai_p5delete = currentForm = new ew.Form("fnilai_p5delete", "delete");
    loadjs.done("fnilai_p5delete");
});
</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.nilai_p5) ew.vars.tables.nilai_p5 = <?= JsonEncode(GetClientVar("tables", "nilai_p5")) ?>;
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fnilai_p5delete" id="fnilai_p5delete" 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="nilai_p5">
<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->kelas->Visible) { // kelas ?>
        <th class="<?= $Page->kelas->headerCellClass() ?>"><span id="elh_nilai_p5_kelas" class="nilai_p5_kelas"><?= $Page->kelas->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <th class="<?= $Page->nis->headerCellClass() ?>"><span id="elh_nilai_p5_nis" class="nilai_p5_nis"><?= $Page->nis->caption() ?></span></th>
<?php } ?>
<?php if ($Page->proyek->Visible) { // proyek ?>
        <th class="<?= $Page->proyek->headerCellClass() ?>"><span id="elh_nilai_p5_proyek" class="nilai_p5_proyek"><?= $Page->proyek->caption() ?></span></th>
<?php } ?>
<?php if ($Page->dimensi->Visible) { // dimensi ?>
        <th class="<?= $Page->dimensi->headerCellClass() ?>"><span id="elh_nilai_p5_dimensi" class="nilai_p5_dimensi"><?= $Page->dimensi->caption() ?></span></th>
<?php } ?>
<?php if ($Page->sub_elemen->Visible) { // sub_elemen ?>
        <th class="<?= $Page->sub_elemen->headerCellClass() ?>"><span id="elh_nilai_p5_sub_elemen" class="nilai_p5_sub_elemen"><?= $Page->sub_elemen->caption() ?></span></th>
<?php } ?>
<?php if ($Page->nilai->Visible) { // nilai ?>
        <th class="<?= $Page->nilai->headerCellClass() ?>"><span id="elh_nilai_p5_nilai" class="nilai_p5_nilai"><?= $Page->nilai->caption() ?></span></th>
<?php } ?>
<?php if ($Page->tapel_id->Visible) { // tapel_id ?>
        <th class="<?= $Page->tapel_id->headerCellClass() ?>"><span id="elh_nilai_p5_tapel_id" class="nilai_p5_tapel_id"><?= $Page->tapel_id->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->kelas->Visible) { // kelas ?>
        <td <?= $Page->kelas->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_kelas" class="nilai_p5_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<?= $Page->kelas->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
        <td <?= $Page->nis->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_nis" class="nilai_p5_nis">
<span<?= $Page->nis->viewAttributes() ?>>
<?= $Page->nis->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->proyek->Visible) { // proyek ?>
        <td <?= $Page->proyek->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_proyek" class="nilai_p5_proyek">
<span<?= $Page->proyek->viewAttributes() ?>>
<?= $Page->proyek->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->dimensi->Visible) { // dimensi ?>
        <td <?= $Page->dimensi->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_dimensi" class="nilai_p5_dimensi">
<span<?= $Page->dimensi->viewAttributes() ?>>
<?= $Page->dimensi->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->sub_elemen->Visible) { // sub_elemen ?>
        <td <?= $Page->sub_elemen->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_sub_elemen" class="nilai_p5_sub_elemen">
<span<?= $Page->sub_elemen->viewAttributes() ?>>
<?= $Page->sub_elemen->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->nilai->Visible) { // nilai ?>
        <td <?= $Page->nilai->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_nilai" class="nilai_p5_nilai">
<span<?= $Page->nilai->viewAttributes() ?>>
<?= $Page->nilai->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->tapel_id->Visible) { // tapel_id ?>
        <td <?= $Page->tapel_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_nilai_p5_tapel_id" class="nilai_p5_tapel_id">
<span<?= $Page->tapel_id->viewAttributes() ?>>
<?= $Page->tapel_id->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>
