push 11/4

This commit is contained in:
2025-04-11 14:18:51 +07:00
parent e8e9f7c382
commit 1c2c38a8bb
20 changed files with 583 additions and 77 deletions

1
data/shipping2/fee.php Normal file
View File

@@ -0,0 +1 @@
<?php

1
data/shipping2/home.php Normal file
View File

@@ -0,0 +1 @@
<?php

View File

@@ -0,0 +1 @@
<?php

1
data/tag/add.php Normal file
View File

@@ -0,0 +1 @@
<?php

1
data/tag/home.php Normal file
View File

@@ -0,0 +1 @@
<?php

View File

@@ -31,7 +31,6 @@
<td>2405:4802:21c:5670:cf0:8f00:98e3:972d</td>
<td>
04-04-2025, 10:17 am
</td>
</tr>
</tbody>

View File

@@ -38,4 +38,13 @@
{% include javascript/edit_template %}
{% elsif global.module == 'tag' and global.view == 'add' %}
{% include javascript/tag %}
{% elsif global.module == 'shipping2' %}
{% include javascript/shipping2 %}
{% endif %}

View File

@@ -0,0 +1,15 @@
<script>
var current_index = '2';
function addRow() {
var index = 1 + parseInt(current_index);
var tpl = '<tr><td>' + index + '</td> ' +
'<td>' +
'<input type="text" name="cod[order_value][]" class="input input-bordered iput-sm h-[35px] rounded-[4px]" size="30" value="" onkeyup="this.value = writeStringToPrice(this.value)" placeholder="Nhập giá trị đơn hàng"></td> ' +
'<td><input type="text" name="cod[fee][]" class="input input-bordered iput-sm h-[35px] rounded-[4px]" size="20" value="" placeholder="Nhập phí" onkeyup="this.value = writeStringToPrice(this.value)"></td>' +
'<td><a href="/admin/tag/delete/1" class="block w-[30px] h-[30px] leading-[30px] p-[5px] border-[1px] rounded-[4px]" > <i class="icons icon-remove"></i></a ></td>' +
'</tr>';
$("#tb_province").append(tpl);
current_index = index;
}
</script>

View File

@@ -0,0 +1,20 @@
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: 'textarea#textarea-desc',
height: 350,
menubar: true,
plugins: [
'advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table paste code help wordcount'
],
toolbar: 'undo redo | formatselect | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
</script>

View File

@@ -79,7 +79,7 @@
<input type="checkbox" name="change_url_on_update" value="1"
class="checked:bg-[#0041E8] w-[16px] h-[16px] rounded-[4px]">
</th>
<th class="w-[40px]">STT</th>
<th class="w-[40px] whitespace-nowrap">STT</th>
<th class="w-[90px]">Ảnh</th>
<th>Sản phẩm (Tổng số: 132)</th>
</tr>

View File

@@ -0,0 +1,50 @@
<div class="w-[100%] mb-[50px]">
<div class="text-sm breadcrumbs ml-[10px]">
<ul>
<li><a href="/admin/shipping2">Quản lý phí ship</a></li>
<li class="text-[#0041E8]">Chọn vùng</li>
</ul>
</div>
<div class="m-[15px] p-[15px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)] overflow-x-auto">
<b>Chọn danh sách tỉnh thành để quản lý phí tới Quận/Huyện</b>
<table class="mt-[15px] w-[30%]">
<tbody>
<tr class="bg-[#f5f5f5] font-bold">
<td width="50" align="center">STT</td>
<td>Tên</td>
<td width="70">Quản lý</td>
</tr>
<tr>
<td align="center">1</td>
<td>Hà nội</td>
<td><a href="/admin/shipping2/fee/province_id=1" class="link font-bold text-[#0041E8]">Quản lý</a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>Hà nội</td>
<td><a href="/admin/shipping2/fee/province_id=1" class="link font-bold text-[#0041E8]">Quản lý</a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>Hà nội</td>
<td><a href="/admin/shipping2/fee/province_id=1" class="link font-bold text-[#0041E8]">Quản lý</a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>Hà nội</td>
<td>
<a href="" class="link font-bold text-[#0041E8]">Quản lý</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<div class="w-[100%]">
<div class="m-[15px] p-[15px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)] overflow-x-auto">
<h1 class="text-[24px] font-[700] mb-3">Quản lý shipping</h1>
<div class="mb-[20px]">
<h2 class="font-[16px] font-bold mb-[10px]">Cài đặt hệ thống chung</h2>
<a href="/admin/shipping2/setting"
class="group flex items-center justify-center w-[100px] border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px] hover:bg-blue-700">
<i class="fa-solid fa-screwdriver-wrench mr-[5px] text-[#0041E8] group-hover:text-white"></i>
<span class="text-[#0041E8] font-bold group-hover:text-white">Cài đặt</span>
</a>
</div>
<div class="mb-[20px]">
<h2 class="font-[16px] font-bold mb-[10px]">Cài đặt phí ship từng vùng</h2>
<a href="/admin/shipping2/fee"
class="group flex items-center justify-center w-[100px] border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px] hover:bg-blue-700">
<i class="fa-solid fa-screwdriver-wrench mr-[5px] text-[#0041E8] group-hover:text-white"></i>
<span class="text-[#0041E8] font-bold group-hover:text-white">Cài đặt</span>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,91 @@
<div class="w-[100%] mb-[50px]">
<div class="text-sm breadcrumbs ml-[10px]">
<ul>
<li><a href="/admin/shipping2">Quản lý phí ship</a></li>
<li class="text-[#0041E8]">Cài đặt chung</li>
</ul>
</div>
<div class="w-[1140px] my-0 mx-auto">
<div class="bg-white p-[10px] rounded-[10px] shadow-[0_1px_1px_0px_#0000001A] my-[15px]">
<b class="mb-[10px] text-[16px]">Cài đặt giá trị đơn hàng:</b>
<div class="flex items-center">
<p>Giá trị đơn hàng không tính giá :
</p>
<input type="text" class="input input-bordered input-sm h-[35px] rounded-[4px] ml-[10px]">
</div>
<div class="italic text-gray-500 my-[10px]">(* Đơn hàng có giá trị nhỏ hơn giá trị này sẽ được áp dụng biểu
phí theo
vùng)</div>
<b class="mb-[10px] text-[16px]">Cài đặt phí thu hộ:</b>
<table class="mt-[15px] w-[50%]" id="tb_province">
<tbody>
<tr class="bg-[#f5f5f5] font-bold">
<td class="whitespace-nowrap">STT</td>
<td class="whitespace-nowrap">Giá trị đơn hàng dưới mức</td>
<td class="whitespace-nowrap">Phú thu hộ (VNĐ)</td>
<td class="whitespace-nowrap">Quản lý</td>
</tr>
<tr>
<td>1</td>
<td>
<input type="text" value="0" class="input input-bordered iput-sm h-[35px] rounded-[4px]" />
</td>
<td>
<input type="text" value="30.000"
class="input input-bordered iput-sm h-[35px] rounded-[4px]" />
</td>
<td class="whitespace-nowrap">
<a href="/admin/tag/delete/1"
class="block w-[30px] h-[30px] leading-[30px] p-[5px] border-[1px] rounded-[4px]"><i
class='icons icon-remove'></i></a>
</td>
</tr>
<tr>
<td>1</td>
<td>
<input type="text" value="0" class="input input-bordered iput-sm h-[35px] rounded-[4px]" />
</td>
<td>
<input type="text" value="30.000"
class="input input-bordered iput-sm h-[35px] rounded-[4px]" />
</td>
<td class="whitespace-nowrap">
<a href="/admin/tag/delete/1"
class="block w-[30px] h-[30px] leading-[30px] p-[5px] border-[1px] rounded-[4px]"><i
class='icons icon-remove'></i></a>
</td>
</tr>
</tbody>
</table>
<a href="javascript:addRow()" class="my-[10px] block text-[#0041E8] font-bold">[+] Thêm hàng</a>
<input
class="btn w-[95px] h-[35px] min-h-[35px] bg-[#0041E8] rounded-[4px] mb-[10px] text-white cursor-pointer"
name="submit" type="submit" value="Cập nhật">
<div>
<b class="mb-[5px] text-red-500 block">Hướng dẫn cài phí thu hộ</b>
<p>Phí thu hộ được tính theo giá trị cần thu hộ, ví dụ:</p>
<ul>
<li>- Từ 0 đến <=1 triệu=30.000đ=> Cần nhập là 1.000.000</li>
<li>- Từ >1 triệu đến <= 2 triệu=50.000đ=> Cần nhập là 2.000.000</li>
<li>- Từ >2 triệu đến <= 3 triệu=70.000đ=> Cần nhập là 3.000.000</li>
<li>- Từ >3 triệu đến <= 4 triệu=90.000đ=> Cần nhập là 4.000.000</li>
<li>- Từ >4 triệu đến <= 5 triệu=110.000đ=> Cần nhập là 5.000.000</li>
<li>- Từ >5 triệu đến <= 6 triệu=130.000đ=> Cần nhập là 6.000.000</li>
<li>- Từ >6 triệu đến <= 7 triệu=150.000đ=> Cần nhập là 7.000.000</li>
<li>- Từ >7 triệu đến <= 8 triệu=170.000đ=> Cần nhập là 8.000.000</li>
<li>- Từ >8 triệu đến <= 9 triệu=190.000đ=> Cần nhập là 9.000.000</li>
<li>- Trên 9 triệu = 0đ => Cần nhập là 10.000.000.000 (nhập số lớn nhất có thể)</li>
</ul>
<p class="mt-[10px]">Để xóa phí nào nó, click "Xóa bỏ" và nhấn "Cập nhật" để lưu lại</p>
</div>
</div>
</div>
</div>

View File

@@ -53,7 +53,7 @@
<td class="align-text-top">10</td>
<td class="align-text-top">
<div class="flex items-center justify-center">
<a href=""
<a href="/admin/system/pay-method-add?id=1"
class='w-[30px] h-[30px] border-[1px] border-[#0041E8] rounded-[4px] text-center leading-[30px] flex items-center justify-center mr-[5px]'><i
class='icons icon-edit'></i></a>
<a href=""

View File

@@ -24,34 +24,34 @@
<div class="flex mb-[15px]">
<b class="block w-[150px] text-[#383C44] ">Phân loại (*)</b>
<div class="right">
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0" checked="">
<label for="" class="ml-[25px]">Tiền mặt khi nhận hàng (COD)</label>
</div>
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0">
<label for="" class="ml-[25px]">Thẻ ATM/ Chuyển khoản (Internet Banking)</label>
</div>
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0">
<label for="" class="ml-[25px]">Thẻ tín dụng Visa/Master</label>
</div>
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0">
<label for="" class="ml-[25px]">Cổng thanh toán (VNPay, Payoo, ViettelPay ..)</label>
</div>
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0">
<label for="" class="ml-[25px]">Ví điện tử (Moca, Momo ..)</label>
</div>
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0">
<label for="" class="ml-[25px]">Điểm thành viên (trừ điểm tích luỹ của thành viên)</label>
</div>
<div class="flex items-center mb-[7px]">
<input type="radio" name="info[type]" value="0">
<label for="" class="ml-[25px]">Hình thức khác</label>
</div>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="0" class="radio checked:bg-blue-500" checked>
<span class="label-text ml-[10px]">Tiền mặt khi nhận hàng (COD)</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="1" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Thẻ ATM/ Chuyển khoản (Internet Banking)</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="2" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Thẻ tín dụng Visa/Master</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="3" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Cổng thanh toán (VNPay, Payoo, ViettelPay ..)</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="4" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Ví điện tử (Moca, Momo ..)</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="4" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Điểm thành viên (trừ điểm tích luỹ của thành viên)</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[pay-method]" value="4" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Hình thức khác</span>
</label>
</div>
</div>
<div class="form-control mb-[15px] w-[100%]">
@@ -75,14 +75,15 @@
<div class="flex items-center">
<b class="block w-[150px] text-[#383C44] ">Phân loại (*)</b>
<div class="right flex items-center">
<div class="flex items-center mr-[30px]">
<input type="radio" name="info[status]" value="0" checked="">
<label for="" class="ml-[25px]">Hiển thị</label>
</div>
<div class="flex items-center">
<input type="radio" name="info[status]" value="0" checked="">
<label for="" class="ml-[25px]">Ẩn</label>
</div>
<label class="cursor-pointer flex items-center mb-[10px] mr-[20px]">
<input type="radio" name="info[status]" value="1" class="radio checked:bg-blue-500"
checked="checked">
<span class="label-text ml-[10px]">Hiển thị</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[status]" value="0" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Ẩn hiển thị</span>
</label>
</div>
</div>
</div>

View File

@@ -1,44 +1,74 @@
<div class="global-breadcrumb-container">
<div class="w-[100%]">
<div class="global-breadcrumb-container">
<a href="/admin/system"> Cài đặt chung </a>
<a href="">Cài đặt phí vận chuyể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"> Quản lý shipping </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="javascript:void(0)" style="color: #Fff;background: #0041E8;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Thông tin
class="m-[15px] p-[11px_16px] bg-white m-[0_0_16px] rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] leading-[18px]">
<div class="flex items-center justify-between mb-[10px]">
<p class="font-bold text-[20px] leading-[26px] block"> Quản lý shipping </p>
<a href="/admin/tag/add"
class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] font-[500] leading-[35px] group hover:bg-[#0041E8] hover:text-[#fff]">
<span
class="border-[1px] border-[#0041E8] h-[13px] w-[13px] leading-[10.2px] text-center rounded-[50%] mr-1 group-hover:border-[#fff]">+</span>
<span>Thêm phương thức vận chuyển</span>
</a>
</div>
</div>
<div class="w-[852px]">
<div class="p-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<table class="style-table">
<div class="p-[15px] m-[15px] bg-white rounded-[15px] shadow-[0px_1px_1px_0px_#0000001A]">
<table class="mt-[15px] w-[100%]">
<thead class="bg-[#f5f5f5] text-[#000] text-[14px] font-bold">
<tr>
<td>STT</td>
<td>Phân loại</td>
<td>Phương thức</td>
<td>Cập nhật</td>
<td>Chỉnh sửa</td>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">1</td>
<td>Nhận hàng tại cửa hàng</td>
<td>Giao hàng nhanh trong 2 giờ (Nội thành Hà Nội +HCM)</td>
<td>
<p>Admin</p>
<p>09-09-2022, 11:53 am</p>
</td>
<td>
<div class="flex items-center">
Cài đặt hệ thống chung <a href="/admin/system/shipping/setting"
class="w-[80px] h-[32px] leading-[32px] text-center text-[#0041E8] border-[1px] border-[#0041E8] block ml-[10px] rounded-[4px]">Cài
đặt</a>
<a href="/admin/system/ship-method-add?id=1"
class="p-[5px] border-[1px] border-[#79B0E2] text-[#79B0E2] rounded-[4px]"><i
class="icons icon-edit"></i></a>
<a href="/admin/tag/delete/1" class="p-[5px] border-[1px] rounded-[4px] ml-[10px]"><i
class='icons icon-remove'></i></a>
</div>
</td>
</tr>
<tr>
<td class="text-center">1</td>
<td>Nhận hàng tại cửa hàng</td>
<td>Giao hàng nhanh trong 2 giờ (Nội thành Hà Nội +HCM)</td>
<td>
<p>Admin</p>
<p>09-09-2022, 11:53 am</p>
</td>
<td>
<div class="flex items-center">
Cài đặt phí ship từng vùng <a href="/admin/system/shipping/fee"
class="w-[80px] h-[32px] leading-[32px] text-center text-[#0041E8] border-[1px] border-[#0041E8] block ml-[10px] rounded-[4px]">Cài
đặt</a>
<a href="/admin/system/ship-method-add?id=1"
class="p-[5px] border-[1px] border-[#79B0E2] text-[#79B0E2] rounded-[4px]"><i
class="icons icon-edit"></i></a>
<a href="" class="p-[5px] border-[1px] rounded-[4px] ml-[10px]"><i
class='icons icon-remove'></i></a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>

View File

@@ -0,0 +1,104 @@
<div class="w-[100%] mb-[100px]">
<div class="global-breadcrumb-container">
<a href="/admin/system"> Cài đặt chung </a>
<a href="">Form thêm/sửa phương thức vận chuyển </a>
</div>
<div class="w-[1140px] my-0 mx-auto">
<div class="flex items-center justify-end my-[25px]">
<a href="/admin/ship-method-add"
class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] font-[500] leading-[35px] group hover:bg-[#0041E8] hover:text-[#fff]">
<span
class="border-[1px] border-[#0041E8] h-[13px] w-[13px] leading-[10.2px] text-center rounded-[50%] mr-1 group-hover:border-[#fff]">+</span>
<span>Thêm vận chuyển mới</span>
</a>
<a href="/admin/ship-method"
class="inline-flex ml-[10px] items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#0041E8] text-white p-[0_12px] font-[500] leading-[35px] group hover:bg-[#0041E8] hover:text-[#fff]">
<span>Danh sách vận chuyển</span>
</a>
</div>
<div class="flex">
<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="javascript:void(0)" style="color: #Fff;background: #0041E8;"
class="block p-[6px_16px] text-[#919699] hover:text-[#fff] hover:bg-[#0041E8] transition">
Thông tin
</a>
</div>
</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-[10px]">Phân loại (*)</b>
<div class="mb-[15px]">
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[type]" value="pick_up_at_store"
class="radio checked:bg-blue-500" checked="checked">
<span class="label-text ml-[10px]">Nhận hàng tại cửa hàng</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[type]" value="store_delivery"
class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Giao hàng bởi cửa hàng</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[type]" value="shipping_provider"
class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Giao bởi bên vận chuyển</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[type]" value="other" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Hình thức khác</span>
</label>
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Tên phương thức vận
chuyển</label>
<input type="text" name="" value="" placeholder="Tên phương thức vận chuyển"
class="w-full 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]">Nội dung chi
tiết</label>
<textarea type="text" name="" value="" placeholder="Tên phương thức vận chuyển"
class="w-full textarea input-bordered h-[100px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]"></textarea>
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Thứ tự xuất hiện
<span class="text-[14px] font-[400] text-gray-500">(cao xếp trước)</span></label>
<input type="text" name="" value="" placeholder="Tên phương thức vận chuyển"
class="w-[30%] 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="flex items-center">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44] mr-[20px]">Hiển
thị</label>
<label class="cursor-pointer flex items-center mb-[10px] mr-[20px]">
<input type="radio" name="info[status]" value="1" class="radio checked:bg-blue-500"
checked="checked">
<span class="label-text ml-[10px]">Hiển thị</span>
</label>
<label class="cursor-pointer flex items-center mb-[10px]">
<input type="radio" name="info[status]" value="0" class="radio checked:bg-blue-500">
<span class="label-text ml-[10px]">Ẩn hiển thị</span>
</label>
</div>
</div>
<div
class="p-[10px_15px] bg-white rounded-[0_0_15px_15px] shadow-[0px_1px_1px_0px_#0000001A] mt-[10px] border-t-[6px] border-[#F6F6F6]">
<input
class="btn w-[95px] h-[35px] min-h-[35px] bg-[#0041E8] rounded-[4px] mt-[10px] text-white cursor-pointer"
name="submit" type="submit" value="Cập nhật">
</div>
</div>
</div>
</div>
</div>

82
template/tag/add.html Normal file
View File

@@ -0,0 +1,82 @@
<div class="w-[100%] mb-[50px]">
<div class="text-sm breadcrumbs ml-[10px]">
<ul>
<li><a href="/admin/tag">Quản lý tag</a></li>
<li class="text-[#0041E8]">Thêm tag mới</li>
</ul>
</div>
<div class="w-[1140px] my-0 mx-auto">
<div class="bg-white p-[10px] rounded-[10px] shadow-[0_1px_1px_0px_#0000001A] my-[15px]">
<div class="flex items-center justify-between">
<h1 class="text-[20px] font-[700]">Thêm tag</h1>
<div class="flex items-center">
<a href="/admin/tag/add"
class="group flex items-center border-[1px] border-[#ECECEC] rounded-[4px] p-[5px_10px_5px_10px] hover:bg-blue-700">
<span
class="w-[14.5px] group-hover:text-white group-hover:border-white h-[14.5px] border-[1px] rounded-[50%] border-[#6B7280] text-center leading-[10.5px] mr-[5px] text-[#6B7280]">+</span>
<span class="text-[#6B7280] group-hover:text-white">Thêm tag mới</span>
</a>
<a href="/admin/tag"
class="group flex items-center ml-[10px] border-[1px] border-[#0041E8] rounded-[4px] p-[5px_10px_5px_10px] hover:bg-blue-700">
<span class="text-[#0041E8] group-hover:text-white">Danh sách tag</span>
</a>
</div>
</div>
</div>
<div class="flex">
<div class="left w-[270px] mr-[10px]">
<div class="list-tab">
<a href="javascript:void(0)"
class="item block w-[100%] h-[36px] text-white bg-[#0041E8] rounded-[10px] text-[13px] leading-[35px] px-[10px]">Chỉnh
sửa</a>
</div>
</div>
<div class="right w-[860px]">
<div class="bg-white p-[15px] rounded-[10px_10px_0_0] shadow-[0_-1px_1px_0px_#0000001A]">
<b class="block text-[20px] mb-[15px] font-[700]">Thông tin tag</b>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Tên tag</label>
<input type="text" name="" value="" placeholder="tên tag"
class="w-full 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]">Url Index
<span class="ml-[5px] text-gray-500 font-[400] italic">(* Để trống sẽ được tạo tự động v.d.
abc-xyz
sẽ là
/tag/abc-xyz)</span></label>
<input type="text" name="" value="" placeholder="Url Index"
class="w-full 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 id="textarea-desc"> </textarea>
</div>
<div class="mb-[15px]">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Meta Title</label>
<input type="text" name="" value="" placeholder="Meta Title"
class="w-full 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="">
<label for="" class="block mb-[10px] font-[700] text-[14px] text-[#383C44]">Meta
Description</label>
<textarea type="text" name="" value="" placeholder="Meta Description"
class="w-full textarea input-bordered h-[100px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]"></textarea>
</div>
</div>
<div
class="bg-white p-[10px_15px] rounded-[0_0_10px_10px] shadow-[0_1px_1px_0px_#0000001A] mt-[5px] border border-t-[2px] border-[#F6F6F6]">
<input
class="btn w-[95px] h-[35px] min-h-[35px] bg-[#0041E8] rounded-[4px] mt-[10px] text-white cursor-pointer"
name="submit" type="submit" value="Cập nhật">
</div>
</div>
</div>
</div>
</div>

79
template/tag/home.html Normal file
View File

@@ -0,0 +1,79 @@
<div class="w-[100%]">
<div class="m-[15px] p-[15px] rounded-[15px] bg-white shadow-[0_1px_1px_0_rgba(0,0,0,0.1)] overflow-x-auto">
<h1 class="text-[24px] font-[700] mb-3">Danh sách tag</h1>
<div
class="border border-[#F6F6F6] m-[12px_0_16px] p-[15px] bg-white rounded-[10px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] flex items-center justify-between">
<form method="get" enctype="multipart/form-data" action="/admin/" class="">
<input type="text" name="q" id="keyword" value="" placeholder=""
class="w-[375px] h-[36px] border border-[#D8D8D8] m-[0_10px_0_0] p-[0_10px] bg-white rounded-[4px] shadow-[0px_2px_4px_0px_rgba(0,0,0,0.12)] ">
<input type="submit" value="Tìm kiếm"
class="h-[36px] bg-[#0041E8] text-[#fff] font-[500] p-[0_8px] cursor-pointer rounded-[4px]">
</form>
<a href="/admin/tag/add"
class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] font-[500] leading-[35px] group hover:bg-[#0041E8] hover:text-[#fff]">
<span
class="border-[1px] border-[#0041E8] h-[13px] w-[13px] leading-[10.2px] text-center rounded-[50%] mr-1 group-hover:border-[#fff]">+</span>
<span>Thêm tag mới</span>
</a>
</div>
<table class="mt-[15px] w-[100%]">
<thead class="bg-[#F6F6F6] text-[#000] text-[14px] font-bold">
<tr>
<td>STT</td>
<td>Tag</td>
<td>Link đích</td>
<td>Thời gian tạo</td>
<td>Lựa chọn</td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>ATO tesst</td>
<td>
<div class="flex items-center">
<input type="text" class="input input-bordered input-md h-[35px] rounded-[4px] w-[300px]"
value="/tag/ato-tesst">
<a href="/tag/ato-tesst" class="text-[#0041E8] ml-[10px] font-bold">xem</a>
</div>
</td>
<td>20-10-2023, 5:58 pm / Khách</td>
<td>
<div class="flex items-center">
<a href="/admin/tag/add?id=1"
class="p-[5px] border-[1px] border-[#79B0E2] text-[#79B0E2] rounded-[4px]"><i
class="icons icon-edit"></i></a>
<a href="/admin/tag/" class="p-[5px] border-[1px] rounded-[4px] ml-[10px]"><i
class='icons icon-remove'></i></a>
</div>
</td>
</tr>
<tr>
<td>1</td>
<td>màn hình thời gián đáp ứng 5ms</td>
<td>
<div class="flex items-center">
<input type="text" class="input input-bordered input-md h-[35px] rounded-[4px] w-[300px]"
value="/tag/ato-tesst">
<a href="/tag/ato-tesst" class="text-[#0041E8] ml-[10px] font-bold">xem</a>
</div>
</td>
<td>20-10-2023, 5:58 pm / Khách</td>
<td>
<div class="flex items-center">
<a href="/admin/tag/add?id=1"
class="p-[5px] border-[1px] border-[#79B0E2] text-[#79B0E2] rounded-[4px]"><i
class="icons icon-edit"></i></a>
<a href="/admin/tag/delete/1" class="p-[5px] border-[1px] rounded-[4px] ml-[10px]"><i
class='icons icon-remove'></i></a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -17,7 +17,6 @@
</head>
<body>
{{page|show_var}}
<div id="overlay" onclick="clickBackground()"></div>