<?php

namespace PHPMaker2023\Jack_Jill_school;

// Page object
$EventsList = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { events: 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 ?>")
        .build();
    window[form.id] = form;
    currentForm = form;
    loadjs.done(form.id);
});
</script>
<script>
ew.PREVIEW_SELECTOR = ".ew-preview-btn";
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=19.10.0", "preview");
</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->IsModal) { ?>
<form name="feventssrch" id="feventssrch" class="ew-form ew-ext-search-form" action="<?= CurrentPageUrl(false) ?>" novalidate autocomplete="on">
<div id="feventssrch_search_panel" class="mb-2 mb-sm-0 <?= $Page->SearchPanelClass ?>"><!-- .ew-search-panel -->
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { events: currentTable } });
var currentForm;
var feventssrch, currentSearchForm, currentAdvancedSearchForm;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery,
        fields = currentTable.fields;

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

        // Dynamic selection lists
        .setLists({
        })

        // Filters
        .setFilterList(<?= $Page->getFilterList() ?>)

        // Init search panel as collapsed
        .setInitSearchPanel(true)
        .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">
<!-- 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="feventssrch" 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="feventssrch" value="<?= HtmlEncode($Page->BasicSearch->getType()) ?>">
                <button class="btn btn-navbar" form="feventssrch" 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="feventssrch" data-ew-action="search-type"><?= $Language->phrase("QuickSearchAuto") ?></button>
                    <button type="button" class="dropdown-item<?= $Page->BasicSearch->getType() == "=" ? " active" : "" ?>" form="feventssrch" data-ew-action="search-type" data-search-type="="><?= $Language->phrase("QuickSearchExact") ?></button>
                    <button type="button" class="dropdown-item<?= $Page->BasicSearch->getType() == "AND" ? " active" : "" ?>" form="feventssrch" 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="feventssrch" 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();
?>
<?php if (MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE == TRUE) { ?>
<main class="list<?= ($Page->TotalRecords == 0 && !$Page->isAdd()) ? "" : "" ?>">
<?php } else { ?>
<main class="list<?= ($Page->TotalRecords == 0 && !$Page->isAdd()) ? " ew-no-record" : "" ?>">
<?php } ?>
<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 ?>">
<?php if (!$Page->isExport()) { ?>
<div class="card-header ew-grid-upper-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") ?>
</div>
</div>
<?php } ?>
<form name="<?= $Page->FormName ?>" id="<?= $Page->FormName ?>" class="ew-form ew-list-form" action="<?= $Page->PageAction ?>" method="post" novalidate autocomplete="on">
<?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="events">
<?php if ($Page->IsModal) { ?>
<input type="hidden" name="modal" value="1">
<?php } ?>
<div id="gmp_events" class="card-body ew-grid-middle-panel <?= $Page->TableContainerClass ?>" style="<?= $Page->TableContainerStyle ?>">
<?php if ($Page->TotalRecords > 0 || $Page->isGridEdit() || $Page->isMultiEdit()) { ?>
<table id="tbl_eventslist" 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->Event_ID->Visible) { // Event_ID ?>
        <th data-name="Event_ID" class="<?= $Page->Event_ID->headerCellClass() ?>"><div id="elh_events_Event_ID" class="events_Event_ID"><?= $Page->renderFieldHeader($Page->Event_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <th data-name="Event_Title" class="<?= $Page->Event_Title->headerCellClass() ?>"><div id="elh_events_Event_Title" class="events_Event_Title"><?= $Page->renderFieldHeader($Page->Event_Title) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <th data-name="Event_Color" class="<?= $Page->Event_Color->headerCellClass() ?>"><div id="elh_events_Event_Color" class="events_Event_Color"><?= $Page->renderFieldHeader($Page->Event_Color) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <th data-name="Event_Start" class="<?= $Page->Event_Start->headerCellClass() ?>"><div id="elh_events_Event_Start" class="events_Event_Start"><?= $Page->renderFieldHeader($Page->Event_Start) ?></div></th>
<?php } ?>
<?php if ($Page->Event_End->Visible) { // Event_End ?>
        <th data-name="Event_End" class="<?= $Page->Event_End->headerCellClass() ?>"><div id="elh_events_Event_End" class="events_Event_End"><?= $Page->renderFieldHeader($Page->Event_End) ?></div></th>
<?php } ?>
<?php if ($Page->Event_User->Visible) { // Event_User ?>
        <th data-name="Event_User" class="<?= $Page->Event_User->headerCellClass() ?>"><div id="elh_events_Event_User" class="events_Event_User"><?= $Page->renderFieldHeader($Page->Event_User) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <th data-name="Repeat_Type" class="<?= $Page->Repeat_Type->headerCellClass() ?>"><div id="elh_events_Repeat_Type" class="events_Repeat_Type"><?= $Page->renderFieldHeader($Page->Repeat_Type) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <th data-name="Repeat_ID" class="<?= $Page->Repeat_ID->headerCellClass() ?>"><div id="elh_events_Repeat_ID" class="events_Repeat_ID"><?= $Page->renderFieldHeader($Page->Repeat_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <th data-name="Event_AllDay" class="<?= $Page->Event_AllDay->headerCellClass() ?>"><div id="elh_events_Event_AllDay" class="events_Event_AllDay"><?= $Page->renderFieldHeader($Page->Event_AllDay) ?></div></th>
<?php } ?>
<?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <th data-name="Event_URL" class="<?= $Page->Event_URL->headerCellClass() ?>"><div id="elh_events_Event_URL" class="events_Event_URL"><?= $Page->renderFieldHeader($Page->Event_URL) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <th data-name="Event_Category" class="<?= $Page->Event_Category->headerCellClass() ?>"><div id="elh_events_Event_Category" class="events_Event_Category"><?= $Page->renderFieldHeader($Page->Event_Category) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <th data-name="Event_Timezone" class="<?= $Page->Event_Timezone->headerCellClass() ?>"><div id="elh_events_Event_Timezone" class="events_Event_Timezone"><?= $Page->renderFieldHeader($Page->Event_Timezone) ?></div></th>
<?php } ?>
<?php if ($Page->Added_By->Visible) { // Added_By ?>
        <th data-name="Added_By" class="<?= $Page->Added_By->headerCellClass() ?>"><div id="elh_events_Added_By" class="events_Added_By"><?= $Page->renderFieldHeader($Page->Added_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <th data-name="Date_Added" class="<?= $Page->Date_Added->headerCellClass() ?>"><div id="elh_events_Date_Added" class="events_Date_Added"><?= $Page->renderFieldHeader($Page->Date_Added) ?></div></th>
<?php } ?>
<?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <th data-name="Updated_By" class="<?= $Page->Updated_By->headerCellClass() ?>"><div id="elh_events_Updated_By" class="events_Updated_By"><?= $Page->renderFieldHeader($Page->Updated_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <th data-name="Date_Updated" class="<?= $Page->Date_Updated->headerCellClass() ?>"><div id="elh_events_Date_Updated" class="events_Date_Updated"><?= $Page->renderFieldHeader($Page->Date_Updated) ?></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$') {
    $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->Event_ID->Visible) { // Event_ID ?>
        <td data-name="Event_ID"<?= $Page->Event_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_ID" class="el_events_Event_ID">
<span<?= $Page->Event_ID->viewAttributes() ?>>
<?= $Page->Event_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <td data-name="Event_Title"<?= $Page->Event_Title->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Title" class="el_events_Event_Title">
<span<?= $Page->Event_Title->viewAttributes() ?>>
<?= $Page->Event_Title->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <td data-name="Event_Color"<?= $Page->Event_Color->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Color" class="el_events_Event_Color">
<span<?= $Page->Event_Color->viewAttributes() ?>>
<?= $Page->Event_Color->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <td data-name="Event_Start"<?= $Page->Event_Start->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Start" class="el_events_Event_Start">
<span<?= $Page->Event_Start->viewAttributes() ?>>
<?= $Page->Event_Start->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_End->Visible) { // Event_End ?>
        <td data-name="Event_End"<?= $Page->Event_End->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_End" class="el_events_Event_End">
<span<?= $Page->Event_End->viewAttributes() ?>>
<?= $Page->Event_End->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_User->Visible) { // Event_User ?>
        <td data-name="Event_User"<?= $Page->Event_User->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_User" class="el_events_Event_User">
<span<?= $Page->Event_User->viewAttributes() ?>>
<?= $Page->Event_User->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <td data-name="Repeat_Type"<?= $Page->Repeat_Type->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_Type" class="el_events_Repeat_Type">
<span<?= $Page->Repeat_Type->viewAttributes() ?>>
<?= $Page->Repeat_Type->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <td data-name="Repeat_ID"<?= $Page->Repeat_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_ID" class="el_events_Repeat_ID">
<span<?= $Page->Repeat_ID->viewAttributes() ?>>
<?= $Page->Repeat_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <td data-name="Event_AllDay"<?= $Page->Event_AllDay->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_AllDay" class="el_events_Event_AllDay">
<span<?= $Page->Event_AllDay->viewAttributes() ?>>
<?= $Page->Event_AllDay->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <td data-name="Event_URL"<?= $Page->Event_URL->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_URL" class="el_events_Event_URL">
<span<?= $Page->Event_URL->viewAttributes() ?>>
<?= $Page->Event_URL->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <td data-name="Event_Category"<?= $Page->Event_Category->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Category" class="el_events_Event_Category">
<span<?= $Page->Event_Category->viewAttributes() ?>>
<?= $Page->Event_Category->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <td data-name="Event_Timezone"<?= $Page->Event_Timezone->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Timezone" class="el_events_Event_Timezone">
<span<?= $Page->Event_Timezone->viewAttributes() ?>>
<?= $Page->Event_Timezone->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Added_By->Visible) { // Added_By ?>
        <td data-name="Added_By"<?= $Page->Added_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Added_By" class="el_events_Added_By">
<span<?= $Page->Added_By->viewAttributes() ?>>
<?= $Page->Added_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <td data-name="Date_Added"<?= $Page->Date_Added->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Added" class="el_events_Date_Added">
<span<?= $Page->Date_Added->viewAttributes() ?>>
<?= $Page->Date_Added->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <td data-name="Updated_By"<?= $Page->Updated_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Updated_By" class="el_events_Updated_By">
<span<?= $Page->Updated_By->viewAttributes() ?>>
<?= $Page->Updated_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <td data-name="Date_Updated"<?= $Page->Date_Updated->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Updated" class="el_events_Date_Updated">
<span<?= $Page->Date_Updated->viewAttributes() ?>>
<?= $Page->Date_Updated->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
<?php
    }
    if (
        $Page->Recordset &&
        !$Page->Recordset->EOF &&
        $Page->RowIndex !== '$rowindex$' &&
        (!$Page->isGridAdd() || $Page->CurrentMode == "copy") &&
        (!(($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0))
    ) {
        $Page->Recordset->moveNext();
    }
    // 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>
</table><!-- /.ew-table -->
<?php // Begin of Empty Table by Unique Digital Solutions Ltd, September 28, 2021 ?>
<?php } else { ?>
<?php if (MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE == TRUE) { // --- Begin of if MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE ?>
<table id="tbl_eventslist" class="<?= $Page->TableClass ?>"><!-- .ew-table -->
<thead>
    <tr class="ew-table-header">
<?php
// Header row
$Page->RowType = ROWTYPE_HEADER;

// Render list options
// $Page->renderListOptions(); // do not display for empty table, by Unique Digital Solutions Ltd, March 21, 2022

// Render list options (header, left)
$Page->ListOptions->render("header", "left");
?>
<?php if ($Page->Event_ID->Visible) { // Event_ID ?>
        <th data-name="Event_ID" class="<?= $Page->Event_ID->headerCellClass() ?>"><div id="elh_events_Event_ID" class="events_Event_ID"><?= $Page->renderFieldHeader($Page->Event_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <th data-name="Event_Title" class="<?= $Page->Event_Title->headerCellClass() ?>"><div id="elh_events_Event_Title" class="events_Event_Title"><?= $Page->renderFieldHeader($Page->Event_Title) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <th data-name="Event_Color" class="<?= $Page->Event_Color->headerCellClass() ?>"><div id="elh_events_Event_Color" class="events_Event_Color"><?= $Page->renderFieldHeader($Page->Event_Color) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <th data-name="Event_Start" class="<?= $Page->Event_Start->headerCellClass() ?>"><div id="elh_events_Event_Start" class="events_Event_Start"><?= $Page->renderFieldHeader($Page->Event_Start) ?></div></th>
<?php } ?>
<?php if ($Page->Event_End->Visible) { // Event_End ?>
        <th data-name="Event_End" class="<?= $Page->Event_End->headerCellClass() ?>"><div id="elh_events_Event_End" class="events_Event_End"><?= $Page->renderFieldHeader($Page->Event_End) ?></div></th>
<?php } ?>
<?php if ($Page->Event_User->Visible) { // Event_User ?>
        <th data-name="Event_User" class="<?= $Page->Event_User->headerCellClass() ?>"><div id="elh_events_Event_User" class="events_Event_User"><?= $Page->renderFieldHeader($Page->Event_User) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <th data-name="Repeat_Type" class="<?= $Page->Repeat_Type->headerCellClass() ?>"><div id="elh_events_Repeat_Type" class="events_Repeat_Type"><?= $Page->renderFieldHeader($Page->Repeat_Type) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <th data-name="Repeat_ID" class="<?= $Page->Repeat_ID->headerCellClass() ?>"><div id="elh_events_Repeat_ID" class="events_Repeat_ID"><?= $Page->renderFieldHeader($Page->Repeat_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <th data-name="Event_AllDay" class="<?= $Page->Event_AllDay->headerCellClass() ?>"><div id="elh_events_Event_AllDay" class="events_Event_AllDay"><?= $Page->renderFieldHeader($Page->Event_AllDay) ?></div></th>
<?php } ?>
<?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <th data-name="Event_URL" class="<?= $Page->Event_URL->headerCellClass() ?>"><div id="elh_events_Event_URL" class="events_Event_URL"><?= $Page->renderFieldHeader($Page->Event_URL) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <th data-name="Event_Category" class="<?= $Page->Event_Category->headerCellClass() ?>"><div id="elh_events_Event_Category" class="events_Event_Category"><?= $Page->renderFieldHeader($Page->Event_Category) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <th data-name="Event_Timezone" class="<?= $Page->Event_Timezone->headerCellClass() ?>"><div id="elh_events_Event_Timezone" class="events_Event_Timezone"><?= $Page->renderFieldHeader($Page->Event_Timezone) ?></div></th>
<?php } ?>
<?php if ($Page->Added_By->Visible) { // Added_By ?>
        <th data-name="Added_By" class="<?= $Page->Added_By->headerCellClass() ?>"><div id="elh_events_Added_By" class="events_Added_By"><?= $Page->renderFieldHeader($Page->Added_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <th data-name="Date_Added" class="<?= $Page->Date_Added->headerCellClass() ?>"><div id="elh_events_Date_Added" class="events_Date_Added"><?= $Page->renderFieldHeader($Page->Date_Added) ?></div></th>
<?php } ?>
<?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <th data-name="Updated_By" class="<?= $Page->Updated_By->headerCellClass() ?>"><div id="elh_events_Updated_By" class="events_Updated_By"><?= $Page->renderFieldHeader($Page->Updated_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <th data-name="Date_Updated" class="<?= $Page->Date_Updated->headerCellClass() ?>"><div id="elh_events_Date_Updated" class="events_Date_Updated"><?= $Page->renderFieldHeader($Page->Date_Updated) ?></div></th>
<?php } ?>
<?php
// Render list options (header, right)
$Page->ListOptions->render("header", "right");
?>
    </tr>
</thead>
<tbody data-page="<?= $Page->getPageNumber() ?>">
    <tr class="border-bottom-0" style="height:36px;">
<?php
// Render list options (body, left)
$Page->ListOptions->render("body", "left", $Page->RowCount);
?>
    <?php if ($Page->Event_ID->Visible) { // Event_ID ?>
        <td data-name="Event_ID"<?= $Page->Event_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_ID" class="el_events_Event_ID">
<span<?= $Page->Event_ID->viewAttributes() ?>>
<?= $Page->Event_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <td data-name="Event_Title"<?= $Page->Event_Title->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Title" class="el_events_Event_Title">
<span<?= $Page->Event_Title->viewAttributes() ?>>
<?= $Page->Event_Title->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <td data-name="Event_Color"<?= $Page->Event_Color->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Color" class="el_events_Event_Color">
<span<?= $Page->Event_Color->viewAttributes() ?>>
<?= $Page->Event_Color->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <td data-name="Event_Start"<?= $Page->Event_Start->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Start" class="el_events_Event_Start">
<span<?= $Page->Event_Start->viewAttributes() ?>>
<?= $Page->Event_Start->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_End->Visible) { // Event_End ?>
        <td data-name="Event_End"<?= $Page->Event_End->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_End" class="el_events_Event_End">
<span<?= $Page->Event_End->viewAttributes() ?>>
<?= $Page->Event_End->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_User->Visible) { // Event_User ?>
        <td data-name="Event_User"<?= $Page->Event_User->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_User" class="el_events_Event_User">
<span<?= $Page->Event_User->viewAttributes() ?>>
<?= $Page->Event_User->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <td data-name="Repeat_Type"<?= $Page->Repeat_Type->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_Type" class="el_events_Repeat_Type">
<span<?= $Page->Repeat_Type->viewAttributes() ?>>
<?= $Page->Repeat_Type->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <td data-name="Repeat_ID"<?= $Page->Repeat_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_ID" class="el_events_Repeat_ID">
<span<?= $Page->Repeat_ID->viewAttributes() ?>>
<?= $Page->Repeat_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <td data-name="Event_AllDay"<?= $Page->Event_AllDay->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_AllDay" class="el_events_Event_AllDay">
<span<?= $Page->Event_AllDay->viewAttributes() ?>>
<?= $Page->Event_AllDay->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <td data-name="Event_URL"<?= $Page->Event_URL->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_URL" class="el_events_Event_URL">
<span<?= $Page->Event_URL->viewAttributes() ?>>
<?= $Page->Event_URL->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <td data-name="Event_Category"<?= $Page->Event_Category->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Category" class="el_events_Event_Category">
<span<?= $Page->Event_Category->viewAttributes() ?>>
<?= $Page->Event_Category->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <td data-name="Event_Timezone"<?= $Page->Event_Timezone->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Timezone" class="el_events_Event_Timezone">
<span<?= $Page->Event_Timezone->viewAttributes() ?>>
<?= $Page->Event_Timezone->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Added_By->Visible) { // Added_By ?>
        <td data-name="Added_By"<?= $Page->Added_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Added_By" class="el_events_Added_By">
<span<?= $Page->Added_By->viewAttributes() ?>>
<?= $Page->Added_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <td data-name="Date_Added"<?= $Page->Date_Added->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Added" class="el_events_Date_Added">
<span<?= $Page->Date_Added->viewAttributes() ?>>
<?= $Page->Date_Added->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <td data-name="Updated_By"<?= $Page->Updated_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Updated_By" class="el_events_Updated_By">
<span<?= $Page->Updated_By->viewAttributes() ?>>
<?= $Page->Updated_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <td data-name="Date_Updated"<?= $Page->Date_Updated->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Updated" class="el_events_Date_Updated">
<span<?= $Page->Date_Updated->viewAttributes() ?>>
<?= $Page->Date_Updated->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
</tbody>
</table><!-- /.ew-table -->
<?php } // --- End of if MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE ?>
<?php // End of Empty Table by Unique Digital Solutions Ltd, September 28, 2021 ?>
<?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 recordset
if ($Page->Recordset) {
    $Page->Recordset->close();
}
?>
<?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 } ?>
<?php if ($Page->TotalRecords == 0 && !$Page->CurrentAction) { // Show other options ?>
<?php // Begin of Empty Table by Unique Digital Solutions Ltd, September 30, 2020 ?>
<?php if (MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE == TRUE) { ?>
<div class="card ew-card ew-grid<?= $Page->isAddOrEdit() ? " ew-grid-add-edit" : "" ?> <?= $Page->TableGridClass ?>">
<?php if (!$Page->isExport()) { ?>
<div class="card-header ew-grid-upper-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") ?>
</div>
</div>
<?php } ?>
<form name="<?= $Page->FormName ?>" id="<?= $Page->FormName ?>" class="ew-form ew-list-form" action="<?= $Page->PageAction ?>" method="post" novalidate autocomplete="on">
<?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="events">
<?php if ($Page->IsModal) { ?>
<input type="hidden" name="modal" value="1">
<?php } ?>
<div id="gmp_events" class="card-body ew-grid-middle-panel <?= $Page->TableContainerClass ?>" style="<?= $Page->TableContainerStyle ?>">
<?php if ($Page->TotalRecords > 0 || $Page->isGridEdit() || $Page->isMultiEdit()) { ?>
<table id="tbl_eventslist" 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->Event_ID->Visible) { // Event_ID ?>
        <th data-name="Event_ID" class="<?= $Page->Event_ID->headerCellClass() ?>"><div id="elh_events_Event_ID" class="events_Event_ID"><?= $Page->renderFieldHeader($Page->Event_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <th data-name="Event_Title" class="<?= $Page->Event_Title->headerCellClass() ?>"><div id="elh_events_Event_Title" class="events_Event_Title"><?= $Page->renderFieldHeader($Page->Event_Title) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <th data-name="Event_Color" class="<?= $Page->Event_Color->headerCellClass() ?>"><div id="elh_events_Event_Color" class="events_Event_Color"><?= $Page->renderFieldHeader($Page->Event_Color) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <th data-name="Event_Start" class="<?= $Page->Event_Start->headerCellClass() ?>"><div id="elh_events_Event_Start" class="events_Event_Start"><?= $Page->renderFieldHeader($Page->Event_Start) ?></div></th>
<?php } ?>
<?php if ($Page->Event_End->Visible) { // Event_End ?>
        <th data-name="Event_End" class="<?= $Page->Event_End->headerCellClass() ?>"><div id="elh_events_Event_End" class="events_Event_End"><?= $Page->renderFieldHeader($Page->Event_End) ?></div></th>
<?php } ?>
<?php if ($Page->Event_User->Visible) { // Event_User ?>
        <th data-name="Event_User" class="<?= $Page->Event_User->headerCellClass() ?>"><div id="elh_events_Event_User" class="events_Event_User"><?= $Page->renderFieldHeader($Page->Event_User) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <th data-name="Repeat_Type" class="<?= $Page->Repeat_Type->headerCellClass() ?>"><div id="elh_events_Repeat_Type" class="events_Repeat_Type"><?= $Page->renderFieldHeader($Page->Repeat_Type) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <th data-name="Repeat_ID" class="<?= $Page->Repeat_ID->headerCellClass() ?>"><div id="elh_events_Repeat_ID" class="events_Repeat_ID"><?= $Page->renderFieldHeader($Page->Repeat_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <th data-name="Event_AllDay" class="<?= $Page->Event_AllDay->headerCellClass() ?>"><div id="elh_events_Event_AllDay" class="events_Event_AllDay"><?= $Page->renderFieldHeader($Page->Event_AllDay) ?></div></th>
<?php } ?>
<?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <th data-name="Event_URL" class="<?= $Page->Event_URL->headerCellClass() ?>"><div id="elh_events_Event_URL" class="events_Event_URL"><?= $Page->renderFieldHeader($Page->Event_URL) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <th data-name="Event_Category" class="<?= $Page->Event_Category->headerCellClass() ?>"><div id="elh_events_Event_Category" class="events_Event_Category"><?= $Page->renderFieldHeader($Page->Event_Category) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <th data-name="Event_Timezone" class="<?= $Page->Event_Timezone->headerCellClass() ?>"><div id="elh_events_Event_Timezone" class="events_Event_Timezone"><?= $Page->renderFieldHeader($Page->Event_Timezone) ?></div></th>
<?php } ?>
<?php if ($Page->Added_By->Visible) { // Added_By ?>
        <th data-name="Added_By" class="<?= $Page->Added_By->headerCellClass() ?>"><div id="elh_events_Added_By" class="events_Added_By"><?= $Page->renderFieldHeader($Page->Added_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <th data-name="Date_Added" class="<?= $Page->Date_Added->headerCellClass() ?>"><div id="elh_events_Date_Added" class="events_Date_Added"><?= $Page->renderFieldHeader($Page->Date_Added) ?></div></th>
<?php } ?>
<?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <th data-name="Updated_By" class="<?= $Page->Updated_By->headerCellClass() ?>"><div id="elh_events_Updated_By" class="events_Updated_By"><?= $Page->renderFieldHeader($Page->Updated_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <th data-name="Date_Updated" class="<?= $Page->Date_Updated->headerCellClass() ?>"><div id="elh_events_Date_Updated" class="events_Date_Updated"><?= $Page->renderFieldHeader($Page->Date_Updated) ?></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$') {
    $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->Event_ID->Visible) { // Event_ID ?>
        <td data-name="Event_ID"<?= $Page->Event_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_ID" class="el_events_Event_ID">
<span<?= $Page->Event_ID->viewAttributes() ?>>
<?= $Page->Event_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <td data-name="Event_Title"<?= $Page->Event_Title->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Title" class="el_events_Event_Title">
<span<?= $Page->Event_Title->viewAttributes() ?>>
<?= $Page->Event_Title->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <td data-name="Event_Color"<?= $Page->Event_Color->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Color" class="el_events_Event_Color">
<span<?= $Page->Event_Color->viewAttributes() ?>>
<?= $Page->Event_Color->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <td data-name="Event_Start"<?= $Page->Event_Start->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Start" class="el_events_Event_Start">
<span<?= $Page->Event_Start->viewAttributes() ?>>
<?= $Page->Event_Start->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_End->Visible) { // Event_End ?>
        <td data-name="Event_End"<?= $Page->Event_End->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_End" class="el_events_Event_End">
<span<?= $Page->Event_End->viewAttributes() ?>>
<?= $Page->Event_End->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_User->Visible) { // Event_User ?>
        <td data-name="Event_User"<?= $Page->Event_User->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_User" class="el_events_Event_User">
<span<?= $Page->Event_User->viewAttributes() ?>>
<?= $Page->Event_User->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <td data-name="Repeat_Type"<?= $Page->Repeat_Type->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_Type" class="el_events_Repeat_Type">
<span<?= $Page->Repeat_Type->viewAttributes() ?>>
<?= $Page->Repeat_Type->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <td data-name="Repeat_ID"<?= $Page->Repeat_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_ID" class="el_events_Repeat_ID">
<span<?= $Page->Repeat_ID->viewAttributes() ?>>
<?= $Page->Repeat_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <td data-name="Event_AllDay"<?= $Page->Event_AllDay->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_AllDay" class="el_events_Event_AllDay">
<span<?= $Page->Event_AllDay->viewAttributes() ?>>
<?= $Page->Event_AllDay->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <td data-name="Event_URL"<?= $Page->Event_URL->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_URL" class="el_events_Event_URL">
<span<?= $Page->Event_URL->viewAttributes() ?>>
<?= $Page->Event_URL->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <td data-name="Event_Category"<?= $Page->Event_Category->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Category" class="el_events_Event_Category">
<span<?= $Page->Event_Category->viewAttributes() ?>>
<?= $Page->Event_Category->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <td data-name="Event_Timezone"<?= $Page->Event_Timezone->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Timezone" class="el_events_Event_Timezone">
<span<?= $Page->Event_Timezone->viewAttributes() ?>>
<?= $Page->Event_Timezone->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Added_By->Visible) { // Added_By ?>
        <td data-name="Added_By"<?= $Page->Added_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Added_By" class="el_events_Added_By">
<span<?= $Page->Added_By->viewAttributes() ?>>
<?= $Page->Added_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <td data-name="Date_Added"<?= $Page->Date_Added->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Added" class="el_events_Date_Added">
<span<?= $Page->Date_Added->viewAttributes() ?>>
<?= $Page->Date_Added->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <td data-name="Updated_By"<?= $Page->Updated_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Updated_By" class="el_events_Updated_By">
<span<?= $Page->Updated_By->viewAttributes() ?>>
<?= $Page->Updated_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <td data-name="Date_Updated"<?= $Page->Date_Updated->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Updated" class="el_events_Date_Updated">
<span<?= $Page->Date_Updated->viewAttributes() ?>>
<?= $Page->Date_Updated->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
<?php
    }
    if (
        $Page->Recordset &&
        !$Page->Recordset->EOF &&
        $Page->RowIndex !== '$rowindex$' &&
        (!$Page->isGridAdd() || $Page->CurrentMode == "copy") &&
        (!(($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0))
    ) {
        $Page->Recordset->moveNext();
    }
    // 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>
</table><!-- /.ew-table -->
<?php // Begin of Empty Table by Unique Digital Solutions Ltd, September 28, 2021 ?>
<?php } else { ?>
<?php if (MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE == TRUE) { // --- Begin of if MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE ?>
<table id="tbl_eventslist" class="<?= $Page->TableClass ?>"><!-- .ew-table -->
<thead>
    <tr class="ew-table-header">
<?php
// Header row
$Page->RowType = ROWTYPE_HEADER;

// Render list options
// $Page->renderListOptions(); // do not display for empty table, by Unique Digital Solutions Ltd, March 21, 2022

// Render list options (header, left)
$Page->ListOptions->render("header", "left");
?>
<?php if ($Page->Event_ID->Visible) { // Event_ID ?>
        <th data-name="Event_ID" class="<?= $Page->Event_ID->headerCellClass() ?>"><div id="elh_events_Event_ID" class="events_Event_ID"><?= $Page->renderFieldHeader($Page->Event_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <th data-name="Event_Title" class="<?= $Page->Event_Title->headerCellClass() ?>"><div id="elh_events_Event_Title" class="events_Event_Title"><?= $Page->renderFieldHeader($Page->Event_Title) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <th data-name="Event_Color" class="<?= $Page->Event_Color->headerCellClass() ?>"><div id="elh_events_Event_Color" class="events_Event_Color"><?= $Page->renderFieldHeader($Page->Event_Color) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <th data-name="Event_Start" class="<?= $Page->Event_Start->headerCellClass() ?>"><div id="elh_events_Event_Start" class="events_Event_Start"><?= $Page->renderFieldHeader($Page->Event_Start) ?></div></th>
<?php } ?>
<?php if ($Page->Event_End->Visible) { // Event_End ?>
        <th data-name="Event_End" class="<?= $Page->Event_End->headerCellClass() ?>"><div id="elh_events_Event_End" class="events_Event_End"><?= $Page->renderFieldHeader($Page->Event_End) ?></div></th>
<?php } ?>
<?php if ($Page->Event_User->Visible) { // Event_User ?>
        <th data-name="Event_User" class="<?= $Page->Event_User->headerCellClass() ?>"><div id="elh_events_Event_User" class="events_Event_User"><?= $Page->renderFieldHeader($Page->Event_User) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <th data-name="Repeat_Type" class="<?= $Page->Repeat_Type->headerCellClass() ?>"><div id="elh_events_Repeat_Type" class="events_Repeat_Type"><?= $Page->renderFieldHeader($Page->Repeat_Type) ?></div></th>
<?php } ?>
<?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <th data-name="Repeat_ID" class="<?= $Page->Repeat_ID->headerCellClass() ?>"><div id="elh_events_Repeat_ID" class="events_Repeat_ID"><?= $Page->renderFieldHeader($Page->Repeat_ID) ?></div></th>
<?php } ?>
<?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <th data-name="Event_AllDay" class="<?= $Page->Event_AllDay->headerCellClass() ?>"><div id="elh_events_Event_AllDay" class="events_Event_AllDay"><?= $Page->renderFieldHeader($Page->Event_AllDay) ?></div></th>
<?php } ?>
<?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <th data-name="Event_URL" class="<?= $Page->Event_URL->headerCellClass() ?>"><div id="elh_events_Event_URL" class="events_Event_URL"><?= $Page->renderFieldHeader($Page->Event_URL) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <th data-name="Event_Category" class="<?= $Page->Event_Category->headerCellClass() ?>"><div id="elh_events_Event_Category" class="events_Event_Category"><?= $Page->renderFieldHeader($Page->Event_Category) ?></div></th>
<?php } ?>
<?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <th data-name="Event_Timezone" class="<?= $Page->Event_Timezone->headerCellClass() ?>"><div id="elh_events_Event_Timezone" class="events_Event_Timezone"><?= $Page->renderFieldHeader($Page->Event_Timezone) ?></div></th>
<?php } ?>
<?php if ($Page->Added_By->Visible) { // Added_By ?>
        <th data-name="Added_By" class="<?= $Page->Added_By->headerCellClass() ?>"><div id="elh_events_Added_By" class="events_Added_By"><?= $Page->renderFieldHeader($Page->Added_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <th data-name="Date_Added" class="<?= $Page->Date_Added->headerCellClass() ?>"><div id="elh_events_Date_Added" class="events_Date_Added"><?= $Page->renderFieldHeader($Page->Date_Added) ?></div></th>
<?php } ?>
<?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <th data-name="Updated_By" class="<?= $Page->Updated_By->headerCellClass() ?>"><div id="elh_events_Updated_By" class="events_Updated_By"><?= $Page->renderFieldHeader($Page->Updated_By) ?></div></th>
<?php } ?>
<?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <th data-name="Date_Updated" class="<?= $Page->Date_Updated->headerCellClass() ?>"><div id="elh_events_Date_Updated" class="events_Date_Updated"><?= $Page->renderFieldHeader($Page->Date_Updated) ?></div></th>
<?php } ?>
<?php
// Render list options (header, right)
$Page->ListOptions->render("header", "right");
?>
    </tr>
</thead>
<tbody data-page="<?= $Page->getPageNumber() ?>">
    <tr class="border-bottom-0" style="height:36px;">
<?php
// Render list options (body, left)
$Page->ListOptions->render("body", "left", $Page->RowCount);
?>
    <?php if ($Page->Event_ID->Visible) { // Event_ID ?>
        <td data-name="Event_ID"<?= $Page->Event_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_ID" class="el_events_Event_ID">
<span<?= $Page->Event_ID->viewAttributes() ?>>
<?= $Page->Event_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Title->Visible) { // Event_Title ?>
        <td data-name="Event_Title"<?= $Page->Event_Title->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Title" class="el_events_Event_Title">
<span<?= $Page->Event_Title->viewAttributes() ?>>
<?= $Page->Event_Title->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Color->Visible) { // Event_Color ?>
        <td data-name="Event_Color"<?= $Page->Event_Color->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Color" class="el_events_Event_Color">
<span<?= $Page->Event_Color->viewAttributes() ?>>
<?= $Page->Event_Color->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Start->Visible) { // Event_Start ?>
        <td data-name="Event_Start"<?= $Page->Event_Start->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Start" class="el_events_Event_Start">
<span<?= $Page->Event_Start->viewAttributes() ?>>
<?= $Page->Event_Start->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_End->Visible) { // Event_End ?>
        <td data-name="Event_End"<?= $Page->Event_End->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_End" class="el_events_Event_End">
<span<?= $Page->Event_End->viewAttributes() ?>>
<?= $Page->Event_End->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_User->Visible) { // Event_User ?>
        <td data-name="Event_User"<?= $Page->Event_User->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_User" class="el_events_Event_User">
<span<?= $Page->Event_User->viewAttributes() ?>>
<?= $Page->Event_User->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_Type->Visible) { // Repeat_Type ?>
        <td data-name="Repeat_Type"<?= $Page->Repeat_Type->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_Type" class="el_events_Repeat_Type">
<span<?= $Page->Repeat_Type->viewAttributes() ?>>
<?= $Page->Repeat_Type->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Repeat_ID->Visible) { // Repeat_ID ?>
        <td data-name="Repeat_ID"<?= $Page->Repeat_ID->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Repeat_ID" class="el_events_Repeat_ID">
<span<?= $Page->Repeat_ID->viewAttributes() ?>>
<?= $Page->Repeat_ID->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_AllDay->Visible) { // Event_AllDay ?>
        <td data-name="Event_AllDay"<?= $Page->Event_AllDay->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_AllDay" class="el_events_Event_AllDay">
<span<?= $Page->Event_AllDay->viewAttributes() ?>>
<?= $Page->Event_AllDay->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_URL->Visible) { // Event_URL ?>
        <td data-name="Event_URL"<?= $Page->Event_URL->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_URL" class="el_events_Event_URL">
<span<?= $Page->Event_URL->viewAttributes() ?>>
<?= $Page->Event_URL->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Category->Visible) { // Event_Category ?>
        <td data-name="Event_Category"<?= $Page->Event_Category->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Category" class="el_events_Event_Category">
<span<?= $Page->Event_Category->viewAttributes() ?>>
<?= $Page->Event_Category->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Event_Timezone->Visible) { // Event_Timezone ?>
        <td data-name="Event_Timezone"<?= $Page->Event_Timezone->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Event_Timezone" class="el_events_Event_Timezone">
<span<?= $Page->Event_Timezone->viewAttributes() ?>>
<?= $Page->Event_Timezone->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Added_By->Visible) { // Added_By ?>
        <td data-name="Added_By"<?= $Page->Added_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Added_By" class="el_events_Added_By">
<span<?= $Page->Added_By->viewAttributes() ?>>
<?= $Page->Added_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Added->Visible) { // Date_Added ?>
        <td data-name="Date_Added"<?= $Page->Date_Added->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Added" class="el_events_Date_Added">
<span<?= $Page->Date_Added->viewAttributes() ?>>
<?= $Page->Date_Added->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Updated_By->Visible) { // Updated_By ?>
        <td data-name="Updated_By"<?= $Page->Updated_By->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Updated_By" class="el_events_Updated_By">
<span<?= $Page->Updated_By->viewAttributes() ?>>
<?= $Page->Updated_By->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
    <?php if ($Page->Date_Updated->Visible) { // Date_Updated ?>
        <td data-name="Date_Updated"<?= $Page->Date_Updated->cellAttributes() ?>>
<span id="el<?= $Page->RowCount ?>_events_Date_Updated" class="el_events_Date_Updated">
<span<?= $Page->Date_Updated->viewAttributes() ?>>
<?= $Page->Date_Updated->getViewValue() ?></span>
</span>
</td>
    <?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
</tbody>
</table><!-- /.ew-table -->
<?php } // --- End of if MS_SHOW_EMPTY_TABLE_ON_LIST_PAGE ?>
<?php // End of Empty Table by Unique Digital Solutions Ltd, September 28, 2021 ?>
<?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 recordset
if ($Page->Recordset) {
    $Page->Recordset->close();
}
?>
<?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>
<div class="clearfix"></div>
<?php } // end of Empty Table by Unique Digital Solutions Ltd, September 30, 2020 ?>
<?php } ?>
</div>
</main>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php if (!$Page->isExport()) { ?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("events");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php if (!$events->isExport()) { ?>
<script>
loadjs.ready("jqueryjs", function() {
	var expires = new Date(new Date().getTime() + 525600 * 60 * 1000); // expire in 525600 
	var SearchToggle = $('.ew-search-toggle'); 
	SearchToggle.on('click', function(event) { 
		event.preventDefault(); 
		if (SearchToggle.hasClass('active')) { 
			Cookies.set("events_searchpanel", "notactive", { path: '', expires: expires }); 
		} else { 
			Cookies.set("events_searchpanel", "active", { path: '', expires: expires }); 
		} 
	});
});
</script>
<?php } ?>
<?php if (!$Page->isExport()) { ?>
<script>
loadjs.ready("head", function() {
	$(".ew-grid").css("width", "100%");
	$(".sidebar, .main-sidebar, .main-header, .header-navbar, .main-menu").on("mouseenter", function(event) {
		$(".ew-grid").css("width", "100%");
	});
	$(".sidebar, .main-sidebar, .main-header, .header-navbar, .main-menu").on("mouseover", function(event) {
		$(".ew-grid").css("width", "100%");
	});
	var cssTransitionEnd = 'webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend';
	$('.main-header').on(cssTransitionEnd, function(event) {
		$(".ew-grid").css("width", "100%");
	});
	$(document).on('resize', function() {
		if ($('.ew-grid').length > 0) {
			$(".ew-grid").css("width", "100%");
		}
	});
	$(".nav-item.d-block").on("click", function(event) {
		$(".ew-grid").css("width", "100%");
	});
});
</script>
<?php } ?>
<?php if (!$Page->IsModal && !$Page->isExport()) { ?>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('#btn-action').on('click',function(){if(feventsadd.validateFields()){ew.prompt({title: ew.language.phrase("MessageAddConfirm"),icon:'question',showCancelButton:true},result=>{if(result)$("#feventsadd").submit();});return false;} else { ew.prompt({title: ew.language.phrase("MessageInvalidForm"), icon: 'warning', showCancelButton:false}); }});});
</script>
<?php } ?>
<?php if (!$Page->IsModal && !$Page->isExport()) { ?>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('#btn-action').on('click',function(){if(feventsedit.validateFields()){ew.prompt({title: ew.language.phrase("MessageEditConfirm"),icon:'question',showCancelButton:true},result=>{if(result)$("#feventsedit").submit();});return false;} else { ew.prompt({title: ew.language.phrase("MessageInvalidForm"), icon: 'warning', showCancelButton:false}); }});});
</script>
<?php } ?>
<?php if (!$Page->IsModal && !$Page->isExport()) { ?>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('#btn-action').on('click',function(){if(feventsupdate.validateFields()){ew.prompt({title: ew.language.phrase("MessageEditConfirm"),icon:'question',showCancelButton:true},result=>{if(result) $("#feventsupdate").submit();});return false;} else { ew.prompt({title: ew.language.phrase("MessageInvalidForm"), icon: 'warning', showCancelButton:false}); }});});
</script>
<?php } ?>
<?php if (!$Page->IsModal && !$Page->isExport()) { ?>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('#btn-action').on('click',function(){if(feventsdelete.validateFields()){ew.prompt({title: ew.language.phrase("MessageDeleteConfirm"),icon:'question',showCancelButton:true},result=>{if(result) $("#feventsdelete").submit();});return false;} else { ew.prompt({title: ew.language.phrase("MessageInvalidForm"), icon: 'warning', showCancelButton:false}); }});});
</script>
<?php } ?>
<?php if (!$Page->IsModal && !$Page->isExport() && CurrentPageID()=="list") { ?>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('.ew-grid-save, .ew-grid-insert').on('click',function(){ew.prompt({title: ew.language.phrase("MessageSaveGridConfirm"),icon:'question',showCancelButton:true},result=>{if(result) $("#feventslist").submit();});return false;});});
</script>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('.ew-inline-update').on('click',function(){ew.prompt({title: ew.language.phrase("MessageSaveGridConfirm"),icon:'question',showCancelButton:true},result=>{if(result) $("#feventslist").submit();});return false;});});
</script>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){$('.ew-inline-insert').on('click',function(){ew.prompt({title: ew.language.phrase("MessageSaveGridConfirm"),icon:'question',showCancelButton:true},result=>{if(result) $("#feventslist").submit();});return false;});});
</script>
<script>
loadjs.ready(["wrapper", "head", "swal"],function(){var gridchange=false;$('[data-table="events"]').change(function(){	gridchange=true;});$('.ew-grid-cancel,.ew-inline-cancel').click(function(){if (gridchange==true){ew.prompt({title: ew.language.phrase("ConfirmCancel"),icon:'question',showCancelButton:true},result=>{if(result) window.location = "<?php echo str_replace('_', '', 'eventslist'); ?>";});return false;}});});
</script>
<?php } ?>
<?php } ?>
