shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-11 14:50:02 +09:00
parent 0ce1014964
commit d8c8743dd4
3 changed files with 15 additions and 12 deletions

View File

@ -149,7 +149,7 @@ function getFieldIndex_Row_ProductHelper($field, $entity, array $viewDatas): str
); );
break; break;
default: default:
return sprintf("<td>%s</td>", getFieldView_ProductHelper($field, $entity, $viewDatas)); return getFieldView_ProductHelper($field, $entity, $viewDatas);
break; break;
} }
} // } //

View File

@ -8,33 +8,35 @@
</div> </div>
<?php $cnt = 0 ?> <?php $cnt = 0 ?>
<?php foreach ($viewDatas['entitys'] as $entity) : ?> <?php foreach ($viewDatas['entitys'] as $entity) : ?>
<table class="product table"> <table class="product table table-bordered">
<tbody> <tbody>
<tr> <tr>
<td width="14%" rowspan="3"><?= $entity->getFileImage('middle') ?></td> <td width="14%" rowspan="3" class="align-middle"><?= $entity->getFileImage('middle') ?></td>
<td class="title"><?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?></td> <td class="text-start"><?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?></td>
<td width="6%" rowspan="3"> <td width="6%" rowspan="3" class="align-middle">
<?= getFieldIndex_Row_ProductHelper('user_uid', $entity, $viewDatas) ?> <?= getFieldIndex_Row_ProductHelper('user_uid', $entity, $viewDatas) ?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td class="text-start">
<?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?> <span class="fs-4 fw-bold">구매비용 : <?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?></span>
<span> =
<?= getFieldIndex_Row_ProductHelper('cost', $entity, $viewDatas) ?> <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> </span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?= getFieldIndex_Row_ProductHelper('view_cnt', $entity, $viewDatas) ?></td> <td class="text-start">조회수 : <?= getFieldIndex_Row_ProductHelper('view_cnt', $entity, $viewDatas) ?></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<?php $cnt++ ?> <?php $cnt++ ?>
<?php endforeach ?> <?php endforeach ?>
<div class="bottom"><?= $viewDatas['pagination'] ?></div> <div class=" bottom"><?= $viewDatas['pagination'] ?>
</div>
<div><?= html_entity_decode($viewDatas['category']->tail) ?></div> <div><?= html_entity_decode($viewDatas['category']->tail) ?></div>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -65,6 +65,7 @@ div#content table.product tr:first-child {
border-top:2px solid black; border-top:2px solid black;
border-bottom:1px solid silver; border-bottom:1px solid silver;
} }
/* 상품 리스트 전용 */
div#content table thead th{ div#content table thead th{
white-space: nowrap; white-space: nowrap;
text-align:center; text-align:center;