From 67705e9fe99a3db82bbf32cf95179d78bc095c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 7 Aug 2023 16:01:39 +0900 Subject: [PATCH] shoppingmallv2 init... --- app/Controllers/Front/ProductController.php | 2 +- app/Helpers/Product_helper.php | 2 +- app/Language/ko/Product.php | 2 +- app/Views/layouts/front/left_menu.php | 7 ++++++- app/Views/templates/front/index_head.php | 4 +--- public/css/front.css | 8 ++++++++ 6 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app/Controllers/Front/ProductController.php b/app/Controllers/Front/ProductController.php index 9c78bac..bc0f7d4 100644 --- a/app/Controllers/Front/ProductController.php +++ b/app/Controllers/Front/ProductController.php @@ -21,7 +21,7 @@ class ProductController extends FrontController switch ($action) { case "index": case "excel": - return ["photo", "user_uid", 'name', "cost", "price", "sale", "stock", "view_cnt", "created_at"]; + return ["photo", "user_uid", 'name', "cost", "price", "sale", "stock", "view_cnt"]; break; case "view": return [...$fields, "created_at"]; diff --git a/app/Helpers/Product_helper.php b/app/Helpers/Product_helper.php index 8656220..36e96d7 100644 --- a/app/Helpers/Product_helper.php +++ b/app/Helpers/Product_helper.php @@ -83,7 +83,7 @@ function getFieldView_ProductHelper($field, $entity, array $viewDatas) case 'name': return anchor( current_url() . '/view/' . $entity->getPrimaryKey(), - $value, + $value ? str_split($value, 40)[0] . "..." : "", ["target" => "_self"] ); break; diff --git a/app/Language/ko/Product.php b/app/Language/ko/Product.php index 26cdcaa..0afbb14 100644 --- a/app/Language/ko/Product.php +++ b/app/Language/ko/Product.php @@ -10,7 +10,7 @@ return [ 'cost' => "원가", 'price' => "판매가", 'sale' => "할인가", - 'stock' => "재고수량", + 'stock' => "재고", 'view_cnt' => "조회수", 'content' => "상품정보", 'status' => "상태", diff --git a/app/Views/layouts/front/left_menu.php b/app/Views/layouts/front/left_menu.php index b5a4fec..07ab2f9 100644 --- a/app/Views/layouts/front/left_menu.php +++ b/app/Views/layouts/front/left_menu.php @@ -7,7 +7,12 @@
- getTitle() ?> + getPrimaryKey(), + $category->getTitle(), + ["target" => "_self"] + ) ?>
\ No newline at end of file diff --git a/app/Views/templates/front/index_head.php b/app/Views/templates/front/index_head.php index 2092437..93738b4 100644 --- a/app/Views/templates/front/index_head.php +++ b/app/Views/templates/front/index_head.php @@ -1,6 +1,4 @@ 검색어: - 검색일: - "calender"]) ?> "calender"]) ?> - "btn btn-outline btn-primary")); ?>getQuery(), '', ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?> + "btn btn-outline btn-primary")); ?>getQuery(), '', ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?> page: / total: 'this.form.submit()')) ?> / 총: \ No newline at end of file diff --git a/public/css/front.css b/public/css/front.css index 19480f2..a62aa1e 100644 --- a/public/css/front.css +++ b/public/css/front.css @@ -72,10 +72,18 @@ body { font-size: 16px; /* border:1px solid silver; */ } +#layout #body div.content table th a{ + color:black; + /* border:1px solid silver; */ +} #layout #body div.content table td{ /* border:1px solid silver; */ text-align:center; } +#layout #body div.content table td a{ + color:black; + /* border:1px solid silver; */ +} #layout #body div.content table.form td.label{ background-color:#e8ebe9; width:10%;