From b5a10581a066a1f11d39bea06c88bd9465b15131 Mon Sep 17 00:00:00 2001 From: Tieptk Date: Thu, 25 Jan 2024 17:37:49 +0700 Subject: [PATCH] update product-detail --- data/product/form_components/combo_set.php | 1 + template/javascript/index.html | 8 +- template/javascript/product_form.html | 24 + .../product/form_components/description.html | 42 +- template/theme.html | 423 +++++++++--------- 5 files changed, 265 insertions(+), 233 deletions(-) create mode 100644 data/product/form_components/combo_set.php create mode 100644 template/javascript/product_form.html diff --git a/data/product/form_components/combo_set.php b/data/product/form_components/combo_set.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/data/product/form_components/combo_set.php @@ -0,0 +1 @@ + + + + \ No newline at end of file diff --git a/template/product/form_components/description.html b/template/product/form_components/description.html index 998b5ef..9a4cc34 100644 --- a/template/product/form_components/description.html +++ b/template/product/form_components/description.html @@ -1,49 +1,47 @@ - -
+
THƯ VIỆN ẢNH Chưa có thư viện ảnh cho phần miêu tả
- + + d="M0.65 7.8C1.00899 7.8 1.3 8.09101 1.3 8.45V11.05C1.3 11.2224 1.36848 11.3877 1.49038 11.5096C1.61228 11.6315 1.77761 11.7 1.95 11.7H11.05C11.2224 11.7 11.3877 11.6315 11.5096 11.5096C11.6315 11.3877 11.7 11.2224 11.7 11.05V8.45C11.7 8.09101 11.991 7.8 12.35 7.8C12.709 7.8 13 8.09101 13 8.45V11.05C13 11.5672 12.7946 12.0632 12.4289 12.4289C12.0632 12.7946 11.5672 13 11.05 13H1.95C1.43283 13 0.936837 12.7946 0.571142 12.4289C0.205446 12.0632 0 11.5672 0 11.05V8.45C0 8.09101 0.291015 7.8 0.65 7.8Z" + fill="#0041E8" /> + d="M6.04038 0.190381C6.29422 -0.0634602 6.70578 -0.0634602 6.95962 0.190381L10.2096 3.44038C10.4635 3.69422 10.4635 4.10578 10.2096 4.35962C9.95578 4.61346 9.54422 4.61346 9.29038 4.35962L6.5 1.56924L3.70962 4.35962C3.45578 4.61346 3.04422 4.61346 2.79038 4.35962C2.53654 4.10578 2.53654 3.69422 2.79038 3.44038L6.04038 0.190381Z" + fill="#0041E8" /> + d="M6.5 9.68575e-09C6.85898 9.68575e-09 7.15 0.291015 7.15 0.65V8.45C7.15 8.80898 6.85898 9.1 6.5 9.1C6.14101 9.1 5.85 8.80898 5.85 8.45V0.65C5.85 0.291015 6.14101 9.68575e-09 6.5 9.68575e-09Z" + fill="#0041E8" /> Upload ảnh - + + d="M1.95 1.3C1.77761 1.3 1.61228 1.36848 1.49038 1.49038C1.36848 1.61228 1.3 1.77761 1.3 1.95V11.05C1.3 11.2224 1.36848 11.3877 1.49038 11.5096C1.61228 11.6315 1.77761 11.7 1.95 11.7H12.35C12.5224 11.7 12.6877 11.6315 12.8096 11.5096C12.9315 11.3877 13 11.2224 13 11.05V3.9C13 3.72761 12.9315 3.56228 12.8096 3.44038C12.6877 3.31848 12.5224 3.25 12.35 3.25H6.5C6.28267 3.25 6.07972 3.14138 5.95917 2.96055L4.85213 1.3H1.95ZM0.571142 0.571142C0.936838 0.205446 1.43283 0 1.95 0H5.2C5.41733 0 5.62028 0.108616 5.74083 0.289445L6.84787 1.95H12.35C12.8672 1.95 13.3632 2.15545 13.7289 2.52114C14.0946 2.88684 14.3 3.38283 14.3 3.9V11.05C14.3 11.5672 14.0946 12.0632 13.7289 12.4289C13.3632 12.7946 12.8672 13 12.35 13H1.95C1.43283 13 0.936837 12.7946 0.571142 12.4289C0.205446 12.0632 0 11.5672 0 11.05V1.95C0 1.43283 0.205446 0.936838 0.571142 0.571142Z" + fill="#0041E8" /> Quản lý - + + d="M1.77273 2.36364C1.61601 2.36364 1.46571 2.42589 1.35489 2.53671C1.24407 2.64753 1.18182 2.79783 1.18182 2.95455V11.2273C1.18182 11.384 1.24407 11.5343 1.35489 11.6451C1.46571 11.7559 1.61601 11.8182 1.77273 11.8182H10.0455C10.2022 11.8182 10.3525 11.7559 10.4633 11.6451C10.5741 11.5343 10.6364 11.384 10.6364 11.2273V8.07182C10.6364 7.74547 10.9009 7.48091 11.2273 7.48091C11.5536 7.48091 11.8182 7.74547 11.8182 8.07182V11.2273C11.8182 11.6974 11.6314 12.1483 11.299 12.4808C10.9665 12.8132 10.5156 13 10.0455 13H1.77273C1.30257 13 0.85167 12.8132 0.51922 12.4808C0.186769 12.1483 0 11.6974 0 11.2273V2.95455C0 2.48439 0.186769 2.03349 0.51922 1.70104C0.851671 1.36859 1.30257 1.18182 1.77273 1.18182H4.92818C5.25453 1.18182 5.51909 1.44638 5.51909 1.77273C5.51909 2.09908 5.25453 2.36364 4.92818 2.36364H1.77273Z" + fill="#0041E8" /> + d="M9.62762 0.173073C9.85838 -0.0576911 10.2325 -0.0576911 10.4633 0.173073L12.8269 2.53671C13.0577 2.76747 13.0577 3.14162 12.8269 3.37238L6.91784 9.28147C6.80702 9.39229 6.65672 9.45455 6.5 9.45455H4.13636C3.81001 9.45455 3.54545 9.18999 3.54545 8.86364V6.5C3.54545 6.34328 3.60771 6.19298 3.71853 6.08216L9.62762 0.173073ZM4.72727 6.74476V8.27273H6.25524L11.5734 2.95455L10.0455 1.42658L4.72727 6.74476Z" + fill="#0041E8" /> Chọn ảnh trong kho ảnh chính
-
+ + +
\ No newline at end of file diff --git a/template/theme.html b/template/theme.html index a59c4b1..294d990 100644 --- a/template/theme.html +++ b/template/theme.html @@ -14,270 +14,275 @@ - + + {{global|show_var}} {{page|show_var}} -
+
- -
-
- +
+
+ -
- - - -
+
+ - {% for _category in global.main_menu %} - {% assign _type = _category[0] %} - {% assign _menuArray = _category[1].menu %} + +
- {% if _category[1].enable == 1 %} -
- {% if _type == 'order' %} - {% elsif _type == 'product' %} - {% elsif _type == 'customer' %} - {% elsif _type == 'marketing' %} - {% elsif _type == 'investor_relation' %} - {% elsif _type == 'article' %} - {% elsif _type == 'job' %} - {% elsif _type == 'pcbuilder' %} - {% elsif _type == 'payinstall' %} - {% elsif _type == 'distributor' %} - {% elsif _type == 'report' %} - {% elsif _type == 'system' %} - {% endif %} - - -
- {% endif %} - {% endfor %} -
+ {% if _category[1].enable == 1 %} +
+ {% if _type == 'order' %} + {% elsif _type == 'product' %} + {% elsif _type == 'customer' %} + {% elsif _type == 'marketing' %} + {% elsif _type == 'investor_relation' %} + {% elsif _type == 'article' %} + {% elsif _type == 'job' %} + {% elsif _type == 'pcbuilder' %} + {% elsif _type == 'payinstall' %} + {% elsif _type == 'distributor' %} + {% elsif _type == 'report' %} + {% elsif _type == 'system' %} + {% endif %} -
-
- + + {% endif %} + {% endfor %} +
- -
-
+
+
+ -
- + - -
-
+
+ -
- + - -
-
-
+
+ -
- + -
+ +
+
+
+ +
+ + + +
+
- -
- +
- - {{page_content}} + + {{page_content}}
-
+
- {% include javascript/index %} + {% include javascript/index %} + \ No newline at end of file