示例#1
0
        MultiPort::setUser($userObj, array(), true);
        /* unset $_SESSION['service_level'] to reload it with the correct user language translation */
        unset($_SESSION['service_level']);
        $help = translateFN('Dati salvati');
        /*$navigationHistoryObj = $_SESSION['sess_navigation_history'];
          $location = $navigationHistoryObj->lastModule();
          header('Location: ' . $location);
          exit();*/
    }
} else {
    $form = new UserProfileForm($languages);
    $user_dataAr = $userObj->toArray();
    unset($user_dataAr['password']);
    $user_dataAr['email'] = $user_dataAr['e_mail'];
    unset($user_dataAr['e_mail']);
    $form->fillWithArrayData($user_dataAr);
    $help = translateFN('Modifica dati utente');
}
$label = translateFN('Modifica dati utente');
$layout_dataAr['JS_filename'] = array(JQUERY, JQUERY_UI, JQUERY_MASKEDINPUT, JQUERY_NO_CONFLICT, ROOT_DIR . '/js/include/jquery/pekeUpload/pekeUpload.js');
$layout_dataAr['CSS_filename'] = array(JQUERY_UI_CSS, ROOT_DIR . '/js/include/jquery/pekeUpload/pekeUpload.css');
$maxFileSize = (int) (ADA_FILE_UPLOAD_MAX_FILESIZE / (1024 * 1024));
$optionsAr['onload_func'] = 'initDoc(' . $maxFileSize . ',' . $userObj->getId() . ');';
// $optionsAr['onload_func'] = 'initDateField();';
/*
 * Display error message  if the password is incorrect
 */
if (isset($_GET['message'])) {
    $help = $_GET['message'];
}
$content_dataAr = array('user_name' => $user_name, 'user_type' => $user_type, 'messages' => $user_messages->getHtml(), 'agenda' => $user_agenda->getHtml(), 'status' => $status, 'course_title' => translateFN('Modifica dati utente'), 'dati' => $form->getHtml(), 'help' => $help);
示例#2
0
 } else {
     $userId = DataValidator::is_uinteger($_GET['id_user']);
     if ($userId === false) {
         $data = new CText('Utente non trovato');
     } else {
         $editedUserObj = MultiPort::findUser($userId);
         $formData = $editedUserObj->toArray();
         $formData['email'] = $formData['e_mail'];
         unset($formData['e_mail']);
         /**
          * @author giorgio 29/mag/2013
          *
          * added parameters to force allowEditConfirm
          */
         $data = new UserProfileForm(array(), false, true);
         $data->fillWithArrayData($formData);
     }
 }
 $label = translateFN('Modifica utente');
 $help = translateFN('Da qui il provider admin può modificare il profilo di un utente esistente');
 if (!is_null($editedUserObj)) {
     $label .= ': ' . $editedUserObj->getUserName() . ' (' . $editedUserObj->getFullName() . ')';
 }
 $layout_dataAr['JS_filename'] = array(JQUERY, JQUERY_MASKEDINPUT, JQUERY_NO_CONFLICT);
 $optionsAr['onload_func'] = 'initDateField();';
 /*
  * Display error message  if the password is incorrect
  */
 if (isset($_GET['message'])) {
     $help = $_GET['message'];
 }