Changeset 210
- Timestamp:
- May 6, 2009, 10:17:15 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hostlist.php
r208 r210 15 15 { 16 16 if($Device['Online'] == 1) $Style = 'color: blue;'; else $Style = ''; 17 $ Output .= '<tr><td colspan="2" style="text-align: left; font-weight: bold; '.$Style.'">'.$Device['Name'].'</td><td>'.$Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td><td style="text-align: right;">'.$Device['UserName'].'</td></tr>';18 $DbR esult2 = $this->Database->query('SELECT * FROM NetworkInterface WHERE Device = '.$Device['Id']);19 while($Interface = $DbResult2->fetch_assoc())17 $DbResult2 = $this->Database->query('SELECT COUNT(*) FROM NetworkInterface WHERE Device = '.$Device['Id']); 18 $DbRow = $DbResult2->fetch_row(); 19 if($DbRow[0] == 1) 20 20 { 21 $DbResult2 = $this->Database->query('SELECT * FROM NetworkInterface WHERE Device = '.$Device['Id']); 22 $Interface = $DbResult2->fetch_assoc(); 21 23 if($Interface['LocalIP'] == '') $Interface['LocalIP'] = ' '; 22 24 if($Interface['Online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; 23 $Output .= '<tr><td style="text-align: left; '.$Style.'"> '.$Device['Name'].'-'.$Interface['Name'].'</td><td>'.$Interface['LocalIP'].'</td><td> </td><td> </td><td> </td></tr>'; 24 } 25 } 25 $InterfaceName = $Device['Name']; 26 if($Interface['Name'] != '') $InterfaceName .= '-'.$Interface['Name']; 27 $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$InterfaceName.'</td><td>'.$Interface['LocalIP'].'</td><td>'.$Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td><td style="text-align: right;">'.$Device['UserName'].'</td></tr>'; 28 } else 29 { 30 $Output .= '<tr><td colspan="2" style="text-align: left; font-weight: bold; '.$Style.'">'.$Device['Name'].'</td><td>'.$Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td><td style="text-align: right;">'.$Device['UserName'].'</td></tr>'; 31 $DbResult2 = $this->Database->query('SELECT * FROM NetworkInterface WHERE Device = '.$Device['Id']); 32 while($Interface = $DbResult2->fetch_assoc()) 33 { 34 if($Interface['LocalIP'] == '') $Interface['LocalIP'] = ' '; 35 if($Interface['Online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; 36 $InterfaceName = $Device['Name']; 37 if($Interface['Name'] != '') $InterfaceName .= '-'.$Interface['Name']; 38 $Output .= '<tr><td style="text-align: left; '.$Style.'"> '.$InterfaceName.'</td><td>'.$Interface['LocalIP'].'</td><td> </td><td> </td><td> </td></tr>'; 39 } 40 } 41 } 26 42 $Output .= '</table></div>'; 27 43 return($Output); -
trunk/index.php
r209 r210 23 23 array('Herní server', 'http://game.zdechov.net/', 'cube.gif'), 24 24 array('Telefonní seznam', '/telseznam.php', 'tel.gif'), 25 array('Mapa Zděchova', 'http://www.mapy.cz/#x=141560832@y=133134848@z=13@mm=FP@sa=s@st=s@ssq=zd%C4%9Bchov@sss=1@ssp=120738725_123701121_150360997_149800833', 'clear.gif'),25 array('Mapa sítě', '/map/', 'clear.gif'), 26 26 array('Otvírací doby', '/otevreno.php', 'otv_doby.gif'), 27 27 array('Topologie sítě', '/is/topologie.php', 'topologie.gif'), -
trunk/network/user_hosts.php
r208 r210 21 21 { 22 22 if($Interface['Online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; 23 $Output .= '<tr><td style="text-align: left; '.$Style.'"> '.$Device['Name'].'-'.$Interface['Name'].'</td><td>'.NotBlank($Interface['LocalIP']).'</td><td>'.NotBlank($Interface['ExternalIP']).'</td><td>'.NotBlank($Interface['CZFreeIP']).'</td><td>'.NotBlank($Interface['MAC']).'</td><td> </td><td> </td></tr>'; 23 $InterfaceName = $Device['Name']; 24 if($Interface['Name'] != '') $InterfaceName .= '-'.$Interface['Name']; 25 $Output .= '<tr><td style="text-align: left; '.$Style.'"> '.$InterfaceName.'</td><td>'.NotBlank($Interface['LocalIP']).'</td><td>'.NotBlank($Interface['ExternalIP']).'</td><td>'.NotBlank($Interface['CZFreeIP']).'</td><td>'.NotBlank($Interface['MAC']).'</td><td> </td><td> </td></tr>'; 24 26 } 25 27 } -
trunk/page.php
r209 r210 9 9 'manualy.php' => 'Manuály', 10 10 'is' => array('', 11 'administration_page.php' => 'Administrace sítě',12 11 'topologie.php' => 'Topologie sítě', 13 12 'dostupnost.php' => 'Dostupnost zařízení', 14 'tc' => 'Řízení internetového provozu',15 13 ), 16 14 'network.php' => 'Technické informace', 17 'mapy' => array('',18 'mapa_nabidka.php' => 'Nabídky mapy',19 'mapa.php' => 'Mapa',20 ),21 15 'map' => array('', 22 'index.php' => 'Mapa ',16 'index.php' => 'Mapa sítě', 23 17 ), 24 18 'network' => array('', 19 'administration.php' => 'Administrace sítě', 25 20 'dostupnost.php' => 'Dostupnost zařízení', 26 21 'restart.php' => 'Restart služeb', … … 79 74 'sluzby.php' => 'Služby', 80 75 'history.php' => 'Historie', 81 'sunrisechat' => array('',82 'history.php' => 'Historie SunriseChatu',83 'network.php' => 'Obsah testu sítě SunriseChatu 2.7+',84 'network_old.php' => 'Obsah testu sítě SunriseChatu 2.6',85 'webchat.php' => 'Okno SunriseChatu',86 ),87 76 'docs' => array('', 88 77 'zapisy' => array('',
Note:
See TracChangeset
for help on using the changeset viewer.