This commit is contained in:
2025-12-07 15:58:07 +07:00
parent 75a641ab40
commit 942aeafb60
2211 changed files with 178727 additions and 89 deletions

106
old/template/admin/add.html Normal file
View File

@@ -0,0 +1,106 @@
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href=""> Form thêm/sửa quản trị viên </a>
</div>
<div class="max-w-[1141px] flex flex-wrap items-start m-[0_auto_16px_auto]">
<div
class="w-[100%] p-[11px_16px] bg-white m-[0_0_16px] rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] leading-[18px]">
<p class="font-bold text-[20px] leading-[26px] block"> Cập nhật quản trị </p>
</div>
<div
class="w-[270px] m-[0_16px_0_0] bg-white rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] font-[500] leading-[24px] overflow-hidden">
<a href="/admin/admin/add" style="color: #Fff;background: #0041E8;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Thông tin
</a>
<a href="/admin/admin/menu-permission" style="color: #919699;border-bottom: 1px solid #f3f3f3;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Quyền xem menu
</a>
<a href="/admin/admin/entity-permission" style="color: #919699;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Quyền chỉnh sửa
</a>
</div>
<div class="w-[852px]">
<div class="p-[15px] bg-white rounded-[15px_15px_0_0] shadow-[0px_-1px_1px_0px_#0000001A]">
<div class="form-control mb-[15px] w-[100%]">
<label class="block font-[600] text-[14px] mb-[5px]">Họ và tên</label>
<input name="" id="" placeholder="Họ và tên" value="Khắc tiệp"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]" />
</div>
<div class="form-control mb-[15px] w-[100%]">
<label class="block font-[600] text-[14px] mb-[5px]">Phòng ban</label>
<div class="flex items-center">
<select name="" id=""
class="w-[50%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
<option value="">Chọn phòng ban</option>
</select>
<a href="/admin/admin/department-add" class="ml-[5px] text-[#0041E8]">Quản lý phòng ban</a>
</div>
</div>
<div class="form-control mb-[15px] w-[100%]">
<label class="block font-[600] text-[14px] mb-[5px]">Email (dùng đăng nhập)</label>
<input name="" id="" placeholder="Email" value="tieptk@hurasoft.com"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]" />
</div>
<div class="form-control mb-[15px] w-[100%]">
<div class="flex items-center mb-[5px]">
<label class="font-[600] text-[14px]">Mật khẩu đăng nhập (nếu không đổi mật khẩu thì để
trống)</label>
<span class="ml-[5px] text-[#6B7280] italic">(* tối thiểu 6 ký tự)</span>
</div>
<input name="" type="password" id=""
placeholder="Mật khẩu đăng nhập (nếu không đổi mật khẩu thì để trống)"
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]" />
</div>
<div class="form-control mb-[15px] w-[100%]">
<label class="block font-[600] text-[14px] mb-[5px]">Địa chỉ IP giới hạn truy cập. Nhập mỗi IP một dòng
(IP mạng của bạn là : 2405:4802:1d21:1660:45f1:2aba:d8c0:b1f1)
</label>
<textarea name="" id="" placeholder="Địa chỉ IP giới hạn truy cập. Nhập mỗi IP một dòng"
class="w-[100%] h-[80px] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]"></textarea>
</div>
<label class="check-form flex items-center mb-[15px] cursor-pointer">
<input type="checkbox" name="change_url_on_update" value="1" checked=""
class="checkbox checkbox-success">
<span class="ml-[10px] text-[#6B7280] label-text">Không giới hạn theo IP. Cho phép người ngày truy cập
quản trị
website ở mọi nơi (v.d. ở nhà, nơi công cộng)</span>
</label>
<div class="form-control mb-[15px] w-[100%]">
<label class="block font-[600] text-[14px] mb-[5px]">Phân quyền đặc biệt</label>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="change_url_on_update" value="1" checked=""
class="checkbox checkbox-success">
<span class="ml-[10px] text-[#6B7280] label-text">Cho phép tất cả quyền hạn (* quản trị viên có đặc
quyền này
sẽ
không cần bị hạn chế bởi quy định phân quyền)
</span>
</label>
</div>
<div class="form-control w-[100%]">
<label class="block font-[600] text-[14px] mb-[5px]">Khóa thành viên</label>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="change_url_on_update" value="1" checked=""
class="checkbox checkbox-success">
<span class="ml-[10px] text-[#6B7280] label-text">Cho phép tất cả quyền hạn (* quản trị viên có đặc
quyền này
sẽ không cần bị hạn chế bởi quy định phân quyền)
</span>
</label>
</div>
</div>
<div
class="p-[15px] bg-white border-t-[6px] border-[#FAFAFB] rounded-[0_0_15px_15px] shadow-[0px_1px_1px_0px_#0000001A]">
<input type="submit" value="Cập nhật"
class="inline-block cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
</div>
</div>
</div>

View File

@@ -0,0 +1,45 @@
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href="" class="text-[#0041E8]"> Theo dõi hoạt động tạo sản phẩm </a>
</div>
<div class="p-[15px] m-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<div class="flex items-center justify-between">
<h1 class="text-[24px] font-[700] ">Theo dõi hoạt động tạo sản phẩm</h1>
<div class="flex items-center">
<a href="/admin/admin"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<span class="ml-1">Danh sách quản trị</span>
</a>
</div>
</div>
<table class="mt-[25px]">
<thead class="bg-[#f6f6f6] text-[14px] text-[#000] font-bold">
<tr>
<td>STT</td>
<td>Quản trị</td>
<td>Ngày</td>
<td>Tổng Sản phẩm tạo</td>
<td>Sản phẩm được duyệt</td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><a href="" class="text-blue-600">adminkenli@gmail.com</a></td>
<td><a href="" class="text-blue-600">2025-3-12</a></td>
<td>
<div class="flex items-center">
<span>1 -</span>
<a href="" class="text-blue-600">Xem</a>
</div>
</td>
<td>0</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,48 @@
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href="" class="text-[#0041E8]"> Danh sách phòng ban </a>
</div>
<div class="p-[15px] m-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<div class="flex items-center justify-between">
<h1 class="text-[24px] font-[700] ">Danh sách phòng ban</h1>
<div class="flex items-center">
<a href="/admin/admin/department_add"
class="flex items-center p-[7px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[15px] font-[500]">
<span
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[12px] text-center rounded-[50%] mr-1">+</span>
<span>Thêm phòng ban mới</span>
</a>
<a href="/admin/admin"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<span class="ml-1">Danh sách quản trị</span>
</a>
</div>
</div>
<table class="mt-[25px] table">
<thead class="bg-[#f6f6f6] text-[14px] text-[#000] font-500">
<tr>
<th class="w-[38px]">STT</th>
<th>Phòng ban</th>
<th>Email</th>
<th>Code</th>
<th>Quản trị</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Hurasoft test code không được xóa</td>
<td></td>
<td></td>
<td><a href="/admin/admin/department_add&id=1" class="font-bold">Sửa lại</a></td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,81 @@
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href="" class="text-[#0041E8]"> Form sửa phòng ban </a>
</div>
<div class="max-w-[1141px] m-[0_auto_16px_auto]">
<div class="p-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<div class="flex items-center justify-between">
<h1 class="text-[24px] font-[700] ">Thêm phòng ban</h1>
<div class="flex items-center">
<a href="/admin/admin/department_add"
class="flex items-center p-[7px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[15px] font-[500]">
<span
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[12px] text-center rounded-[50%] mr-1">+</span>
<span>Thêm mới</span>
</a>
<a href="/admin/admin/department" class=" flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px]
text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white
font-[500]">
<span class="ml-1">Danh sách phòng ban</span>
</a>
<a href="/admin/admin"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<span class="ml-1">Danh sách quản trị</span>
</a>
</div>
</div>
</div>
<div class="flex mt-[15px]">
<div class="left w-[270px] mr-[10px]">
<div class="list-tab rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] overflow-hidden">
<a href="/admin/distributor/form"
class="item block w-[100%] h-[36px] text-white bg-[#0041E8] rounded-[10px_10px_0_0] leading-[35px] px-[20px]">Thông
tin</a>
<a href="/admin/admin/department_menu_permission?id=0"
class="item block w-[100%] h-[36px] bg-white leading-[35px] px-[20px] border-b-[1px] border-gray-100 hover:bg-[#0041E8] hover:text-white">Quyền
xem menu</a>
<a href="/admin/admin/department_entity_permission?id=0"
class="item block w-[100%] h-[36px] bg-white rounded-[0_0_10px_10px] leading-[35px] px-[20px] hover:bg-[#0041E8] hover:text-white">Quyền
chỉnh sửa</a>
</div>
</div>
<div class="right w-[860px]">
<div
class="p-[15px] bg-white rounded-[10px_10px_0_0] shadow-[0px_-1px_1px_0px_#0000001A] border-b-[6px] border-[#FAFAFB]">
<b class="block text-[20px] mb-[23px]">Thông tin phong ban</b>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Tên phòng
ban</label>
<input type="text" name="" value="Test" placeholder="Tên phòng ban"
class="w-[100%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Email</label>
<input type="text" name="" value="Test" placeholder="Địa chỉ email"
class="w-[100%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Code</label>
<input type="text" name="" value="Test" placeholder="Code"
class="w-[100%] input input-md input-bordered h-[35px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]">
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Mô tả</label>
<textarea type="text" name="" value="Test" placeholder="Code"
class="w-[100%] h-[70px] textarea input-bordered rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]"></textarea>
</div>
</div>
<div class="p-[15px] bg-white rounded-[0_0_10px_10px] shadow-[0px_1px_1px_0px_#0000001A] mt-15px]">
<input type="hidden" name="create" value="yes" />
<input name="commit" type="submit" value="Cập nhật"
class="inline-block cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,136 @@
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href="" class="text-[#0041E8]"> Form sửa phòng ban </a>
</div>
<div class="max-w-[1141px] m-[0_auto_16px_auto]">
<div class="p-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<div class="flex items-center justify-between">
<h1 class="text-[24px] font-[700] ">Thêm phòng ban</h1>
<div class="flex items-center">
<a href="/admin/admin/department_add"
class="flex items-center p-[7px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[15px] font-[500]">
<span
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[12px] text-center rounded-[50%] mr-1">+</span>
<span>Thêm mới</span>
</a>
<a href="/admin/admin/department" class=" flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px]
text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white
font-[500]">
<span class="ml-1">Danh sách phòng ban</span>
</a>
<a href="/admin/admin"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<span class="ml-1">Danh sách quản trị</span>
</a>
</div>
</div>
</div>
<div class="flex mt-[15px]">
<div class="left w-[270px] mr-[10px]">
<div class="list-tab rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] overflow-hidden">
<a href="/admin/distributor/form"
class="item block w-[100%] h-[36px] bg-white rounded-[10px_10px_0_0] border-b-[1px] border-gray-100 leading-[35px] px-[20px] hover:bg-[#0041E8] hover:text-white">Thông
tin</a>
<a href="/admin/admin/department_menu_permission?id=0"
class="item block w-[100%] h-[36px] bg-white leading-[35px] px-[20px] border-b-[1px] border-gray-100 hover:bg-[#0041E8] hover:text-white">Quyền
xem menu</a>
<a href="/admin/admin/department_entity_permission?id=0"
class="item block w-[100%] h-[36px] bg-[#0041E8] text-white rounded-[0_0_10px_10px] leading-[35px] px-[20px] hover:bg-[#0041E8] hover:text-white">Quyền
chỉnh sửa</a>
</div>
</div>
<div class="right w-[860px]">
<div class="p-[15px] bg-white rounded-[15px_15px_0_0] shadow-[0px_-1px_1px_0px_#0000001A]">
<b class="block mb-[15px] font-[20px]">Cài đặt quyền xem Menu cho: Tiệp Hura</b>
<div class="mb-[20px] text-[#6B7280]">
<p class="mb-[20px]">Trong trường hợp quản trị viên không được cập nhật quyền tại đây thì quyền
của quản
trị viên sẽ được
thừa hưởng từ quyền
của phòng ban.
</p>
<p> <b>Lưu ý:</b> Quyền xem menu chỉ quy định việc ẩn/hiện nội dung ở Menu, không quy định việc
quản trị viên có thể
xem được nội dung chi tiết của 1 hạng mục nào đó hay không nếu quản trị viên đó biết được
đường link
truy cập. Để hạn
chế quản trị viên xem hạng mục, bạn cần cài đặt ở Quyền hạng mục.
</p>
</div>
<table class="table">
<thead class="bg-[#f6f6f6] text-[#000] font-[500]">
<tr>
<th class="w-[40px]">STT</th>
<th>Hạng mục</th>
<th class="w-[210px]">Được phép xem</th>
</tr>
</thead>
<tbody>
<tr class="bg-[#FFE6C1] font-[700]">
<td>1</td>
<td colspan="2">Bán hàng</td>
</tr>
<tr>
<td>1.1</td>
<td>Danh sách đơn hàng</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr>
<td>1.2</td>
<td>Chờ mua sản phẩm</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr>
<td>1.3</td>
<td>Thanh toán qua cổng dịch vụ</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr class="bg-[#FFE6C1] font-[700]">
<td>2</td>
<td colspan="2">Sản phẩm</td>
</tr>
<tr>
<td>2.1</td>
<td>Danh sách Sản phẩm</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
</tbody>
</table>
</div>
<div
class="p-[15px] bg-white border-t-[6px] border-[#FAFAFB] rounded-[0_0_15px_15px] shadow-[0px_1px_1px_0px_#0000001A]">
<input type="submit" value="Cập nhật"
class="inline-block cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,135 @@
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href="" class="text-[#0041E8]"> Form sửa phòng ban </a>
</div>
<div class="max-w-[1141px] m-[0_auto_16px_auto]">
<div class="p-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<div class="flex items-center justify-between">
<h1 class="text-[24px] font-[700] ">Thêm phòng ban</h1>
<div class="flex items-center">
<a href="/admin/admin/department_add"
class="flex items-center p-[7px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[15px] font-[500]">
<span
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[12px] text-center rounded-[50%] mr-1">+</span>
<span>Thêm mới</span>
</a>
<a href="/admin/admin/department" class=" flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px]
text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white
font-[500]">
<span class="ml-1">Danh sách phòng ban</span>
</a>
<a href="/admin/admin"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<span class="ml-1">Danh sách quản trị</span>
</a>
</div>
</div>
</div>
<div class="flex mt-[15px]">
<div class="left w-[270px] mr-[10px]">
<div class="list-tab rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] overflow-hidden">
<a href="/admin/distributor/form"
class="item block w-[100%] h-[36px] bg-white rounded-[10px_10px_0_0] leading-[35px] px-[20px] hover:bg-[#0041E8] hover:text-white">Thông
tin</a>
<a href="/admin/admin/department_menu_permission?id=0"
class="item block w-[100%] h-[36px] bg-[#0041E8] text-white leading-[35px] px-[20px] border-b-[1px] border-gray-100 hover:bg-[#0041E8] hover:text-white">Quyền
xem menu</a>
<a href="/admin/admin/department_entity_permission?id=0"
class="item block w-[100%] h-[36px] bg-white rounded-[0_0_10px_10px] leading-[35px] px-[20px] hover:bg-[#0041E8] hover:text-white">Quyền
chỉnh sửa</a>
</div>
</div>
<div class="right w-[860px]">
<div class="p-[15px] bg-white rounded-[15px_15px_0_0] shadow-[0px_-1px_1px_0px_#0000001A]">
<b class="block mb-[15px] font-[20px]">Cài đặt quyền xem Menu cho: Tiệp Hura</b>
<div class="mb-[20px] text-[#6B7280]">
<p class="mb-[20px]">Trong trường hợp quản trị viên không được cập nhật quyền tại đây thì quyền
của quản
trị viên sẽ được
thừa hưởng từ quyền
của phòng ban.
</p>
<p> <b>Lưu ý:</b> Quyền xem menu chỉ quy định việc ẩn/hiện nội dung ở Menu, không quy định việc
quản trị viên có thể
xem được nội dung chi tiết của 1 hạng mục nào đó hay không nếu quản trị viên đó biết được
đường link
truy cập. Để hạn
chế quản trị viên xem hạng mục, bạn cần cài đặt ở Quyền hạng mục.
</p>
</div>
<table class="table">
<thead class="bg-[#f6f6f6] text-[#000] font-[500]">
<tr>
<th class="w-[40px]">STT</th>
<th>Hạng mục</th>
<th class="w-[210px]">Được phép xem</th>
</tr>
</thead>
<tbody>
<tr class="bg-[#FFE6C1] font-[700]">
<td>1</td>
<td colspan="2">Bán hàng</td>
</tr>
<tr>
<td>1.1</td>
<td>Danh sách đơn hàng</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr>
<td>1.2</td>
<td>Chờ mua sản phẩm</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr>
<td>1.3</td>
<td>Thanh toán qua cổng dịch vụ</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr class="bg-[#FFE6C1] font-[700]">
<td>2</td>
<td colspan="2">Sản phẩm</td>
</tr>
<tr>
<td>2.1</td>
<td>Danh sách Sản phẩm</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
</tbody>
</table>
</div>
<div
class="p-[15px] bg-white border-t-[6px] border-[#FAFAFB] rounded-[0_0_15px_15px] shadow-[0px_1px_1px_0px_#0000001A]">
<input type="submit" value="Cập nhật"
class="inline-block cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,144 @@
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href=""> Form thêm/sửa quản trị viên </a>
</div>
<div class="max-w-[1141px] flex flex-wrap items-start m-[0_auto_16px_auto]">
<div
class="w-[100%] p-[11px_16px] bg-white m-[0_0_16px] rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] leading-[18px]">
<p class="font-bold text-[20px] leading-[26px] block"> Cập nhật quản trị </p>
</div>
<div
class="w-[270px] m-[0_16px_0_0] bg-white rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] font-[500] leading-[24px] overflow-hidden">
<a href="/admin/admin/add" style="color: #919699;border-bottom: 1px solid #f3f3f3;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Thông tin
</a>
<a href="/admin/admin/menu-permission" style="color: #919699;border-bottom: 1px solid #f3f3f3;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Quyền xem menu
</a>
<a href="/admin/admin/entity-permission" style="color: #fff;background: #0041E8;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Quyền chỉnh sửa
</a>
</div>
<div class="w-[852px]">
<div class="p-[15px] bg-white rounded-[15px_15px_0_0] shadow-[0px_-1px_1px_0px_#0000001A]">
<b class="block mb-[15px] font-[20px]">Cài đặt quyền xem Menu cho: Tiệp Hura</b>
<div class="mb-[20px] text-[#6B7280]">
Trong trường hợp quản trị viên không được cập nhật quyền tại đây thì quyền của quản
trị viên sẽ được thừa hưởng từ quyền
của phòng ban.
</div>
<table class="table">
<thead class="bg-[#f6f6f6] text-[14px] text-[#000] font-500">
<tr>
<th class="w-[40px]">STT</th>
<th>Hạng mục</th>
<th>Được phép xem</th>
</tr>
</thead>
<tbody>
<tr class="bg-[#FFE6C1] font-[700]">
<td>1</td>
<td colspan="2">Bán hàng</td>
</tr>
<tr>
<td>1.1</td>
<td>Danh sách đơn hàng</td>
<td>
<div class="flex items-center">
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xem</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xóa</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Cập nhật</span>
</label>
</div>
</td>
</tr>
<tr>
<td>1.2</td>
<td>Chờ mua sản phẩm</td>
<td>
<div class="flex items-center">
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xem</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xóa</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Cập nhật</span>
</label>
</div>
</td>
</tr>
<tr>
<td>1.3</td>
<td>Thanh toán qua cổng dịch vụ</td>
<td>
<div class="flex items-center">
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xem</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xóa</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Cập nhật</span>
</label>
</div>
</td>
</tr>
<tr class="bg-[#FFE6C1] font-[700]">
<td>2</td>
<td colspan="2">Sản phẩm</td>
</tr>
<tr>
<td>2.1</td>
<td>Danh sách Sản phẩm</td>
<td>
<div class="flex items-center">
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xem</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Xóa</span>
</label>
<label class="check-form flex items-center mr-[20px] cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Cập nhật</span>
</label>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div
class="p-[15px] bg-white border-t-[6px] border-[#FAFAFB] rounded-[0_0_15px_15px] shadow-[0px_1px_1px_0px_#0000001A]">
<input type="submit" value="Cập nhật"
class="inline-block cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
</div>
</div>
</div>

View File

@@ -0,0 +1,103 @@
<div class="w-[100%]">
<div class="p-[15px] m-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<h1 class="text-[24px] font-[700] mb-[15px]">Danh sách quản trị website</h1>
<form action=""
class="flex items-center p-[15px] rounded-[10px] shadow-[0_1px_1px_0_rgba(0,0,0,0.10)] my-[15px] border-[1px] border-[#F6F6F6]">
<input type="text" name=""
class="w-[375px] h-[35px] px-[10px] rounded-[4px] border-[#D8D8D8] border-[1px] mr-[10px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)]"
placeholder="Tìm theo tên/email">
<button type="submit" class="px-[8px] py-[6px] rounded-[4px] text-white bg-[#0041E8]">Tìm kiếm</button>
</form>
<div class="flex items-center justify-between">
<select name="" id=""
class="w-[260px] h-[35px] border-[1px] border-[#D8D8D8] shadow-[0px_2px_4px_0px_#0000001F] rounded-[4px] px-[5px]">
<option value="">Chọn phòng ban</option>
</select>
<div class="flex items-center">
<a href="/admin/admin/add"
class="flex items-center p-[7px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[15px] font-[500]">
<span
class="border-[1px] border-[#0041E8] h-[15px] w-[15px] leading-[12px] text-center rounded-[50%] mr-1">+</span>
<span>Thêm quản trị mới</span>
</a>
<a href="/admin/admin/department"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<i class="fa-regular fa-file-pdf"></i>
<span class="ml-1">Danh sách phòng ban</span>
</a>
<a href="/admin/admin/admin-log-product"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<i class="fa-solid fa-box"></i>
<span class="ml-1">Theo dõi tạo sản phẩm</span>
</a>
<a href="/admin/admin/login-log"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<i class="fa-solid fa-user-gear"></i>
<span class="ml-1">Quản trị đăng nhập</span>
</a>
</div>
</div>
<table class="table mt-[15px]">
<thead class="bg-[#f6f6f6] text-[14px] text-[#000] font-500">
<tr>
<th class="w-[38px]">STT</th>
<th>Họ tên</th>
<th>Email</th>
<th>Phòng ban</th>
<th>Thời gian tạo</th>
<th>Đăng nhập lần cuối</th>
<th>IP đăng nhập</th>
<th class="w-[140px]">Xem lịch sử</th>
<th class="w-[95px]">Quản lý</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
<p>Khách hàng hunglong.vn</p>
<span
class="px-[5px] py-[3px] rounded-[10px] border border-[#E00000] text-[#E00000] text-[12px] font-[700]">Tạm
khóa</span>
</td>
<td>
hunglong@hurasoft.com
</td>
<td>
Khách hàng test giao diện
</td>
<td>
29-01-2024, 1:34 pm
</td>
<td>
07-03-2024, 9:54 am
</td>
<td>
2405:4802:1d21:1660:c4b3:5e6e:3699:f991
</td>
<td>
<a href="/admin/admin/admin-log"
class="btn w-[120px] h-[34px] min-h-[34px] px-[15px] py-[5px] bg-[#0041E8] rounded-[4px] m-auto text-white text-center">Xem
toàn
bộ</a>
</td>
<td>
<div class="list-btn flex items-center justify-center">
<a href="/admin/template/upload-set" title="Form sản phẩm"
class="w-[30px] h-[30px] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px]">
<i class="icons icon-edit"></i>
</a>
<a href=""
class="w-[32px] h-[32px] border-[1px] border-[#9E9E9E] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px]">
<i class="icons icon-delete"></i>
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href="" class="text-[#0041E8]"> Danh sách đăng nhập quản trị </a>
</div>
<div class="p-[15px] m-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<div class="flex items-center justify-between">
<h1 class="text-[24px] font-[700] ">Danh sách đăng nhập quản trị</h1>
<div class="flex items-center">
<a href="/admin/admin"
class="flex items-center px-[10px] py-[8px] border-[#0041E8] border-[1px] rounded-[4px] text-white bg-[#0041E8] hover:bg-[#0041E8] hover:text-white ml-[10px] hover:stroke-white font-[500]">
<span class="ml-1">Danh sách quản trị</span>
</a>
</div>
</div>
<table class="mt-[25px]">
<thead class="bg-[#f6f6f6] text-[14px] text-[#000] font-bold">
<tr>
<td>STT</td>
<td>User</td>
<td>IP</td>
<td>Thời gian</td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><a href="" class="text-blue-600">adminkenli@gmail.com</a></td>
<td>2405:4802:21c:5670:cf0:8f00:98e3:972d</td>
<td>
04-04-2025, 10:17 am
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,112 @@
<div class="global-breadcrumb-container">
<a href="/admin/admin"> Danh sách quản trị viên </a>
<a href=""> Form thêm/sửa quản trị viên </a>
</div>
<div class="max-w-[1141px] flex flex-wrap items-start m-[0_auto_16px_auto]">
<div
class="w-[100%] p-[11px_16px] bg-white m-[0_0_16px] rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] leading-[18px]">
<p class="font-bold text-[20px] leading-[26px] block"> Cập nhật quản trị </p>
</div>
<div
class="w-[270px] m-[0_16px_0_0] bg-white rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] font-[500] leading-[24px] overflow-hidden">
<a href="/admin/admin/add" style="color: #919699;border-bottom: 1px solid #f3f3f3;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Thông tin
</a>
<a href="/admin/admin/menu-permission" style="color: #fff;background: #0041E8;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Quyền xem menu
</a>
<a href="/admin/admin/entity-permission" style="color: #919699;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Quyền chỉnh sửa
</a>
</div>
<div class="w-[852px]">
<div class="p-[15px] bg-white rounded-[15px_15px_0_0] shadow-[0px_-1px_1px_0px_#0000001A]">
<b class="block mb-[15px] font-[20px]">Cài đặt quyền xem Menu cho: Tiệp Hura</b>
<div class="mb-[20px] text-[#6B7280]">
<p class="mb-[20px]">Trong trường hợp quản trị viên không được cập nhật quyền tại đây thì quyền của quản
trị viên sẽ được
thừa hưởng từ quyền
của phòng ban.
</p>
<p> <b>Lưu ý:</b> Quyền xem menu chỉ quy định việc ẩn/hiện nội dung ở Menu, không quy định việc
quản trị viên có thể
xem được nội dung chi tiết của 1 hạng mục nào đó hay không nếu quản trị viên đó biết được đường link
truy cập. Để hạn
chế quản trị viên xem hạng mục, bạn cần cài đặt ở Quyền hạng mục.
</p>
</div>
<table class="table">
<thead class="bg-[#f6f6f6] text-[#000] font-[500]">
<tr>
<th class="w-[40px]">STT</th>
<th>Hạng mục</th>
<th class="w-[210px]">Được phép xem</th>
</tr>
</thead>
<tbody>
<tr class="bg-[#FFE6C1] font-[700]">
<td>1</td>
<td colspan="2">Bán hàng</td>
</tr>
<tr>
<td>1.1</td>
<td>Danh sách đơn hàng</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr>
<td>1.2</td>
<td>Chờ mua sản phẩm</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr>
<td>1.3</td>
<td>Thanh toán qua cổng dịch vụ</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
<tr class="bg-[#FFE6C1] font-[700]">
<td>2</td>
<td colspan="2">Sản phẩm</td>
</tr>
<tr>
<td>2.1</td>
<td>Danh sách Sản phẩm</td>
<td>
<label class="check-form flex items-center cursor-pointer">
<input type="checkbox" name="" value="1" class="checkbox checkbox-success">
<span class="ml-[7px] text-[#6B7280] label-text">Được xem</span>
</label>
</td>
</tr>
</tbody>
</table>
</div>
<div
class="p-[15px] bg-white border-t-[6px] border-[#FAFAFB] rounded-[0_0_15px_15px] shadow-[0px_1px_1px_0px_#0000001A]">
<input type="submit" value="Cập nhật"
class="inline-block cursor-pointer h-[32px] bg-[#0041E8] text-[#fff] rounded-[4px] font-[500] p-[0_11px]" />
</div>
</div>
</div>