52 lines
2.4 KiB
PHP
52 lines
2.4 KiB
PHP
<?= $this->extend('layouts/front') ?>
|
|
<?= $this->section('content') ?>
|
|
<link href="/css/front/content.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<div id="content">
|
|
<div><?= html_entity_decode($viewDatas['category']->head) ?></div>
|
|
<div class="top">
|
|
<?= $this->include('templates/front/index_head') ?>
|
|
<nav class="navbar navbar-expand-lg">
|
|
<div class="container-fluid">
|
|
<nav class="nav">
|
|
<?= anchor(current_url() . '?category=' . $viewDatas['category']->getPrimaryKey() . '&order_field=price&order_value=ASC', '판매가순', ["class" => "btn btn-sm btn-info btn-circle", "target" => "_self"]) ?>
|
|
<?= anchor(current_url() . '?category=' . $viewDatas['category']->getPrimaryKey() . '&order_field=view_cnt&order_value=DESC', '인기순', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?>
|
|
</nav>
|
|
<nav class="nav justify-content-center"></nav>
|
|
<nav class="nav justify-content-end">
|
|
<?= anchor(current_url() . '?category=' . $viewDatas['category']->getPrimaryKey() . '&v=_list', 'List', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?>
|
|
</nav>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
<?php $cnt = 0 ?>
|
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
|
<table id="block" class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td width="14%" rowspan="3"><?= $entity->getFileImage('middle') ?></td>
|
|
<td width="*">
|
|
<?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?>
|
|
<td>
|
|
<td width="6%" rowspan="3"><?= getFieldIndex_Row_ProductHelper('user_uid', $entity, $viewDatas) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<b style="font-size:24px;">판매가:<?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?>원</b>
|
|
<span>
|
|
원가:<?= getFieldIndex_Row_ProductHelper('cost', $entity, $viewDatas) ?>원
|
|
-
|
|
할인가:<?= getFieldIndex_Row_ProductHelper('sale', $entity, $viewDatas) ?>원
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>조회수:<?= getFieldIndex_Row_ProductHelper('view_cnt', $entity, $viewDatas) ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php $cnt++ ?>
|
|
<?php endforeach ?>
|
|
<div class="bottom"><?= $viewDatas['pagination'] ?></div>
|
|
<div><?= html_entity_decode($viewDatas['category']->tail) ?></div>
|
|
</div>
|
|
<?= $this->endSection() ?>
|