From bae3ae8804cf4dd152f0de0f914db4bc0ae6329b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=A9ng=20Nguy=E1=BB=85n?= Date: Sat, 25 Nov 2017 13:48:02 +0700 Subject: [PATCH 1/4] =?UTF-8?q?Gi=E1=BB=9Bi=20h=E1=BA=A1n=20ti=C3=AAu=20?= =?UTF-8?q?=C4=91=E1=BB=81=20v=C3=A0=20ghi=20ch=C3=BA=20d=C6=B0=E1=BB=9Bi?= =?UTF-8?q?=20100=20k=C3=AD=20t=E1=BB=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Khi thêm mới coupon --- admin.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/admin.php b/admin.php index 7a6fad2..a9ef5fd 100644 --- a/admin.php +++ b/admin.php @@ -406,7 +406,17 @@ function nhymxu_coupon_exec( action_type ) { if( input['save'].length > 5 ) { nhymxu_insert_log('Mức giảm giá phải dưới 6 kí tự.'); return false; - } + } + + if( input['title'].length > 100 ) { + nhymxu_insert_log('Tiêu đề phải dưới 100 kí tự.'); + return false; + } + + if( input['note'].length > 100 ) { + nhymxu_insert_log('Ghi chú phải dưới 100 kí tự.'); + return false; + } function exec_after_success() { if( action_type === 0 ) { From 7fbd8396416b68cadf97fad47027a9baf2bffbda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=A9ng=20Nguy=E1=BB=85n?= Date: Sat, 25 Nov 2017 14:06:15 +0700 Subject: [PATCH 2/4] =?UTF-8?q?check=20url=20&=20kh=C3=B4ng=20=C4=91=C6=B0?= =?UTF-8?q?=E1=BB=A3c=20l=C3=A0=20deeplink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/admin.php b/admin.php index a9ef5fd..d832508 100644 --- a/admin.php +++ b/admin.php @@ -359,6 +359,10 @@ public function admin_page_callback_addnew() { display: inline-block; min-width: 250px; } + #nhymxu_coupon_notice { + margin-top: 20px; + margin-bottom: 20px; + }