diff --git a/data/product/form.php b/data/product/form.php index 9141c2f..280b81e 100644 --- a/data/product/form.php +++ b/data/product/form.php @@ -1,6 +1,14 @@ getFullInfo($product_id); + $view_part = getRequest("part", "basic"); $view_part_file = str_replace("-", "_", $view_part); @@ -14,20 +22,13 @@ if(@file_exists($part_file)) { return [ - "product_info" => _get_product_info(), + "product_info" => $product_info, "product_menu" => _get_product_menu(), "view_part" => $view_part, ]; // helpers -function _get_product_info() { - return [ - "id" => 12, - "title" => "Máy in mã vạch MH241", - ]; -} - function _get_product_menu() { $current_selected = getRequest('part', 'basic'); $product_menu = array( diff --git a/template/product/form.html b/template/product/form.html index 40c93f9..776396a 100644 --- a/template/product/form.html +++ b/template/product/form.html @@ -2,7 +2,7 @@ @@ -16,7 +16,7 @@
{% for _menu in page.product_menu %} - {{ _menu.name }} @@ -91,4 +91,4 @@
- \ No newline at end of file + diff --git a/template/product/home.html b/template/product/home.html index 33feae2..80b6fa9 100644 --- a/template/product/home.html +++ b/template/product/home.html @@ -1,6 +1,6 @@
-

Danh sách sản phẩm

+

Danh sách sản phẩm ({{ page.total | format_number }})

@@ -86,7 +86,7 @@ STT ID Ảnh - Sản phẩm (Tổng số: 1.742) + Sản phẩm Người dùng Thông tin bán hàng Thông tin khác @@ -113,7 +113,7 @@ - {{item.title}} + {{item.title}} {% if item.config_count > 0 %}

[Có cấu hình]

{% endif %}
Danh mục: @@ -172,15 +172,15 @@
- +
- +
- +
@@ -193,7 +193,7 @@ -
\ No newline at end of file +