. */ /** * @brief Action : simple confirm * * Open a modal box to confirm a status modification. Used by the core (manage_action.php page). * * @file * @author Claire Figueras * @date $date$ * @version $Revision$ * @ingroup apps */ /** * $confirm bool false */ $confirm = false; $etapes = array('form'); $frm_width='800px'; $frm_height = 'auto'; function get_form_txt($values, $path_manage_action, $id_action, $table, $module, $coll_id, $mode ) { $module='apps'; //var_dump($_REQUEST['values']); $mode='add'; $parameters = '&coll_id='.$_REQUEST['coll_id'].'&size=full'; $frm_str .=''; // $frm_str .='
'; // $frm_str .=' '; // $frm_str .=' '; // $frm_str .='
'; $mode='page'; $frm_str .='
'; $frm_str .= '
'; $frm_str .= ''; $frm_str .= ''; $frm_str .='
'; $frm_str .='
'; $frm_str .='
'; // $frm_str .= ''; //$frm_str .= 'remplir'; $frm_str .=' '; $frm_str .=' '; $frm_str .='
'; return addslashes($frm_str); } function check_form($form_id,$values) { return true; } function manage_form($arr_id, $history, $id_action, $label_action, $status, $coll_id, $table, $values_form ) { if(empty($values_form) || count($arr_id) < 1) return false; require_once('modules/notes/class/notes_controler.php'); $note = new notes_controler(); $db = new Database(); $formValues = array(); for($i=0; $iretrieve_table_from_coll($coll_id); # save note if($formValues['note_content_to_users'] != ''){ //Add notes $nb_avis = $sequence +1; $userIdTypist = $_SESSION['user']['UserId']; $content_note = $formValues['note_content_to_users']; $content_note = str_replace(";", ".", $content_note); $content_note = str_replace("--", "-", $content_note); $content_note = $content_note; $note->addNote($res_id, $coll_id, $content_note); } return array('result' => $res_id.'#', 'history_msg' => ''); } /** * Get the value of a given field in the values returned by the form * * @param $values Array Values of the form to check * @param $field String the field * @return String the value, false if the field is not found **/ function get_value_fields($values, $field) { for($i=0; $i