Changeset 216
- Timestamp:
- May 11, 2009, 10:00:42 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/map/index.php
r211 r216 67 67 $Device1 = $DbResult2->fetch_assoc(); 68 68 $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), '; 70 71 } 71 72 } … … 98 99 NetworkDevices = ['; 99 100 100 $DbResult = $this->Database->query('SELECT * FROM NetworkDevice ');101 $DbResult = $this->Database->query('SELECT * FROM NetworkDevice WHERE Used=1'); 101 102 while($Device = $DbResult->fetch_assoc()) 102 103 {
Note:
See TracChangeset
for help on using the changeset viewer.