Example #1
0
         $country = 'Spanien';
         break;
     case 'CZ':
         $country = 'Tschechien';
         break;
     case 'HU':
         $country = 'Ungarn';
         break;
     case 'CY':
         $country = 'Zypern';
         break;
 }
 $imgEdit = new ButtonEdit($value->Id);
 $imgDelete = new ButtonDelete();
 $id = new Input(null, null, 'hidden', $value->Id, 'hiddenField');
 $tdFunctionContent = $id->Display();
 $tdFunctionContent .= $imgDelete->Display() . $imgEdit->Display();
 $tdName = new Td((trim($value->Title) == '' ? trim($value->Gender) == '' ? '' : $value->Gender . ' ' : OwnLibrary::Utf8Encode($value->Title) . ' ') . OwnLibrary::Utf8Encode($value->First_Name) . ' ' . OwnLibrary::Utf8Encode($value->Last_Name), 'Name_' . OwnLibrary::Utf8Encode($value->Id));
 $tdAddress = new Td(OwnLibrary::Utf8Encode($value->Street_Name) . ' ' . OwnLibrary::Utf8Encode($value->Street_No), 'Street_' . OwnLibrary::Utf8Encode($value->Id));
 $tdZip = new Td(OwnLibrary::Utf8Encode($value->Zip), 'Zip_' . OwnLibrary::Utf8Encode($value->Id), null, 'text-align: center;');
 $tdCity = new Td(OwnLibrary::Utf8Encode($value->City), 'City_' . OwnLibrary::Utf8Encode($value->Id), null, 'text-align: center;');
 $tdCountry = new Td(OwnLibrary::Utf8Encode($country), 'Country_' . OwnLibrary::Utf8Encode($value->Id), null, 'text-align: center;');
 $tdEmail = new Td('<a href="mailto:' . OwnLibrary::Utf8Encode($value->Email) . '">' . OwnLibrary::Utf8Encode($value->Email) . '</a>', 'Email_' . OwnLibrary::Utf8Encode($value->Id), null, 'text-align: center;');
 $tdFunctions = new Td($tdFunctionContent, null, 'funcs', 'text-align: center; width: 1px;');
 $tdArray = array();
 $tdArray[] = $tdName;
 $tdArray[] = $tdAddress;
 $tdArray[] = $tdZip;
 $tdArray[] = $tdCity;
 $tdArray[] = $tdCountry;
 $tdArray[] = $tdEmail;
Example #2
0
$inputStreetNo = new Input('Street_No', 'Street_No', 'text', $person_to_edit->Street_No, 'validate[required,custom[name]] text-input', null, 'Die Hausnummer hier eintippen.', '9%', 7);
$inputZip = new Input('Zip', 'Zip', 'text', $person_to_edit->Zip, 'validate[required,custom[name]] text-input', null, 'Bitte die PLZ hier eintippen.', '9%', 10);
$inputCity = new Input('City', 'City', 'text', $person_to_edit->City, 'validate[required,custom[name]] text-input', null, 'Bitte den Ort hier eintippen.', '35%', 50);
$inputEmail = new Input('Email', 'Email', 'text', $person_to_edit->Email, 'validate[required,custom[email]] text-input', null, 'Bitte die E-Mail-Adresse hier eintippen.', '50%', 50);
global $thArray;
$thArray = array();
$thArray[] = new Th('Anrede', null, '30%');
$thArray[] = new Th('Titel');
$thArray[] = new Th('Vorname');
$thArray[] = new Th('Nachname *');
$thArray[] = new Th('Stra├če */ Haus-Nr. *');
$thArray[] = new Th('PLZ */ Ort *');
$thArray[] = new Th('Land *');
$thArray[] = new Th('E-Mail *');
global $tdArray;
$tdArray = array();
$tdArray[] = new Td($inputId->Display() . $selectGender->Display());
$tdArray[] = new Td($inputTitle->Display());
$tdArray[] = new Td($inputFirstName->Display());
$tdArray[] = new Td($inputLastName->Display());
$tdArray[] = new Td($inputStreetName->Display() . '&nbsp;&nbsp;' . $inputStreetNo->Display());
$tdArray[] = new Td($inputZip->Display() . '&nbsp;&nbsp;' . $inputCity->Display());
$tdArray[] = new Td($selectCountry->Display());
$tdArray[] = new Td($inputEmail->Display());
$addEditForm = new FormAddEdit(array($buttonResetReceiver, $buttonSaveReceiver));
$editPerson = new EditPerson();
$editPerson->par = $this;
$editPerson->page_title = 'Person bearbeiten';
$editPerson->content .= $addEditForm->Display();
include_once 'view/javascripts/' . $this->get_values['Page'] . '.javascript.php';
$editPerson->Display();