Jump to content
phpVMS Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

8 Neutral

About FSX30HD

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location
    Grenoble, FRANCE
  • Interests
    PPL Aviation Plane and coding

Recent Profile Visitors

4388 profile views
  1. In the same case like Masmas Hope I can have an answer Regards Fred
  2. Hey, I need a real website done too!
  3. <script type="text/javascript"> var myMarkers = new Array(); var lines = new Array(); $.getJSON( "<?php echo actionurl("Destinations/getAirports"); ?>", function( data ) { var items = []; $.each( data, function( key, val ) { var icontype = "default"; if(val.hub == 1){ var icontype = "hub"; $("#info_icao").html(val.icao); $("#info_name").html(val.name); $("#info_country").html(val.country); } addMarker(val.lat, val.lng,icontype, val); }); }); function addMarker(lat, lng, icontype, info){ if(icontype == "default"){ var image = "<?php echo fileurl('lib/images/
  4. The API KEY doesn't match with the domain
  5. You need to include in your header <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="X-UA-Compatible" content="IE=10" charset=utf-8> <title><?php echo $page_title; ?></title> <?php Template::Show('core_htmlhead.tpl'); ?> </head> <body> <?php Template::Show('core_htmlreq.tpl'); ?>
  6. This is the code you need to put to index.php in the same time you need to create a new header_something.tpl $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME); if(file_exists(SKINS_PATH.'/layout.tpl')) { $BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.tpl', true)); $BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.tpl', true)); $BaseTemplate->Set('page_content', $page_content); # It's a template sammich! if (strpos($page_content,'html { height
  7. Missing else in your condition and more easy to change just the icon value: /* inair images for different airlines */if (data[i].flightnum.substring(0, 3) == "AIO") { var icon = url+"/lib/images/inair"+data[i].flightnum.substring(0, 3)+"/"+data[i].heading+".png"; } elseif (data[i].flightnum.substring(0, 3) == "PAG") { var icon = url+"/lib/images/inair"+data[i].flightnum.substring(0, 3)+"/"+data[i].heading+".png"; } else { var icon = ..... ; } /* inair images for different airlines */
  8. Maybe this code for phpvms_5.5.x <tr> <td width="1%" nowrap><strong>Captcha</strong></td> <td> <?php if(isset($captcha_error)){echo '<p class="error">'.$captcha_error.'</p>';} ?> <div class="g-recaptcha" data-sitekey="<?php echo $sitekey;?>"></div> <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang;?>"> </script> </td> </tr>
  9. The good code is icon: url+"/lib/images/inair/"+data[i].code+"/"+data[i].heading+".png" instead icon: url+"/lib/images/inair/"+data[i].heading+".png"
  10. I already post for that copy/paste this in your admin/modules/LoA/LoA.php <?php /** * Leave of Absence (LoA) v.1.0 Module * * phpVMS Module for pilots to submit a LoA request that is stored in a database * and an option for staff to view all the LoA requests through the admin panel * This module is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License * You are free to redistribute and alter this work as you wish but you must keep the original 'copyright' information on all the places it comes in the original work. * You are not allowed to delete
  11. Click on http://www.savamarkovic.com/loa.csv It's ok now all is right now
  12. FSX30HD

    XML path

    Thanks for your reply, the map draws from json format and the link is: /action.php/acars/data I have found howto output in xml format. I have just make a php file echo rows in xml format. But maybe in ACARS module instead of use json_encode switch to saveXML() like this: //Creates XML string and XML document using the DOM $dom = new DomDocument('1.0', 'UTF-8'); //add root == jukebox $jukebox = $dom->appendChild($dom->createElement('jukebox')); for ($i = 0; $i < count($arrayWithTracks); $i++) { //add track element to jukebox $track = $dom->createElement('track'); $jukeb
  13. FSX30HD

    XML path

    Hello everybody, Now I work to a new ACARS MAP, so I need to know where the xml file is,to parse it. Have you an idea please ?
  • Create New...