Changeset 4 for www/userlist.php
- Timestamp:
- Jan 14, 2008, 9:48:39 PM (17 years ago)
- Location:
- www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www
-
Property svn:ignore
set to
config.php
php_script_error.log
-
Property svn:ignore
set to
-
www/userlist.php
r1 r4 1 <? 1 <?php 2 2 include('style.php'); 3 ShowHeader('Seznam u¾ivatelù na síti', 'Seznam u¾ivatelù'); 3 include_once('global.php'); 4 ShowHeader('Seznam uživatelů na síti', 'Seznam uživatelů'); 4 5 5 chdir('is'); 6 include('userlist.php'); 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','1 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>'); 7 28 8 29 ShowFooter();
Note:
See TracChangeset
for help on using the changeset viewer.