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'])){ if($_POST['AJAX']=='edit_query_theme'){ include_once (ROOT.'/libs/php/classes/rt_class.php'); RT::save_theme($_POST['query_num'],$_POST['theme']); echo '{"response":"OK"}'; exit; } } /////////////////////////////////////// END AJAX /////////////////////////////////////////////////