Changeset 4 for www/hostlist.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/hostlist.php
r1 r4 1 <? 1 <?php 2 2 include('style.php'); 3 ShowHeader('Seznam známých po èítaèù v síti', 'Seznam poèítaèù');3 ShowHeader('Seznam známých počítačů v síti', 'Seznam počítačů'); 4 4 5 chdir('is'); 6 include('hostlist.php'); 5 include_once('global.php'); 6 7 echo('<table border="1" cellspacing="0" cellpadding="2" style="font-size: small;"> 8 <tr><th>Jméno počítače</th><th>IP adresa</th><th>Naposledy</th><th>Správce</th></tr>'); 9 10 $DbResult = $Database->select('hosts', '*', 'type=0 ORDER BY name'); 11 while($Host = $DbResult->fetch_array()) 12 { 13 $DbResult2 = $Database->select('users','*, CONCAT(second_name," ",first_name) as fullname','id='.$Host['user']); 14 $User = $DbResult2->fetch_array(); 15 //'<img src="http://wwp.icq.com/scripts/online.dll?icq='.$Row['icq'].'&img=5">'. 16 if($Host['online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; 17 if($Host['IP'] == '') $Host['IP'] = ' '; 18 echo('<tr><td style="text-align: left; '.$Style.'">'.$Host['name'].'</td><td>'.$Host['IP'].'</td><td style="text-align: right;">'.HumanDate($Host['last_online']).'</td><td style="text-align: right;">'.$User['fullname'].'</td></tr>'); 19 } 20 echo('</table>'); 7 21 8 22 ShowFooter();
Note:
See TracChangeset
for help on using the changeset viewer.