Ejemplo n.º 1
0
	if(isset($_GET['insert_copied_rows'])){
	     $place_id = (isset($_GET['place_id']))? $_GET['place_id']: FALSE;
		 echo RT::insert_copied_rows($_GET['query_num'],$place_id);
		 exit;
	}
	if(isset($_GET['deleting'])){
		 if($_GET['type']== 'rows') echo RT::delete_rows(json_decode($_GET['deleting']),@$_GET['query_num']);
		 if($_GET['type']== 'prints' || $_GET['type']== 'uslugi' || $_GET['type']== 'printsAndUslugi' )  echo RT::deletePrintsAndUslugi(json_decode($_GET['deleting']), $_GET['type']);
		 
		 exit;
	}
	if(isset($_GET['fetch_dop_uslugi_for_row'])){

		include_once(ROOT."/libs/php/classes/rt_calculators_class.php");
		
		$out_put = rtCalculators::fetch_dop_uslugi_for_row($_GET['fetch_dop_uslugi_for_row']);
		
		exit;
	}
	if(isset($_GET['fetch_data_for_dop_uslugi_row'])){

		include_once(ROOT."/libs/php/classes/rt_calculators_class.php");
		
		$out_put = rtCalculators::fetch_data_for_dop_uslugi_row($_GET['fetch_data_for_dop_uslugi_row']);
		
		exit;
	}
	if(isset($_GET['grab_calculator_data'])){
		//print_r(json_decode($_GET['grab_calculator_data']));
		include_once(ROOT."/libs/php/classes/rt_calculators_class.php");