Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. change the $aircrafts to $allaircrafts, I think that might be it.
  2. <?php $amount = OperationsData::getAircraftByName(DH8); foreach($aircrafts as $aircraft) { if($aircraft->name == DH8) { echo $amount ; } } ?> Try this. But I haven't tested it.
  3. Remove the util::formatduration() every where you see it in the results.tpl. You can use notepad++(search web) to open it and see if it's fixed.
  4. Okay. Now we're talking, so you want to show how many aircraft of a certain type you got in your fleet? or please explain what exactly do you want to show in fleet page?
  5. Are you using any add-on for the fleet page? if yes, then we can write a little piece to pull out the number of fleet. here is an add-on that I'm using: http://forum.phpvms.net/topic/1522-fleet-table
  6. Your code was written wrong, so I just corrected it for you not knowing what you're trying to pull out. If you can post the entire codes for that fleet page of yours, then we can see where the problem is and fix it for you.
  7. Try this <?php if($aircraft->name == DH8) { echo $amount ; } ?>
  8. To all the people who are using this add-on I added a print option to the bottom of the result.tpl. Now you can print the data if you want.
  9. You're welcome, Hope you enjoy it.
  10. Great! I'm happy that it works for you.
  11. What version of phpvms are you running?
  12. Well! to be honest it's working just fine on my side. Look into result.tpl, the problem comes from there. Also, the timing is not a function it's just a simple division and the result goes into the util::formatduration() cammand.
  13. You're welcome, hope this works fine
  14. This is a flight duration calculator. The results are of course estimated but with this you could have an idea of how to manage your schedules when adding them. This is an open source module, so feel free if you want to make changes. Install: 1. Download the zip. 2. Unzip & upload in the order of folder structure. 3, Make a link to access it by <?php echo url('duration') ;?>. Pix: Download at Github: Github.com/parkho
  15. Hi Edwin Unfortunately that's not possible with this one but I'm working on simpilot's realschedulelite add-on to be a mixture of this and his, so hang in there until then. thanks
  16. Okay! How do I call that function in a .tpl form? or is it possible?
  17. I installed your skin on a test website and first off it's not coming up correctly. Secondly, I tried to open the acars page, but I get an error that the Google map has an invalid key inserted and then gives me the web address to obtain a key. I think the template has been set in a way that the browser can't register the Google map from it. I also tried to look into the template files and style.css but didn't see anything strange there. Now, you need to get in contact with the guy who did this template for you and ask him to fix this since he knows what he did but I'll work on it more and let you know if I could resolve the problem.
  18. Are you entering 10000 in both fields or just the one on top?
  19. Are you doing that from the admin center or from the DB ?
  20. Hi I'm looking for the calcDistance() function called in ops_scheduleform.tpl in admin/templates. Any body knows where it is? thanks
  21. Try this $adminuserid = mysql_query("SELECT pilotid, message FROM phpvms_adminlog WHERE message=Approved PIREP #'.$pirepid.'");
  22. I'm sorry, didn't notice the first line, I think what getting out of your table is the pilotid
  23. Yes that's the one and it's correct, how about the location of acarsmap.tpl in your template folder?
  24. OK! Go to your ACARS module located in core/module/ACARS folder, open acars.php with notepad or notepad++. Now there is a section called function viewmap() make sure, acars.tpl is rendered there. Then check where the acarsmap.tpl located in your skin folder, it's supposed to be in the main folder of the skin, if it's in some other folders, take it out and put it in the main folder. Also, put back your custom made skin, so that we can see the result. I think in your skin the acarsmap.tpl is not being read somehow!
×
×
  • Create New...