shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-10 14:51:58 +09:00
parent 672251b21e
commit 98a1c865c4
2 changed files with 19 additions and 11 deletions

View File

@ -4,17 +4,7 @@
<div id="content">
<div><?= html_entity_decode($viewDatas['category']->head) ?></div>
<div class="top">
<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"></nav>
</div>
</nav>
<?= $this->include('templates/front/index_head') ?>
<?= $this->include('templates/front/index_head_product') ?>
</div>
<?php $cnt = 0 ?>
<?php foreach ($viewDatas['entitys'] as $entity) : ?>

View File

@ -0,0 +1,18 @@
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<nav class="nav">
<span class="pageinfo">페이지정보 : <?= $viewDatas['page'] ?>/<?= $viewDatas['total_page'] ?></span>
</nav>
<nav class="nav justify-content-center">
<?= 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-end">
<?= form_open(current_url(), array("method" => "get")) ?>
<?= form_input('word', $viewDatas['word']) ?>
<?= form_submit('', '검색하기') ?>
<?= anchor(current_url() . '/excel?' . $viewDatas['uri']->getQuery(), ICONS['EXCEL'], ["target" => "_self"]) ?>
<?= form_close() ?>
</nav>
</div>
</nav>