exit; } // the standard UserProfileForm is always needed. // Let's create it if ($userObj->tipo == AMA_TYPE_STUDENT && $self_instruction) { $self = whoami(); //allowing to build action form } $form = new UserProfileForm($languages, $allowEditProfile, $allowEditConfirm, $self . '.php'); unset($user_dataAr['password']); $user_dataAr['email'] = $user_dataAr['e_mail']; unset($user_dataAr['e_mail']); $form->fillWithArrayData($user_dataAr); if (!$editUserObj->hasExtra()) { // user has no extra, let's display it $data = $form->render(); } else { require_once ROOT_DIR . '/include/HtmlLibrary/UserExtraModuleHtmlLib.inc.php'; // the extra UserExtraForm is needed as well require_once ROOT_DIR . '/include/Forms/UserExtraForm.inc.php'; $extraForm = new UserExtraForm($languages); $extraForm->fillWithArrayData($user_dataAr); $tabContents = array(); /** * @author giorgio 22/nov/2013 * Uncomment and edit the below array to have the needed * jQuery tabs to be used for user extra data and tables */ // $tabsArray = array ( // array (translateFN ("Anagrafica"), $form), // array (translateFN ("Sample Extra 1:1"), $extraForm),