Jump to content
  • Announcements

    • Parkho

      New Website Skin   11/17/17

      Hello Guys, I have changed my website's skin to bootstrap version. Please check it out here and let me know if your need the skin. Regards Parkho


  • Content count

  • Joined

  • Last visited

  • Days Won


CarlosEduardo2409 last won the day on November 7

CarlosEduardo2409 had the most liked content!

Community Reputation

1 Neutral

About CarlosEduardo2409

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location
    São Paulo, BR

Recent Profile Visitors

224 profile views
  1. Map is not showing on the bids page

    Hello everyone, for a while, I made some changes in my business center, now I'm modifying the layout of my bid, but when I go modify my map, I have an error, not a mistake, but let's call it an error. You can see in my topic what I wanted to do with my map HERE. You can see that in this topic I was able to do what I wanted, but I'm not able to put it in the layout of my bid page. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ What is the error: Click here to see an error image. You notice that in this image in the place where the flight map was supposed to be, it does not appear, but it occupies the size of the map? But the code is not a mistake, because I tested it on the reports page (pirep_viewreport.php) and it worked perfectly, but on the bids page it did not. (schedule_bids.php). Code that I'm using to appear in the layout: <?php $this->show('routemap_bid.php'); ?> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Summing up: My mistake is that my custom map is not appearing on the bids page, remembering that the code works because in the layout of the reports it works. So my question is, does anyone know how I can fix this? Remembering, this error is on the bids page (schedule_bids.php). Observations: Using Simpilot phpVMS 5.5. Using crewcenter of web541 and Mark Swan I have my google maps key at core_htmlhead.php. Error in bids page Thanks, Carlos.
  2. [SOLVED] Route Map on BID layout

    Thanks web541, the API problem has already been solved, now the same problem is the map that does not work in schedule_bids.php But in the console of the site it speaks of an error like this: Error parsing header X-XSS-Protection: 1, 1; mode=block: expected semicolon at character position 2. The default protections will be applied.
  3. [SOLVED] Route Map on BID layout

    @RuiMiguel Actually, this is working in pirep_viewreport, but I'm trying to put it in schedule_bids, but all the map codes I try to put do not appear on the page, it simply appears blank with the map space, just like in this image (http://prntscr.com/h7vtvw)
  4. [SOLVED] Route Map on BID layout

    Worked in bid page?
  5. Aviation Weather V1.0

    This module is for phpVMS 5.5 of Simpilot, you have another version of phpVMS. I recommend that you use phpVMS 5.5. Click Here
  6. [SOLVED] Route Map on BID layout

    I do not think there's anything in my core_htmlhead.php But it is also giving an error in the console that is missing the APIKey, but I do not know where to put. Errors on the chrome console: Uncaught Error: Graph container element not found at d [as constructor] (morris.min.js:6) at d.c [as constructor] (morris.min.js:6) at new d (morris.min.js:6) at HTMLDocument.<anonymous> (dashboard.js:127) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.I (jquery.min.js:2) Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys ZB.j @ util.js:229 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
  7. FltbookSystem issue

    Have you changed anything in the confirmbid.php file?
  8. FltbookSystem issue

    Ohh, thousand pardons, had not seen. Silly questions, did you insert the sql into your database? What version is your php and phpVMS? Are you using Fltbook version 2? Is the file right? Ex: php or tpl Can you take a photo of what is showing up and put your file confirmbid.php here to see? And another silly question, in that code that I spoke up to change you corrected an error that was missing a quote in <script type="text/javascript>?
  9. [SOLVED] Route Map on BID layout

    Thank you, I do not understand a little more I will try to do. Thank you again for the response web541 and LeonardIGO4036 EDIT** I did something wrong, I just do not know what it is, my map is not showing up on the bids page. It occupies the map space, more without the map. http://prntscr.com/h7h9kl My code: <div class="mapcenter" align="center"> <div id="map" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> </div> <?php if(isset($bid)) $mapdata = $bid; ?> <div id="map"></div> <script type="text/javascript"> <!-- Start initMap --> function initMap() { var options = { mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('routemap'), { center: {lat: 20.291, lng: 153.027}, zoom: 6, mapTypeId: options }); <!-- Start Line and SymbolAnimation --> var lineSymbol = { path: google.maps.SymbolPath.CIRCLE, scale: 8, strokeColor: '#ffffff' }; var line = new google.maps.Polyline({ path: depMarker, arrMarker, icons: [{ icon: lineSymbol, offset: '100%' }], map: map }); animateCircle(line); } <!-- /.Finish initMap --> function animateCircle(line) { var count = 0; window.setInterval(function() { count = (count + 1) % 200; var icons = line.get('icons'); icons[0].offset = (count / 2) + '%'; line.set('icons', icons); }, 20); } <!-- /.Finish Line and SymbolAnimation --> <!-- Start Location and Bounds --> var dep_location = new google.maps.LatLng(<?php echo $mapdata->deplat?>,<?php echo $mapdata->deplng;?>); var arr_location = new google.maps.LatLng(<?php echo $mapdata->arrlat?>,<?php echo $mapdata->arrlng;?>); var bounds = new google.maps.LatLngBounds(); bounds.extend(dep_location); bounds.extend(arr_location); <!-- /.Finish Location and Bounds --> <!-- Start Makers --> var depMarker = new google.maps.Marker({ position: dep_location, map: map, icon: depicon, title: "<?php echo $mapdata->depicao;?>" }); var arrMarker = new google.maps.Marker({ position: arr_location, map: map, icon: arricon, title: "<?php echo $mapdata->arricao;?>" }); <!-- /.Finish Makers --> <!-- Start FlightPath --> var flightPath = new google.maps.Polyline({ path: [dep_location, <?php if(count($list) > 0) { echo implode(',', $list).','; }?> arr_location], strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2 }).setMap(map); <!-- /.Finish FlightPath --> // Resize the view to fit it all in map.fitBounds(bounds); </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap"> </script> Schedule_bids.php code to display the map. <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Flight Map</h3> </div> <div class="box-body" align="center"> <?php $this->show('routemapreport.php'); ?> </div> </div>
  10. FltbookSystem issue

    @ncd200 Go into core/templates/Fltbook/search_results.php page and find this at the top <script type="text/javascript" src="<?php echo SITE_URL;?>/lib/js/bootstrap.js"></script> And replace it with this (if you already have bootstrap referenced in your master template) <script type="text/javascript> // Clear Modal On Hide // =================== // no cache data loaded to modal popup (by default it's cached) $('body').on('hidden.bs.modal', '.modal', function (event) { $(this).removeData('bs.modal'); }); $(document).on("hidden.bs.modal", function (e) { $(e.target).removeData("bs.modal").find(".modal-content").empty(); }); </script> This answer is here in the topic, in the same topic, just go up
  11. No Route Passed

    @DLH001 @ArthurHetem 1- "Those paths to the scripts also seem wrong, make sure they're correct. They should be going to lib/js (at least for jquery)" - Nabeel 2- "Give this a try - <script> jQuery.noConflict(); </script> Put it after ALL libraries have been loaded. It would fix the multiple versions of jQuery problems that would result in the error you have." - Magicflyer Do you use the crewcenter of someone or your own? What is your php?
  12. No Route Passed

    --------------------------------------- PT-BR --------------------------------------- Arthur eu vou te responder em português porque eu sei que você é Brasileiro e eu também sou, então vamos lá... Em seu código eu vi isso: <script src="<?php echo SITE_URL?>/lib/skins/avianca/assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script> Tente alterar para isso <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> Não sei se isso vai arrumar seu problema, mas é um bom começo --------------------------------------- EN-US --------------------------------------- Find in your code this: <script src="<?php echo SITE_URL?>/lib/skins/avianca/assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script> And change to this: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> I do not know if this will fix your problem, but it's a good start.
  13. [SOLVED] Route Map on BID layout

    I wanted to use Google Maps, and you say the airport variables of the bid? Because if yes is the same as traditional ($bid->depicao / $bid->arricao), and what I'm trying to do is a map of the destination and arrival on the bid page, similar to vAMSYS (https://gyazo.com/f79cba000f48f332d04c1978e889d24d), Just the map and if it is easy I wanted to put that gif of the plane flying on the blue line, without a waypoint, just straight, the same as pirep_viewreport (https://prnt.sc/h71zvw)
  14. No Route Passed

    Try replacing the template's jQuery with <?php Template::Show('core_htmlhead.php') ?>
  15. No Route Passed

    You can try your luck on this topic: