shoppingmallv2 init...
This commit is contained in:
parent
6dd52abc12
commit
58784c15ad
@ -11,16 +11,21 @@
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||
<th>@</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $cnt = 0 ?>
|
||||
<?php $order_cnt = 0 ?>
|
||||
<?php $total_price = 0 ?>
|
||||
<?php $total_sale = 0 ?>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||
<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) : ?>
|
||||
<td><?= getFieldIndex_Row_OrderHelper($field, $entity, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
@ -33,8 +38,9 @@
|
||||
<?php if ($entity->status == 'unuse') : ?>
|
||||
<?php $total_price += $entity->price ?>
|
||||
<?php $total_sale += $entity->sale ?>
|
||||
<?php $cnt++ ?>
|
||||
<?php $order_cnt++ ?>
|
||||
<?php endif ?>
|
||||
<?php $cnt++ ?>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -50,7 +56,7 @@
|
||||
<div class="title">결제정보</div>
|
||||
<div class="item">
|
||||
<span class="label">상품수</span>
|
||||
<span class="value"><?= $cnt ?>개</span>
|
||||
<span class="value"><?= $order_cnt ?>개</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="label">상품금액</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user