gender; $person_id = $person->member_id; /* $test = isset($_GET['something']) ? $_GET['something'] : ''; means if(isset($_GET['something'])){ $test = $_GET['something']; } else { $test = ''; } */ $_SESSION['message'] = ""; $this->is_admin(); // returns true or goto login // person_id wird gesetzt durch Auswaglfeld oder link (i) $person_id = getAndSetSession('id', 'person_id', '02'); // who beschreibt was geändert wird (Person, Partner, ..) $who = getAndSetSession('who', 'who', '1'); // action: update = 1, new = 2 $action = getAndSetSession('action', 'action', '1'); // p_id_p: wird gesetzt duch Selektionsfeld Partner $p_id = getAndSetSession('p_id', 'p_id', '0'); // id_part_new wird gesetzt duch Selektionsfeld new Partner $id_part_new = getAndSetSession('id_part_new', 'id_part_new', '13'); // id_part_update wird gesetzt duch Selektionsfeld update Partner $id_part_update = getAndSetSession('id_part_update', 'id_part_update', '13'); // iss_id wird gesetzt duch Selektionsfeld update Partner $iss_id = getAndSetSession('iss_id', 'iss_id', '0'); // bem_id wird gesetzt duch Selektionsfeld Bemerkungen $bem_id = getAndSetSession('bem_id', 'bem_id', '0'); // wird gesetzt duch Selektionsfeld Wohnort $id_place = getAndSetSession('id_place', 'id_place', '0'); // wird gesetzt duch Selektionsfeld Wohnort $w_ort_id = getAndSetSession('w_ort_id', 'w_ort_id', '0'); // id_adr: wird gesetzt duch Adresseneingabe $id_adr = getAndSetSession('id_adr', 'id_adr', '0'); ?>
Hier findet Adressenpflege statt'?>

gender) { case 1: $icon = "";break; case 2: $icon = "";break; case 0: $icon = "";break; } $kopf_daten =array("Personendaten ","Partnerdaten ","Ereignisse ","Wohnorte ","Adressenpflege ","Bemerkungen zu ","User der Datenbank "); if ($action == 1) { ?>

first_name. " ".$person->last_name."
" .date_period($person); } echo "

"; } else { ?>

Neue Daten aufnehmen

Stand

Pers.: gender) { case 1: $nbm++; break; // man case 2: $nbf++; break; // woman case 0: $nbu++; break; // unknown } } echo count ($persons)." - " .$nbm." "." - " .$nbf." "." - " .$nbu." "." " ;?>

action: /> update"; } else { echo " update";}?> /> new"; } else { echo " new";}?>
 
select: /> ".$select[$i-1]."";} else { echo $select[$i-1];} } ?>

Partner von Person

gender == 01) { $tr=$tr1;$gen="m";} else {$tr=$tr2;$gen="f";} echo $tr." " .""; } ?>
 Vor- Nachnamen  geb.
 ∞
 Ort ⚮"; ?>
";?> onchange="submit()" />  " .$part->first_name." " .$part->last_name."   " .$part->birth_name ."  " .$part->par_von ."  " .$part->par_ort ."  " .$part->par_devorce ."
keine Partner eingetragen!

Person bearbeiten

Selection (who) Member IDgender  
/> male   /> female parent_id == 999) { echo "checked=\"checked\""; } ?>/> parent
first namelast namebirth namemember image
       
* in in
 
remarks
"/>
 

father_id; if ($m_f == 0) { $m_f = 13; $str_label = "Vater unbekannt!"; } else { $str_label = "Link zum Vater: ID=".$m_f.""; } $str_select_name ="va_id"; $gender = 1; $m_f = select_parents($persons, $str_label, $str_select_name, $m_f, $gender);?>     mother_id; if ($m_m == 0) { $m_m = 13; $str_label = "Mutter unbekannt!"; } else { $str_label = "Link zur Mutter: ID=".$m_m.""; } $str_select_name ="ma_id"; $gender = 2; $m_m = select_parents($persons, $str_label, $str_select_name, $m_m, $gender);?>

gender == 01) { $tr=$tr1;$gen="m";} else {$tr=$tr2;$gen="f";} echo $tr." " .""; } ?>
 Vor- Nachnamen  geb.
 ∞
 Ort ⚮"; ?>
";?> onchange="submit()" />  " .$part->first_name." " .$part->last_name."   " .$part->birth_name ."  " .$part->par_von ."  " .$part->par_ort ."  " .$part->par_devorce ."
keine Partner eingetragen!
member_id == $id_part_new) { $_SESSION['message'] = "Partner muss ungleich Person sein!"; $bol_submit = 1; } } } $_SESSION['message'] = "Insert new Partner!"; $str_label = "PartnerIn: (new)"; $str_get_id = "id_part_update"; }?>

Partnerdaten bearbeiten

selection (who) update idmember idwoman_idmarried on ⚮placedate ∞
" size="10%" readonly >  " placeholder="man_id" size="10%" readonly />  " placeholder="wom_id" size="10%"/>  " placeholder="date" size="20%" />  " placeholder="ort" size="20%" />  " placeholder="date" size="20%" /> 
"/> "/>

Ereignisse bearbeiten

$issue) { echo $tr0;?> $data) { echo ""; } echo ""; } ?>
ID Member Datum Ereignis
onchange="submit()" />   ".$data." 

ID  Member IDdateissue
" size="10%" readonly >    " placeholder="member_id" size="10%" readonly />  " placeholder="date" size="10%"/>  " placeholder="issue" size="70%"/> 
  "/>

member_id; if (($who == 04)) { $_SESSION['message'] = "Update place or insert new!"; ?>

Wohnorte bearbeiten

0 dann foreach ($wohnorte as $mem) { $bis = $mem->ort_bis; if ($bis==0) {$bis = "heute"; } $wohnort = [ 'ort_id' => $mem->ort_id, 'ort_von' => $mem->ort_von, 'ort_bis' => $bis, //$mem->ort_bis, 'member_id_f' => $mem->member_id_f, 'adr_id_f' => $mem->adr_id_f, 'adr_plz' => $mem->adr_plz, 'adr_ort' => $mem->adr_ort, 'adr_strasse' => $mem->adr_strasse]; $orte[] = $wohnort; } } $id_o_no = 0; ?> 0 dann auslesen foreach ($orte AS $key => $ort) { echo $tr0;?> $data) { echo ""; } echo ""; } } else { echo $tr0 . ""; } ?>
s   ort von bis m adr  PLZ Ort Strasse
onchange="submit()" />  ".$data." 
Keine Wohnorte erfasst!

Select (who) idmember_id_fadr_idvonbis
" size="5%" readonly >  " placeholder="member_id" size="10%" readonly />  " placeholder="adr" size="10%"/>  " placeholder="date" size="10%"/>  " placeholder="date" size="10%"/> 
  "/>

Adressen bearbeiten

Select (who) adr idPLZOrtLandStr 
" size="5%" readonly >  " placeholder="plz" size="5%"/>  " placeholder="ort" size="20%"/>  " placeholder="country" size="20%"/>  " placeholder="str" size="30%" /> 
"/>

$adr) { ?> $data) { echo ""; } ?>
   id  PLZ Ort Strasse Land phone
onchange="submit()" />  ".$data." 

Bemerkungen zu Person bearbeiten

Select (who) idrem idid_fdateremarkerledigt
  " size="5%" readonly >  " placeholder="member_id_f" size="5%" readonly />  " placeholder="date" size="15%" />  " placeholder="remark" size="70%" />  " placeholder="erl" size="5%" /> 
"/>

member_id; ?> $issue) { echo $tr0; ?> $data) { echo ""; } echo ""; } ?>
  ID Datum Bemerkung  id_f erl
onchange="submit()" /> ".$data." 

User bearbeiten (nur für admin)

member_id; fill_line($children,$id,$link); } else { ?>
Vor- Nachname geb. 
*
 Ort 
kein Kind eingetragen!

member_id; fill_line($siblings,$id,$link); } else { ?>
Vor- Nachnamegeb.
*
Ort
keine Ereignisse eingetragen!

member_id." -  " ."person_gender: ".$person->gender."
"; echo "bol_submit: ".$bol_submit. "
"; } }?>