<?php

namespace PHPMaker2024\laundrytech;

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

    // Form object
    let form = new ew.FormBuilder()
        .setId("fcustomerhasarticlesview")
        .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="customerhasarticles">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="<?= $Page->TableClass ?>">
<?php if ($Page->custArticleId->Visible) { // custArticleId ?>
    <tr id="r_custArticleId"<?= $Page->custArticleId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_customerhasarticles_custArticleId"><?= $Page->custArticleId->caption() ?></span></td>
        <td data-name="custArticleId"<?= $Page->custArticleId->cellAttributes() ?>>
<span id="el_customerhasarticles_custArticleId">
<span<?= $Page->custArticleId->viewAttributes() ?>>
<?= $Page->custArticleId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->customerId->Visible) { // customerId ?>
    <tr id="r_customerId"<?= $Page->customerId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_customerhasarticles_customerId"><?= $Page->customerId->caption() ?></span></td>
        <td data-name="customerId"<?= $Page->customerId->cellAttributes() ?>>
<span id="el_customerhasarticles_customerId">
<span<?= $Page->customerId->viewAttributes() ?>>
<?= $Page->customerId->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_customerhasarticles_articleId"><?= $Page->articleId->caption() ?></span></td>
        <td data-name="articleId"<?= $Page->articleId->cellAttributes() ?>>
<span id="el_customerhasarticles_articleId">
<span<?= $Page->articleId->viewAttributes() ?>>
<?= $Page->articleId->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_customerhasarticles_rate"><?= $Page->rate->caption() ?></span></td>
        <td data-name="rate"<?= $Page->rate->cellAttributes() ?>>
<span id="el_customerhasarticles_rate">
<span<?= $Page->rate->viewAttributes() ?>>
<?= $Page->rate->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->discountper->Visible) { // discountper ?>
    <tr id="r_discountper"<?= $Page->discountper->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_customerhasarticles_discountper"><?= $Page->discountper->caption() ?></span></td>
        <td data-name="discountper"<?= $Page->discountper->cellAttributes() ?>>
<span id="el_customerhasarticles_discountper">
<span<?= $Page->discountper->viewAttributes() ?>>
<?= $Page->discountper->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 } ?>
