} $text = translateFN("La proposta di appuntamento è stata inviata con successo all'utente ") . $addresseeObj->getFullName() . "."; $form = CommunicationModuleHtmlLib::getOperationWasSuccessfullView($text); //header('Location: '.HTTP_ROOT_DIR.'/comunica/list_events.php'); //exit(); } } else { if (isset($msg_id)) { $data = MultiPort::getUserAppointment($userObj, $msg_id); if ($data['flags'] & ADA_EVENT_PROPOSAL_OK) { /* * The user accepted one of the three proposed dates for the appointment. * E' UN CASO CHE NON SI PUO' VERIFICARE, visto che vogliamo che l'appuntamento * venga inserito non appena l'utente accetta una data porposta dal practitioner */ $form = CommunicationModuleHtmlLib::getConfirmedEventProposalForm($data); } else { /* * The user did not accept the proposed dates for the appointment */ $_SESSION['event_msg_id'] = $msg_id; $id_user = $data['id_mittente']; $errors = array(); $form = CommunicationModuleHtmlLib::getEventProposalForm($id_user, $data, $errors, $sess_selected_tester); } } else { /* * Build the form used to propose an event. Da modificare in modo da passare * eventualmente il contenuto dei campi del form nel caso si stia inviando * una modifica ad una proposta di appuntamento. */