Jump to content

Sava

Members
  • Posts

    575
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Sava

  1. Normally you can include .php files by using <?php include('path/to/file.php'); ?> I believe it will work here. EDIT: Just read what you were asking again. I believe this isn't what you want.
  2. I am still not convinced but never mind. good luck
  3. I guess I was right. You would need the permission in written form and you don't get a permission with one phone call.
  4. Why do I think that is not true?
  5. You can also make it so only active pilots appear on the roster and inactive ones do not. That way you keep the hours, get nice reports and leave the option for the pilot to retrn. That is rhe best option if you ask me.
  6. Yes, servetas that could be the issue. I didn't notice it when I updated the git from the iPad in the afternoon. I updated the core/common/HubTrasnferData.class.php file once more and hope that solves it. Download it and tell me if it helps. I couldn't check if it works as I don't have access to my phpvms test site at the moment from the iPad. Sorry for the trouble.
  7. Yes, that is the issue. Please download the new core/common/HubTransferData.class.php file from the repository. It is the only one that needs changing. Sorry for the inconvinience.
  8. Thanks for the kind words Marc. It means a lot comming from you, as the CEO of one of the most successul VAs.
  9. I am not sure what could be the issue. No one including me has that. The method for getting the hub is extremely simple and there should be no issues with that. It just selects all the ICAOs from the phpvms_airports table where the column HUB has a value of '1' (true) and than lists them.
  10. Sorry for the issues.
  11. Edit: Go to core/common/LoAData.class.php Change the first method so it is like this: public function CheckPilotID ($pilotid) { $query = "SELECT * FROM loa WHERE pilotid ='$pilotid'"; $sql = mysql_query($query); $count = mysql_num_rows($sql); //this is added return $count; //$sql changed to $count } That should fix the issue.
  12. Thanks. Like is appreciated
  13. Are you sure that there isn't a request? The addon comes with one request already in there to show the functionality.Check the actual table in phpmyadmin. I have tried out the addon on my test site and it works perfectly. Also, check the Hub Transfer thread, I have updated it.
  14. Added an option to delete the requests. Please get the latest version from the GitHub repository. The changed files are: core/common/HubTransferData.class.php admin/modules/HubTransfer/HubTransfer.php admin/templates/hubtransfer/hubtransfer_admin_index.tpl If you want, just get those three files as the rest are unchanged. Hope this helps. I would be glad to help you out if you have any further issues.
  15. I will do it first thing in the morning. Thsnks for the kind words.
  16. Sorry, I edited the post to provide more info while you were writting. Anyhow, you can delete the request manually from phpmyadmin but if you want I can add the option to do that from the admin panel if you like. I haven't added this option for the reason stated in the post above but it can easily be added.
  17. Once you send the first request it is stored in the database until you delete it manually. Until then you can't submit another request. The last part of the error message was supposed to be deleted but stayed there from the initial version which handled requests differently. It is now fixed in the latest commit. Anyhow, the way I coded the addon is that all the requests stay in the databse thus preventing from submitting the request again (why would anyone change their hub twice?). If you would like to see an option for this also, I will be happy to add it in the morning. To sum up, the addon is working as it should be. It seems you edited your post some time so I hope I answered your question.
  18. What was the issue and how did you solve it?
  19. You are welcome Mattia. Enjoy it!
  20. Hub Transfer Request v1.0 about: phpVMS Module for pilots to submit a Hub Transfer request that is stored in a database and an option for staff to view all the requests through the admin panel and decide to reject/approve the request. When the requests are submitted, both the users and the admin will get an email. Once the request is handled, a secon email is sent to the user. You can change the pilot's hub from inside the addon. Developed by: Sava Markovic http://www.airserbiavirtual.com Developed on: phpVMS v2.1.934 stable php 5.3.1 mysql 5.0.5 apache 2.2.14 License: Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License Installation: 1. Download the zip package. 2. Unzip the package and place the files as structured in your phpVMS installation. 3. Use the hubtransfer.sql file to create the table necessary for the module to work. You can do this by using phpmyadmin. Other Information: To display a link to the LoA form for your pilots place this code where you want it: <a href="<?php echo url('/loa'); ?>">Hub Transfer Request</a> Screenshots: http://i.imgur.com/5urXb.png http://i.imgur.com/2OYBR.png Download: The addon can be found and downloaded here: https://github.com/savamarkovic/phpvms_hubtransfer Thanks to user Connor1994 ( http://forum.phpvms.net/user/681-connor1994/ ) for the idea. Enjoy the addon and leave feedback.
  21. Yeap. I read somewhere that it existed before the real JetStar so they made an agreement with them. For once, the airline was breaching some copyright lol.
  22. Hey Connor. Check for 'pagination' on the forums. Some people have done it for the pilot list but it includes a lot of core file changes if I recall correctly. Though I think that some sort of pagination is planned for the next version of phpVMS which is still WIP. Again, if I recall correctly.
  23. It is a good start although a lot of work is still required. There is not much difference between the background and the site itself, the boxes on the bottom could be fixed, the news menu also...
×
×
  • Create New...