<?php

namespace PHPMaker2021\gudang_ubi;

// Page object
$SortirList = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<script>
var currentForm, currentPageID;
var fsortirlist;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "list";
    fsortirlist = currentForm = new ew.Form("fsortirlist", "list");
    fsortirlist.formKeyCountName = '<?= $Page->FormKeyCountName ?>';
    loadjs.done("fsortirlist");
});
var fsortirlistsrch, currentSearchForm, currentAdvancedSearchForm;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object for search
    fsortirlistsrch = currentSearchForm = new ew.Form("fsortirlistsrch");

    // Add fields
    var fields = ew.vars.tables.sortir.fields;
    fsortirlistsrch.addFields([
        ["sortir_id", [], fields.sortir_id.isInvalid],
        ["sortir_kedatangan", [], fields.sortir_kedatangan.isInvalid],
        ["sortir_petugas", [], fields.sortir_petugas.isInvalid],
        ["sortir_tanggal", [], fields.sortir_tanggal.isInvalid],
        ["y_sortir_tanggal", [ew.Validators.between], false],
        ["sortir_okking", [], fields.sortir_okking.isInvalid],
        ["sortir_okl", [], fields.sortir_okl.isInvalid],
        ["sortir_okm", [], fields.sortir_okm.isInvalid],
        ["sortir_oks", [], fields.sortir_oks.isInvalid],
        ["sortir_okss", [], fields.sortir_okss.isInvalid],
        ["sortir_oktotal", [], fields.sortir_oktotal.isInvalid],
        ["sortir_rijek_busuk", [], fields.sortir_rijek_busuk.isInvalid],
        ["sortir_rijek_kecil", [], fields.sortir_rijek_kecil.isInvalid],
        ["sortir_rijek_sampah", [], fields.sortir_rijek_sampah.isInvalid]
    ]);

    // Set invalid fields
    $(function() {
        fsortirlistsrch.setInvalid();
    });

    // Validate form
    fsortirlistsrch.validate = function () {
        if (!this.validateRequired)
            return true; // Ignore validation
        var fobj = this.getForm(),
            $fobj = $(fobj),
            rowIndex = "";
        $fobj.data("rowindex", rowIndex);

        // Validate fields
        if (!this.validateFields(rowIndex))
            return false;

        // Call Form_CustomValidate event
        if (!this.customValidate(fobj)) {
            this.focus();
            return false;
        }
        return true;
    }

    // Form_CustomValidate
    fsortirlistsrch.customValidate = function(fobj) { // DO NOT CHANGE THIS LINE!
        // Your custom validation code here, return false if invalid.
        return true;
    }

    // Use JavaScript validation or not
    fsortirlistsrch.validateRequired = <?= Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

    // Dynamic selection lists
    fsortirlistsrch.lists.sortir_kedatangan = <?= $Page->sortir_kedatangan->toClientList($Page) ?>;
    fsortirlistsrch.lists.sortir_petugas = <?= $Page->sortir_petugas->toClientList($Page) ?>;

    // Filters
    fsortirlistsrch.filterList = <?= $Page->getFilterList() ?>;
    loadjs.done("fsortirlistsrch");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php } ?>
<?php if (!$Page->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($Page->TotalRecords > 0 && $Page->ExportOptions->visible()) { ?>
<?php $Page->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($Page->ImportOptions->visible()) { ?>
<?php $Page->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($Page->SearchOptions->visible()) { ?>
<?php $Page->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($Page->FilterOptions->visible()) { ?>
<?php $Page->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$Page->renderOtherOptions();
?>
<?php if ($Security->canSearch()) { ?>
<?php if (!$Page->isExport() && !$Page->CurrentAction) { ?>
<form name="fsortirlistsrch" id="fsortirlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?= CurrentPageUrl() ?>">
<div id="fsortirlistsrch-search-panel" class="<?= $Page->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="sortir">
    <div class="ew-extended-search">
<?php
// Render search row
$Page->RowType = ROWTYPE_SEARCH;
$Page->resetAttributes();
$Page->renderRow();
?>
<?php if ($Page->sortir_kedatangan->Visible) { // sortir_kedatangan ?>
    <?php
        $Page->SearchColumnCount++;
        if (($Page->SearchColumnCount - 1) % $Page->SearchFieldsPerRow == 0) {
            $Page->SearchRowCount++;
    ?>
<div id="xsr_<?= $Page->SearchRowCount ?>" class="ew-row d-sm-flex">
    <?php
        }
     ?>
    <div id="xsc_sortir_kedatangan" class="ew-cell form-group">
        <label for="x_sortir_kedatangan" class="ew-search-caption ew-label"><?= $Page->sortir_kedatangan->caption() ?></label>
        <span class="ew-search-operator">
<?= $Language->phrase("=") ?>
<input type="hidden" name="z_sortir_kedatangan" id="z_sortir_kedatangan" value="=">
</span>
        <span id="el_sortir_sortir_kedatangan" class="ew-search-field">
    <select
        id="x_sortir_kedatangan"
        name="x_sortir_kedatangan"
        class="form-control ew-select<?= $Page->sortir_kedatangan->isInvalidClass() ?>"
        data-select2-id="sortir_x_sortir_kedatangan"
        data-table="sortir"
        data-field="x_sortir_kedatangan"
        data-value-separator="<?= $Page->sortir_kedatangan->displayValueSeparatorAttribute() ?>"
        data-placeholder="<?= HtmlEncode($Page->sortir_kedatangan->getPlaceHolder()) ?>"
        <?= $Page->sortir_kedatangan->editAttributes() ?>>
        <?= $Page->sortir_kedatangan->selectOptionListHtml("x_sortir_kedatangan") ?>
    </select>
    <div class="invalid-feedback"><?= $Page->sortir_kedatangan->getErrorMessage(false) ?></div>
<?= $Page->sortir_kedatangan->Lookup->getParamTag($Page, "p_x_sortir_kedatangan") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='sortir_x_sortir_kedatangan']"),
        options = { name: "x_sortir_kedatangan", selectId: "sortir_x_sortir_kedatangan", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.sortir.fields.sortir_kedatangan.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
    </div>
    <?php if ($Page->SearchColumnCount % $Page->SearchFieldsPerRow == 0) { ?>
</div>
    <?php } ?>
<?php } ?>
<?php if ($Page->sortir_petugas->Visible) { // sortir_petugas ?>
    <?php
        $Page->SearchColumnCount++;
        if (($Page->SearchColumnCount - 1) % $Page->SearchFieldsPerRow == 0) {
            $Page->SearchRowCount++;
    ?>
<div id="xsr_<?= $Page->SearchRowCount ?>" class="ew-row d-sm-flex">
    <?php
        }
     ?>
    <div id="xsc_sortir_petugas" class="ew-cell form-group">
        <label for="x_sortir_petugas" class="ew-search-caption ew-label"><?= $Page->sortir_petugas->caption() ?></label>
        <span class="ew-search-operator">
<?= $Language->phrase("=") ?>
<input type="hidden" name="z_sortir_petugas" id="z_sortir_petugas" value="=">
</span>
        <span id="el_sortir_sortir_petugas" class="ew-search-field">
    <select
        id="x_sortir_petugas"
        name="x_sortir_petugas"
        class="form-control ew-select<?= $Page->sortir_petugas->isInvalidClass() ?>"
        data-select2-id="sortir_x_sortir_petugas"
        data-table="sortir"
        data-field="x_sortir_petugas"
        data-value-separator="<?= $Page->sortir_petugas->displayValueSeparatorAttribute() ?>"
        data-placeholder="<?= HtmlEncode($Page->sortir_petugas->getPlaceHolder()) ?>"
        <?= $Page->sortir_petugas->editAttributes() ?>>
        <?= $Page->sortir_petugas->selectOptionListHtml("x_sortir_petugas") ?>
    </select>
    <div class="invalid-feedback"><?= $Page->sortir_petugas->getErrorMessage(false) ?></div>
<?= $Page->sortir_petugas->Lookup->getParamTag($Page, "p_x_sortir_petugas") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='sortir_x_sortir_petugas']"),
        options = { name: "x_sortir_petugas", selectId: "sortir_x_sortir_petugas", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.sortir.fields.sortir_petugas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
    </div>
    <?php if ($Page->SearchColumnCount % $Page->SearchFieldsPerRow == 0) { ?>
</div>
    <?php } ?>
<?php } ?>
<?php if ($Page->sortir_tanggal->Visible) { // sortir_tanggal ?>
    <?php
        $Page->SearchColumnCount++;
        if (($Page->SearchColumnCount - 1) % $Page->SearchFieldsPerRow == 0) {
            $Page->SearchRowCount++;
    ?>
<div id="xsr_<?= $Page->SearchRowCount ?>" class="ew-row d-sm-flex">
    <?php
        }
     ?>
    <div id="xsc_sortir_tanggal" class="ew-cell form-group">
        <label for="x_sortir_tanggal" class="ew-search-caption ew-label"><?= $Page->sortir_tanggal->caption() ?></label>
        <span class="ew-search-operator">
<select name="z_sortir_tanggal" id="z_sortir_tanggal" class="custom-select" onchange="ew.searchOperatorChanged(this);">
<option value="="<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == "=" ? " selected" : "" ?>><?= $Language->phrase("EQUAL") ?></option>
<option value="<>"<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == "<>" ? " selected" : "" ?>><?= $Language->phrase("<>") ?></option>
<option value="<"<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == "<" ? " selected" : "" ?>><?= $Language->phrase("<") ?></option>
<option value="<="<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == "<=" ? " selected" : "" ?>><?= $Language->phrase("<=") ?></option>
<option value=">"<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == ">" ? " selected" : "" ?>><?= $Language->phrase(">") ?></option>
<option value=">="<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == ">=" ? " selected" : "" ?>><?= $Language->phrase(">=") ?></option>
<option value="BETWEEN"<?= $Page->sortir_tanggal->AdvancedSearch->SearchOperator == "BETWEEN" ? " selected" : "" ?>><?= $Language->phrase("BETWEEN") ?></option>
</select>
</span>
        <span id="el_sortir_sortir_tanggal" class="ew-search-field">
<input type="<?= $Page->sortir_tanggal->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_tanggal" name="x_sortir_tanggal" id="x_sortir_tanggal" placeholder="<?= HtmlEncode($Page->sortir_tanggal->getPlaceHolder()) ?>" value="<?= $Page->sortir_tanggal->EditValue ?>"<?= $Page->sortir_tanggal->editAttributes() ?>>
<div class="invalid-feedback"><?= $Page->sortir_tanggal->getErrorMessage(false) ?></div>
<?php if (!$Page->sortir_tanggal->ReadOnly && !$Page->sortir_tanggal->Disabled && !isset($Page->sortir_tanggal->EditAttrs["readonly"]) && !isset($Page->sortir_tanggal->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fsortirlistsrch", "datetimepicker"], function() {
    ew.createDateTimePicker("fsortirlistsrch", "x_sortir_tanggal", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
        <span class="ew-search-and d-none"><label><?= $Language->phrase("AND") ?></label></span>
        <span id="el2_sortir_sortir_tanggal" class="ew-search-field2 d-none">
<input type="<?= $Page->sortir_tanggal->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_tanggal" name="y_sortir_tanggal" id="y_sortir_tanggal" placeholder="<?= HtmlEncode($Page->sortir_tanggal->getPlaceHolder()) ?>" value="<?= $Page->sortir_tanggal->EditValue2 ?>"<?= $Page->sortir_tanggal->editAttributes() ?>>
<div class="invalid-feedback"><?= $Page->sortir_tanggal->getErrorMessage(false) ?></div>
<?php if (!$Page->sortir_tanggal->ReadOnly && !$Page->sortir_tanggal->Disabled && !isset($Page->sortir_tanggal->EditAttrs["readonly"]) && !isset($Page->sortir_tanggal->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fsortirlistsrch", "datetimepicker"], function() {
    ew.createDateTimePicker("fsortirlistsrch", "y_sortir_tanggal", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
    </div>
    <?php if ($Page->SearchColumnCount % $Page->SearchFieldsPerRow == 0) { ?>
</div>
    <?php } ?>
<?php } ?>
    <?php if ($Page->SearchColumnCount % $Page->SearchFieldsPerRow > 0) { ?>
</div>
    <?php } ?>
<div id="xsr_<?= $Page->SearchRowCount + 1 ?>" class="ew-row d-sm-flex">
    <button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?= $Language->phrase("SearchBtn") ?></button>
</div>
    </div><!-- /.ew-extended-search -->
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php } ?>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<?php if ($Page->TotalRecords > 0 || $Page->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($Page->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> sortir">
<form name="fsortirlist" id="fsortirlist" class="form-inline ew-form ew-list-form" action="<?= CurrentPageUrl() ?>" 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="sortir">
<div id="gmp_sortir" class="<?= ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($Page->TotalRecords > 0 || $Page->isGridEdit()) { ?>
<table id="tbl_sortirlist" class="table ew-table"><!-- .ew-table -->
<thead>
    <tr class="ew-table-header">
<?php
// Header row
$Page->RowType = ROWTYPE_HEADER;

// Render list options
$Page->renderListOptions();

// Render list options (header, left)
$Page->ListOptions->render("header", "left");
?>
<?php if ($Page->sortir_id->Visible) { // sortir_id ?>
        <th data-name="sortir_id" class="<?= $Page->sortir_id->headerCellClass() ?>"><div id="elh_sortir_sortir_id" class="sortir_sortir_id"><?= $Page->renderSort($Page->sortir_id) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_kedatangan->Visible) { // sortir_kedatangan ?>
        <th data-name="sortir_kedatangan" class="<?= $Page->sortir_kedatangan->headerCellClass() ?>"><div id="elh_sortir_sortir_kedatangan" class="sortir_sortir_kedatangan"><?= $Page->renderSort($Page->sortir_kedatangan) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_petugas->Visible) { // sortir_petugas ?>
        <th data-name="sortir_petugas" class="<?= $Page->sortir_petugas->headerCellClass() ?>"><div id="elh_sortir_sortir_petugas" class="sortir_sortir_petugas"><?= $Page->renderSort($Page->sortir_petugas) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_tanggal->Visible) { // sortir_tanggal ?>
        <th data-name="sortir_tanggal" class="<?= $Page->sortir_tanggal->headerCellClass() ?>"><div id="elh_sortir_sortir_tanggal" class="sortir_sortir_tanggal"><?= $Page->renderSort($Page->sortir_tanggal) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_okking->Visible) { // sortir_okking ?>
        <th data-name="sortir_okking" class="<?= $Page->sortir_okking->headerCellClass() ?>"><div id="elh_sortir_sortir_okking" class="sortir_sortir_okking"><?= $Page->renderSort($Page->sortir_okking) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_okl->Visible) { // sortir_okl ?>
        <th data-name="sortir_okl" class="<?= $Page->sortir_okl->headerCellClass() ?>"><div id="elh_sortir_sortir_okl" class="sortir_sortir_okl"><?= $Page->renderSort($Page->sortir_okl) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_okm->Visible) { // sortir_okm ?>
        <th data-name="sortir_okm" class="<?= $Page->sortir_okm->headerCellClass() ?>"><div id="elh_sortir_sortir_okm" class="sortir_sortir_okm"><?= $Page->renderSort($Page->sortir_okm) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_oks->Visible) { // sortir_oks ?>
        <th data-name="sortir_oks" class="<?= $Page->sortir_oks->headerCellClass() ?>"><div id="elh_sortir_sortir_oks" class="sortir_sortir_oks"><?= $Page->renderSort($Page->sortir_oks) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_okss->Visible) { // sortir_okss ?>
        <th data-name="sortir_okss" class="<?= $Page->sortir_okss->headerCellClass() ?>"><div id="elh_sortir_sortir_okss" class="sortir_sortir_okss"><?= $Page->renderSort($Page->sortir_okss) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_oktotal->Visible) { // sortir_oktotal ?>
        <th data-name="sortir_oktotal" class="<?= $Page->sortir_oktotal->headerCellClass() ?>"><div id="elh_sortir_sortir_oktotal" class="sortir_sortir_oktotal"><?= $Page->renderSort($Page->sortir_oktotal) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_rijek_busuk->Visible) { // sortir_rijek_busuk ?>
        <th data-name="sortir_rijek_busuk" class="<?= $Page->sortir_rijek_busuk->headerCellClass() ?>"><div id="elh_sortir_sortir_rijek_busuk" class="sortir_sortir_rijek_busuk"><?= $Page->renderSort($Page->sortir_rijek_busuk) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_rijek_kecil->Visible) { // sortir_rijek_kecil ?>
        <th data-name="sortir_rijek_kecil" class="<?= $Page->sortir_rijek_kecil->headerCellClass() ?>"><div id="elh_sortir_sortir_rijek_kecil" class="sortir_sortir_rijek_kecil"><?= $Page->renderSort($Page->sortir_rijek_kecil) ?></div></th>
<?php } ?>
<?php if ($Page->sortir_rijek_sampah->Visible) { // sortir_rijek_sampah ?>
        <th data-name="sortir_rijek_sampah" class="<?= $Page->sortir_rijek_sampah->headerCellClass() ?>"><div id="elh_sortir_sortir_rijek_sampah" class="sortir_sortir_rijek_sampah"><?= $Page->renderSort($Page->sortir_rijek_sampah) ?></div></th>
<?php } ?>
<?php
// Render list options (header, right)
$Page->ListOptions->render("header", "right");
?>
    </tr>
</thead>
<tbody>
<?php
if ($Page->ExportAll && $Page->isExport()) {
    $Page->StopRecord = $Page->TotalRecords;
} else {
    // Set the last record to display
    if ($Page->TotalRecords > $Page->StartRecord + $Page->DisplayRecords - 1) {
        $Page->StopRecord = $Page->StartRecord + $Page->DisplayRecords - 1;
    } else {
        $Page->StopRecord = $Page->TotalRecords;
    }
}
$Page->RecordCount = $Page->StartRecord - 1;
if ($Page->Recordset && !$Page->Recordset->EOF) {
    // Nothing to do
} elseif (!$Page->AllowAddDeleteRow && $Page->StopRecord == 0) {
    $Page->StopRecord = $Page->GridAddRowCount;
}

// Initialize aggregate
$Page->RowType = ROWTYPE_AGGREGATEINIT;
$Page->resetAttributes();
$Page->renderRow();
while ($Page->RecordCount < $Page->StopRecord) {
    $Page->RecordCount++;
    if ($Page->RecordCount >= $Page->StartRecord) {
        $Page->RowCount++;

        // Set up key count
        $Page->KeyCount = $Page->RowIndex;

        // Init row class and style
        $Page->resetAttributes();
        $Page->CssClass = "";
        if ($Page->isGridAdd()) {
        } else {
            $Page->loadRowValues($Page->Recordset); // Load row values
        }
        $Page->RowType = ROWTYPE_VIEW; // Render view

        // Set up row id / data-rowindex
        $Page->RowAttrs->merge(["data-rowindex" => $Page->RowCount, "id" => "r" . $Page->RowCount . "_sortir", "data-rowtype" => $Page->RowType]);

        // Render row
        $Page->renderRow();

        // Render list options
        $Page->renderListOptions();
?>
    <tr <?= $Page->rowAttributes() ?>>
<?php
// Render list options (body, left)
$Page->ListOptions->render("body", "left", $Page->RowCount);
?>
    <?php if ($Page->sortir_id->Visible) { // sortir_id ?>
        <td data-name="sortir_id" <?= $Page->sortir_id->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_id">
<span<?= $Page->sortir_id->viewAttributes() ?>>
<?= $Page->sortir_id->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_kedatangan->Visible) { // sortir_kedatangan ?>
        <td data-name="sortir_kedatangan" <?= $Page->sortir_kedatangan->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_kedatangan">
<span<?= $Page->sortir_kedatangan->viewAttributes() ?>>
<?= $Page->sortir_kedatangan->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_petugas->Visible) { // sortir_petugas ?>
        <td data-name="sortir_petugas" <?= $Page->sortir_petugas->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_petugas">
<span<?= $Page->sortir_petugas->viewAttributes() ?>>
<?= $Page->sortir_petugas->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_tanggal->Visible) { // sortir_tanggal ?>
        <td data-name="sortir_tanggal" <?= $Page->sortir_tanggal->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_tanggal">
<span<?= $Page->sortir_tanggal->viewAttributes() ?>>
<?= $Page->sortir_tanggal->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_okking->Visible) { // sortir_okking ?>
        <td data-name="sortir_okking" <?= $Page->sortir_okking->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_okking">
<span<?= $Page->sortir_okking->viewAttributes() ?>>
<?= $Page->sortir_okking->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_okl->Visible) { // sortir_okl ?>
        <td data-name="sortir_okl" <?= $Page->sortir_okl->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_okl">
<span<?= $Page->sortir_okl->viewAttributes() ?>>
<?= $Page->sortir_okl->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_okm->Visible) { // sortir_okm ?>
        <td data-name="sortir_okm" <?= $Page->sortir_okm->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_okm">
<span<?= $Page->sortir_okm->viewAttributes() ?>>
<?= $Page->sortir_okm->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_oks->Visible) { // sortir_oks ?>
        <td data-name="sortir_oks" <?= $Page->sortir_oks->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_oks">
<span<?= $Page->sortir_oks->viewAttributes() ?>>
<?= $Page->sortir_oks->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_okss->Visible) { // sortir_okss ?>
        <td data-name="sortir_okss" <?= $Page->sortir_okss->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_okss">
<span<?= $Page->sortir_okss->viewAttributes() ?>>
<?= $Page->sortir_okss->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_oktotal->Visible) { // sortir_oktotal ?>
        <td data-name="sortir_oktotal" <?= $Page->sortir_oktotal->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_oktotal">
<span<?= $Page->sortir_oktotal->viewAttributes() ?>>
<?= $Page->sortir_oktotal->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_rijek_busuk->Visible) { // sortir_rijek_busuk ?>
        <td data-name="sortir_rijek_busuk" <?= $Page->sortir_rijek_busuk->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_rijek_busuk">
<span<?= $Page->sortir_rijek_busuk->viewAttributes() ?>>
<?= $Page->sortir_rijek_busuk->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_rijek_kecil->Visible) { // sortir_rijek_kecil ?>
        <td data-name="sortir_rijek_kecil" <?= $Page->sortir_rijek_kecil->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_rijek_kecil">
<span<?= $Page->sortir_rijek_kecil->viewAttributes() ?>>
<?= $Page->sortir_rijek_kecil->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->sortir_rijek_sampah->Visible) { // sortir_rijek_sampah ?>
        <td data-name="sortir_rijek_sampah" <?= $Page->sortir_rijek_sampah->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_sortir_sortir_rijek_sampah">
<span<?= $Page->sortir_rijek_sampah->viewAttributes() ?>>
<?= $Page->sortir_rijek_sampah->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
<?php
    }
    if (!$Page->isGridAdd()) {
        $Page->Recordset->moveNext();
    }
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
<?php if (!$Page->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php
// Close recordset
if ($Page->Recordset) {
    $Page->Recordset->close();
}
?>
<?php if (!$Page->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$Page->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?= CurrentPageUrl() ?>">
<?= $Page->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($Page->TotalRecords == 0 && !$Page->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php if (!$Page->isExport()) { ?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("sortir");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
