Last change
on this file since 143 was 143, checked in by george, 16 years ago |
- Opraveno: Odkazy na hlavní stránce.
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | <?php
|
---|
2 | include('style.php');
|
---|
3 | include_once('global.php');
|
---|
4 | ShowHeader('Seznam uživatelů na síti', 'Seznam uživatelů');
|
---|
5 |
|
---|
6 | //echo('<a href="#network">Nastavení sítě</a><br>');
|
---|
7 | echo('<table border="1" cellspacing="0" cellpadding="2" style="font-size: small;"><tr><th>Jméno uživatele</th><th>E-mail</th><th>ICQ</th><th>Telefon</th><th>Počítače</th></tr>');
|
---|
8 |
|
---|
9 | $DbResult = $Database->select('users', '*,CONCAT(second_name," ",first_name) as fullname','role=2 ORDER BY fullname');
|
---|
10 | while($User = $DbResult->fetch_array())
|
---|
11 | {
|
---|
12 | if($User['icq']>0) $ICQ = $User['icq']; else $ICQ = ' ';
|
---|
13 | if($User['phone']>0) $Phone = $User['phone']; else $Phone = ' ';
|
---|
14 |
|
---|
15 | $DbResult2 = $Database->select('hosts','*','user='.$User['id'].' AND block=0 ORDER BY name');
|
---|
16 | $Hosts = '';
|
---|
17 | while($Host = $DbResult2->fetch_array())
|
---|
18 | {
|
---|
19 | $Hosts = $Hosts.$Host['name'].', ';
|
---|
20 | //'<img src="http://wwp.icq.com/scripts/online.dll?icq='.$Row['icq'].'&img=5">'.
|
---|
21 | }
|
---|
22 | if($Hosts != '') $Hosts = substr($Hosts, 0, -2);
|
---|
23 | echo('<tr><td>'.$User['fullname'].'</td><td>'.$User['email'].' </td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Hosts.'</td></tr>');
|
---|
24 | }
|
---|
25 | echo('</table>');
|
---|
26 |
|
---|
27 | //for($i=0;$i<60;$i++) echo('<img //src="http://wwp.icq.com/scripts/online.dll?icq=277158770&img='.$i.'"><br>');
|
---|
28 |
|
---|
29 | ShowFooter();
|
---|
30 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.