19/01/2024

This commit is contained in:
2024-01-19 16:06:25 +07:00
18 changed files with 1483 additions and 273 deletions

View File

@@ -57,32 +57,3 @@
<li><a href="https://flowbite.com/docs/plugins/charts/" target="_blank"> Biểu đồ </a></li>
</ul>
<h2 id="huong-dan-su-dung-git">Hướng dẫn up code sử dụng git</h2>
<p> Các bước up code:
<ol>
<li>Lấy tất cả code từ git url về máy</li>
<li>Kiểm tra trạng thái</li>
<li>Nếu có sự thay đổi, sẽ thêm file có sự thay đổi (Sẽ được thông báo ở bước 2)</li>
<li>Tạo ghi chú (Không viết tiếng việt có dấu)</li>
<li>Upload code</li>
</ol>
</p>
<p></p>
<ol>
<li><strong>git pull (git URL) master:</strong> Lấy code về máy</li>
<li><strong>git status:</strong> Kiểm tra file nào có sự thay đổi</li>
<li><strong>git add 'tên file có sự thay đổi':</strong> Là file được báo đỏ ở git status</li>
<li><strong>git commit -m 'nội dung mô tả' :</strong> Comment nội dung </li>
<li><strong>git push origin master :</strong> Upload code</li>
</ol>
<p>VD: Upload code từ url 'https://repo.hurasoft.com/ducdt/admin_hura.git', Thêm/Sửa file README.md</p>
<ol>
<li>git pull https://repo.hurasoft.com/ducdt/admin_hura.git master</li>
<li>git status</li>
<li>git add 'README.md'</li>
<li>git commit -m 'Huong dan, quy dinh'</li>
<li>git push origin master</li>
</ol>

28
data/menu.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
return _get_menu_list();
// helpers
function _get_menu_list() {
$main_items = [
'order',
'product',
'customer',
'marketing',
'investor_relation',
'article',
'job',
'pcbuilder',
'payinstall',
'distributor',
'report',
'system',
];
$menu_list = [];
foreach ($main_items as $item) {
$menu_list[$item] = include_once __DIR__."/menu_item/".$item.".php";
}
return $menu_list;
}

View File

@@ -0,0 +1,54 @@
<?php
return array(
'enable' => true ,
"name" => "Nội dung",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'article',
'view' => 'home',
'id' => 'article/home',
'name' => 'Tin bài',
'url' => '/admin/?opt=article',
),
array(
'enable' => true ,
'module' => 'media',
'view' => 'home',
'id' => 'media/home',
'name' => 'Thư viện file Media',
'url' => '/admin/?opt=media',
),
array(
'enable' => true ,
'module' => 'page',
'view' => 'home',
'id' => 'page/home',
'name' => 'Nội dung cố định',
'url' => '/admin/?opt=page',
),
array(
'enable' => true ,
'module' => 'album',
'view' => 'home',
'id' => 'album/home',
'name' => 'Thư viện ảnh',
'url' => '/admin/?opt=album',
),
array(
'enable' => true ,
'module' => 'video',
'view' => 'home',
'id' => 'video/home',
'name' => 'Video',
'url' => '/admin/?opt=video',
),
),
);

36
data/menu_item/ask.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
return array(
'enable' => true ,
"name" => "Hỏi đáp",
"url" => "",
"menu" => array(
0 => array(
'enable' => true ,
'module' => 'ask',
'view' => 'home',
'id' => 'ask/home',
'name' => 'Danh sách câu hỏi',
'url' => '/admin/?opt=ask',
),
1 => array(
'enable' => true ,
'module' => 'ask',
'view' => 'answer-list',
'id' => 'ask/answer-list',
'name' => 'Danh sách trả lời',
'url' => '/admin/?opt=ask&view=answer-list',
),
2 => array(
'enable' => true ,
'module' => 'ask',
'view' => 'category',
'id' => 'ask/ask',
'name' => 'Danh mục hỏi đáp',
'url' => '/admin/?opt=ask&view=category',
),
),
);

View File

@@ -0,0 +1,75 @@
<?php
return array(
'enable' => true ,
"name" => "Khách hàng",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'customer',
'view' => 'home',
'id' => 'customer/home',
'name' => 'Danh sách khách hàng',
'url' => '/admin/?opt=customer',
),
/*array(
'enable' => true ,
'module' => 'customer',
'view' => 'customer-group',
'id' => 'customer/customer-group',
'name' => 'Nhóm khách hàng',
'url' => '/admin/?opt=customer&view=customer-group',
),*/
array(
'enable' => true ,
'module' => 'customer',
'view' => 'customer-contact',
'id' => 'customer/customer-contact',
'name' => 'Khách hàng liên hệ',
'url' => '/admin/?opt=customer&view=customer-contact',
),
array(
'enable' => true ,
'module' => 'customer',
'view' => 'comment',
'id' => 'customer/comment',
'name' => 'Tổng hợp trao đổi',
'url' => '/admin/?opt=customer&view=comment',
),
array(
'enable' => true ,
'module' => 'customer',
'view' => 'review',
'id' => 'customer/review',
'name' => 'Tổng hợp Đánh giá',
'url' => '/admin/?opt=customer&view=review',
),
array(
'enable' => true ,
'module' => 'customer',
'view' => 'customer-review',
'id' => 'customer/customer-review',
'name' => 'Khách hàng góp ý',
'url' => '/admin/?opt=customer&view=customer-review',
),
array(
'enable' => true ,
'module' => 'customer',
'view' => 'customer-newsletter',
'id' => 'customer/customer-newsletter',
'name' => 'Khách hàng nhận bản tin',
'url' => '/admin/?opt=customer&view=customer-newsletter',
),
),
);

View File

@@ -0,0 +1,17 @@
<?php
return array(
'enable' => true ,
"name" => "Đại lý",
"url" => "",
"menu" => array(
0 => array(
'enable' => true ,
'module' => 'distributor',
'view' => 'home',
'id' => 'distributor/home',
'name' => 'Danh sách',
'url' => '/admin/?opt=distributor',
),
),
);

View File

@@ -0,0 +1,73 @@
<?php
return array(
'enable' => true ,
"name" => "Quan hệ cổ đông",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'annual_report',
'name' => 'Báo cáo thường niên',
'id' => 'investor_relation/annual_report',
'url' => '/admin/?opt=investor_relation&view=annual_report',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'charter',
'name' => 'Điều lệ hoạt động',
'id' => 'investor_relation/charter',
'url' => '/admin/?opt=investor_relation&view=charter',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'governance',
'name' => 'Quy chế quản trị',
'id' => 'investor_relation/governance',
'url' => '/admin/?opt=investor_relation&view=governance',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'financial_reports',
'name' => 'Báo cáo tài chính',
'id' => 'investor_relation/financial_reports',
'url' => '/admin/?opt=investor_relation&view=financial_reports',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'info_disclosure',
'name' => 'Công bố thông tin',
'id' => 'investor_relation/info_disclosure',
'url' => '/admin/?opt=investor_relation&view=info_disclosure',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'management_report',
'name' => 'Báo cáo quản trị',
'id' => 'investor_relation/management_report',
'url' => '/admin/?opt=investor_relation&view=management_report',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'shareholder_meeting',
'name' => 'Đại hội cổ đông',
'id' => 'investor_relation/shareholder_meeting',
'url' => '/admin/?opt=investor_relation&view=shareholder_meeting',
),
array(
'enable' => true ,
'module' => 'investor_relation',
'view' => 'whitepaper',
'name' => 'Báo cáo bạch',
'id' => 'investor_relation/whitepaper',
'url' => '/admin/?opt=investor_relation&view=whitepaper',
),
),
);

27
data/menu_item/job.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
return array(
'enable' => true ,
"name" => "Tuyển dụng",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'job',
'view' => 'home',
'id' => 'job/home',
'name' => 'Vị trí tuyển',
'url' => '/admin/?opt=job',
),
array(
'enable' => true ,
'module' => 'job',
'view' => 'home',
'id' => 'job/home',
'name' => 'Quản lý hồ sơ',
'url' => '/admin/?opt=job&view=applicants',
),
),
);

View File

@@ -0,0 +1,163 @@
<?php
return array(
'enable' => true ,
"name" => "Marketing",
"url" => "",
"menu" => array(
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'promotion',
'id' => 'marketing/promotion',
'name' => 'Khuyến mại theo sản phẩm',
'url' => '/admin/?opt=marketing&view=promotion',
),
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'coupon',
'id' => 'marketing/coupon',
'name' => 'Phiếu giảm giá - Voucher',
'url' => '/admin/?opt=marketing&view=coupon',
),
array(
'enable' => true ,
'module' => 'banner',
'view' => 'home',
'id' => 'banner/home',
'name' => 'Danh sách banner',
'url' => '/admin/?opt=banner',
),
array(
'enable' => true ,
'module' => 'system',
'view' => 'store-design',
'id' => 'system/store-design',
'name' => 'Banner pop-up',
'url' => '/admin/?opt=system&view=store-design&section=popup',
),
array(
'enable' => true ,
'module' => 'marketing',
'view' => 'poster-upload',
'id' => 'marketing/poster-upload',
'name' => 'Poster',
'url' => '/admin/?opt=marketing&view=poster-upload',
),
array(
'enable' => true ,
'module' => 'system',
'view' => 'store-design',
'id' => 'system/store-design',
'name' => 'Hình nền website',
'url' => '/admin/?opt=system&view=store-design&section=background',
),
array(
'enable' => false,
'module' => 'email',
'view' => 'home',
'id' => 'email/home',
'name' => 'Email',
'url' => '/admin/?opt=email',
),
array(
'enable' => false,
'module' => 'url',
'view' => 'meta-list',
'id' => 'url/meta-list',
'name' => 'Sửa thông tin URL',
'url' => '/admin/?opt=url&view=meta-list',
),
array(
'enable' => false,
'module' => 'url',
'view' => 'url-seo',
'id' => 'url/url-seo',
'name' => 'Link SEO',
'url' => '/admin/?opt=url&view=url-seo',
),
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'feed',
'id' => 'marketing/feed',
'name' => 'Facebook/Google Feed',
'url' => '/admin/?opt=marketing&view=feed',
),
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'product-offer',
'id' => 'marketing/product-offer',
'name' => 'Cài biểu tượng giảm giá',
'url' => '/admin/?opt=marketing&view=product-offer',
),
/*array(
'enable' => true ,
'module' => 'marketing',
'view' => 'lead-program',
'id' => 'marketing/lead-program',
'name' => 'Thu thập khách hàng',
'url' => '/admin/?opt=marketing&view=lead-program',
),*/
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'program',
'id' => 'marketing/program',
'name' => 'Chương trình khuyến mại',
'url' => '/admin/?opt=marketing&view=program',
),
array(
'enable' => false ,
'module' => 'deal',
'view' => 'home',
'id' => 'deal/home',
'name' => 'Deal/giờ vàng',
'url' => '/admin/?opt=deal',
),
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'combo-deal',
'id' => 'marketing/combo-deal',
'name' => 'Bán Combo',
'url' => '/admin/?opt=marketing&view=combo-deal',
),
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'conditional-promotion',
'id' => 'marketing/conditional-promotion',
'name' => 'Khuyến mại BuildPC',
'url' => '/admin/?opt=marketing&view=conditional-promotion',
),
array(
'enable' => false ,
'module' => 'marketing',
'view' => 'live-support-per-category',
'id' => 'marketing/live-support-per-category',
'name' => 'Hỗ trợ theo từng danh mục',
'url' => '/admin/?opt=marketing&view=live-support-per-category',
),
),
);

54
data/menu_item/order.php Normal file
View File

@@ -0,0 +1,54 @@
<?php
return array(
'enable' => true ,
"name" => "Bán hàng",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'order',
'view' => 'home',
'id' => 'order/home',
'name' => 'Danh sách đơn hàng',
'url' => '/admin/?opt=order', // &list=new
),
array(
'enable' => true ,
'module' => 'order',
'view' => 'bargain',
'id' => 'order/bargain',
'name' => 'Mặc cả giá',
'url' => '/admin/?opt=order&view=bargain',
),
array(
'enable' => true ,
'module' => 'order',
'view' => 'wait-order',
'id' => 'order/wait-order',
'name' => 'Chờ mua sản phẩm',
'url' => '/admin/?opt=order&view=wait-order',
),
array(
'enable' => true ,
'module' => 'order',
'view' => 'paygate',
'id' => 'order/paygate',
'name' => 'Thanh toán qua cổng dịch vụ',
'url' => '/admin/?opt=order&view=paygate',
),
array(
'enable' => true ,
'module' => 'order',
'view' => 'price-quote',
'id' => 'order/price-quote',
'name' => 'Lập báo giá',
'url' => '/admin/?opt=order&view=price-quote',
),
),
);

View File

@@ -0,0 +1,36 @@
<?php
return array(
'enable' => true ,
"name" => "Trả góp",
"url" => "",
"menu" => array(
0 => array(
'enable' => true ,
'module' => 'payinstall',
'view' => 'order',
'id' => 'payinstall/order',
'name' => 'Danh sách đơn hàng',
'url' => '/admin/?opt=payinstall&view=order',
),
1 => array(
'enable' => true ,
'module' => 'payinstall',
'view' => 'home',
'id' => 'payinstall/home',
'name' => 'Cài đặt trả góp',
'url' => '/admin/?opt=payinstall',
),
2 => array(
'enable' => true ,
'module' => 'payinstall',
'view' => 'category',
'id' => 'payinstall/category',
'name' => 'Danh mục sản phẩm',
'url' => '/admin/?opt=payinstall&view=category',
),
),
);

View File

@@ -0,0 +1,29 @@
<?php
return array(
'enable' => true ,
"name" => "Xây dựng máy tính",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'pcbuilder',
'view' => 'home',
'id' => 'pcbuilder/home',
'name' => 'Linh kiện xây dựng',
'url' => '/admin/?opt=pcbuilder',
),
array(
'enable' => true ,
'module' => 'pcbuilder',
'view' => 'preconfig',
'id' => 'pcbuilder/preconfig',
'name' => 'Bộ máy tính mẫu',
'url' => '/admin/?opt=pcbuilder&view=preconfig',
),
),
);

171
data/menu_item/product.php Normal file
View File

@@ -0,0 +1,171 @@
<?php
// set 'enable' => true|false per client instead of commenting out
return array(
'enable' => true ,
"name" => "Sản phẩm",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'product',
'view' => 'home',
'id' => 'product/home',
'name' => 'Sản phẩm',
'url' => '/admin/?opt=product',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'user-rating',
'id' => 'product/user-rating',
'name' => 'Đánh giá ',
'url' => '/admin/?opt=product&view=user-rating',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'product-customer-image',
'id' => 'product/product-customer-image',
'name' => 'Ảnh người dùng gửi',
'url' => '/admin/?opt=product&view=product-customer-image',
),
array(
'enable' => true ,
'module' => 'product',
'view' => 'product-list-update',
'id' => 'product/product-list-update',
'name' => 'Bảng giá cập nhật',
'url' => '/admin/?opt=product&view=product-list-update',
),
array(
'enable' => true ,
'module' => 'product',
'view' => 'category',
'id' => 'product/category',
'name' => 'Danh mục',
'url' => '/admin/?opt=product&view=category',
),
array(
'enable' => true ,
'module' => 'brand',
'view' => 'home',
'id' => 'brand/home',
'name' => 'Thương hiệu',
'url' => '/admin/?opt=brand',
),
array(
'enable' => true ,
'module' => 'product',
'view' => 'attribute',
'id' => 'product/attribute',
'name' => 'Thuộc tính ',
'url' => '/admin/?opt=product&view=attribute',
),
array(
'enable' => true ,
'module' => 'product',
'view' => 'collection',
'id' => 'product/collection',
'name' => 'Bộ sưu tập',
'url' => '/admin/?opt=product&view=collection',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'product-wait-list',
'id' => 'product/product-wait-list',
'name' => 'Chờ mua sản phẩm',
'url' => '/admin/?opt=product&view=product-wait-list',
),
array(
'enable' => false ,
'module' => 'addon',
'view' => 'home',
'id' => 'addon/home',
'name' => 'SP/Dịch vụ mua kèm',
'url' => '/admin/?opt=addon',
),
array(
'enable' => false ,
'module' => 'config_group',
'view' => 'home',
'id' => 'config_group/home',
'name' => 'Nhóm cấu hình',
'url' => '/admin/?opt=config_group',
),
array(
'enable' => false ,
'module' => 'supplier',
'view' => 'home',
'id' => 'supplier/home',
'name' => 'Nhà cung cấp',
'url' => '/admin/?opt=supplier',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'product-erp-not-web',
'id' => 'product/product-erp-not-web',
'name' => 'SP ERP chưa có trên web',
'url' => '/admin/?opt=product&view=product-erp-not-web',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'set-promotion-price',
'id' => 'product/set-promotion-price',
'name' => 'Cài đặt giá khuyến mại',
'url' => '/admin/?opt=product&view=set-promotion-price',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'product-per-customer-group',
'id' => 'product/product-per-customer-group',
'name' => 'Giá theo nhóm khách hàng',
'url' => '/admin/?opt=product&view=product-per-customer-group',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'list-competitor',
'id' => 'product/list-competitor',
'name' => 'So sánh giá đối thủ',
'url' => '/admin/?opt=product&view=list-competitor',
),
array(
'enable' => false ,
'module' => 'product',
'view' => 'set',
'id' => 'product/set',
'name' => 'Set sản phẩm',
'url' => '/admin/?opt=product&view=set',
),
array(
'enable' => true ,
'module' => 'product',
'view' => 'spec-group',
'id' => 'product/spec-group',
'name' => 'Nhóm thông số kỹ thuật',
'url' => '/admin/?opt=product&view=spec-group',
),
),
);

81
data/menu_item/report.php Normal file
View File

@@ -0,0 +1,81 @@
<?php
return array(
'enable' => true ,
"name" => "Thống kê",
"url" => "",
"menu" => array(
0 => array(
'enable' => true ,
'module' => 'report',
'view' => 'visitor',
'id' => 'report/visitor',
'name' => 'Thống kê truy cập',
'url' => '/admin/?opt=report&view=visitor',
),
1 => array(
'enable' => true ,
'module' => 'report',
'view' => 'customer',
'id' => 'report/customer',
'name' => 'Thống kê khách hàng',
'url' => '/admin/?opt=report&view=customer',
),
2 => array(
'enable' => true ,
'module' => 'report',
'view' => 'order',
'id' => 'report/order',
'name' => 'Thống kê đơn hàng',
'url' => '/admin/?opt=report&view=order',
),
3 => array(
'enable' => true ,
'module' => 'report',
'view' => 'product-buy',
'id' => 'report/product-buy',
'name' => 'Sản phẩm mua nhiều',
'url' => '/admin/?opt=report&view=product-buy',
),
4 => array(
'enable' => true ,
'module' => 'report',
'view' => 'product-visit',
'id' => 'report/product-visit',
'name' => 'Sản phẩm xem nhiều',
'url' => '/admin/?opt=report&view=product-visit',
),
5 => array(
'enable' => true ,
'module' => 'report',
'view' => 'referer',
'id' => 'report/referer',
'name' => 'Web giới thiệu',
'url' => '/admin/?opt=report&view=referer',
),
6 => array(
'enable' => true ,
'module' => 'report',
'view' => 'search',
'id' => 'report/search',
'name' => 'Từ khóa tìm kiếm',
'url' => '/admin/?opt=report&view=search',
),
/*7 => array(
'enable' => true ,
'module' => 'report',
'view' => 'error-page',
'id' => '',
'name' => 'Lỗi website',
'url' => '/admin/?opt=report&view=error-page',
),*/
),
);

181
data/menu_item/system.php Normal file
View File

@@ -0,0 +1,181 @@
<?php
return array(
'enable' => true ,
"name" => "Hệ thống",
"url" => "",
"menu" => array(
array(
'enable' => true ,
'module' => 'system',
'view' => 'settings',
'id' => 'system/settings',
'name' => 'Cài đặt chung',
'url' => '/admin/?opt=system&view=settings',
),
array(
'enable' => true ,
'module' => 'template',
'view' => 'home',
'id' => 'template/home',
'name' => 'Sửa file template',
'url' => '/admin/?opt=template',
),
array(
'enable' => true ,
'module' => 'admin',
'view' => 'home',
'id' => '',
'name' => 'Quản trị viên',
'url' => '/admin/?opt=admin',
),
array(
'enable' => true ,
'module' => 'system',
'view' => 'store-address',
'id' => '',
'name' => 'Địa chỉ cửa hàng',
'url' => '/admin/?opt=system&view=store-address',
),
/*4 => array(
'enable' => true ,
'module' => 'system',
'view' => 'domain',
'id' => 'system/domain',
'name' => 'Cài đặt tên miền',
'url' => '/admin/?opt=system&view=domain',
),*/
/*array(
'enable' => true ,
'module' => 'system',
'view' => 'ban-ip',
'id' => '',
'name' => 'Chặn IP truy cập website',
'url' => '/admin/?opt=system&view=ban-ip',
),
array(
'enable' => true ,
'module' => 'system',
'view' => 'change-info',
'id' => '',
'name' => 'Thông tin website',
'url' => '/admin/?opt=system&view=change-info',
),*/
/*
array(
'enable' => true ,
'module' => 'system',
'view' => 'province-list',
'id' => '',
'name' => 'Cài đặt tỉnh thành',
'url' => '/admin/?opt=system&view=province-list',
),*/
/*9 => array(
'enable' => true ,
'module' => 'system',
'view' => 'home',
'id' => '',
'name' => 'Tình trạng đơn hàng',
'url' => '/admin/?opt=system&view=order-status',
),*/
/*array(
'enable' => true ,
'module' => 'online_support',
'view' => 'home',
'id' => '',
'name' => 'Hỗ trợ bán hàng',
'url' => '/admin/?opt=online_support',
),*/
/*array(
'enable' => true ,
'module' => 'system',
'view' => 'country',
'id' => '',
'name' => 'Quốc gia',
'url' => '/admin/?opt=system&view=country',
),*/
/*12 => array(
'enable' => true ,
'module' => 'report_out',
'view' => 'home',
'id' => '',
'name' => 'Cài đặt thông báo ngoài',
'url' => '/admin/?opt=report_out',
),*/
/*array(
'enable' => true ,
'module' => 'shipping2',
'view' => 'home',
'id' => '',
'name' => 'Cài đặt phí vận chuyển',
'url' => '/admin/?opt=shipping2',
),*/
array(
'enable' => true ,
'module' => 'url',
'view' => 'redirect',
'id' => 'url/redirect',
'name' => 'Url Redirect',
'url' => '/admin/?opt=url&view=redirect',
),
array(
'enable' => true ,
'module' => 'tool',
'view' => 'home',
'id' => 'tool/home',
'name' => 'Công cụ',
'url' => '/admin/?opt=tool',
),
/*array(
'enable' => true ,
'module' => 'civi',
'view' => 'home',
'id' => '',
'name' => 'Civi Affiliate',
'url' => '/admin/?opt=civi',
),
array(
'enable' => true ,
'module' => 'menu',
'view' => 'home',
'id' => 'menu/home',
'name' => 'Quản trị menu',
'url' => '/admin/?opt=menu',
),
array(
'enable' => true ,
'module' => 'system',
'view' => 'keyword-suggest',
'id' => 'system/keyword-suggest',
'name' => 'Từ khóa gợi ý',
'url' => '/admin/?opt=system&view=keyword-suggest',
),*/
array(
'enable' => true ,
'module' => 'tag',
'view' => 'home',
'id' => 'tag/home',
'name' => 'Quản trị Tag',
'url' => '/admin/?opt=tag',
),
),
);

View File

@@ -0,0 +1,27 @@
<?php
return array(
'enable' => true ,
"name" => "Bảo hành sản phẩm",
"url" => "",
"menu" => array(
/*0 => array(
'enable' => true ,
'module' => 'warranty',
'view' => 'home',
'id' => '',
'name' => 'Khách hàng đăng ký',
'url' => '/admin/?opt=warranty&view=customer-register',
),*/
array(
'enable' => true ,
'module' => 'warranty',
'view' => 'home',
'id' => 'warranty/home',
'name' => 'Danh sách bảo hành',
'url' => '/admin/?opt=warranty',
),
),
);

View File

@@ -56,7 +56,7 @@ class AppAdmin
$data = include_once $module_file;
$global_data = [
"main_menu" => include_once ROOT_DIR."/data/menu.php",
];
$this->data = array(

View File

@@ -28,6 +28,10 @@
<body>
<div class="admin-global-container">
{{ global | show_var }}
<div class="admin-global-container">
<!-- Menu cũ -->
@@ -58,6 +62,13 @@
fill="white" />
</svg>
</summary>
<div class="sub-menu">
{% for _item in global.main_menu.order.menu %}
<a href="?module={{_item.module }}&view={{_item.view }}"> {{_item.name }} </a>
{% endfor %}
</div>
</details>
<div class="sub-menu">
<a href=""> Menu title </a>
@@ -232,14 +243,190 @@
</div>
<!-- Menu mới -->
<div class="admin-menu sticky top-0 bottom-0 h-[100vh] bg-[#004E99] flex flex-col justify-between" id="menu-small">
<div class="admin-menu sticky top-0 bottom-0 h-[100vh] bg-[#004E99] flex flex-col justify-between"
id="menu-small">
<a href="javascript:void(0)" class="icon-close" id="js-show-menu">
<i class="fa-solid fa-indent"></i>
</a>
<div class="item">
<a href="/" class="icons icon-home"> </a>
<div class="sub-menu">
<p class="font-bold"> Home </p>
</div>
</div>
<div class="item">
<a href="" class="icons icon-sell"> </a>
<div class="sub-menu">
<p class="font-bold"> Bán hàng </p>
<div class="menu-list">
{% for _item in global.main_menu.order.menu %}
<a href="/?module={{_item.module }}&view={{_item.view }}"> {{_item.name }} </a>
{% endfor %}
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-product"> </a>
<div class="sub-menu">
<p class="font-bold"> Sản phẩm </p>
<div class="menu-list">
<a href="?module=product"> Danh sách </a>
<a href="?module=product&view=form"> Thêm sản phẩm </a>
<a href="?module=product&view=category"> Danh mục </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-user"> </a>
<div class="sub-menu">
<p class="font-bold"> Khách hàng </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-marketing"> </a>
<div class="sub-menu">
<p class="font-bold"> Marketing </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-content"> </a>
<div class="sub-menu">
<p class="font-bold"> Nội dung </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-stats"> </a>
<div class="sub-menu">
<p class="font-bold"> Thống kê </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item border-[rgba(255,255,255,0.15)] border-b">
<a href="" class="icons icon-system"> </a>
<div class="sub-menu">
<p class="font-bold"> Hệ thống </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
</div>
<div>
<a href="/"
class="item items-center justify-center border-[rgba(255,255,255,0.15)] border-b p-[20px_0_38px_!important]">
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="21" viewBox="0 0 35 21" fill="none">
<div class="item">
<a href="" class="icons icon-settings"> </a>
<div class="sub-menu">
<p class="font-bold"> Cài đặt </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-support"> </a>
<div class="sub-menu">
<p class="font-bold"> Hỗ trợ </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
<div class="item">
<a href="" class="icons icon-account"> </a>
<div class="sub-menu">
<p class="font-bold"> Quản lý tài khoản </p>
<div class="menu-list">
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
<a href=""> Menu title </a>
</div>
</div>
</div>
</div>
<div class="item mb-[20px]">
<a href="" class="icons icon-logout"> </a>
<div class="sub-menu">
<p class="font-bold"> Thoát quản trị </p>
</div>
</div>
</div>
<div class="admin-content-container w-[100%]">
<!-- Header -->
<div class="admin-header-container flex items-center justify-between bg-white px-4 py-3">
<form class="max-w-[420px] relative w-[100%]">
<div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"
fill="none">
<path
d="M28.5184 7.75141C28.4928 10.6955 27.8993 11.3464 27.8993 11.3464C29.065 3.56585 22.8312 0.686397 22.8312 0.686397C14.1636 -2.28358 11.3328 5.34611 11.3328 5.34611C5.84614 4.92368 4.24499 10.0963 4.24499 10.0963C10.9656 11.1611 9.15091 16.8812 9.15091 16.8812C9.36867 12.5146 6.78975 11.4887 6.78975 11.4887C2.42608 9.30752 0.355256 13.7302 0.355256 13.7302C-1.31421 19.2347 3.44228 20.4891 3.44228 20.4891H28.9967C35.0725 19.6098 34.748 14.1052 34.748 14.1052C34.1246 7.61347 28.5184 7.75141 28.5184 7.75141Z"
fill="white" />