shoppingmallv2/app/Views/front/product/view.php
2023-08-01 19:59:20 +09:00

22 lines
857 B
PHP

<?= $this->extend('layouts/front') ?>
<?= $this->section('content') ?>
<div class="content">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_ProductHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldView_ProductHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<div style="text-align:center">
<?php if ($entity->getStatus() == DEFAULTS['STATUS']) : ?>
<?= $this->include('front/product/orderform'); ?>
<?php else : ?>
이제품은 현재[<?= lang('Product.STATUS.' . $entity->getStatus()) ?>]입니다.
<?php endif ?>
</div>
<?= $this->endSection() ?>