mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Added display of business handy on CIS search
Now if the CIS search is used to find a person or an organisational unit, the business handy will be displayed IF . no telefonklappe exists . a business handy nr is provided . Zustellung is true
This commit is contained in:
@@ -52,7 +52,7 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">';
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">';
|
||||
|
||||
include('../../../include/meta/jquery.php');
|
||||
include('../../../include/meta/jquery-tablesorter.php');
|
||||
@@ -158,7 +158,7 @@ function searchPerson($searchItems)
|
||||
{
|
||||
$bisverwendung = new bisverwendung();
|
||||
$bisverwendung->getLastAktVerwendung($row->uid);
|
||||
|
||||
|
||||
echo '<tr>';
|
||||
//echo '<td>',$row->titelpre,'</td>';
|
||||
echo '<td>',$row->anrede,'</td>';
|
||||
@@ -171,8 +171,47 @@ function searchPerson($searchItems)
|
||||
echo '</td>';
|
||||
//echo '<td>',$row->titelpost,'</td>';
|
||||
echo '<td>',($row->studiengang!=''?$row->studiengang:'-'),'</td>';
|
||||
echo '<td>',($row->mitarbeiter_uid==NULL?'StudentIn':'MitarbeiterIn'),'</td>';
|
||||
echo '<td>',($row->telefonklappe!=''?$row->telefonklappe:'-'),'</td>';
|
||||
echo '<td>',($row->mitarbeiter_uid==NULL?'StudentIn':'MitarbeiterIn'),'</td>';
|
||||
// Display phone number
|
||||
echo '<td>';
|
||||
// * if user has telefonklappe, display it
|
||||
if ($row->telefonklappe != '')
|
||||
{
|
||||
echo $row->telefonklappe;
|
||||
}
|
||||
// * if user has no telefonklappe, display business handy
|
||||
else
|
||||
{
|
||||
$person = new Person();
|
||||
$person->getPersonFromBenutzer($row->uid);
|
||||
$person_id = $person->person_id;
|
||||
$kontakt = new Kontakt();
|
||||
|
||||
if ($kontakt->load_persKontakttyp($person_id, 'firmenhandy'))
|
||||
{
|
||||
$is_zugestellt = false;
|
||||
foreach ($kontakt->result as $kontakt)
|
||||
{
|
||||
// display business handy only if zustellung is true
|
||||
if ($kontakt->zustellung)
|
||||
{
|
||||
echo $kontakt->kontakt. "<br>";
|
||||
$is_zugestellt = true;
|
||||
}
|
||||
}
|
||||
// if zustellung is false display '-'
|
||||
if (!$is_zugestellt)
|
||||
{
|
||||
echo '-';
|
||||
}
|
||||
}
|
||||
// * if neither telefonklappe nor business handy, display '-'
|
||||
else
|
||||
{
|
||||
echo '-';
|
||||
}
|
||||
}
|
||||
echo '</td>';
|
||||
echo '<td>',($row->raum!=''?$row->raum:'-'),'</td>';
|
||||
if($row->alias!='' && !in_array($row->studiengang_kz, $noalias))
|
||||
$mail = $row->alias.'@'.DOMAIN;
|
||||
@@ -271,9 +310,46 @@ function searchOE($searchItems)
|
||||
echo '<td>'.$bf->bezeichnung;
|
||||
if($bisverwendung->beschausmasscode=='5')
|
||||
echo '<span style="color: orange"> (karenziert)</span>';
|
||||
echo '</td>';
|
||||
|
||||
echo '<td>',($mitarbeiter->telefonklappe!=''?$kontakt->kontakt.'-'.$mitarbeiter->telefonklappe:'-'),'</td>';
|
||||
echo '</td>';
|
||||
|
||||
// Display phone number
|
||||
echo '<td>';
|
||||
// * if user has telefonklappe, display it
|
||||
if ($mitarbeiter->telefonklappe != '')
|
||||
{
|
||||
echo $kontakt->kontakt. '-'. $mitarbeiter->telefonklappe;
|
||||
}
|
||||
// * if user has no telefonklappe, display business handy
|
||||
else
|
||||
{
|
||||
$person_id = $person->person_id;
|
||||
|
||||
if ($kontakt->load_persKontakttyp($person_id, 'firmenhandy'))
|
||||
{
|
||||
$is_zugestellt = false;
|
||||
foreach ($kontakt->result as $kontakt)
|
||||
{
|
||||
// display business handy only if zustellung is true
|
||||
if ($kontakt->zustellung)
|
||||
{
|
||||
echo $kontakt->kontakt. "<br>";
|
||||
$is_zugestellt = true;
|
||||
}
|
||||
}
|
||||
// if zustellung is false display '-'
|
||||
if (!$is_zugestellt)
|
||||
{
|
||||
echo '-';
|
||||
}
|
||||
}
|
||||
// * if neither telefonklappe nor business handy, display '-'
|
||||
else
|
||||
{
|
||||
echo '-';
|
||||
}
|
||||
}
|
||||
echo '</td>';
|
||||
|
||||
echo '<td>',($mitarbeiter->ort_kurzbz!=''?$mitarbeiter->ort_kurzbz:'-'),'</td>';
|
||||
//if($row->alias!='' && !in_array($row->studiengang_kz, $noalias)) ??? Was macht $noalias?
|
||||
if($person->alias!='')
|
||||
|
||||
Reference in New Issue
Block a user