Changeset 4 for www/userlist.php


Ignore:
Timestamp:
Jan 14, 2008, 9:48:39 PM (16 years ago)
Author:
george
Message:

Upraveno: Změna přístupu k databázi na třídu rozšířenou mysqli.
Upraveno: Sjednocení
Upraveno: Změna kódování všech stránek na UTF-8.
Odstraňeno: Staré nepotřebné soubory.

Location:
www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • www

    • Property svn:ignore set to
      config.php
      php_script_error.log
  • www/userlist.php

    r1 r4  
    1 <?
     1<?php
    22include('style.php');
    3 ShowHeader('Seznam u¾ivatelù na síti', 'Seznam u¾ivatelù');
     3include_once('global.php');
     4ShowHeader('Seznam uživatelů na síti', 'Seznam uživatelů');
    45
    5 chdir('is');
    6 include('userlist.php');
     6//echo('<a href="#network">Nastavení sítě</a><br>');
     7echo('<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');
     10while($User = $DbResult->fetch_array())
     11{
     12  if($User['icq']>0) $ICQ = $User['icq']; else $ICQ = '&nbsp;';
     13  if($User['phone']>0) $Phone = $User['phone']; else $Phone = '&nbsp;';
     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'].'&nbsp;</td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Hosts.'</td></tr>');
     24}
     25echo('</table>');
     26
     27//for($i=0;$i<60;$i++) echo('<img //src="http://wwp.icq.com/scripts/online.dll?icq=277158770&img='.$i.'"><br>');
    728
    829ShowFooter();
Note: See TracChangeset for help on using the changeset viewer.