示例#1
0
 // 				case '1' :
 // 					if(CheckHere($person_id)){
 // 						$status = WorkerStart($person_id);
 // 					}else{
 // 						$error = "შეცდომა:  უკვე არის აღრიცხული";
 // 					}
 // 					break;
 // 				case '2' :
 // 					if(!CheckHere($person_id)){
 // 						$status = WorkerEnd($person_id);
 // 					}else{
 // 						$error = "შეცდომა:  არ  არის აღრიცხული";
 // 					}
 // 					break;
 case '3':
     $check = CheckGoTimeOut($person_id);
     if ($check == 3) {
         $error = "შეცდომა: არ გაქვთ გაკეთებული მოსვლა";
     } else {
         if ($check == 1) {
             $status = GoTimeOut($person_id, $comment_start);
         } else {
             $error = "შეცდომა:  უკვე არის შესვენებაზე";
         }
     }
     break;
 case '4':
     if (!CheckBackTimeOut($person_id)) {
         $status = BackTimeOut($person_id, $comment_end);
     } else {
         $error = "შეცდომა:  ჯერ შესვენებაზე გადი";
示例#2
0
     case '1':
         if (CheckHere($person_id)) {
             WorkerStart($person_id);
         } else {
             $error = "შეცდომა:  უკვე არის აღრიცხული";
         }
         break;
     case '2':
         if (!CheckHere($person_id)) {
             WorkerEnd($person_id);
         } else {
             $error = "შეცდომა:  არ  არის აღრიცხული";
         }
         break;
     case '3':
         if (!CheckGoTimeOut($person_id)) {
             GoTimeOut($person_id, $comment_start);
         } else {
             $error = "შეცდომა:  უკვე არის შესვენებაზე";
         }
         break;
     case '4':
         if (!CheckBackTimeOut($person_id)) {
             BackTimeOut($person_id, $comment_end);
         } else {
             $error = "შეცდომა:  ჯერ შესვენებაზე გადი";
         }
         break;
     default:
         break;
 }