Parcourir la source

Add markSystem

ShuanghongS il y a 1 an
Parent
commit
b80a5298f0
1 fichiers modifiés avec 17 ajouts et 0 suppressions
  1. 17 0
      service/tools.class.php

+ 17 - 0
service/tools.class.php

@@ -67,6 +67,23 @@ class tools {
         $operate = strtolower($operate);
 
         if ($operate == "mark_save") {
+            $suggestion = common::check_input($_POST ['suggestion']); 
+            $proposal = common::check_input($_POST ['proposal']); 
+            $expression = common::check_input($_POST ['expression']);
+            $complete_funtionality = common::check_input($_POST ['Complete_funtionality']);
+            $accurate_data = common::check_input($_POST ['Accurate_data']);
+            $clear_information = common::check_input($_POST ['Clear_information']);
+            $easy_to_use = common::check_input($_POST ['Easy_to_use']);
+            $system_Performance = common::check_input($_POST ['System_Performance']);
+
+            $user_type = _isApexLogin() ? "employee" : "customer";
+            $sql = "INSERT INTO public.customer_service_user_mark(user_type, user_name, suggestion, proposal, expression, complete_funtionality, 
+                    accurate_data, clear_information, easy_to_use, system_performance, 
+                    created_time)
+            VALUES ('$user_type', '"._getLoginName()."', '$suggestion', '$proposal', '$expression', '$complete_funtionality', 
+                    '$accurate_data', '$clear_information', '$easy_to_use', '$system_Performance', now())";
+            common::excuteUpdateSql($sql);
+
             $data = array("msg" =>"success");
             common::echo_json_encode(200,$data);
             exit();