<?php

namespace ProjectManagement\prjProjectManagement;

// Page object
$ProjectresultList = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { projectresult: currentTable } });
var currentPageID = ew.PAGE_ID = "list";
var currentForm;
var <?= $Page->FormName ?>;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("<?= $Page->FormName ?>")
        .setPageId("list")
        .setSubmitWithFetch(<?= $Page->UseAjaxActions ? "true" : "false" ?>)
        .setFormKeyCountName("<?= $Page->FormKeyCountName ?>")

        // Dynamic selection lists
        .setLists({
            "Activities": <?= $Page->Activities->toClientList($Page) ?>,
            "DateDelivered": <?= $Page->DateDelivered->toClientList($Page) ?>,
            "Progress": <?= $Page->Progress->toClientList($Page) ?>,
            "Status": <?= $Page->Status->toClientList($Page) ?>,
            "Category": <?= $Page->Category->toClientList($Page) ?>,
            "Weight": <?= $Page->Weight->toClientList($Page) ?>,
            "File": <?= $Page->File->toClientList($Page) ?>,
            "_ProjectID": <?= $Page->_ProjectID->toClientList($Page) ?>,
            "Created_Date": <?= $Page->Created_Date->toClientList($Page) ?>,
            "Created_By": <?= $Page->Created_By->toClientList($Page) ?>,
            "Last_Updated_Date": <?= $Page->Last_Updated_Date->toClientList($Page) ?>,
            "Last_Updated_By": <?= $Page->Last_Updated_By->toClientList($Page) ?>,
        })
        .build();
    window[form.id] = form;
    currentForm = form;
    loadjs.done(form.id);
});
</script>
<script>
ew.PREVIEW_SELECTOR ??= ".ew-preview-btn";
ew.PREVIEW_TYPE ??= "row";
ew.PREVIEW_NAV_STYLE ??= "tabs"; // tabs/pills/underline
ew.PREVIEW_MODAL_CLASS ??= "modal modal-fullscreen-sm-down";
ew.PREVIEW_ROW ??= true;
ew.PREVIEW_SINGLE_ROW ??= false;
ew.PREVIEW || ew.ready("head", ew.PATH_BASE + "js/preview.min.js?v=24.6.2", "preview");
</script>
<script>
window.Tabulator || loadjs([
    ew.PATH_BASE + "js/tabulator.min.js?v=24.6.4",
    ew.PATH_BASE + "css/<?= CssFile("tabulator_bootstrap5.css", false) ?>?v=24.6.4"
], "import");
</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>
<?php } ?>
<?php if (!$Page->isExport() || Config("EXPORT_MASTER_RECORD") && $Page->isExport("print")) { ?>
<?php
if ($Page->DbMasterFilter != "" && $Page->getCurrentMasterTable() == "masterproject") {
    if ($Page->MasterRecordExists) {
        include_once "views/MasterprojectMaster.php";
    }
}
?>
<?php } ?>
<?php if ($Page->ShowCurrentFilter) { ?>
<?php $Page->showFilterList() ?>
<?php } ?>
<?php if (!$Page->IsModal) { ?>
<form name="fprojectresultsrch" id="fprojectresultsrch" class="ew-form ew-ext-search-form" action="<?= CurrentPageUrl(false) ?>" autocomplete="off">
<div id="fprojectresultsrch_search_panel" class="mb-2 mb-sm-0 <?= $Page->SearchPanelClass ?>"><!-- .ew-search-panel -->
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { projectresult: currentTable } });
var currentForm;
var fprojectresultsrch, currentSearchForm, currentAdvancedSearchForm;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery,
        fields = currentTable.fields;

    // Form object for search
    let form = new ew.FormBuilder()
        .setId("fprojectresultsrch")
        .setPageId("list")
<?php if ($Page->UseAjaxActions) { ?>
        .setSubmitWithFetch(true)
<?php } ?>

        // Add fields
        .addFields([
        ])
        // Validate form
        .setValidate(
            async function () {
                if (!this.validateRequired)
                    return true; // Ignore validation
                let fobj = this.getForm();

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

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

        // Form_CustomValidate
        .setCustomValidate(
            function (fobj) { // DO NOT CHANGE THIS LINE! (except for adding "async" keyword)!
                    // Your custom validation code here, return false if invalid.
                    return true;
                }
        )

        // Use JavaScript validation or not
        .setValidateRequired(ew.CLIENT_VALIDATE)

        // Dynamic selection lists
        .setLists({
            "Activities": <?= $Page->Activities->toClientList($Page) ?>,
            "DateDelivered": <?= $Page->DateDelivered->toClientList($Page) ?>,
            "Progress": <?= $Page->Progress->toClientList($Page) ?>,
            "Status": <?= $Page->Status->toClientList($Page) ?>,
            "Category": <?= $Page->Category->toClientList($Page) ?>,
            "Weight": <?= $Page->Weight->toClientList($Page) ?>,
            "File": <?= $Page->File->toClientList($Page) ?>,
            "_ProjectID": <?= $Page->_ProjectID->toClientList($Page) ?>,
            "Created_Date": <?= $Page->Created_Date->toClientList($Page) ?>,
            "Created_By": <?= $Page->Created_By->toClientList($Page) ?>,
            "Last_Updated_Date": <?= $Page->Last_Updated_Date->toClientList($Page) ?>,
            "Last_Updated_By": <?= $Page->Last_Updated_By->toClientList($Page) ?>,
        })

        // Filters
        .setFilterList(<?= $Page->getFilterList() ?>)
        .build();
    window[form.id] = form;
    currentSearchForm = form;
    loadjs.done(form.id);
});
</script>
<input type="hidden" name="cmd" value="search">
<?php if ($Security->canSearch()) { ?>
<?php if (!$Page->isExport() && !($Page->CurrentAction && $Page->CurrentAction != "search") && $Page->hasSearchFields()) { ?>
<div class="ew-extended-search container-fluid ps-2">
<div class="row mb-0<?= ($Page->SearchFieldsPerRow > 0) ? " row-cols-sm-" . $Page->SearchFieldsPerRow : "" ?>">
<?php
// Render search row
$Page->RowType = RowType::SEARCH;
$Page->resetAttributes();
$Page->renderRow();
?>
<?php if ($Page->Activities->Visible) { // Activities ?>
<?php
if (!$Page->Activities->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Activities" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Activities->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Activities"
            name="x_Activities[]"
            class="form-control ew-select<?= $Page->Activities->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Activities"
            data-table="projectresult"
            data-field="x_Activities"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Activities->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Activities->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Activities->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Activities->editAttributes() ?>>
            <?= $Page->Activities->selectOptionListHtml("x_Activities", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Activities->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Activities",
                selectId: "fprojectresultsrch_x_Activities",
                ajax: { id: "x_Activities", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Activities.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->DateDelivered->Visible) { // DateDelivered ?>
<?php
if (!$Page->DateDelivered->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_DateDelivered" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->DateDelivered->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_DateDelivered"
            name="x_DateDelivered[]"
            class="form-control ew-select<?= $Page->DateDelivered->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_DateDelivered"
            data-table="projectresult"
            data-field="x_DateDelivered"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->DateDelivered->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->DateDelivered->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->DateDelivered->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->DateDelivered->editAttributes() ?>>
            <?= $Page->DateDelivered->selectOptionListHtml("x_DateDelivered", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->DateDelivered->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_DateDelivered",
                selectId: "fprojectresultsrch_x_DateDelivered",
                ajax: { id: "x_DateDelivered", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.DateDelivered.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Progress->Visible) { // Progress ?>
<?php
if (!$Page->Progress->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Progress" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Progress->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Progress"
            name="x_Progress[]"
            class="form-control ew-select<?= $Page->Progress->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Progress"
            data-table="projectresult"
            data-field="x_Progress"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Progress->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Progress->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Progress->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Progress->editAttributes() ?>>
            <?= $Page->Progress->selectOptionListHtml("x_Progress", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Progress->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Progress",
                selectId: "fprojectresultsrch_x_Progress",
                ajax: { id: "x_Progress", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Progress.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Status->Visible) { // Status ?>
<?php
if (!$Page->Status->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Status" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Status->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Status"
            name="x_Status[]"
            class="form-control ew-select<?= $Page->Status->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Status"
            data-table="projectresult"
            data-field="x_Status"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Status->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Status->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Status->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Status->editAttributes() ?>>
            <?= $Page->Status->selectOptionListHtml("x_Status", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Status->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Status",
                selectId: "fprojectresultsrch_x_Status",
                ajax: { id: "x_Status", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Status.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Category->Visible) { // Category ?>
<?php
if (!$Page->Category->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Category" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Category->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Category"
            name="x_Category[]"
            class="form-control ew-select<?= $Page->Category->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Category"
            data-table="projectresult"
            data-field="x_Category"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Category->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Category->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Category->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Category->editAttributes() ?>>
            <?= $Page->Category->selectOptionListHtml("x_Category", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Category->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Category",
                selectId: "fprojectresultsrch_x_Category",
                ajax: { id: "x_Category", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Category.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Weight->Visible) { // Weight ?>
<?php
if (!$Page->Weight->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Weight" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Weight->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Weight"
            name="x_Weight[]"
            class="form-control ew-select<?= $Page->Weight->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Weight"
            data-table="projectresult"
            data-field="x_Weight"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Weight->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Weight->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Weight->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Weight->editAttributes() ?>>
            <?= $Page->Weight->selectOptionListHtml("x_Weight", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Weight->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Weight",
                selectId: "fprojectresultsrch_x_Weight",
                ajax: { id: "x_Weight", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Weight.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->File->Visible) { // File ?>
<?php
if (!$Page->File->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_File" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->File->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_File"
            name="x_File[]"
            class="form-control ew-select<?= $Page->File->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_File"
            data-table="projectresult"
            data-field="x_File"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->File->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->File->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->File->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->File->editAttributes() ?>>
            <?= $Page->File->selectOptionListHtml("x_File", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->File->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_File",
                selectId: "fprojectresultsrch_x_File",
                ajax: { id: "x_File", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.File.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
<?php
if (!$Page->_ProjectID->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs__ProjectID" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->_ProjectID->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x__ProjectID"
            name="x__ProjectID[]"
            class="form-control ew-select<?= $Page->_ProjectID->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x__ProjectID"
            data-table="projectresult"
            data-field="x__ProjectID"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->_ProjectID->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->_ProjectID->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->_ProjectID->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->_ProjectID->editAttributes() ?>>
            <?= $Page->_ProjectID->selectOptionListHtml("x__ProjectID", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->_ProjectID->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x__ProjectID",
                selectId: "fprojectresultsrch_x__ProjectID",
                ajax: { id: "x__ProjectID", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields._ProjectID.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Created_Date->Visible) { // Created_Date ?>
<?php
if (!$Page->Created_Date->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Created_Date" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Created_Date->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Created_Date"
            name="x_Created_Date[]"
            class="form-control ew-select<?= $Page->Created_Date->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Created_Date"
            data-table="projectresult"
            data-field="x_Created_Date"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Created_Date->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Created_Date->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Created_Date->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Created_Date->editAttributes() ?>>
            <?= $Page->Created_Date->selectOptionListHtml("x_Created_Date", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Created_Date->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Created_Date",
                selectId: "fprojectresultsrch_x_Created_Date",
                ajax: { id: "x_Created_Date", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Created_Date.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Created_By->Visible) { // Created_By ?>
<?php
if (!$Page->Created_By->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Created_By" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Created_By->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Created_By"
            name="x_Created_By[]"
            class="form-control ew-select<?= $Page->Created_By->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Created_By"
            data-table="projectresult"
            data-field="x_Created_By"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Created_By->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Created_By->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Created_By->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Created_By->editAttributes() ?>>
            <?= $Page->Created_By->selectOptionListHtml("x_Created_By", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Created_By->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Created_By",
                selectId: "fprojectresultsrch_x_Created_By",
                ajax: { id: "x_Created_By", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Created_By.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
<?php
if (!$Page->Last_Updated_Date->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Last_Updated_Date" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Last_Updated_Date->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Last_Updated_Date"
            name="x_Last_Updated_Date[]"
            class="form-control ew-select<?= $Page->Last_Updated_Date->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Last_Updated_Date"
            data-table="projectresult"
            data-field="x_Last_Updated_Date"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Last_Updated_Date->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Last_Updated_Date->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Last_Updated_Date->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Last_Updated_Date->editAttributes() ?>>
            <?= $Page->Last_Updated_Date->selectOptionListHtml("x_Last_Updated_Date", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Last_Updated_Date->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Last_Updated_Date",
                selectId: "fprojectresultsrch_x_Last_Updated_Date",
                ajax: { id: "x_Last_Updated_Date", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Last_Updated_Date.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
<?php
if (!$Page->Last_Updated_By->UseFilter) {
    $Page->SearchColumnCount++;
}
?>
    <div id="xs_Last_Updated_By" class="col-sm-auto d-sm-flex align-items-start mb-3 px-0 pe-sm-2<?= $Page->Last_Updated_By->UseFilter ? " ew-filter-field" : "" ?>">
        <select
            id="x_Last_Updated_By"
            name="x_Last_Updated_By[]"
            class="form-control ew-select<?= $Page->Last_Updated_By->isInvalidClass() ?>"
            data-select2-id="fprojectresultsrch_x_Last_Updated_By"
            data-table="projectresult"
            data-field="x_Last_Updated_By"
            data-caption="<?= HtmlEncode(RemoveHtml($Page->Last_Updated_By->caption())) ?>"
            data-filter="true"
            multiple
            size="1"
            data-value-separator="<?= $Page->Last_Updated_By->displayValueSeparatorAttribute() ?>"
            data-placeholder="<?= HtmlEncode($Page->Last_Updated_By->getPlaceHolder()) ?>"
            data-ew-action="update-options"
            <?= $Page->Last_Updated_By->editAttributes() ?>>
            <?= $Page->Last_Updated_By->selectOptionListHtml("x_Last_Updated_By", true) ?>
        </select>
        <div class="invalid-feedback"><?= $Page->Last_Updated_By->getErrorMessage(false) ?></div>
        <script>
        loadjs.ready("fprojectresultsrch", function() {
            var options = {
                name: "x_Last_Updated_By",
                selectId: "fprojectresultsrch_x_Last_Updated_By",
                ajax: { id: "x_Last_Updated_By", form: "fprojectresultsrch", limit: ew.FILTER_PAGE_SIZE, data: { ajax: "filter" } }
            };
            options = Object.assign({}, ew.filterOptions, options, ew.vars.tables.projectresult.fields.Last_Updated_By.filterOptions);
            ew.createFilter(options);
        });
        </script>
    </div><!-- /.col-sm-auto -->
<?php } ?>
<?php if ($Page->SearchColumnCount > 0) { ?>
   <div class="col-sm-auto mb-3">
       <button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?= $Language->phrase("SearchBtn") ?></button>
   </div>
<?php } ?>
</div><!-- /.row -->
<!-- template for quick search in navbar -->
<script id="navbar-basic-search" type="text/html" class="ew-js-template" data-name="search" data-seq="10" data-data="menu" data-target="#ew-navbar-end" data-method="prependTo">
    <li class="nav-item navbar-basic-search">
        <a class="nav-link" data-widget="navbar-search" href="#" role="button">
            <i class="fa-solid fa-magnifying-glass"></i>
        </a>
        <div class="navbar-search-block">
            <div class="ew-basic-search input-group input-group-sm">
                <input type="text" name="<?= Config("TABLE_BASIC_SEARCH") ?>" id="<?= Config("TABLE_BASIC_SEARCH") ?>" class="form-control form-control-navbar ew-basic-search-keyword" form="fprojectresultsrch" value="<?= HtmlEncode($Page->BasicSearch->getKeyword()) ?>" placeholder="<?= HtmlEncode($Language->phrase("Search")) ?>" aria-label="<?= HtmlEncode($Language->phrase("Search")) ?>">
                <input type="hidden" name="<?= Config("TABLE_BASIC_SEARCH_TYPE") ?>" id="<?= Config("TABLE_BASIC_SEARCH_TYPE") ?>" class="form-control-navbar ew-basic-search-type" form="fprojectresultsrch" value="<?= HtmlEncode($Page->BasicSearch->getType()) ?>">
                <button class="btn btn-navbar" form="fprojectresultsrch" type="submit">
                    <i class="fa-solid fa-magnifying-glass"></i>
                </button>
                <button type="button" data-bs-toggle="dropdown" class="btn btn-navbar dropdown-toggle" aria-haspopup="true" aria-expanded="false">
                    <span id="searchtype"><?= $Page->BasicSearch->getTypeNameShort() ?></span>
                </button>
                <div class="dropdown-menu dropdown-menu-end">
                    <button type="button" class="dropdown-item<?= $Page->BasicSearch->getType() == "" ? " active" : "" ?>" form="fprojectresultsrch" data-ew-action="search-type"><?= $Language->phrase("QuickSearchAuto") ?></button>
                    <button type="button" class="dropdown-item<?= $Page->BasicSearch->getType() == "=" ? " active" : "" ?>" form="fprojectresultsrch" data-ew-action="search-type" data-search-type="="><?= $Language->phrase("QuickSearchExact") ?></button>
                    <button type="button" class="dropdown-item<?= $Page->BasicSearch->getType() == "AND" ? " active" : "" ?>" form="fprojectresultsrch" data-ew-action="search-type" data-search-type="AND"><?= $Language->phrase("QuickSearchAll") ?></button>
                    <button type="button" class="dropdown-item<?= $Page->BasicSearch->getType() == "OR" ? " active" : "" ?>" form="fprojectresultsrch" data-ew-action="search-type" data-search-type="OR"><?= $Language->phrase("QuickSearchAny") ?></button>
                </div>
                <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                    <i class="fa-solid fa-xmark"></i>
                </button>
            </div>
        </div>
    </li>
</script>
</div><!-- /.ew-extended-search -->
<?php } ?>
<?php } ?>
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<main class="list<?= ($Page->TotalRecords == 0 && !$Page->isAdd()) ? " ew-no-record" : "" ?>">
<div id="ew-header-options">
<?php $Page->HeaderOptions?->render("body") ?>
</div>
<div id="ew-list">
<?php if ($Page->TotalRecords > 0 || $Page->CurrentAction) { ?>
<div class="card ew-card ew-grid<?= $Page->isAddOrEdit() ? " ew-grid-add-edit" : "" ?> <?= $Page->TableGridClass ?>">
<form name="<?= $Page->FormName ?>" id="<?= $Page->FormName ?>" class="ew-form ew-list-form" action="<?= $Page->PageAction ?>" method="post" autocomplete="off">
<?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="projectresult">
<?php if ($Page->IsModal) { ?>
<input type="hidden" name="modal" value="1">
<?php } ?>
<?php if ($Page->getCurrentMasterTable() == "masterproject" && $Page->CurrentAction) { ?>
<input type="hidden" name="<?= Config("TABLE_SHOW_MASTER") ?>" value="masterproject">
<input type="hidden" name="fk__ProjectID" value="<?= HtmlEncode($Page->_ProjectID->getSessionValue()) ?>">
<?php } ?>
<div id="gmp_projectresult" class="card-body ew-grid-middle-panel <?= $Page->TableContainerClass ?>" style="<?= $Page->TableContainerStyle ?>">
<?php if ($Page->TotalRecords > 0 || $Page->isGridEdit() || $Page->isMultiEdit()) { ?>
<table id="tbl_projectresultlist" class="<?= $Page->TableClass ?>"><!-- .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->Activities->Visible) { // Activities ?>
        <th data-name="Activities" class="<?= $Page->Activities->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Activities" class="projectresult_Activities"><?= $Page->renderFieldHeader($Page->Activities) ?></div></th>
<?php } ?>
<?php if ($Page->DateDelivered->Visible) { // DateDelivered ?>
        <th data-name="DateDelivered" class="<?= $Page->DateDelivered->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_DateDelivered" class="projectresult_DateDelivered"><?= $Page->renderFieldHeader($Page->DateDelivered) ?></div></th>
<?php } ?>
<?php if ($Page->Progress->Visible) { // Progress ?>
        <th data-name="Progress" class="<?= $Page->Progress->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Progress" class="projectresult_Progress"><?= $Page->renderFieldHeader($Page->Progress) ?></div></th>
<?php } ?>
<?php if ($Page->Status->Visible) { // Status ?>
        <th data-name="Status" class="<?= $Page->Status->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Status" class="projectresult_Status"><?= $Page->renderFieldHeader($Page->Status) ?></div></th>
<?php } ?>
<?php if ($Page->Category->Visible) { // Category ?>
        <th data-name="Category" class="<?= $Page->Category->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Category" class="projectresult_Category"><?= $Page->renderFieldHeader($Page->Category) ?></div></th>
<?php } ?>
<?php if ($Page->Weight->Visible) { // Weight ?>
        <th data-name="Weight" class="<?= $Page->Weight->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Weight" class="projectresult_Weight"><?= $Page->renderFieldHeader($Page->Weight) ?></div></th>
<?php } ?>
<?php if ($Page->File->Visible) { // File ?>
        <th data-name="File" class="<?= $Page->File->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_File" class="projectresult_File"><?= $Page->renderFieldHeader($Page->File) ?></div></th>
<?php } ?>
<?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
        <th data-name="_ProjectID" class="<?= $Page->_ProjectID->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult__ProjectID" class="projectresult__ProjectID"><?= $Page->renderFieldHeader($Page->_ProjectID) ?></div></th>
<?php } ?>
<?php if ($Page->Created_Date->Visible) { // Created_Date ?>
        <th data-name="Created_Date" class="<?= $Page->Created_Date->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Created_Date" class="projectresult_Created_Date"><?= $Page->renderFieldHeader($Page->Created_Date) ?></div></th>
<?php } ?>
<?php if ($Page->Created_By->Visible) { // Created_By ?>
        <th data-name="Created_By" class="<?= $Page->Created_By->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Created_By" class="projectresult_Created_By"><?= $Page->renderFieldHeader($Page->Created_By) ?></div></th>
<?php } ?>
<?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <th data-name="Last_Updated_Date" class="<?= $Page->Last_Updated_Date->headerCellClass() ?>" style="white-space: nowrap;"><div id="elh_projectresult_Last_Updated_Date" class="projectresult_Last_Updated_Date"><?= $Page->renderFieldHeader($Page->Last_Updated_Date) ?></div></th>
<?php } ?>
<?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <th data-name="Last_Updated_By" class="<?= $Page->Last_Updated_By->headerCellClass() ?>"><div id="elh_projectresult_Last_Updated_By" class="projectresult_Last_Updated_By"><?= $Page->renderFieldHeader($Page->Last_Updated_By) ?></div></th>
<?php } ?>
<?php
// Render list options (header, right)
$Page->ListOptions->render("header", "right");
?>
    </tr>
</thead>
<tbody data-page="<?= $Page->getPageNumber() ?>">
<?php
$Page->setupGrid();
while ($Page->RecordCount < $Page->StopRecord || $Page->RowIndex === '$rowindex$') {
    if (
        $Page->CurrentRow !== false &&
        $Page->RowIndex !== '$rowindex$' &&
        (!$Page->isGridAdd() || $Page->CurrentMode == "copy") &&
        (!(($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0))
    ) {
        $Page->fetch();
    }
    $Page->RecordCount++;
    if ($Page->RecordCount >= $Page->StartRecord) {
        $Page->setupRow();
?>
    <tr <?= $Page->rowAttributes() ?>>
<?php
// Render list options (body, left)
$Page->ListOptions->render("body", "left", $Page->RowCount);
?>
    <?php if ($Page->Activities->Visible) { // Activities ?>
        <td data-name="Activities"<?= $Page->Activities->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Activities" class="el_projectresult_Activities">
<span<?= $Page->Activities->viewAttributes() ?>>
<?= $Page->Activities->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->DateDelivered->Visible) { // DateDelivered ?>
        <td data-name="DateDelivered"<?= $Page->DateDelivered->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_DateDelivered" class="el_projectresult_DateDelivered">
<span<?= $Page->DateDelivered->viewAttributes() ?>>
<?= $Page->DateDelivered->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Progress->Visible) { // Progress ?>
        <td data-name="Progress"<?= $Page->Progress->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Progress" class="el_projectresult_Progress">
<span<?= $Page->Progress->viewAttributes() ?>>
<?= $Page->Progress->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Status->Visible) { // Status ?>
        <td data-name="Status"<?= $Page->Status->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Status" class="el_projectresult_Status">
<span<?= $Page->Status->viewAttributes() ?>>
<?= $Page->Status->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Category->Visible) { // Category ?>
        <td data-name="Category"<?= $Page->Category->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Category" class="el_projectresult_Category">
<span<?= $Page->Category->viewAttributes() ?>>
<?= $Page->Category->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Weight->Visible) { // Weight ?>
        <td data-name="Weight"<?= $Page->Weight->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Weight" class="el_projectresult_Weight">
<span<?= $Page->Weight->viewAttributes() ?>>
<?= $Page->Weight->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->File->Visible) { // File ?>
        <td data-name="File"<?= $Page->File->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_File" class="el_projectresult_File">
<span<?= $Page->File->viewAttributes() ?>>
<?= GetFileViewTag($Page->File, $Page->File->getViewValue(), false) ?>
</span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
        <td data-name="_ProjectID"<?= $Page->_ProjectID->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult__ProjectID" class="el_projectresult__ProjectID">
<span<?= $Page->_ProjectID->viewAttributes() ?>>
<?= $Page->_ProjectID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Created_Date->Visible) { // Created_Date ?>
        <td data-name="Created_Date"<?= $Page->Created_Date->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Created_Date" class="el_projectresult_Created_Date">
<span<?= $Page->Created_Date->viewAttributes() ?>>
<?= $Page->Created_Date->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Created_By->Visible) { // Created_By ?>
        <td data-name="Created_By"<?= $Page->Created_By->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Created_By" class="el_projectresult_Created_By">
<span<?= $Page->Created_By->viewAttributes() ?>>
<?= $Page->Created_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <td data-name="Last_Updated_Date"<?= $Page->Last_Updated_Date->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Last_Updated_Date" class="el_projectresult_Last_Updated_Date">
<span<?= $Page->Last_Updated_Date->viewAttributes() ?>>
<?= $Page->Last_Updated_Date->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <td data-name="Last_Updated_By"<?= $Page->Last_Updated_By->cellAttributes() ?>>
<span id="el<?= $Page->RowIndex == '$rowindex$' ? '$rowindex$' : $Page->RowCount ?>_projectresult_Last_Updated_By" class="el_projectresult_Last_Updated_By">
<span<?= $Page->Last_Updated_By->viewAttributes() ?>>
<?= $Page->Last_Updated_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
<?php
    }

    // Reset for template row
    if ($Page->RowIndex === '$rowindex$') {
        $Page->RowIndex = 0;
    }
    // Reset inline add/copy row
    if (($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0) {
        $Page->RowIndex = 1;
    }
}
?>
</tbody>
<?php
// Render aggregate row
$Page->RowType = RowType::AGGREGATE;
$Page->resetAttributes();
$Page->renderRow();
?>
<?php if ($Page->TotalRecords > 0 && !$Page->isGridAdd() && !$Page->isGridEdit() && !$Page->isMultiEdit()) { ?>
<tfoot><!-- Table footer -->
    <tr class="ew-table-footer">
<?php
// Render list options
$Page->renderListOptions();

// Render list options (footer, left)
$Page->ListOptions->render("footer", "left");
?>
    <?php if ($Page->Activities->Visible) { // Activities ?>
        <td data-name="Activities" class="<?= $Page->Activities->footerCellClass() ?>"><span id="elf_projectresult_Activities" class="projectresult_Activities">
        </span></td>
    <?php } ?>
    <?php if ($Page->DateDelivered->Visible) { // DateDelivered ?>
        <td data-name="DateDelivered" class="<?= $Page->DateDelivered->footerCellClass() ?>"><span id="elf_projectresult_DateDelivered" class="projectresult_DateDelivered">
        </span></td>
    <?php } ?>
    <?php if ($Page->Progress->Visible) { // Progress ?>
        <td data-name="Progress" class="<?= $Page->Progress->footerCellClass() ?>"><span id="elf_projectresult_Progress" class="projectresult_Progress">
        <span class="ew-aggregate"><?= $Language->phrase("AVERAGE") ?></span><span class="ew-aggregate-value">
        <?= $Page->Progress->ViewValue ?></span>
        </span></td>
    <?php } ?>
    <?php if ($Page->Status->Visible) { // Status ?>
        <td data-name="Status" class="<?= $Page->Status->footerCellClass() ?>"><span id="elf_projectresult_Status" class="projectresult_Status">
        </span></td>
    <?php } ?>
    <?php if ($Page->Category->Visible) { // Category ?>
        <td data-name="Category" class="<?= $Page->Category->footerCellClass() ?>"><span id="elf_projectresult_Category" class="projectresult_Category">
        </span></td>
    <?php } ?>
    <?php if ($Page->Weight->Visible) { // Weight ?>
        <td data-name="Weight" class="<?= $Page->Weight->footerCellClass() ?>"><span id="elf_projectresult_Weight" class="projectresult_Weight">
        <span class="ew-aggregate"><?= $Language->phrase("TOTAL") ?></span><span class="ew-aggregate-value">
        <?= $Page->Weight->ViewValue ?></span>
        </span></td>
    <?php } ?>
    <?php if ($Page->File->Visible) { // File ?>
        <td data-name="File" class="<?= $Page->File->footerCellClass() ?>"><span id="elf_projectresult_File" class="projectresult_File">
        </span></td>
    <?php } ?>
    <?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
        <td data-name="_ProjectID" class="<?= $Page->_ProjectID->footerCellClass() ?>"><span id="elf_projectresult__ProjectID" class="projectresult__ProjectID">
        </span></td>
    <?php } ?>
    <?php if ($Page->Created_Date->Visible) { // Created_Date ?>
        <td data-name="Created_Date" class="<?= $Page->Created_Date->footerCellClass() ?>"><span id="elf_projectresult_Created_Date" class="projectresult_Created_Date">
        </span></td>
    <?php } ?>
    <?php if ($Page->Created_By->Visible) { // Created_By ?>
        <td data-name="Created_By" class="<?= $Page->Created_By->footerCellClass() ?>"><span id="elf_projectresult_Created_By" class="projectresult_Created_By">
        </span></td>
    <?php } ?>
    <?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <td data-name="Last_Updated_Date" class="<?= $Page->Last_Updated_Date->footerCellClass() ?>"><span id="elf_projectresult_Last_Updated_Date" class="projectresult_Last_Updated_Date">
        </span></td>
    <?php } ?>
    <?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <td data-name="Last_Updated_By" class="<?= $Page->Last_Updated_By->footerCellClass() ?>"><span id="elf_projectresult_Last_Updated_By" class="projectresult_Last_Updated_By">
        </span></td>
    <?php } ?>
<?php
// Render list options (footer, right)
$Page->ListOptions->render("footer", "right");
?>
    </tr>
</tfoot>
<?php } ?>
</table><!-- /.ew-table -->
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
<?php if (!$Page->CurrentAction && !$Page->UseAjaxActions) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php
// Close result set
$Page->Recordset?->free();
?>
<?php if (!$Page->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$Page->isGridAdd() && !($Page->isGridEdit() && $Page->ModalGridEdit) && !$Page->isMultiEdit()) { ?>
<?= $Page->Pager->render() ?>
<?php } ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body", "bottom") ?>
</div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } else { ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body") ?>
</div>
<?php } ?>
</div>
<div id="ew-footer-options">
<?php $Page->FooterOptions?->render("body") ?>
</div>
</main>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php if (!$Page->isExport()) { ?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("projectresult");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
