shoppingmallv2 init...
This commit is contained in:
parent
770e8bff8b
commit
3d30a374f7
@ -3,6 +3,7 @@
|
|||||||
namespace App\Controllers\Admin;
|
namespace App\Controllers\Admin;
|
||||||
|
|
||||||
use App\Controllers\Trait\UpDownloadTrait;
|
use App\Controllers\Trait\UpDownloadTrait;
|
||||||
|
use App\Entities\CategoryEntity;
|
||||||
use App\Models\CategoryModel;
|
use App\Models\CategoryModel;
|
||||||
use CodeIgniter\HTTP\RequestInterface;
|
use CodeIgniter\HTTP\RequestInterface;
|
||||||
use CodeIgniter\HTTP\ResponseInterface;
|
use CodeIgniter\HTTP\ResponseInterface;
|
||||||
@ -65,20 +66,40 @@ class CategoryController extends AdminController
|
|||||||
return $this->_viewDatas['fieldDatas'];
|
return $this->_viewDatas['fieldDatas'];
|
||||||
}
|
}
|
||||||
|
|
||||||
private function build_leftmenu()
|
private function write_leftmenu($old_category, array $categorys)
|
||||||
{
|
{
|
||||||
foreach ($this->_model->getEntitys(['grpdepth' => 2, 'status' => DEFAULTS['STATUS']]) as $entity) {
|
//신규 대분류인경우 기존 카테고리 메뉴 만들기
|
||||||
$categorys = $this->_model->getSiblingEntitys($entity);
|
// $categorys = array_reverse($categorys); //중분류의 경우 나중에 넣은것이 먼저되므로 reverse해서 처리
|
||||||
|
foreach ($categorys as $category) {
|
||||||
$viewDatas = [
|
$viewDatas = [
|
||||||
'className' => $this->_model->getClassName(),
|
'className' => $this->_model->getClassName(),
|
||||||
'category' => $entity,
|
'category' => $category,
|
||||||
'parent_category' => array_shift($categorys),
|
'parent_category' => $old_category,
|
||||||
'sibling_categorys' => $categorys
|
'sibling_categorys' => $categorys
|
||||||
];
|
];
|
||||||
$leftmenu = view($this->_viewPath . '/leftmenu_template', ['viewDatas' => $viewDatas]);
|
$leftmenu = view($this->_viewPath . '/leftmenu_template', ['viewDatas' => $viewDatas]);
|
||||||
file_put_contents(APPPATH . 'Views' . "/layouts/front/left_menu/leftmenu_{$entity->getPrimaryKey()}.php", $leftmenu);
|
file_put_contents(APPPATH . 'Views' . "/layouts/front/left_menu/leftmenu_{$category->getPrimaryKey()}.php", $leftmenu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private function build_leftmenu()
|
||||||
|
{
|
||||||
|
$old_category = null;
|
||||||
|
$categorys = array();
|
||||||
|
foreach ($this->_model->getEntitys(['status' => DEFAULTS['STATUS']]) as $entity) {
|
||||||
|
if ($entity->getHierarchy_Depth() == 1) {
|
||||||
|
if (is_null($old_category)) {
|
||||||
|
$old_category = $entity;
|
||||||
|
} else if ($old_category->getPrimaryKey() != $entity->getPrimaryKey()) {
|
||||||
|
$this->write_leftmenu($old_category, $categorys);
|
||||||
|
$old_category = $entity;
|
||||||
|
$categorys = array();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
array_push($categorys, $entity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$this->write_leftmenu($old_category, $categorys);
|
||||||
|
}
|
||||||
|
|
||||||
//Insert관련
|
//Insert관련
|
||||||
protected function insert_process()
|
protected function insert_process()
|
||||||
|
|||||||
@ -129,7 +129,7 @@ function getFieldIndex_Row_ProductHelper($field, $entity, array $viewDatas): str
|
|||||||
case 'name':
|
case 'name':
|
||||||
return anchor(
|
return anchor(
|
||||||
current_url() . '/view/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
|
current_url() . '/view/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
|
||||||
$value ? str_split($value, 66)[0] . "..." : "",
|
$value,
|
||||||
["target" => "_self"]
|
["target" => "_self"]
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -5,10 +5,10 @@ $roles = [
|
|||||||
'director' => '감독자', 'master' => "마스터",
|
'director' => '감독자', 'master' => "마스터",
|
||||||
];
|
];
|
||||||
return [
|
return [
|
||||||
'title' => "범주 정보",
|
'title' => "분류 정보",
|
||||||
'label' => [
|
'label' => [
|
||||||
'uid' => "번호",
|
'uid' => "번호",
|
||||||
'name' => "범주제목",
|
'name' => "분류제목",
|
||||||
'linkurl' => "LinkURL",
|
'linkurl' => "LinkURL",
|
||||||
'photo' => "이미지",
|
'photo' => "이미지",
|
||||||
'isaccess' => "접속권한",
|
'isaccess' => "접속권한",
|
||||||
|
|||||||
@ -58,6 +58,7 @@ class CategoryModel extends BaseHierarchyModel
|
|||||||
{
|
{
|
||||||
//대분류 부분은 선택이 되지 않게 하기위해 따로 만듬 (form_dropdown의 optgroup 기능)
|
//대분류 부분은 선택이 되지 않게 하기위해 따로 만듬 (form_dropdown의 optgroup 기능)
|
||||||
$old_title = "";
|
$old_title = "";
|
||||||
|
$options = array();
|
||||||
foreach ($this->getEntitys($conditions) as $entity) {
|
foreach ($this->getEntitys($conditions) as $entity) {
|
||||||
if ($entity->getHierarchy_Depth() == 1) {
|
if ($entity->getHierarchy_Depth() == 1) {
|
||||||
$options[$entity->getTitle()] = [];
|
$options[$entity->getTitle()] = [];
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
<div><?= html_entity_decode($viewDatas['category']->head) ?></div>
|
<div><?= html_entity_decode($viewDatas['category']->head) ?></div>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<?= $this->include('templates/front/index_head') ?>
|
|
||||||
<nav class="navbar navbar-expand-lg">
|
<nav class="navbar navbar-expand-lg">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
@ -12,11 +11,10 @@
|
|||||||
<?= anchor(current_url() . '?category=' . $viewDatas['category']->getPrimaryKey() . '&order_field=view_cnt&order_value=DESC', '인기순', ["class" => "btn btn-sm btn-primary 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>
|
||||||
<nav class="nav justify-content-center"></nav>
|
<nav class="nav justify-content-center"></nav>
|
||||||
<nav class="nav justify-content-end">
|
<nav class="nav justify-content-end"></nav>
|
||||||
<?= anchor(current_url() . '?category=' . $viewDatas['category']->getPrimaryKey() . '&v=_list', 'List', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?>
|
|
||||||
</nav>
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
<?= $this->include('templates/front/index_head') ?>
|
||||||
</div>
|
</div>
|
||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
@ -27,20 +25,20 @@
|
|||||||
<td width="*">
|
<td width="*">
|
||||||
<?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?>
|
<?= getFieldIndex_Row_ProductHelper('name', $entity, $viewDatas) ?>
|
||||||
<td>
|
<td>
|
||||||
<td width="6%" rowspan="3"><?= getFieldIndex_Row_ProductHelper('user_uid', $entity, $viewDatas) ?></td>
|
<td width="6%" rowspan="3"><?= getFieldIndex_Column_ProductHelper('user_uid', $viewDatas) ?><BR><?= getFieldIndex_Row_ProductHelper('user_uid', $entity, $viewDatas) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<b style="font-size:24px;">판매가:<?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?>원</b>
|
<?= getFieldIndex_Column_ProductHelper('price', $viewDatas) ?>:<b style="font-size:24px;"><?= getFieldIndex_Row_ProductHelper('price', $entity, $viewDatas) ?>원</b>
|
||||||
<span>
|
<span>
|
||||||
원가:<?= getFieldIndex_Row_ProductHelper('cost', $entity, $viewDatas) ?>원
|
<?= getFieldIndex_Column_ProductHelper('cost', $viewDatas) ?>:<?= getFieldIndex_Row_ProductHelper('cost', $entity, $viewDatas) ?>원
|
||||||
-
|
-
|
||||||
할인가:<?= getFieldIndex_Row_ProductHelper('sale', $entity, $viewDatas) ?>원
|
<?= getFieldIndex_Column_ProductHelper('sale', $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><?= getFieldIndex_Column_ProductHelper('view_cnt', $viewDatas) ?>:<?= getFieldIndex_Row_ProductHelper('view_cnt', $entity, $viewDatas) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,46 +0,0 @@
|
|||||||
<?= $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(), 'Block', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
<table class="table table-hover">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>번호</th>
|
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_ProductHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php $cnt = 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>
|
|
||||||
<?= $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt) ?>
|
|
||||||
</td>
|
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
|
||||||
<td nowrap><?= getFieldIndex_Row_ProductHelper($field, $entity, $viewDatas) ?></td>
|
|
||||||
<?php endforeach ?>
|
|
||||||
</tr>
|
|
||||||
<?php $cnt++ ?>
|
|
||||||
<?php endforeach ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div class="bottom"><?= $viewDatas['pagination'] ?></div>
|
|
||||||
<div><?= html_entity_decode($viewDatas['category']->tail) ?></div>
|
|
||||||
</div>
|
|
||||||
<?= $this->endSection() ?>
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 3 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 7 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">개인정보</div>
|
<div class="title">개인정보</div>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/user?category=12" target="_self">사용자정보</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/user?category=12" target="_self">사용자정보</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 3 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 7 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 4 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 8 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">개인정보</div>
|
<div class="title">개인정보</div>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/user?category=12" target="_self">사용자정보</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/user?category=12" target="_self">사용자정보</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 4 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 8 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!-- DEBUG-VIEW START 1 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 5 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">사이트페이지</div>
|
<div class="title">AboutUS</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sibling active">
|
<div class="sibling active">
|
||||||
<a href="http://localhost:8080/front/sitepage?category=14" target="_self">인사말</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/sitepage?category=14" target="_self">인사말</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/sitepage?category=15" target="_self">회사소개</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/sitepage?category=15" target="_self">회사소개</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 1 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 5 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!-- DEBUG-VIEW START 2 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 6 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">사이트페이지</div>
|
<div class="title">AboutUS</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sibling ">
|
<div class="sibling ">
|
||||||
<a href="http://localhost:8080/front/sitepage?category=14" target="_self">인사말</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/sitepage?category=14" target="_self">인사말</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/sitepage?category=15" target="_self">회사소개</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/sitepage?category=15" target="_self">회사소개</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 2 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 6 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
13
app/Views/layouts/front/left_menu/leftmenu_17.php
Normal file
13
app/Views/layouts/front/left_menu/leftmenu_17.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!-- DEBUG-VIEW START 3 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
<div class="parent">
|
||||||
|
<div>-</div>
|
||||||
|
<div class="title">Hosting</div>
|
||||||
|
</div>
|
||||||
|
<div class="sibling active">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=17" target="_self">제품안내</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
<div class="sibling ">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=18" target="_self">신청절차</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- DEBUG-VIEW ENDED 3 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
13
app/Views/layouts/front/left_menu/leftmenu_18.php
Normal file
13
app/Views/layouts/front/left_menu/leftmenu_18.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!-- DEBUG-VIEW START 4 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
<div class="parent">
|
||||||
|
<div>-</div>
|
||||||
|
<div class="title">Hosting</div>
|
||||||
|
</div>
|
||||||
|
<div class="sibling ">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=17" target="_self">제품안내</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
<div class="sibling active">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=18" target="_self">신청절차</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- DEBUG-VIEW ENDED 4 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
13
app/Views/layouts/front/left_menu/leftmenu_20.php
Normal file
13
app/Views/layouts/front/left_menu/leftmenu_20.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!-- DEBUG-VIEW START 1 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
<div class="parent">
|
||||||
|
<div>-</div>
|
||||||
|
<div class="title">Service</div>
|
||||||
|
</div>
|
||||||
|
<div class="sibling active">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=20" target="_self">기타서비스</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
<div class="sibling ">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=21" target="_self">회선서비스</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- DEBUG-VIEW ENDED 1 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
13
app/Views/layouts/front/left_menu/leftmenu_21.php
Normal file
13
app/Views/layouts/front/left_menu/leftmenu_21.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!-- DEBUG-VIEW START 2 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
<div class="parent">
|
||||||
|
<div>-</div>
|
||||||
|
<div class="title">Service</div>
|
||||||
|
</div>
|
||||||
|
<div class="sibling ">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=20" target="_self">기타서비스</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
<div class="sibling active">
|
||||||
|
<a href="http://localhost:8080/front/sitepage?category=21" target="_self">회선서비스</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- DEBUG-VIEW ENDED 2 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 9 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 13 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">Support</div>
|
<div class="title">Support</div>
|
||||||
@ -7,7 +7,7 @@
|
|||||||
<a href="http://localhost:8080/front/board?category=3" target="_self">공지사항</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/board?category=3" target="_self">공지사항</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="sibling ">
|
<div class="sibling ">
|
||||||
<a href="http://localhost:8080/front/board?category=4" target="_self">FAQ</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/board?category=4" target="_self">자료실</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 9 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 13 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 10 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 14 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">Support</div>
|
<div class="title">Support</div>
|
||||||
@ -7,7 +7,7 @@
|
|||||||
<a href="http://localhost:8080/front/board?category=3" target="_self">공지사항</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/board?category=3" target="_self">공지사항</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="sibling active">
|
<div class="sibling active">
|
||||||
<a href="http://localhost:8080/front/board?category=4" target="_self">FAQ</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/board?category=4" target="_self">자료실</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 10 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 14 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 7 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 11 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">네트워크</div>
|
<div class="title">네트워크</div>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/product?category=6" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/product?category=6" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 7 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 11 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 8 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 12 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">네트워크</div>
|
<div class="title">네트워크</div>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/product?category=6" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/product?category=6" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 8 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 12 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 5 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 9 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">서버</div>
|
<div class="title">서버</div>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/product?category=9" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/product?category=9" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 5 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 9 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!-- DEBUG-VIEW START 6 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW START 10 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
<div class="parent">
|
<div class="parent">
|
||||||
<div>-</div>
|
<div>-</div>
|
||||||
<div class="title">서버</div>
|
<div class="title">서버</div>
|
||||||
@ -10,4 +10,4 @@
|
|||||||
<a href="http://localhost:8080/front/product?category=9" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
<a href="http://localhost:8080/front/product?category=9" target="_self">판매</a> <span class="play"><i class="bi bi-play-fill"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEBUG-VIEW ENDED 6 APPPATH\Views\admin\category\leftmenu_template.php -->
|
<!-- DEBUG-VIEW ENDED 10 APPPATH\Views\admin\category\leftmenu_template.php -->
|
||||||
|
|||||||
@ -13,11 +13,19 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="nav-item" style="padding-top:10px;">|</li>
|
<li class="nav-item" style="padding-top:10px;">|</li>
|
||||||
<li class=" nav-item">
|
<li class=" nav-item">
|
||||||
|
<?= $this->include($viewDatas['layout']['path'] . '/top_menu/top_menu_hosting'); ?>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" style="padding-top:10px;">|</li>
|
||||||
|
<li class=" nav-item">
|
||||||
|
<?= $this->include($viewDatas['layout']['path'] . '/top_menu/top_menu_server'); ?>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" style="padding-top:10px;">|</li>
|
||||||
|
<li class="nav-item">
|
||||||
<?= $this->include($viewDatas['layout']['path'] . '/top_menu/top_menu_network'); ?>
|
<?= $this->include($viewDatas['layout']['path'] . '/top_menu/top_menu_network'); ?>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" style="padding-top:10px;">|</li>
|
<li class="nav-item" style="padding-top:10px;">|</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<?= $this->include($viewDatas['layout']['path'] . '/top_menu/top_menu_server'); ?>
|
<?= $this->include($viewDatas['layout']['path'] . '/top_menu/top_menu_service'); ?>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" style="padding-top:10px;">|</li>
|
<li class="nav-item" style="padding-top:10px;">|</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|||||||
13
app/Views/layouts/front/top_menu/top_menu_hosting.php
Normal file
13
app/Views/layouts/front/top_menu/top_menu_hosting.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<div class="dropdown-center">
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link" href="#" id="navbarDarkDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
Hosting
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDarkDropdownMenuLink">
|
||||||
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 17 ? "active" : "" ?>" href=" /front/sitepage?category=17">제품안내</a></li>
|
||||||
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 18 ? "active" : "" ?>" href="/front/sitepage?category=18">신청절차</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
@ -6,7 +6,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDarkDropdownMenuLink">
|
<ul class="dropdown-menu" aria-labelledby="navbarDarkDropdownMenuLink">
|
||||||
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 5 ? "active" : "" ?>" href="/front/product?category=5">월이용권</a></li>
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 5 ? "active" : "" ?>" href="/front/product?category=5">월이용권</a></li>
|
||||||
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 6 ? "active" : "" ?>" href="/front/product?category=6">판매</a></li>
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 6 ? "active" : "" ?>" href="/front/sitepage?category=6">판매</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
13
app/Views/layouts/front/top_menu/top_menu_service.php
Normal file
13
app/Views/layouts/front/top_menu/top_menu_service.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<div class="dropdown-center">
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link" href="#" id="navbarDarkDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
Service
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDarkDropdownMenuLink">
|
||||||
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 20 ? "active" : "" ?>" href="/front/sitepage?category=20">기타서비스</a></li>
|
||||||
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 21 ? "active" : "" ?>" href=" /front/sitepage?category=21">회선서비스</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
@ -6,7 +6,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDarkDropdownMenuLink">
|
<ul class="dropdown-menu" aria-labelledby="navbarDarkDropdownMenuLink">
|
||||||
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 3 ? "active" : "" ?>" href="/front/board?category=3">공지사항</a></li>
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 3 ? "active" : "" ?>" href="/front/board?category=3">공지사항</a></li>
|
||||||
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 4 ? "active" : "" ?>" href="/front/board?category=4">FAQ</a></li>
|
<li><a class="dropdown-item <?= $viewDatas['category']->getPrimaryKey() == 4 ? "active" : "" ?>" href="/front/board?category=4">자료실</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
div#content{
|
div#content{
|
||||||
|
padding-top:40px;
|
||||||
padding-left:30px;
|
padding-left:30px;
|
||||||
|
margin-bottom:20px;
|
||||||
/* border-left:1px solid silver;
|
/* border-left:1px solid silver;
|
||||||
border-right:1px solid silver; */
|
border-right:1px solid silver; */
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
/* 메뉴바그룹 */
|
/* 메뉴바그룹 */
|
||||||
#top_menu div.dropdown-center ul.navbar-nav li.dropdown {
|
#top_menu div.dropdown-center ul.navbar-nav li.dropdown {
|
||||||
width:200px;
|
width:180px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
/* border:1px solid red; */
|
/* border:1px solid red; */
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
/* 메뉴바 */
|
/* 메뉴바 */
|
||||||
#top_menu div.dropdown-center ul.navbar-nav li.dropdown ul.dropdown-menu li{
|
#top_menu div.dropdown-center ul.navbar-nav li.dropdown ul.dropdown-menu li{
|
||||||
width:200px;
|
width:180px;
|
||||||
height:60px;
|
height:60px;
|
||||||
padding-top:15px;
|
padding-top:15px;
|
||||||
/* border:1px solid red; */
|
/* border:1px solid red; */
|
||||||
@ -53,7 +53,7 @@
|
|||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
width:200px;
|
width:180px;
|
||||||
}
|
}
|
||||||
#top_menu div.dropdown-center ul.navbar-nav li.dropdown ul.dropdown-menu li a.active{
|
#top_menu div.dropdown-center ul.navbar-nav li.dropdown ul.dropdown-menu li a.active{
|
||||||
color:#efefef;
|
color:#efefef;
|
||||||
@ -62,7 +62,7 @@
|
|||||||
}
|
}
|
||||||
/* 메뉴바 over했을시*/
|
/* 메뉴바 over했을시*/
|
||||||
#top_menu div.dropdown-center ul.navbar-nav li.dropdown ul.dropdown-menu li:hover{
|
#top_menu div.dropdown-center ul.navbar-nav li.dropdown ul.dropdown-menu li:hover{
|
||||||
width:200px;
|
width:180px;
|
||||||
background-color:#26417D;
|
background-color:#26417D;
|
||||||
/* border:1px solid red; */
|
/* border:1px solid red; */
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user