-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontacts_1employees.php
53 lines (49 loc) · 2.05 KB
/
contacts_1employees.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
echo '<center><table class="orders_table">';
$i=0;
$strSQL = "SELECT * FROM users";
$rs=mysqli_query($link,$strSQL);
while($row=mysqli_fetch_assoc($rs))
{
$style_color = ($i%2==0) ? 'style="background:#DBEDFF;"' : 'style="background:#F2F2F2;"';
$style_id = ($i++%2==0) ? 'id="shaded_cell"' : '';
echo '
<tr>
<td '.$style_id.'>
<center>
<span style="font-size: 20pt; color:red;">⬤</span>
</center>
</td>
<td '.$style_id.' width="120px">
<img src="/files/content/user.png" alt="" style="height:100px;"/>
</td>
<td '.$style_id.'>
<b>'.$row['last_name'].'</b><br>
'.$row['first_name'].'<br>
<sub>('.$row['id'].')</sub>
<br><br>
'.$row['room'].'
</td>
<td '.$style_id.'>
<b>Kontakt:</b><br>
'.(($row['phone_private']!="") ? ('Privat: '.$row['phone_private'].'<br>') : '').'
'.(($row['phone_mobile']!="") ? ('Mobil: '.$row['phone_mobile'].'<br>') : '').'
'.(($row['phone_office']!="") ? ('Büro: '.$row['phone_office'].'<br>') : '').'
<br>
'.(($row['email']!="") ? ('E-Mail: <a href="mailto:'.$row['email'].'">'.$row['email'].'</a><br>') : '').'
</td>
<td '.$style_id.'>
<b>Status:</b><br>
//<span style="color: #32CD32">● Anwesend</span><br>
//<span style="color: #696969">● Abwesend</span><br>
//<span style="color: #FFA500">● Pause</span><br>
//<span style="color: #CC0000">● Nicht stören</span>
</td>
<td '.$style_id.'>
<a href="#chat:'.$row['id'].'"><button type="button" class="t_button button_m">Nachricht an<br>Mitarbeiter</button></a>
</td>
</tr>
';
}
echo '</table></center>';
?>