Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. I have created a module for someone in the forum and the guy requested the schedules to be separated by the airline. I can offer you the same thing but code it to work with flight type but you won't be able to use the default search module with this. Screenshots:
  2. It's possible but you'll have to change some original files as well as some functions to include the flight type.
  3. Why don't you add an airline and name it "Charter" set the code as "ch" then you could add the routes with that airline as "CH123" then search by airline which is already there. This way is a lot easier than adding the flight type.
  4. I have a DB with 58 pilots, over 1800 schedules, over 1200 pireps, over 200 airports, and 20 aircraft. Would that be enough?
  5. Replace this part: <?php foreach($lastbids as $lastbid) { ?> with this: <?php foreach($lastbids as $lastbid) { $airp1 = OperationsData::getairportinfo($lastbid->depicao); $airp2 = OperationsData::getairportinfo($lastbid->arricao); ?>
  6. Have you checked the image links to see if they actually open in the browser? Cause seems to me that you have image link problem.
  7. Add the following right after bracket where the foreach starts: $airp1 = OperationsData::getairportinfo($lastbid->depicao); $airp2 = OperationsData::getairportinfo($lastbid->arricao); Now in <td> for departure airport data replace the following: <?php echo $lastbid->depicao :?> with this: <?php echo $airp1->name ;?> And for arrial: <?php echo $airp2->name ;?> And your home safe.
  8. PIREPS are stored in a table called phpvms_pireps, so in order to pull the data from that table you will need to follow the instruction below: 1. Create a file and name it as: PIREP.class.php 2. Inside that file write a function to pull the data out. 3. Create a TPL file and name it anything you want. 4. inside the TPL create a table and show the data.
  9. Which pic are we talking here? BTW V2.0 has some issues that were not resolved yet, so my advise is not to use it yet.
  10. Parkho

    New Pages

    It's better not to edit the default modules but some times there is no other way. What you can do is to set up your module and use the default functions to include the pages you want.
  11. Parkho

    New Pages

    You did everything correctly but the pirep_newform.tpl gets its data from the module and you're module is pretty much nothing to give to the template. Your module is just showing those templates.
  12. Guys! I'm asking you to please calm down and wait for the issues to be resolved, then you can use the system and basically point out the bugs if there are any and else.
  13. That's fine you can choose any number. The reason I put it there was I thought you might wanna show less records to shorten the page. You could also use a pagination.
  14. It's pretty complicated to explain but the original code was written in a way that shows arrname as name but mine is slightly different.
  15. I changed the code of the file you uploaded as attached. Screenshot: update.zip
  16. You need to change the English caption part of the TPL like below and the save the TPL with notepad and change the "Encoding" drop down accordingly. remember not to change the codes that are written in English.(ex. <?php echo $pilot->name ;?>)
  17. Download and re install the attached. Overwrite if asked: AirlineSelect.zip Screenshot:
  18. Did you say you just finished installing? If yes then those parts you won't be able to see until you actually have some flight reports received or some schedules added to the system. Pilots need to register with your VA before they show up in the list however you must be able to see yourself as you're the admin and the installer. Airports also need to be added before they show up but KJFK is already added to the system, so you must be able to see that as well.
  19. Reinstall the module as attached, Revised: PilotList.zip
  20. Okay. give me some time I'll change the code for you in the tpl and upload it.
  21. Check the days of week for scheds, there might be not set for today.
  22. That's because the DB has raw data (ex. 1 would be aircraft ID in the aircraft table). If you want to show like A/C registration or departure airport name then you'll have to use other functions that meant to do that for you.
×
×
  • Create New...