<?php

namespace PHPMaker2024\laundrytech;

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

    // Form object
    let form = new ew.FormBuilder()
        .setId("fpricelistmasterview")
        .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="pricelistmaster">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="<?= $Page->TableClass ?>">
<?php if ($Page->priceListId->Visible) { // priceListId ?>
    <tr id="r_priceListId"<?= $Page->priceListId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_pricelistmaster_priceListId"><?= $Page->priceListId->caption() ?></span></td>
        <td data-name="priceListId"<?= $Page->priceListId->cellAttributes() ?>>
<span id="el_pricelistmaster_priceListId">
<span<?= $Page->priceListId->viewAttributes() ?>>
<?= $Page->priceListId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->pricelistName->Visible) { // pricelistName ?>
    <tr id="r_pricelistName"<?= $Page->pricelistName->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_pricelistmaster_pricelistName"><?= $Page->pricelistName->caption() ?></span></td>
        <td data-name="pricelistName"<?= $Page->pricelistName->cellAttributes() ?>>
<span id="el_pricelistmaster_pricelistName">
<span<?= $Page->pricelistName->viewAttributes() ?>>
<?= $Page->pricelistName->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->priceListNotes->Visible) { // priceListNotes ?>
    <tr id="r_priceListNotes"<?= $Page->priceListNotes->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_pricelistmaster_priceListNotes"><?= $Page->priceListNotes->caption() ?></span></td>
        <td data-name="priceListNotes"<?= $Page->priceListNotes->cellAttributes() ?>>
<span id="el_pricelistmaster_priceListNotes">
<span<?= $Page->priceListNotes->viewAttributes() ?>>
<?= $Page->priceListNotes->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_pricelistmaster_customerId"><?= $Page->customerId->caption() ?></span></td>
        <td data-name="customerId"<?= $Page->customerId->cellAttributes() ?>>
<span id="el_pricelistmaster_customerId">
<span<?= $Page->customerId->viewAttributes() ?>>
<?= $Page->customerId->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 } ?>
