Changeset 216 for trunk/map/index.php


Ignore:
Timestamp:
May 11, 2009, 10:00:42 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Nezobrazovat nepoužitá zařízení v mapě sítě.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/map/index.php

    r211 r216  
    6767        $Device1 = $DbResult2->fetch_assoc();
    6868        $Device2 = $DbResult3->fetch_assoc();
    69         $Output .= 'new GPolyline([new GLatLng('.$Device1['PositionLatitude'].', '.$Device1['PositionLongitude'].'),new GLatLng('.$Device2['PositionLatitude'].', '.$Device2['PositionLongitude'].')], "#4F4FBF", 3, 0.8), ';
     69        if(($Device1['Used'] == 1) and ($Device2['Used'] == 1))
     70          $Output .= 'new GPolyline([new GLatLng('.$Device1['PositionLatitude'].', '.$Device1['PositionLongitude'].'),new GLatLng('.$Device2['PositionLatitude'].', '.$Device2['PositionLongitude'].')], "#4F4FBF", 3, 0.8), ';
    7071      }
    7172    }
     
    9899                    NetworkDevices = [';
    99100
    100     $DbResult = $this->Database->query('SELECT * FROM NetworkDevice');
     101    $DbResult = $this->Database->query('SELECT * FROM NetworkDevice WHERE Used=1');
    101102    while($Device = $DbResult->fetch_assoc())
    102103    {
Note: See TracChangeset for help on using the changeset viewer.