Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. Okay. If you want to upgrade, you're gonna have to follow instructions on readme file in the download.
  2. Remove this part anywhere you see it Util::FormatDuration().
  3. Why would you wanna rename the .tpl to .php? If you do that, your website will be completely ruined.
  4. That's okay if you can modify this but first I'll want to get the forum's opinion before I release it.
  5. Take a look at the new system here:
  6. Okay. Here is what mine does, you add 2 schedules with B738(IS-XXA) from LYBE to LOWW and LYBE to LOMM. Now let's assume you're at LYBE, so you go to book a flight and the system will show you the flights you just added and you choose to go to LOWW and hit the add bid button and the flight is booked. Now the other flight with the same aircraft is also booked and others won't be able to see that flight when they're booking. Also, once you send your PIREP, the aircraft is now moved to LOWW and the bid is removed but still the other pilots won't be able to book the flight at LYBE cause the aircraft is not there instead if they go to LOWW then they will be able to book the flight from LOWW.
  7. If i understand it correctly, you mean that schedules show up at first and the pilot chose one and then the next page inserts the aircraft to the route an lock it!.
  8. Take a look at this it might be helpful. http://forum.phpvms.net/topic/7930-kacars-free-guide/
  9. It's actually like what you mentioned except for the part that takes you to the aircraft page. I thought of that but found it pointless since it can be implemented in the first page. About kACARS, I can write a code to check if the aircraft in kACARS matches the aircraft in the booked flight and if it's different then the system rejects the flight at the beginning.
  10. Dear All, I am to announce that the new flight booking system is now ready to be published. The new system has a new look and is based on aircraft position. Now before it can go for publication, I will need to get some opinions about this and its new features as follows: 1. The first time you open the module it will set your location and the aircraft to your HUB. 2. The pilot, then, have a choice of available aircraft at their location. 3. Then the pilot gets to another page to bid on their flight where they can see the details of the flight clicking the flight ID. 4. The pilot places the bid. 5. The aircraft that they chose is now locked in all schedules with the same aircraft. 6. As soon as a bid is placed, all the bookings and searches disappear until the bid is removed. 7. Other pilots won't be able to bid on any schedules that have the same aircraft. Please make a time to answer to the poll for this matter as it is very important to me to get the forum's opinion on this. Also, i would appreciate any negative or positive points received about this new booking system and am willing to make changes accordingly before publication. At the end, Your respond to this is greatly appreciated and I hope to receive your ideas nay time soon. Respectfully Parkho
  11. That means you're missing the module folder or have it misspelled. Remember that the module folder names are case sensitive , so create it as it is in the download.
  12. oh I see that now. I thought maybe the "FormatMoney()" function should be used at the end and that's why there were no results. Thanks for pointing that out. Salamaty
  13. Persians say "Salamaty" means Cheers
  14. if($pirep->landingrate == "0") { echo '<td> No record </td>'; } else { echo '<td>'.$pirep->landingrate.' ft/m </td>'; } Try this
  15. Instead of this: echo '<td>'.$pirep->landingrate.'</td>'; Write this: if($pirep->landingrate == "0") { echo '<td> No record </td>'; } else { echo '<td>'.$pirep->landingrate.' ft/m </td>' }
  16. Okay. Let's see here. The checking log should go to the gateway of receiving PIREPS which is in here :Admin/modules/PIREPadmin/PIREPAdmin.php and that should resolve the issues with this. The thing is that if you want this to be a module then you're gonna have to redirect the receiving PIREPS gateway to your module for it to process the flight and after that redirect it back to the admin center for manual approval if any conditions were not met.
  17. Here is a small code that you can use in pilot center or public profile. It shows total flights in a particular airline that pilot has flown. Note: If your database table prefix is not phpvms, change this part "phpvms_pireps" to yours in the code. Enjoy <table class="balancesheet" width="50%"> <tr class="balancesheet_header"> <td colspan="2">Airline Flight Count For a Pilot</td> </tr> <tr> <td align="center"><strong>Airline Name</strong></td> <td align="center"><strong>Flight Count</strong></td> </tr> <?php $airlines = OperationsData::getAllAirlines(); foreach($airlines as $airline) { ?> <tr> <td align="center"><?php echo $airline->name ;?></td> <td align="center"> <?php $pilotid = Auth::$userinfo->pilotid; $code = $airline->code; $qry =" SELECT count(pilotid) AS total FROM phpvms_pireps WHERE pilotid='$pilotid' AND code='$code'"); $row = DB::get_row($qry); echo $row->total; ?> </td> </tr> <?php } ?> </table> Screenshot:
  18. Change it to this: $gross = $pirep->load * $pirep->price; $fuel = $pirep->fuelused * $pirep-fuelunitcost; $netincome = $gross - $fuel; echo FinanceData::FormatMony($netincome);
  19. Okay. One thing is to check your phpvms table prefix in your DB. If your DB prefix for tables is not phpvms then that's where the problem is.
  20. Look to see if you inserted the code correctly. Your error is mostly from missing a closing argument like "?>" or <?php .
×
×
  • Create New...