Gabriel Fernandez Posted September 13, 2010 Report Posted September 13, 2010 Hello, me and My Friend( Almost All My Friend ) Create A Little script for a VMS. He put a topic in forums but Not explained correctly. Discounts To Subtract From Pilot Salary V1.0 Well this addon remove the pilot's salary according to his flight log. For example, the limit of TD in his VA is -300 and the driver exceeds this limit, is much more constructive and interesting actually used the system's finances vms than simply delete the log. So if Exed the limit of touch, flaps, gear down or up, will be deducted from the pilot's account as follows: Every 100 FT / M Exed (Default is -300, but you can change) is removed - $ 1,200, the same way with the flaps and gear, but in a non-linear. A New Box is create in your log accept on admin center ( Default Skin) Installation Unzip the file to a folder of your choice Extract the files to folder "admin / templates" on your PHPVMS. Change the links to your site in discontoauto.tpl, and pirep_list.tpl. Change cfg database in autodisconto.php Download Link: www.voericov.co.cc/Desconto Automatico.rar Credits For me And Luiz Cortinhas 1 Quote
TAV1702 Posted September 24, 2010 Report Posted September 24, 2010 Will this work with pilots that use FS Passengers? Quote
Gabriel Fernandez Posted September 25, 2010 Author Report Posted September 25, 2010 Yes yes, perfectly.Works with all logs supported by vms Quote
BastiDE Posted October 10, 2010 Report Posted October 10, 2010 Installation Unzip the file to a folder of your choice Extract the files to folder "admin / templates" on your PHPVMS. Change the links to your site in discontoauto.tpl, and pirep_list.tpl. Change cfg database in autodisconto.php I dont know, how i have it to install. Where omes the .php file? In the templates folder? What links I have to change, where are they??? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <?php $numero_do_piloto = $_POST[numero_piloto]; $touchdown = $_POST[toque]; $cauda = $_POST[cauda]; $flaps = $_POST[flaps]; $gearup = $_POST[gearup]; $geardown = $_POST[geardown]; // por enquanto só isso devera ser carregado. $total = ($touchdown + $cauda + $flaps + $geardown + $gearup); // essa linha soma os valores indicados e a sua variavel ira discontar do salario do piloto. // apartir de agora vamos conectar ao BD e pegar o atual salario do piloto. $con = mysql_connect("localhost", "USERNAME", "PASSWORD"); // este campo funciona assim a primeira informação é o local do BD, a segunda é Usuario, a terceira é a senha $banc = mysql_select_db(DATABANK); // aqui selecionamos o banco de dados . $qu = "UPDATE `".$banc."`.`table_pilots` SET `totalpay` = totalpay -".$total." WHERE `table_pilots`.`pilotid` = '".$numero_do_piloto."'"; // a variavel $qu esta carregando todo codigo para inserir no banco de dados. mysql_query($qu); // aqui executamos a variavel $qu. echo $qu; echo "<br>Alteração feita com sucesso!"; ?> <body> </body> </html> And what can I config here? Pls help me. Quote
Gabriel Fernandez Posted October 18, 2010 Author Report Posted October 18, 2010 Just edit the discontoauto.tpl,pirep_list.tpl,autodisconto.php and put in admin/templates folder in this tpl's you need change some links, and put link of your VA Quote
selwynorren Posted January 12, 2011 Report Posted January 12, 2011 Hi, Seems the download is broken, is this mod still available? Quote
Guest FWX001 Posted January 13, 2011 Report Posted January 13, 2011 Pls put the Link again Regard FWX001 Quote
Cor Posted January 13, 2011 Report Posted January 13, 2011 Site doesn't exists anymore. Regards, Cor Quote
Guest FWX001 Posted January 13, 2011 Report Posted January 13, 2011 Site doesn't exists anymore. Regards, Cor but I think anywhere have this script (modul) Maybe someone has this module and again upload it or give a link Regard FWX001 Quote
Gabriel Fernandez Posted January 20, 2011 Author Report Posted January 20, 2011 i put on again,sorry, when is online i post again! Quote
TAV1702 Posted January 21, 2011 Report Posted January 21, 2011 Yeah that would be great. I forgot to grab a copy while it was live. I badly want to add this little ditty to my site. Quote
flyalaska Posted February 4, 2011 Report Posted February 4, 2011 What happens if you reset the pilots pay in admin, will it give everything back? Quote
Moderators Kyle Posted February 4, 2011 Moderators Report Posted February 4, 2011 Yeah it's likely to give money back because with the reset, they regen the pilots flight pay and give them the full amount. Quote
TAV1702 Posted February 4, 2011 Report Posted February 4, 2011 Yeah I think it would need to be recoded a bit to take advantage of the adjust pilot pay code snippets that was released a while back that I use on my site. If you use that and recalculate everything, it will not give the cash back to the pilot. Quote
TAV1702 Posted September 16, 2011 Report Posted September 16, 2011 Please disregard my posts. I actually posted the wrong thing. I must have been in dork mode with my pain pills last night. My apologies. Quote
Tylor Eddy Posted October 14, 2011 Report Posted October 14, 2011 This is exactly what I've been searching for, any chance someone can re-upload this ? Cheers Tylor Quote
edmundk Posted October 24, 2011 Report Posted October 24, 2011 This is exactly what I've been searching for, any chance someone can re-upload this ? Cheers Tylor Does anyone have this i dont seem to find a link? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.