shoppingmallv2 init...
This commit is contained in:
parent
0ce1014964
commit
d8c8743dd4
@ -149,7 +149,7 @@ function getFieldIndex_Row_ProductHelper($field, $entity, array $viewDatas): str
|
||||
);
|
||||
break;
|
||||
default:
|
||||
return sprintf("<td>%s</td>", getFieldView_ProductHelper($field, $entity, $viewDatas));
|
||||
return getFieldView_ProductHelper($field, $entity, $viewDatas);
|
||||
break;
|
||||
}
|
||||
} //
|
||||
|
||||
@ -8,33 +8,35 @@
|
||||
</div>
|
||||
<?php $cnt = 0 ?>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||
<table class="product table">
|
||||
<table class="product table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="14%" rowspan="3"><?= $entity->getFileImage('middle') ?></td>
|
||||
<td class="title"><?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?></td>
|
||||
<td width="6%" rowspan="3">
|
||||
<td width="14%" rowspan="3" class="align-middle"><?= $entity->getFileImage('middle') ?></td>
|
||||
<td class="text-start"><?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?></td>
|
||||
<td width="6%" rowspan="3" class="align-middle">
|
||||
<?= getFieldIndex_Row_ProductHelper('user_uid', $entity, $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?>
|
||||
<span>
|
||||
<?= getFieldIndex_Row_ProductHelper('cost', $entity, $viewDatas) ?>
|
||||
<td class="text-start">
|
||||
<span class="fs-4 fw-bold">구매비용 : <?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?></span>
|
||||
=
|
||||
<span class="text-decoration-line-through">
|
||||
상품원가 : <?= getFieldIndex_Row_ProductHelper('cost', $entity, $viewDatas) ?>
|
||||
-
|
||||
<?= getFieldIndex_Row_ProductHelper('sale', $entity, $viewDatas) ?>
|
||||
할인가 : <?= getFieldIndex_Row_ProductHelper('sale', $entity, $viewDatas) ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= getFieldIndex_Row_ProductHelper('view_cnt', $entity, $viewDatas) ?></td>
|
||||
<td class="text-start">조회수 : <?= getFieldIndex_Row_ProductHelper('view_cnt', $entity, $viewDatas) ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $cnt++ ?>
|
||||
<?php endforeach ?>
|
||||
<div class="bottom"><?= $viewDatas['pagination'] ?></div>
|
||||
<div class=" bottom"><?= $viewDatas['pagination'] ?>
|
||||
</div>
|
||||
<div><?= html_entity_decode($viewDatas['category']->tail) ?></div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
@ -65,6 +65,7 @@ div#content table.product tr:first-child {
|
||||
border-top:2px solid black;
|
||||
border-bottom:1px solid silver;
|
||||
}
|
||||
/* 상품 리스트 전용 */
|
||||
div#content table thead th{
|
||||
white-space: nowrap;
|
||||
text-align:center;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user