<?php

namespace PHPMaker2024\laundrytech;

// Page object
$LaundrytechUsersDelete = &$Page;
?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { laundrytech_users: currentTable } });
var currentPageID = ew.PAGE_ID = "delete";
var currentForm;
var flaundrytech_usersdelete;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("flaundrytech_usersdelete")
        .setPageId("delete")
        .build();
    window[form.id] = form;
    currentForm = form;
    loadjs.done(form.id);
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="flaundrytech_usersdelete" id="flaundrytech_usersdelete" class="ew-form ew-delete-form" action="<?= CurrentPageUrl(false) ?>" method="post" novalidate 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="laundrytech_users">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($Page->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?= HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid <?= $Page->TableGridClass ?>">
<div class="card-body ew-grid-middle-panel <?= $Page->TableContainerClass ?>" style="<?= $Page->TableContainerStyle ?>">
<table class="<?= $Page->TableClass ?>">
    <thead>
    <tr class="ew-table-header">
<?php if ($Page->ID->Visible) { // ID ?>
        <th class="<?= $Page->ID->headerCellClass() ?>"><span id="elh_laundrytech_users_ID" class="laundrytech_users_ID"><?= $Page->ID->caption() ?></span></th>
<?php } ?>
<?php if ($Page->_username->Visible) { // username ?>
        <th class="<?= $Page->_username->headerCellClass() ?>"><span id="elh_laundrytech_users__username" class="laundrytech_users__username"><?= $Page->_username->caption() ?></span></th>
<?php } ?>
<?php if ($Page->_password->Visible) { // password ?>
        <th class="<?= $Page->_password->headerCellClass() ?>"><span id="elh_laundrytech_users__password" class="laundrytech_users__password"><?= $Page->_password->caption() ?></span></th>
<?php } ?>
<?php if ($Page->_email->Visible) { // email ?>
        <th class="<?= $Page->_email->headerCellClass() ?>"><span id="elh_laundrytech_users__email" class="laundrytech_users__email"><?= $Page->_email->caption() ?></span></th>
<?php } ?>
<?php if ($Page->fullname->Visible) { // fullname ?>
        <th class="<?= $Page->fullname->headerCellClass() ?>"><span id="elh_laundrytech_users_fullname" class="laundrytech_users_fullname"><?= $Page->fullname->caption() ?></span></th>
<?php } ?>
<?php if ($Page->groupid->Visible) { // groupid ?>
        <th class="<?= $Page->groupid->headerCellClass() ?>"><span id="elh_laundrytech_users_groupid" class="laundrytech_users_groupid"><?= $Page->groupid->caption() ?></span></th>
<?php } ?>
<?php if ($Page->active->Visible) { // active ?>
        <th class="<?= $Page->active->headerCellClass() ?>"><span id="elh_laundrytech_users_active" class="laundrytech_users_active"><?= $Page->active->caption() ?></span></th>
<?php } ?>
<?php if ($Page->ext_security_id->Visible) { // ext_security_id ?>
        <th class="<?= $Page->ext_security_id->headerCellClass() ?>"><span id="elh_laundrytech_users_ext_security_id" class="laundrytech_users_ext_security_id"><?= $Page->ext_security_id->caption() ?></span></th>
<?php } ?>
<?php if ($Page->apikey->Visible) { // apikey ?>
        <th class="<?= $Page->apikey->headerCellClass() ?>"><span id="elh_laundrytech_users_apikey" class="laundrytech_users_apikey"><?= $Page->apikey->caption() ?></span></th>
<?php } ?>
    </tr>
    </thead>
    <tbody>
<?php
$Page->RecordCount = 0;
$i = 0;
while ($Page->fetch()) {
    $Page->RecordCount++;
    $Page->RowCount++;

    // Set row properties
    $Page->resetAttributes();
    $Page->RowType = RowType::VIEW; // View

    // Get the field contents
    $Page->loadRowValues($Page->CurrentRow);

    // Render row
    $Page->renderRow();
?>
    <tr <?= $Page->rowAttributes() ?>>
<?php if ($Page->ID->Visible) { // ID ?>
        <td<?= $Page->ID->cellAttributes() ?>>
<span id="">
<span<?= $Page->ID->viewAttributes() ?>>
<?= $Page->ID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->_username->Visible) { // username ?>
        <td<?= $Page->_username->cellAttributes() ?>>
<span id="">
<span<?= $Page->_username->viewAttributes() ?>>
<?= $Page->_username->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->_password->Visible) { // password ?>
        <td<?= $Page->_password->cellAttributes() ?>>
<span id="">
<span<?= $Page->_password->viewAttributes() ?>>
<?= $Page->_password->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->_email->Visible) { // email ?>
        <td<?= $Page->_email->cellAttributes() ?>>
<span id="">
<span<?= $Page->_email->viewAttributes() ?>>
<?= $Page->_email->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->fullname->Visible) { // fullname ?>
        <td<?= $Page->fullname->cellAttributes() ?>>
<span id="">
<span<?= $Page->fullname->viewAttributes() ?>>
<?= $Page->fullname->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->groupid->Visible) { // groupid ?>
        <td<?= $Page->groupid->cellAttributes() ?>>
<span id="">
<span<?= $Page->groupid->viewAttributes() ?>>
<?= $Page->groupid->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->active->Visible) { // active ?>
        <td<?= $Page->active->cellAttributes() ?>>
<span id="">
<span<?= $Page->active->viewAttributes() ?>>
<?= $Page->active->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->ext_security_id->Visible) { // ext_security_id ?>
        <td<?= $Page->ext_security_id->cellAttributes() ?>>
<span id="">
<span<?= $Page->ext_security_id->viewAttributes() ?>>
<?= $Page->ext_security_id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($Page->apikey->Visible) { // apikey ?>
        <td<?= $Page->apikey->cellAttributes() ?>>
<span id="">
<span<?= $Page->apikey->viewAttributes() ?>>
<?= $Page->apikey->getViewValue() ?></span>
</span>
</td>
<?php } ?>
    </tr>
<?php
}
$Page->Recordset?->free();
?>
</tbody>
</table>
</div>
</div>
<div class="ew-buttons ew-desktop-buttons">
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?= $Language->phrase("DeleteBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?= HtmlEncode(GetUrl($Page->getReturnUrl())) ?>"><?= $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
