diff --git a/cis/private/profile/index.php b/cis/private/profile/index.php index 6f2848bdf..3af22ac35 100644 --- a/cis/private/profile/index.php +++ b/cis/private/profile/index.php @@ -205,8 +205,10 @@ echo ' //Foto anzeigen $benutzer = new benutzer(); $benutzer->load($uid); + $person = new person(); $person->load($benutzer->person_id); +//var_dump($person); if ($person->foto != '') { if (!($ansicht && $user->foto_sperre)) @@ -238,7 +240,7 @@ if (!$ansicht) echo ''; echo ' - '.($type == "student"?$p->t("profil/student"):$p->t('profil/mitarbeiter')).'

+ '.($type == "student"?$p->t("profil/student") : ($user->fixangestellt ? $p->t('profil/mitarbeiter') : $p->t('personensuche/mitarbeiterInExtern'))).'

'.$p->t('global/username').': '.$user->uid.'
'; if ($type == 'student' && $person->matr_nr) echo $p->t('global/matrikelnummer'). ": ". $person->matr_nr. "
"; diff --git a/cis/private/tools/suche.php b/cis/private/tools/suche.php index 517f3bde0..2261a4e66 100644 --- a/cis/private/tools/suche.php +++ b/cis/private/tools/suche.php @@ -158,7 +158,7 @@ function searchPerson($searchItems) { $bisverwendung = new bisverwendung(); $bisverwendung->getLastAktVerwendung($row->uid); - + echo ''; //echo '',$row->titelpre,''; echo '',$row->anrede,''; @@ -171,7 +171,7 @@ function searchPerson($searchItems) echo ''; //echo '',$row->titelpost,''; echo '',($row->studiengang!=''?$row->studiengang:'-'),''; - echo '',($row->mitarbeiter_uid==NULL?'StudentIn':'MitarbeiterIn'),''; + echo '',($row->mitarbeiter_uid==NULL ? $p->t('personensuche/studentIn') : ($row->fixangestellt=='t' ? $p->t('personensuche/mitarbeiterIn') : $p->t('personensuche/mitarbeiterInExtern'))),''; // Display phone number echo ''; // * if user has telefonklappe, display it @@ -197,7 +197,7 @@ function searchPerson($searchItems) { echo $kontakt->kontakt. "
"; $is_zugestellt = true; - } + } } // if zustellung is false display '-' if (!$is_zugestellt) @@ -211,7 +211,7 @@ function searchPerson($searchItems) echo '-'; } } - echo ''; + echo ''; echo '',($row->raum!=''?$row->raum:'-'),''; if($row->alias!='' && !in_array($row->studiengang_kz, $noalias)) $mail = $row->alias.'@'.DOMAIN; @@ -311,7 +311,7 @@ function searchOE($searchItems) if($bisverwendung->beschausmasscode=='5') echo ' (karenziert)'; echo ''; - + // Display phone number echo ''; // * if user has telefonklappe, display it @@ -323,7 +323,7 @@ function searchOE($searchItems) else { $person_id = $person->person_id; - + if ($kontakt->load_persKontakttyp($person_id, 'firmenhandy')) { $is_zugestellt = false; @@ -334,13 +334,13 @@ function searchOE($searchItems) { echo $kontakt->kontakt. "
"; $is_zugestellt = true; - } + } } // if zustellung is false display '-' if (!$is_zugestellt) { echo '-'; - } + } } // * if neither telefonklappe nor business handy, display '-' else @@ -348,8 +348,8 @@ function searchOE($searchItems) echo '-'; } } - echo ''; - + echo ''; + echo '',($mitarbeiter->ort_kurzbz!=''?$mitarbeiter->ort_kurzbz:'-'),''; //if($row->alias!='' && !in_array($row->studiengang_kz, $noalias)) ??? Was macht $noalias? if($person->alias!='')