Jump to content

Nighthawk

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by Nighthawk

  1. You didn´t have inserted the mod correctly! phpvms folder is your lausitzair folder! before you insert, you must rename it phpvms to lausitzair. The error is normal, because its something missing... Overwrite the files then. And for the next time a - read the "readme" ! This mod isn`t finished yet and only for test and development released!
  2. Hi post please your files /admin/modules/Operations/Operations.php on line 734 and /core/classes/MainController.class.php on line 218. Please check, that u have copied in the right folder. Have u installed the phpvms beta?
  3. Show This: Pressing "Click to view Airport Charts" will open new Window with Following: You must insert the following line as shown in the next Picture in core/templates/schedule_briefing.tpl Cheers Nighthawk Here is the complete Code: <h3>Procedures and Information</h3><br> <table width="98%" align="center"> <tr style="background-color: #333; color: #FFF;"> <td>Charts for <?php echo $schedule->depicao?></td> <td>Charts for <?php echo $schedule->arricao?></td> </tr> <tr align="center"> <td width="50%" valign="top"> <a href="http://www.airnav.com/airport/<?php echo $schedule->depicao?>#ifr" target="_blank"> <img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/APD/AIRPORT+DIAGRAM/png" width="387px" height="594px" alt="No chart available" /></a></br> <a href="http://www.fscharts.com/index.php?action=search&type=icao&term=<?php echo $schedule->depicao?>&radius=2" target="_blank">Click to view Airport Charts</a> </td> <td width="50%" valign="top"> <a href="http://www.airnav.com/airport/<?php echo $schedule->arricao?>#ifr" target="_blank"> <img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/APD/AIRPORT+DIAGRAM/png" width="387px" height="594px" alt="No chart available" /></br> <a href="http://www.fscharts.com/index.php?action=search&type=icao&term=<?php echo $schedule->arricao?>&radius=2" target="_blank">Click to view Airport Charts</a></a> </td>
  4. The Download of the new Version 0.9 is in #1
  5. My Problem is, how can i do connection from this admin/template // Show these if it is not bought or leased ?> <h1><?php echo $aircraft->registration; ?> Buy Screen</h1> <img src="<?php echo $aircraft->imagelink; ?>" height="140" width="140"> <br><br><br><br> <table border=0 id="tabledlist" class="tablesorter"> <thead> <tr> <th align="center">Status</th> <th align="center">Condition</th> <th align="center" >Price</th> <th align="center">Buy</th> </tr> </thead> <tbody> <form action="<?php echo adminurl('/Buysell/aircraft');?>" method="post"> <tr> <td align="center">New</td> <td align="center"><?php echo $newrd ?>%</td> <td align="center"><?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); echo Config::Get('MONEY_UNIT'); ?> </td> <td align="center"><input type="hidden" name="id" value="<?php echo $aircraft->id;?>" /> <input name="price" type="text" value="<?php echo ((("$acprice1"*"$newrd")/100)); ?>" /> <input name="cond" type="hidden" value="<?php echo $newrd; ?>" /> <input type="hidden" name="action" value="<?php echo $action;?>" /> <input name="icao" type="hidden" value="<?php echo $aircraft->icao; ?>" /> <input name="name" type="hidden" value="<?php echo $aircraft->name; ?>" /> <input name="fullname" type="hidden" value="<?php echo $aircraft->fullname; ?>" /> <input name="registration" type="hidden" value="<?php echo $aircraft->registration; ?>" /> <input name="maxcargo" type="hidden" value="<?php echo $aircraft->maxcargo; ?>" /> <input name="downloadlink" type="hidden" value="<?php echo $aircraft->downloadlink; ?>" /> <input name="imagelink" type="hidden" value="<?php echo $aircraft->imagelink; ?>" /> <input name="maxpax" type="hidden" value="<?php echo $aircraft->maxpax; ?>" /> <input name="weight" type="hidden" value="<?php echo $aircraft->weight; ?>" /> <input name="bought" type="hidden" value="<?php echo $boughty; ?>" /> <input name="range" type="hidden" value="<?php echo $aircraft->range; ?>" /> <input name="cruise" type="hidden" value="<?php echo $aircraft->cruise; ?>" /> <input name="minrank" type="hidden" value="<?php echo $aircraft->minrank; ?>" /> <input type="hidden" id="enabled" name="enabled" value="1" /> <input type="submit" name="submit" value="Buy" /></td> </form> </tr> to this class ledger public static function addPayment($params) { $params = array_merge(array( 'pilotid' => '', 'pirepid' => 0, 'paysource' => PAYSOURCE_PIREP, 'paytype' => 1, 'amount' => 0, ), $params); if(empty($params['pilotid'])) { return false; } $sql = 'INSERT INTO `'.TABLE_PREFIX.'ledger` (`pilotid`, `pirepid`, `paysource`, `paytype`, `amount`, `submitdate`, `modifieddate`) VALUES (' .$params['pilotid'].',' .$params['pirepid'].',' .$params['paysource'].',' .$params['paytype'].',' .$params['amount'].', NOW(), NOW() );'; DB::query($sql); PilotData::resetPilotPay($params['pilotid']); } I inserted in app.config the following for ledger # Constants for 'paysource' column in ledger define('PAYSOURCE_PIREP', 1); define('Payment', 2); # Constants for 'paytype' column in ledge define('PILOT_PAY_HOURLY', 1); define('PILOT_PAY_SCHEDULE', 2); define('PILOT_PAY_FIXED', 3); define('Payment', 4); The "data" which i want to submit to ledger is like this " $params = array_merge(array( 'pilotid' => '', 'pirepid' => '', 'paysource' => 2, 'paytype' => 4, 'amount' => "price", How can i do this the best and easiest way???? THIS IS THE MISSING LINK TO GET THIS MOD FULLY WORKING!!!!! Optional How can i do an monthly expense from here for Leasing?
  6. Hi, hehe this is my mod. Yes its true what u say with the Prices, so i put the Line in to insert it manualy . The automatic Pricecalculation need´s a big workaround, but for the beginning it does. Cheers Nighthawk
  7. Thanx, i am on it, when i have time, but it´s not easy too handle it, i am only an beginner in programming, so it takes time.
  8. This Objects must be done to finish this Project: Handle with VA Money Repair takes time, after that , the Ac must avaible Correct the AC price for Bigger Planes Aircraft Condition Alter after Pirep was send (Jacques) Some more When someone want to help us to get this all to working, it will great!!!
  9. When u find the fix post it in my topic please. i will add it then.
  10. Thanx, i am on a Point with this "Project" where i cant go further alone. When u have questions on this version i will help u when i can. When u want, we can do this Project together and it is our. What u think?
  11. Hi, i have read your post. The download from me is the actual version. In the moment i spend many hours to my job... I have problemd with the Financials to buy something from the VA Financials with an Formular.
  12. For Version 0.9: It will be only running on the latest PHPVMS beta, but i have coded now the first steps to get the Financials running for Buy/Sell and Repair an Aircraft!!! Some Bugfixes and workarounds made now for 0.9.
  13. All of us who has Saitek Hardware like the Mutlipanel should take a look at http://fstools.weebly.com/. I found it on the Web. Description from their site: Spad is a replacement driver for the Saitek Pro-Flight Radio, Multi and Switch panel. Spad implements features like: - Compatibility with addon aircraft supporting keystrokes and virtual joystick button (using Peter Dowson's FSUIPC) - Improved knobs sensitivity with tunable acceleration - Additional features like altimeter barometric regulation - Many bugs fixed (missed glide slope in FS2004, Nav1 switch etc.) - Much better stability Spad is free ! Spad is in active development, join the forum and contribute with bug reports, suggestions or feature requests ! I will try it...
  14. Hi, i want make an monthly expense from an .tpl page with financeData::addexpense. How i can do it on an simple way? And how can i delete later this automaticly after a certain time? With codon?
  15. Some early Screen´s from the Aircraft Repair Mod and one more pic The repair will consum time ... It´s not included yet... What would u say for 1% = 1h real !!! repair time??? A Good Flight will cost round about 0.5% for 500nm + Landing 0.2% -1.0% ??? What did u say??? Important: Who can help me with the financials??? I found at this time no way to calculate or make an one time expense!!!
  16. Solved in 0.8 And when sell disable aircraft...
  17. @Industrialshadow: Show the Readme under Options, when u do this u can add the price on the Buy Page. @Simpilot: I know, but for me, i use Winmerge for this, it´s the simplest way. For Database entry´s i use Navicat, it´s free and simple. i am not an profi. This is my first "big" code. It takes many time to find an entry. When u want, can u help me to put this in Module? @All others: I began with the Aircraft Repair mod... When the Aircraft is in repair, it is unavailable to fly for the repair time.... And after this comes the Maintenance Mod.
  18. @Txmmy83: just Copy <input name="price" type="text" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> and overwrite the line with <input name="price" type="hidden" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> or better change "hidden" in "text" The Lease Option is good, but i must find out how the financial system of phpvms works, its not only one db entry....
  19. @dimitris you must fill the fields cruise speed, pax, Range, max takeoff weight out without "," or "." @Industrialshadow you cant add it to the database!!! I didn´t want "cheaters2 here, but when mor people want to enter their prices i will do a manuall input...
  20. Step 1 Aircraft buying Mod Version 1.00: You need only a beta PHPVMS version! Now all Features are fully functional!!!! Buying/ Repairing/ Landingdamage and many ohters... It was a dream - now it is reality. When u have Questions... ask here. And thanx for many help here! By the way i started a openoffice calc database for prices, we can update it altogether?!? And post it here. Rename it as *.xls and open it with openoffice or similar. When you insert a plane or correct one please upload with a new date in the name 2013.04.19 Aircraft Databasexls.txt Step1 Aircraft buying Mod 1.00.zip
×
×
  • Create New...