<?php

namespace PHPMaker2021\gudang_ubi;

// Page object
$VarietasView = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<script>
var currentForm, currentPageID;
var fvarietasview;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "view";
    fvarietasview = currentForm = new ew.Form("fvarietasview", "view");
    loadjs.done("fvarietasview");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php } ?>
<?php if (!$Page->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $Page->ExportOptions->render("body") ?>
<?php $Page->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fvarietasview" id="fvarietasview" class="form-inline ew-form ew-view-form" action="<?= CurrentPageUrl() ?>" method="post">
<?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="varietas">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($Page->var_id->Visible) { // var_id ?>
    <tr id="r_var_id">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_varietas_var_id"><?= $Page->var_id->caption() ?></span></td>
        <td data-name="var_id" <?= $Page->var_id->cellAttributes() ?>>
<span id="el_varietas_var_id">
<span<?= $Page->var_id->viewAttributes() ?>>
<?= $Page->var_id->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->var_nama->Visible) { // var_nama ?>
    <tr id="r_var_nama">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_varietas_var_nama"><?= $Page->var_nama->caption() ?></span></td>
        <td data-name="var_nama" <?= $Page->var_nama->cellAttributes() ?>>
<span id="el_varietas_var_nama">
<span<?= $Page->var_nama->viewAttributes() ?>>
<?= $Page->var_nama->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->var_foto->Visible) { // var_foto ?>
    <tr id="r_var_foto">
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_varietas_var_foto"><?= $Page->var_foto->caption() ?></span></td>
        <td data-name="var_foto" <?= $Page->var_foto->cellAttributes() ?>>
<span id="el_varietas_var_foto">
<span<?= $Page->var_foto->viewAttributes() ?>>
<?= GetFileViewTag($Page->var_foto, $Page->var_foto->getViewValue(), false) ?>
</span>
</span>
</td>
    </tr>
<?php } ?>
</table>
</form>
<?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 } ?>
