shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-18 18:56:16 +09:00
parent 6dd52abc12
commit 58784c15ad

View File

@ -11,16 +11,21 @@
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?><?php endforeach ?> <?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?><?php endforeach ?>
<th>@</th> <th>@</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php $cnt = 0 ?> <?php $cnt = 0 ?>
<?php $order_cnt = 0 ?>
<?php $total_price = 0 ?> <?php $total_price = 0 ?>
<?php $total_sale = 0 ?> <?php $total_sale = 0 ?>
<?php foreach ($viewDatas['entitys'] as $entity) : ?> <?php foreach ($viewDatas['entitys'] as $entity) : ?>
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status == DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)"> <tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status == DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
<td nowrap>
<?= $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td><?= getFieldIndex_Row_OrderHelper($field, $entity, $viewDatas) ?></td> <td><?= getFieldIndex_Row_OrderHelper($field, $entity, $viewDatas) ?></td>
<?php endforeach ?> <?php endforeach ?>
@ -33,8 +38,9 @@
<?php if ($entity->status == 'unuse') : ?> <?php if ($entity->status == 'unuse') : ?>
<?php $total_price += $entity->price ?> <?php $total_price += $entity->price ?>
<?php $total_sale += $entity->sale ?> <?php $total_sale += $entity->sale ?>
<?php $cnt++ ?> <?php $order_cnt++ ?>
<?php endif ?> <?php endif ?>
<?php $cnt++ ?>
<?php endforeach ?> <?php endforeach ?>
</tbody> </tbody>
</table> </table>
@ -50,7 +56,7 @@
<div class="title">결제정보</div> <div class="title">결제정보</div>
<div class="item"> <div class="item">
<span class="label">상품수</span> <span class="label">상품수</span>
<span class="value"><?= $cnt ?>개</span> <span class="value"><?= $order_cnt ?>개</span>
</div> </div>
<div class="item"> <div class="item">
<span class="label">상품금액</span> <span class="label">상품금액</span>