request("ag_id","number"); $ctl=$http->request("ctl"); $selected_card=$http->request("selected_card","array",[]); } catch (Exception $ex) { record_log(__FILE__.$ex->getMessage().$ex->getTraceAsString()); return; } /* * security Who can do it ? */ if ( ! $g_user->can_write_action($ag_id) ) { record_log(__FILE__."security : access refused"); return; } $follow=new Follow_Up_Other_Concerned($cn,$ag_id); $nb_card=count($selected_card); for ($i=0;$i< $nb_card;$i++) { $elt=$selected_card[$i]; if (isNumber($elt)) { $follow->insert_linked_card($elt); } } /** * Display all the linked card */ ob_start(); $follow->display_linked_count(); echo $follow->button_action_add_concerned_card( ); $response = ob_get_clean(); $html = escape_xml($response); header('Content-type: text/xml; charset=UTF-8'); echo << $ctl $html EOF; ?>