<?php

namespace PHPMaker2024\laundrytech;

// Page object
$OrderstagesView = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $Page->ExportOptions->render("body") ?>
<?php $Page->OtherOptions->render("body") ?>
</div>
<?php } ?>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<main class="view">
<form name="forderstagesview" id="forderstagesview" class="ew-form ew-view-form overlay-wrapper" action="<?= CurrentPageUrl(false) ?>" method="post" novalidate autocomplete="off">
<?php if (!$Page->isExport()) { ?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { orderstages: currentTable } });
var currentPageID = ew.PAGE_ID = "view";
var currentForm;
var forderstagesview;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("forderstagesview")
        .setPageId("view")
        .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 } ?>
<?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="orderstages">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="<?= $Page->TableClass ?>">
<?php if ($Page->orderstageid->Visible) { // orderstageid ?>
    <tr id="r_orderstageid"<?= $Page->orderstageid->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages_orderstageid"><?= $Page->orderstageid->caption() ?></span></td>
        <td data-name="orderstageid"<?= $Page->orderstageid->cellAttributes() ?>>
<span id="el_orderstages_orderstageid">
<span<?= $Page->orderstageid->viewAttributes() ?>>
<?= $Page->orderstageid->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->orderid->Visible) { // orderid ?>
    <tr id="r_orderid"<?= $Page->orderid->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages_orderid"><?= $Page->orderid->caption() ?></span></td>
        <td data-name="orderid"<?= $Page->orderid->cellAttributes() ?>>
<span id="el_orderstages_orderid">
<span<?= $Page->orderid->viewAttributes() ?>>
<?= $Page->orderid->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->stageid->Visible) { // stageid ?>
    <tr id="r_stageid"<?= $Page->stageid->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages_stageid"><?= $Page->stageid->caption() ?></span></td>
        <td data-name="stageid"<?= $Page->stageid->cellAttributes() ?>>
<span id="el_orderstages_stageid">
<span<?= $Page->stageid->viewAttributes() ?>>
<?= $Page->stageid->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->_userid->Visible) { // userid ?>
    <tr id="r__userid"<?= $Page->_userid->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages__userid"><?= $Page->_userid->caption() ?></span></td>
        <td data-name="_userid"<?= $Page->_userid->cellAttributes() ?>>
<span id="el_orderstages__userid">
<span<?= $Page->_userid->viewAttributes() ?>>
<?= $Page->_userid->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->orderdatetime->Visible) { // orderdatetime ?>
    <tr id="r_orderdatetime"<?= $Page->orderdatetime->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages_orderdatetime"><?= $Page->orderdatetime->caption() ?></span></td>
        <td data-name="orderdatetime"<?= $Page->orderdatetime->cellAttributes() ?>>
<span id="el_orderstages_orderdatetime">
<span<?= $Page->orderdatetime->viewAttributes() ?>>
<?= $Page->orderdatetime->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->processedBy->Visible) { // processedBy ?>
    <tr id="r_processedBy"<?= $Page->processedBy->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages_processedBy"><?= $Page->processedBy->caption() ?></span></td>
        <td data-name="processedBy"<?= $Page->processedBy->cellAttributes() ?>>
<span id="el_orderstages_processedBy">
<span<?= $Page->processedBy->viewAttributes() ?>>
<?= $Page->processedBy->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->stationId->Visible) { // stationId ?>
    <tr id="r_stationId"<?= $Page->stationId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderstages_stationId"><?= $Page->stationId->caption() ?></span></td>
        <td data-name="stationId"<?= $Page->stationId->cellAttributes() ?>>
<span id="el_orderstages_stationId">
<span<?= $Page->stationId->viewAttributes() ?>>
<?= $Page->stationId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
</table>
</form>
</main>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php if (!$Page->isExport()) { ?>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
