Jump to content

Sava

Members
  • Posts

    575
  • Joined

  • Last visited

  • Days Won

    1

Everything 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
  2. Do you have the data in the row of the PIREP? If so, it should be fairly easy. Check out Chart.js. It's a good library for making all sorts of charts/grahps etc.
  3. I missed your post. If you are still interested, let me know and we can talk.
  4. 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.
  5. 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
  6. Do you have a link? Most probably, you're having the content for your frontpage in your layout, rather than in frontpage_main.php That is the first thing that comes to mind.
  7. 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)
  8. 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.
  9. Sava

    Logbook

    Well, as the error says, that "(" before $count is not expected. Not sure if other parts of your code are Ok, but if you just delete the ($count) part it will get rid of the error.
  10. Thanks. To all, I've updated the module. As Ray has told me, it should work correctly. Download https://github.com/savamarkovic/phpvms_loa Regards Sava
  11. If you can, shoot me your FTP details (along with a test pilot account) to PM and I'll take a look. Glad it works
  12. Cool. Thanks. Let me know how it works.
  13. Found the version. Here is it, haven't checked it if it works, but if you're willing to let me know. http://www.savamarkovic.com/loa.zip Needs a full update, so you'll need to delete your old loa table.
  14. 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.
  15. Thanks for the kind words. Yours is very nice, too.
  16. 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!
  17. Sava

    Customized Flags

    ^Agreed. You can use strtoupper() in php in case you are getting the image by a variable in lowercase.
  18. 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
  19. <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.
  20. Thaks Vangelis, that's what I was looking for.
  21. Looks great. Where did you get the data from?
  22. Well, the error says that the limit has been reached, and that more memory was required, so flyalaska's advice is probably valid.
×
×
  • Create New...