Jump to content

Sava

Members
  • Posts

    575
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Sava

  1. Take your most recent pirep from the DB. What is in the raw_data column?

    If there is data there, you can get it working. Take a look at the exaple Chart.js charts and you'll see the format it requires. It should be a simple JS array format

    data = [1,2,3,4] etc.

    And then each element of the array should have an associated element in the labels array. But check the docs for this.

    A quick solution would be to just generate a script that creates a properly formatted string, and call it inside the .tpl/.php file. I guess the better way would be to perform some sort of AJAX call to get the data then do a $.each() on the array.

     

    Did this for a VA.

    Take a look at the part of the code

    graph.JPGdata.JPG

    • Like 1
  2. On 2/10/2017 at 1:42 AM, magicflyer said:

    http://www.savamarkovic.com/shop/ - I know it's expensive, but they're very accurate schedule. SWA has probably 50k+ schedule, DAL & AAL have roughly 40k each.

    http://www.world-of-ai.com/ - Tons of data manipulation, but it is free. Needless to say, it's not very accurate.

     

    As magicflyer has said, while the service I provide might seem a bit expensive at first glance, the schedules are the most up to date and with as much data as it is possible.

    Previous customers of mine can testify of this. Any questions you may have before your order - let me know.

  3. Like I thought, you're including the $page_content in the wrong place. It is placed inside the col-md-4 div, and the rest is part of your layout.

    What you need to do is move the parts you don't want to be shown on each page, and only on the frontpage, to frontpage_main.php

    Then, include the $page_content in a proper place. Finally, you have an error in your layout.php with the page title missing, and being filled in with javascript code. You'll need to fix that as well for other things to work, such as live map, booking and so on.

    I can provide those services to you. If you're interested, send me a message.
     

    Regards

     

  4. Hey guys, without looking at the code, I think I entered to account for the difference in time.
    A huge part of the module is still legacy code from when I was still learning. I'll get the update done soon. (And send it for you to review Ray :P)

  5. Open up the PopUpNews and Screenshots file in core/common and find the following:

    public function PopUpNewsList () ...

    change to

    public static function PopUpNewsList () ...

     

    Notice the word 'static' between public and function. Add it ;). Same for Screenshots.

     

  6. Hello everyone.

    This module has been written a long time ago, and even then it was far from perfect. I believe there is a newer version I did a few months after the initial one and never uploaded it to GitHub. I'll check and upload if so.

  7. Another site is up and running. Check out Sky Traffic Virtual here - http://www.skytrafficva.com

    Read more about my services here: http://www.savamarko...ms-development/

    My portfolio can be seen here: http://www.savamarkovic.com/portfolio/

    And, if you haven't yet checked out my Ticket System module, be sure to do so:

    http://www.savamarko...et-system-v1-0/

    If you're interested, use the coupon TENOFF to get 10% off the listed price for a limited time.

    Any questions?

    Send a message!

  8. I've been developing my own system when my free time permits with the goal of the end resulting being a system that is fully customizable through the admin panel so every VA can set it up as per their liking. It will also include pretty much all the features that are offered today through payware modules (events, staff listings, tours, entrance exams...). Still a long way from being done, and I'm still not sure if I'll be releasing as freeware

    • Like 1
  9. <table class="table table-bordered" width="40%" border="0" cellspacing="0" cellpadding="0">
    <tr class="active">
     <th colspan="7"><center>
    	 СпиÑок рейÑов из ÐÑропорта
     </center></th>
     </tr>
    <tr class="active">
     <th>Ðомер рейÑа <i class="soap-icon-status"></i></th>
    <th>ÐÑропорт вылета <i class="soap-icon-securevault"></i></th>
    <th>ÐÑропорт Ð¿Ñ€Ð¸Ð±Ñ‹Ñ‚Ð¸Ñ <i class="soap-icon-securevault"></i></th>
     <th>Вылет<i class="soap-icon-wifi"></i></th>
    <th>Ð’Ñ€ÐµÐ¼Ñ Ð² пути<i class="soap-icon-wifi"></i></th>
    <th>ДальноÑÑ‚ÑŒ<i class="soap-icon-wifi"></i></th>
    <th>Ðазначен борт<i class="soap-icon-wifi"></i></th>
     </tr>
    <?php
    $query = "SELECT * FROM phpvms_schedules WHERE depicao='$name->icao'";
    $Result = DB::get_results($query);
    if($Result != null) {
    foreach($Result as $
    { ?>
    <tr>
     <td><?php echo $b->code; ?><?php echo $b->flightnum; ?></td>
     <td><?php echo $b->depicao; ?> <?php $country = OperationsData::getAirportInfo($b->depicao);
    												 $imgicao = array_search($country->country, Countries::$countries); ?> <img
    														 src="<?php echo SITE_URL; ?>/lib/images/countries/<?php echo strtolower($imgicao); ?>.png"
    														 alt="<?php echo strtolower($imgicao); ?>"/> </td>
    <td><?php echo $b->arricao; ?> <?php $country = OperationsData::getAirportInfo($b->arricao);
    												 $imgicao = array_search($country->country, Countries::$countries); ?> <img
    														 src="<?php echo SITE_URL; ?>/lib/images/countries/<?php echo strtolower($imgicao); ?>.png"
    														 alt="<?php echo strtolower($imgicao); ?>"/></td>
    <td><?php echo $b->deptime; ?></td>
    <td><?php echo $b->arrtime; ?></td>
    <td><?php echo $b->distance; ?> Ml</td>
    <td><?php echo $b->airbr; ?></td>
    
     </tr>
    <?php } ?>
    </table>
    <?php } else { echo 'No Schedules'; } ?>
    

    Try this, and modify the string to what you need for the page to look good and how you want. Let me know if it works.

×
×
  • Create New...