Esempio n. 1
0
	if(isset($_GET['set_svetofor_status'])){
	     RT::change_all_svetofors(json_decode($_GET['ids']),$_GET['set_svetofor_status']);
		 header('Location:?'.addOrReplaceGetOnURL('','set_svetofor_status&ids'));
		 exit;
    }
	if(isset($_GET['set_order_deadline'])){
	     RT::set_order_deadline($_GET['ids'],$_GET['date'],$_GET['time']);
		 header('Location:?'.addOrReplaceGetOnURL('','set_order_deadline&ids&date&time'));
		 exit;
    }
	////////////////////////  AJAX  //////////////////////// 
	
	if(isset($_GET['setCalcualtorLevel'])){
	     // print_r($_GET);
	     require_once(ROOT."/libs/php/classes/rt_class.php");
		 echo RT::setCalcualtorLevel($_GET['query_num'],$_GET['setCalcualtorLevel']);
		 exit;
	}
	
	if(isset($_POST['getSizesForArticle'])){
	     require_once(ROOT."/libs/php/classes/rt_class.php");
		 echo RT::getSizesForArticle($_POST['pos_id']);
		 exit;
	}
	
	if(isset($_GET['getSpecificationsDates'])){
	     require_once(ROOT."/libs/php/classes/agreement_class.php");
		 echo Agreement::getSpecificationsDates(json_decode($_GET['getSpecificationsDates']));
		 exit;
	}