<?php

namespace PHPMaker2024\laundrytech;

// Page object
$OrderarticlesView = &$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="forderarticlesview" id="forderarticlesview" 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: { orderarticles: currentTable } });
var currentPageID = ew.PAGE_ID = "view";
var currentForm;
var forderarticlesview;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("forderarticlesview")
        .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="orderarticles">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="<?= $Page->TableClass ?>">
<?php if ($Page->orderArticleID->Visible) { // orderArticleID ?>
    <tr id="r_orderArticleID"<?= $Page->orderArticleID->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_orderArticleID"><?= $Page->orderArticleID->caption() ?></span></td>
        <td data-name="orderArticleID"<?= $Page->orderArticleID->cellAttributes() ?>>
<span id="el_orderarticles_orderArticleID">
<span<?= $Page->orderArticleID->viewAttributes() ?>>
<?= $Page->orderArticleID->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_orderarticles_orderId"><?= $Page->orderId->caption() ?></span></td>
        <td data-name="orderId"<?= $Page->orderId->cellAttributes() ?>>
<span id="el_orderarticles_orderId">
<span<?= $Page->orderId->viewAttributes() ?>>
<?= $Page->orderId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->articleId->Visible) { // articleId ?>
    <tr id="r_articleId"<?= $Page->articleId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_articleId"><?= $Page->articleId->caption() ?></span></td>
        <td data-name="articleId"<?= $Page->articleId->cellAttributes() ?>>
<span id="el_orderarticles_articleId">
<span<?= $Page->articleId->viewAttributes() ?>>
<?= $Page->articleId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->qty->Visible) { // qty ?>
    <tr id="r_qty"<?= $Page->qty->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_qty"><?= $Page->qty->caption() ?></span></td>
        <td data-name="qty"<?= $Page->qty->cellAttributes() ?>>
<span id="el_orderarticles_qty">
<span<?= $Page->qty->viewAttributes() ?>>
<?= $Page->qty->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->rate->Visible) { // rate ?>
    <tr id="r_rate"<?= $Page->rate->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_rate"><?= $Page->rate->caption() ?></span></td>
        <td data-name="rate"<?= $Page->rate->cellAttributes() ?>>
<span id="el_orderarticles_rate">
<span<?= $Page->rate->viewAttributes() ?>>
<?= $Page->rate->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->disc->Visible) { // disc ?>
    <tr id="r_disc"<?= $Page->disc->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_disc"><?= $Page->disc->caption() ?></span></td>
        <td data-name="disc"<?= $Page->disc->cellAttributes() ?>>
<span id="el_orderarticles_disc">
<span<?= $Page->disc->viewAttributes() ?>>
<?= $Page->disc->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->calcamount->Visible) { // calcamount ?>
    <tr id="r_calcamount"<?= $Page->calcamount->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_calcamount"><?= $Page->calcamount->caption() ?></span></td>
        <td data-name="calcamount"<?= $Page->calcamount->cellAttributes() ?>>
<span id="el_orderarticles_calcamount">
<span<?= $Page->calcamount->viewAttributes() ?>>
<?= $Page->calcamount->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->remarks->Visible) { // remarks ?>
    <tr id="r_remarks"<?= $Page->remarks->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_orderarticles_remarks"><?= $Page->remarks->caption() ?></span></td>
        <td data-name="remarks"<?= $Page->remarks->cellAttributes() ?>>
<span id="el_orderarticles_remarks">
<span<?= $Page->remarks->viewAttributes() ?>>
<?= $Page->remarks->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 } ?>
