From 06718fc3889f68a1680b2a9fc1d3a933c7d86889 Mon Sep 17 00:00:00 2001 From: Hyojin Ahn Date: Mon, 5 Jan 2026 08:38:25 -0500 Subject: [PATCH] =?UTF-8?q?[Member]=20-=20level=2010=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20-=20level=2010=20=EC=9D=80=20CUSTOMER=20=EB=A9=94=EB=89=B4?= =?UTF-8?q?=EB=A7=8C=20=EC=A0=91=EA=B7=BC=20=EA=B0=80=EB=8A=A5=20-=20level?= =?UTF-8?q?=2010=20=EC=9D=80=20Customer=20=EC=88=98=EC=A0=95=20=EB=B6=88?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/doc/customer_detail.php | 5 +- public_html/doc/customer_list.php | 4 +- public_html/include/arrayinfo.php | 2 +- public_html/include/top.php | 128 ++++++++++++---------- public_html/lib/shortInfo_lib.php | 15 ++- public_html/lib/shortInfo_lib_process.php | 5 + 6 files changed, 94 insertions(+), 65 deletions(-) diff --git a/public_html/doc/customer_detail.php b/public_html/doc/customer_detail.php index e3a0e80..339e441 100644 --- a/public_html/doc/customer_detail.php +++ b/public_html/doc/customer_detail.php @@ -1,6 +1,6 @@ checkLevelModal(9); +// Level 10 이하만 사용 가능 +$func->checkLevelModal(10); // Delete 기능 제한 (Admin : 1, Staff : 5, Accounting : 6 만 가능) $permit = array("1", "5", "6"); @@ -18,6 +18,7 @@ else $setTagAdm = "DISABLED"; $goStr = "switched=$switched&page=$page&key_word=$key_word&column=$column&sorting_type=$sorting_type&switch=$switch&cstatus=$cstatus"; +// if ($mode == "create" || $mode == "") { $btnName = "CREATE"; $mode = "create"; diff --git a/public_html/doc/customer_list.php b/public_html/doc/customer_list.php index 8d05bb0..f6cd51a 100644 --- a/public_html/doc/customer_list.php +++ b/public_html/doc/customer_list.php @@ -1,7 +1,7 @@ checkLevelModal(9); +// Level 10 이하만 사용 가능 +$func->checkLevelModal(10); // Delete, Add 기능 제한 (Admin : 1, Staff : 5, Accounting : 6 만 가능) $permit = array("1", "5", "6"); diff --git a/public_html/include/arrayinfo.php b/public_html/include/arrayinfo.php index 4102412..d6efbbe 100644 --- a/public_html/include/arrayinfo.php +++ b/public_html/include/arrayinfo.php @@ -18,7 +18,7 @@ $arrPaymentCycle = array ('A' => 'A', 'B' => 'B', 'C' => 'C', 'D' => 'D', 'F' => $arrNoteType = array ('B' => 'Accounting', 'S' => 'Staff', 'D' => 'Driver', 'A' => 'All' ); $arrPaidStatus = array ('P' => 'Paid', 'N' => 'UnPaid'); -$arrMemberLevel = array ('1' => 'Administrator', '5' => 'Staff', '6' => 'Accounting', '7' => 'Sales', '9' => 'Driver' ); +$arrMemberLevel = array ('1' => 'Administrator', '5' => 'Staff', '6' => 'Accounting', '7' => 'Sales', '9' => 'Driver', '10' => 'Sales Agent' ); //$arrClass = array ('M' => 'Math', 'P' => 'Physics', 'C' => 'Chemistry', 'B' => 'Biology', 'S' => 'Science', 'O' => 'Others' ); //$arrLevel = array ('A' => 'All', '1' => 'Basic', '2' => 'Intermediate', '3' => 'Advanced'); diff --git a/public_html/include/top.php b/public_html/include/top.php index 8079890..c9a2d34 100644 --- a/public_html/include/top.php +++ b/public_html/include/top.php @@ -1,39 +1,50 @@ - - - - - diff --git a/public_html/lib/shortInfo_lib.php b/public_html/lib/shortInfo_lib.php index a8e8aa8..d025634 100644 --- a/public_html/lib/shortInfo_lib.php +++ b/public_html/lib/shortInfo_lib.php @@ -153,7 +153,9 @@ if ($c_paymenttype =="CA") {
- + + +
@@ -240,7 +242,7 @@ $(document).ready(function(){ //For debugging //$('.rt_debugging').html(response); //alert(response); - if (response) { + if (response == "1") { $('.myModalPopup-body').html("Saved Successfully."); $('.myModalPopup-body').css('background-color', '#2A9B56'); $('#myModalcustomerShortInfo').modal('hide'); @@ -251,6 +253,15 @@ $(document).ready(function(){ $('#myModalPopup').modal('hide'); parent.location.reload(); }, 1000); + } else if (response == "-1") { + $('.myModalPopup-body').html("You do not have permission."); + $('.myModalPopup-body').css('background-color', '#FF8205'); + + $('#myModalPopup').modal('show'); + setTimeout(function () { + $('#myModalPopup').modal('hide'); + }, 1500); + } else { $('.myModalPopup-body').html("Failed. Please Try again."); $('.myModalPopup-body').css('background-color', '#FF8205'); diff --git a/public_html/lib/shortInfo_lib_process.php b/public_html/lib/shortInfo_lib_process.php index 9f13a52..70e8615 100644 --- a/public_html/lib/shortInfo_lib_process.php +++ b/public_html/lib/shortInfo_lib_process.php @@ -31,6 +31,11 @@ if($c_uid == "") { exit(); } +if ($_SESSION['ss_LEVEL'] == 10) { + echo -1; + exit(); +} + $c_comment_riSTR = str_replace("\\", "", trim($c_comment_ri)); $c_locationSTR = str_replace("\\", "", trim($c_location));