Changeset 7177 for extensions/GMaps/gmaps_ajax.php
- Timestamp:
- Oct 13, 2010, 10:08:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_ajax.php
r7147 r7177 143 143 isset($_REQUEST['datas']['navigationControl']) && 144 144 isset($_REQUEST['datas']['scaleControl']) && 145 isset($_REQUEST['datas']['streetViewControl']) && 145 146 isset($_REQUEST['datas']['style']))) 146 147 { … … 183 184 if(!($_REQUEST['datas']['scaleControl']=='y' or 184 185 $_REQUEST['datas']['scaleControl']=='n')) $_REQUEST['datas']['scaleControl']='y'; 186 187 if(!($_REQUEST['datas']['streetViewControl']=='y' or 188 $_REQUEST['datas']['streetViewControl']=='n')) $_REQUEST['datas']['streetViewControl']='n'; 185 189 } 186 190 } … … 374 378 $datas=Array(); 375 379 376 $sql="SELECT id, name, displayType, sizeMode, width, height, zoomLevel, mapType, mapTypeControl, navigationControl, scaleControl 380 $sql="SELECT id, name, displayType, sizeMode, width, height, zoomLevel, mapType, mapTypeControl, navigationControl, scaleControl, streetViewControl 377 381 FROM ".$this->tables['maps']." 378 382 ORDER BY displayType ASC, name ASC"; … … 402 406 $row['navigationControl']=l10n('gmaps_googleMapNavigationControl_'.$row['navigationControl']); 403 407 $row['scaleControl']=($row['scaleControl']=='y')?l10n('gmaps_display_visible'):l10n('gmaps_display_hidden'); 408 $row['streetViewControl']=($row['streetViewControl']=='y')?l10n('gmaps_display_visible'):l10n('gmaps_display_hidden'); 404 409 $datas[]=$row; 405 410 } … … 437 442 $properties['navigationControl']."', '". 438 443 $properties['scaleControl']."', '". 444 $properties['streetViewControl']."', '". 439 445 mysql_escape_string($properties['style'])."');"; 440 446 $result=pwg_query($sql); … … 447 453 $properties['displayType']."', sizeMode='". 448 454 $properties['sizeMode']."', width='". 449 $properties['mapId']."', width='".450 455 $properties['width']."', height='". 451 456 $properties['height']."', zoomLevel='". … … 454 459 $properties['mapTypeControl']."', navigationControl='". 455 460 $properties['navigationControl']."', scaleControl='". 456 $properties['scaleControl']."', style='". 461 $properties['scaleControl']."', streetViewControl='". 462 $properties['streetViewControl']."', style='". 457 463 mysql_escape_string($properties['style'])."' 458 464 WHERE id='$id';"; … … 483 489 'mapTypeControl' => 0, 484 490 'navigationControl' => 0, 485 'scaleControl' => 'y' 491 'scaleControl' => 'y', 492 'streetViewControl' => 'n' 486 493 ); 487 494 488 $sql="SELECT id, displayType, sizeMode, name, width, height, zoomLevel, mapType, mapTypeControl, navigationControl, scaleControl 495 $sql="SELECT id, displayType, sizeMode, name, width, height, zoomLevel, mapType, mapTypeControl, navigationControl, scaleControl, streetViewControl 489 496 FROM ".$this->tables['maps']." 490 497 WHERE id='$id';"; … … 1006 1013 global $prefixeTable, $template, $user, $conf; 1007 1014 1008 $re turned='';1015 $requestId=''; 1009 1016 1010 1017 $this->buildMapList($category, 'C');
Note: See TracChangeset
for help on using the changeset viewer.