Exemplo n.º 1
0
	 */
	  if(isset($_GET['ajax_set_samples_list']))
	 {

	     $id_arr = explode(";",$_GET['data']);

		 echo (int)$_GET['conrtol_num'].'<br>';
		 print_r($id_arr);
		 exit;
     }
	 
	 if(isset($_POST['change_kp_comment_old_version'])){
 
		 $file_name = $_POST['file_name'];
		 $file_comment = urldecode($_POST['change_kp_comment_old_version']);
		 Com_pred::change_comment_old_version($file_name,$file_comment);
		 exit;
	 }

	 if(isset($_GET['get_client_cont_faces']))
	 {
	     echo Client::get_cont_faces_ajax($_GET['get_client_cont_faces']);
		 exit;
	 }
	 
	 if(isset($_GET['set_manager_for_order']))
	 {
	 	 set_manager_for_order_ajax($_GET['row_id'],$_GET['set_manager_for_order'],$_GET['control_num']);
		 exit;
	 }
	 
Exemplo n.º 2
0
		// если отправка прошла успешно
		// a. сохраняем дату в таблицу COM_PRED_LIST
		// b. удаляем предыдущий(ие) ПДФки по этому КП  
		$out_data_arr = json_decode($out_data);
		if($out_data_arr[0]=='1'){
		     Com_pred::save_mail_send_time($mail_details->kp_id);
			 Com_pred::clear_client_kp_folder($mail_details->kp_id,$mail_details->attached_files);
		}
		
		echo $out_data;
	    exit;
	}
	
	if(isset($_GET['change_comment'])){
	     if(isset($_POST['id'])) Com_pred::change_comment($_POST['id'],$_POST['field_val']);
		 if(isset($_POST['file_name'])) Com_pred::change_comment_old_version($_POST['file_name'],$_POST['field_val']);
		 exit;
	 }
	 if(isset($_GET['set_recipient'])){
	     // print_r($_GET);
		 Com_pred::set_recipient($_GET['set_recipient'],$_GET['row_id']);
		 exit;
	 }
	 if(isset($_POST['AJAX']) && isset($_POST['action'])){
		 if($_POST['action']=='changeKpPosDescription') Com_pred::changePosDescription($_POST['id'],$_POST['field_val'],$_POST['field_name']);
		 if($_POST['action']=='changeKpRepresentedData') Com_pred::changeRepresentedData($_POST['id'],$_POST['field_val'],$_POST['field_name']);//,$_POST['field_name']
		 exit;
	 }
	
		if(isset($_POST['AJAX'])){