mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Adding "anrede" to CIS-search and profile
This commit is contained in:
@@ -230,6 +230,7 @@ echo '</td><td width="30%" valign="top">';
|
||||
echo '
|
||||
<b>'.($type=="student"?$p->t("profil/student"):$p->t('profil/mitarbeiter')).'</b><br><br>
|
||||
'.$p->t('global/username').': '.$user->uid.'<br>
|
||||
'.$p->t('global/anrede').': '.$user->anrede.'<br>
|
||||
'.$p->t('global/titel').': '.$user->titelpre.' <br>';
|
||||
|
||||
if(!$ansicht)
|
||||
|
||||
@@ -82,7 +82,6 @@ $searchItems = explode(' ',TRIM(str_replace(',', '', $search),'!.?'));
|
||||
// Leerzeichen und Whitespaces entfernen
|
||||
$searchItems = preg_replace("/\s/", '', $searchItems);
|
||||
|
||||
|
||||
// Leere Strings aus Array entfernen
|
||||
while ($array_key = array_search("", $searchItems))
|
||||
unset ($searchItems[$array_key]);
|
||||
@@ -139,6 +138,7 @@ function searchPerson($searchItems)
|
||||
echo '<table class="tablesorter" id="personentable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>',$p->t('global/anrede'),'</th>
|
||||
<th>',$p->t('global/vorname'),'</th>
|
||||
<th>',$p->t('global/nachname'),'</th>
|
||||
<th>',$p->t('global/studiengang'),'</th>
|
||||
@@ -161,6 +161,7 @@ function searchPerson($searchItems)
|
||||
|
||||
echo '<tr>';
|
||||
//echo '<td>',$row->titelpre,'</td>';
|
||||
echo '<td>',$row->anrede,'</td>';
|
||||
echo '<td>',$row->vorname,'</td>';
|
||||
echo '<td><a href="../profile/index.php?uid=',$row->uid,'" title="',$row->titelpre,' ',$row->vorname,' ',$row->nachname,' ',$row->titelpost,'">',$row->nachname,'</a>';
|
||||
if($row->aktiv==false)
|
||||
|
||||
@@ -304,7 +304,7 @@ class benutzer extends person
|
||||
{
|
||||
$qry = "SELECT * FROM (
|
||||
SELECT
|
||||
distinct on (uid) vorname, nachname, uid, mitarbeiter_uid, titelpre, titelpost, lektor, fixangestellt, alias, tbl_benutzer.aktiv,
|
||||
distinct on (uid) vorname, nachname, uid, mitarbeiter_uid, titelpre, titelpost, lektor, fixangestellt, alias, tbl_benutzer.aktiv, anrede,
|
||||
(SELECT UPPER
|
||||
(tbl_studiengang.typ || tbl_studiengang.kurzbz)
|
||||
FROM public.tbl_student
|
||||
@@ -371,6 +371,7 @@ class benutzer extends person
|
||||
$obj->lektor = $row->lektor;
|
||||
$obj->fixangestellt = $row->fixangestellt;
|
||||
$obj->aktiv = $this->db_parse_bool($row->aktiv);
|
||||
$obj->anrede = $row->anrede;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ $this->phrasen['global/oder']='oder';
|
||||
$this->phrasen['global/username']='Username';
|
||||
$this->phrasen['global/vorname']='Vorname';
|
||||
$this->phrasen['global/nachname']='Nachname';
|
||||
$this->phrasen['global/anrede']='Anrede';
|
||||
$this->phrasen['global/name']='Name';
|
||||
$this->phrasen['global/uid']='UID';
|
||||
$this->phrasen['global/postnomen']='Postnomen';
|
||||
|
||||
@@ -64,6 +64,7 @@ $this->phrasen['global/oder']='or';
|
||||
$this->phrasen['global/username']='Username';
|
||||
$this->phrasen['global/vorname']='First Name';
|
||||
$this->phrasen['global/nachname']='Last Name';
|
||||
$this->phrasen['global/anrede']='Title';
|
||||
$this->phrasen['global/name']='Name';
|
||||
$this->phrasen['global/uid']='UID';
|
||||
$this->phrasen['global/postnomen']='Postnomen';
|
||||
|
||||
Reference in New Issue
Block a user