insert into c_cachedb (modalita,lang,socialk,tabella,tabella_id,html,javascript,ana_id,utente_id,autore,datam,datai) values('1','it','pages','c_relmenumoduli','201','
  • Mercatino


  • ',' $(".openclose span").addClass(%QUOT%hide%QUOT%); $("ul.comm_cont .comm_text").addClass(%QUOT%verdana_85%QUOT%); FixHover(%QUOT%#mezzi_item_4967%QUOT%,%QUOT%http://www.kicece.it/index.php?mod=g_mezzi&id=4967%QUOT%); var elevator; var map; var chart; var infowindow = new google.maps.InfoWindow(); var polyline; google.load(%QUOT%visualization%QUOT%, %QUOT%1%QUOT%, {packages: [%QUOT%columnchart%QUOT%]}); //http://blog.bobcravens.com/2010/06/a-google-maps-version-3-jquery-plugin/ $(document).ready(function () { setTimeout("Inizializza_ctrl_mappa()",500); }); function Inizializza_ctrl_mappa(){ var lat = 999; var lng = 999; var zoom = 7; if ((lat==0 && lng==0) || lat==999) { //roma lat = 41.89; lng = 12.51; zoom = 1; //mondo } // create the map if ($("#mappa_canvas").length>0) { var bounds = new google.maps.LatLngBounds (); var fitbounds = false; var countbounds = 0; map_mappa = $("#mappa_canvas").gmap3( { lat: lat, lng: lng, zoom: zoom }); //punti var punti = "44.4782469|,|11.2773797|,|http://www.kicece.it/layout/images/cms/marker.png|,|Focus Bikes Super Bud 4.0|,|

    Focus Bikes Super Bud 4.0

    Naviga

    "; var p = punti.split("|;|"); for (var i=0;i3?pd[3]:""); var html = (pd.length>4?pd[4]:""); map_mappa.addMarkerByLatLng(pd[0], pd[1],title,html,pd[2]); if (pd.length>2 && pd[2].indexOf("marker_posizione.png") === -1) { bounds.extend(new google.maps.LatLng(pd[0], pd[1])); countbounds++; fitbounds = true; } } //traccia var traccia = ""; var points = []; var path = []; if (traccia!="") { var p1 = traccia.split(";"); //if (p1.length>0) bounds = new google.maps.LatLngBounds(); for (var i=0;i 2) { var pd = p1[i].split(","); var p = new google.maps.LatLng(pd[0], pd[1]); points.push(p); path.push({ "lat": pd[0], "lng": pd[1] }); bounds.extend(p); countbounds++; //se ho solo partenza e arrivo non li vedo fitbounds = true; } fitbounds = true; } } /*var poly = new google.maps.Polyline({ // use your own style here path: points, strokeColor: "#FF00AA", strokeOpacity: .7, strokeWeight: 4 });*/ map_mappa.addPath(path); //adatto al contenuto dei punti if (fitbounds) map_mappa.map.fitBounds(bounds); //... se pero%QUOT% ho zummato troppo zummo meno var listener = google.maps.event.addListener(map_mappa.map, "idle", function() { if (map_mappa.map.getZoom() > 10) map_mappa.map.setZoom(10); // a cosa serve? google.maps.event.removeListener(listener); }); //chart // Create an ElevationService. elevator = new google.maps.ElevationService(); // Draw the path, using the Visualization API and the Elevation service. drawPath(points); /* var chart; google.load(%QUOT%visualization%QUOT%, %QUOT%1%QUOT%, {packages: [%QUOT%columnchart%QUOT%]}); google.setOnLoadCallback(function(){ chart = new google.visualization.ColumnChart(document.getElementById(%QUOT%mappa_canvas_elevation%QUOT%)); new google.maps.LatLng(36.578581, -118.291994); var pathRequest = { %QUOT%path%QUOT%: path, %QUOT%samples%QUOT%: 40 } // Initiate the path request. elevator.getElevationAlongPath(pathRequest, plotElevation); }); */ } } //chart function drawPath(path) { // Create a new chart in the elevation_chart DIV. //chart = new google.visualization.ColumnChart(document.getElementById(%QUOT%mappa_canvas_elevation%QUOT%)); chart = new google.visualization.LineChart(document.getElementById(%QUOT%mappa_canvas_elevation%QUOT%)); // Create a PathElevationRequest object using this array. // Ask for 256 samples along that path. var sample = path.length; if (sample>100) sample = 100; var pathRequest = { %QUOT%path%QUOT%: path, %QUOT%samples%QUOT%: sample } // Initiate the path request. elevator.getElevationAlongPath(pathRequest, plotElevation); } // Takes an array of ElevationResult objects, draws the path on the map // and plots the elevation profile on a Visualization API ColumnChart. function plotElevation(results, status) { if (status != google.maps.ElevationStatus.OK) { return; } var elevations = results; // Extract the elevation samples from the returned results // and store them in an array of LatLngs. var elevationPath = []; var dislivello = 0; var dislivello_ultimo = 0; for (var i = 0; i < results.length; i++) { elevationPath.push(elevations[i].location); //calcolo dislivello if (i>0) { if (elevations[i].elevation>dislivello_ultimo) { dislivello += (elevations[i].elevation-dislivello_ultimo); //if (i<10) alert(i + " " + dislivello + " " + dislivello_ultimo); } } dislivello_ultimo = elevations[i].elevation; //-calcolo dislivello } if ($(%QUOT%#dislivello%QUOT%).hasClass(%QUOT%vuoto%QUOT%)) { $(%QUOT%#dislivello%QUOT%).removeClass(%QUOT%vuoto%QUOT%); $(%QUOT%#dislivello .valore%QUOT%).html(parseInt(dislivello)); } // Display a polyline of the elevation path. var pathOptions = { path: elevationPath, strokeColor: %QUOT%#0000CC%QUOT%, opacity: 0.4, map: map } polyline = new google.maps.Polyline(pathOptions); // Extract the data from which to populate the chart. // Because the samples are equidistant, the %QUOT%Sample%QUOT% // column here does double duty as distance along the // X axis. var data = new google.visualization.DataTable(); data.addColumn(%QUOT%string%QUOT%, %QUOT%Sample%QUOT%); data.addColumn(%QUOT%number%QUOT%, %QUOT%Elevation%QUOT%); for (var i = 0; i < results.length; i++) { data.addRow([%QUOT%%QUOT%, Math.round(elevations[i].elevation)]); } // Draw the chart using the data within its DIV. document.getElementById(%QUOT%mappa_canvas_elevation%QUOT%).style.display = %QUOT%block%QUOT%; //https://developers.google.com/chart/interactive/docs/drawing_charts chart.draw(data, { height: 100, legend: %QUOT%none%QUOT%, titleY: %QUOT%Elevation (m)%QUOT% }); var cp_mappa = null; google.visualization.events.addListener(chart, %QUOT%select%QUOT%, function() { var selectedItem = chart.getSelection()[0]; if (selectedItem) { var value = data.getValue(selectedItem.row, selectedItem.column); /*alert(%QUOT%The user selected %QUOT% + value); alert(selectedItem.row); alert(selectedItem.column)*/ //alert(elevations[selectedItem.row].location.lng()); if (cp_mappa != null) cp_mappa.setMap(null); cp_mappa = map_mappa.addMarkerByLatLng(elevations[selectedItem.row].location.lat(), elevations[selectedItem.row].location.lng(), "Elevation: " + value, "","http://motorbike.watalike.com/layout/images/cms/marker_centro.png"); map_mappa.setCenter(elevations[selectedItem.row].location.lat(), elevations[selectedItem.row].location.lng()); } }); } //google.maps.event.addDomListener(window, %QUOT%load%QUOT%, initialize); //-chart //Stili $("#mappa_canvas").addClass(%QUOT%rounded_big%QUOT%); Resize_Mappa(1); function Resize_Mappa(avvio) { if (!$(%QUOT%#mappa_canvas%QUOT%).hasClass(%QUOT%mappa_grande%QUOT%) && avvio!=1) { $(%QUOT%#mappa_canvas%QUOT%).addClass(%QUOT%mappa_grande%QUOT%); $(%QUOT%#resize_mappa%QUOT%).html("Riduci"); } else { $(%QUOT%#mappa_canvas%QUOT%).removeClass(%QUOT%mappa_grande%QUOT%); $(%QUOT%#resize_mappa%QUOT%).html("Ingrandisci"); } } $(document).ready(function() { /* disabilito i link in cso di xs */ $(%QUOT%body.bootstrap_enviroment_xs .w_html_menu a%QUOT%).click(function(e) { e.preventDefault(); }); }); ','375','0','0','2016-10-01 05:07:20','2016-10-01 05:07:20'); -> Duplicate entry '1-c_relmenumoduli-201-0-it-pages' for key 'per_tabella'