Changeset 210 for trunk


Ignore:
Timestamp:
May 6, 2009, 10:17:15 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Nastavení GPS polohy zařízení.
  • Opraveno: Názvy rozhraní. Zobrazení seznamu počítačů.
  • Smazáno: Stará složka mapy s nabídkou map.
Location:
trunk
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/hostlist.php

    r208 r210  
    1515    {
    1616      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       $DbResult2 = $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)
    2020      {
     21        $DbResult2 = $this->Database->query('SELECT * FROM NetworkInterface WHERE Device = '.$Device['Id']);
     22        $Interface = $DbResult2->fetch_assoc();
    2123        if($Interface['LocalIP'] == '') $Interface['LocalIP'] = '&nbsp;';
    2224        if($Interface['Online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = '';
    23         $Output .= '<tr><td style="text-align: left; '.$Style.'">&nbsp;&nbsp;'.$Device['Name'].'-'.$Interface['Name'].'</td><td>'.$Interface['LocalIP'].'</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</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'] = '&nbsp;';
     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.'">&nbsp;&nbsp;'.$InterfaceName.'</td><td>'.$Interface['LocalIP'].'</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>';
     39        }     
     40      }
     41    }
    2642    $Output .= '</table></div>';
    2743    return($Output);
  • trunk/index.php

    r209 r210  
    2323      array('Herní server', 'http://game.zdechov.net/', 'cube.gif'),
    2424      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'),
    2626      array('Otvírací doby', '/otevreno.php', 'otv_doby.gif'),
    2727      array('Topologie sítě', '/is/topologie.php', 'topologie.gif'),
  • trunk/network/user_hosts.php

    r208 r210  
    2121      {
    2222        if($Interface['Online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = '';
    23         $Output .= '<tr><td style="text-align: left; '.$Style.'">&nbsp;&nbsp;'.$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>&nbsp;</td><td>&nbsp;</td></tr>';
     23        $InterfaceName = $Device['Name'];
     24        if($Interface['Name'] != '') $InterfaceName .= '-'.$Interface['Name'];
     25        $Output .= '<tr><td style="text-align: left; '.$Style.'">&nbsp;&nbsp;'.$InterfaceName.'</td><td>'.NotBlank($Interface['LocalIP']).'</td><td>'.NotBlank($Interface['ExternalIP']).'</td><td>'.NotBlank($Interface['CZFreeIP']).'</td><td>'.NotBlank($Interface['MAC']).'</td><td>&nbsp;</td><td>&nbsp;</td></tr>';
    2426      }     
    2527    }
  • trunk/page.php

    r209 r210  
    99    'manualy.php' => 'Manuály',
    1010    'is' => array('',
    11       'administration_page.php' => 'Administrace sítě',
    1211      'topologie.php' => 'Topologie sítě',
    1312      'dostupnost.php' => 'Dostupnost zařízení',
    14       'tc' => 'Řízení internetového provozu',
    1513    ),
    1614    'network.php' => 'Technické informace',
    17     'mapy' => array('',
    18       'mapa_nabidka.php' => 'Nabídky mapy',
    19       'mapa.php' => 'Mapa',
    20     ),
    2115    'map' => array('',
    22       'index.php' => 'Mapa',
     16      'index.php' => 'Mapa sítě',
    2317    ),
    2418    'network' => array('',
     19      'administration.php' => 'Administrace sítě',
    2520      'dostupnost.php' => 'Dostupnost zařízení',
    2621      'restart.php' => 'Restart služeb',
     
    7974    'sluzby.php' => 'Služby',
    8075    '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     ),
    8776    'docs' => array('',
    8877      'zapisy' => array('',
Note: See TracChangeset for help on using the changeset viewer.