Jump to content

royceair

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by royceair

  1. My first try to paginate the realschedulelite_airport_details.tpl http://www.scandifly.de/va/index.php/RealScheduleLite/get_airport?icao=ENGM <div> <div> <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2010, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ echo '<br /><h3>Available Flights At '.$name->name.'</h3>'; ?> <style type="text/css"> <!-- .Stil1 {color: #dd0000} --> </style> <br /> <table width="720"> <tr> <th colspan="2"><div align="left"><span class="Stil1">Airport Information</span></div></th> </tr> <tr> <td colspan="2"><hr></td> </tr> <tr> <td>Name:</td> <td><?php echo $name->name; ?></td> </tr> <tr> <td width="78">ICAO:</td> <td width="510"><?php echo $name->icao; ?></td> </tr> <tr> <td>Country:</td> <td><?php echo $name->country; ?></td> </tr> <tr> <td>Latitude:</td> <td><?php echo $name->lat; ?></td> </tr> <tr> <td>Longitude:</td> <td><?php echo $name->lng; ?></td> </tr> </table> <p> <?php echo '<table width="720" id="tabledlist" class="tablesorter">'; echo '<thead><tr>'; echo '<th>Flight</th>'; echo '<th>Aircraft</th>'; echo '<th>Reg #</th>'; echo '<th>Next Destination</th>'; echo '<th>Distance</th>'; echo '<th>Departure</th>'; if(Auth::LoggedIn() == true) { echo '<th>Add Bid</th>'; } echo '</tr>'; echo '</thead>'; echo '<tbody>'; if(!$aircrafts) { echo '<tr><th>The Airline Has No Aircraft</th></tr>'; } else { foreach ($aircrafts as $aircraft) { $location = RealScheduleLiteData::get_aircraft_location($aircraft->id); if(!$location) { $location = RealScheduleLiteData::get_aircraft_start($aircraft->id); $airfield = $location->depicao; } else { $airfield = $location->arricao; } if ($airfield == $name->icao) { $flight = RealScheduleLiteData::get_next_flight($aircraft->id, $airfield); $airfield = OperationsData::getAirportInfo($flight->arricao); echo '<tr>'; echo '<td><a href="'.SITE_URL.'/index.php/schedules/details/'.$flight->id.'" >'.$flight->code.''.$flight->flightnum.'</td>'; echo '<td>'.$aircraft->fullname.'</td>'; echo '<td><a href="'.SITE_URL.'/index.php/RealScheduleLite/get_aircraft?id='.$aircraft->id.'" >'.$aircraft->registration.'</a></td>'; echo '<td>'.$airfield->icao.' - '.$airfield->name.' - '.$airfield->country.'</td>'; echo '<td>'.round($flight->distance).' nm</td>'; echo '<td>'.$flight->deptime.'</td>'; //If pilot is logged in check their location //If the pilot is at this airport allow them to bid on flights if(Auth::LoggedIn() == true) { $location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid); if($location->arricao == $name->icao) { echo '<td><a id="'.$flight->id.'" class="addbid" href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>'; } else { echo '<td>You are not at this airport</td>'; } } echo '</tr>'; } } } echo '</tbody></table>'; echo '<form><input class="mail" type="button" value="Go Back To Listing" onClick="history.go(-1);return true;"> </form>'; ?> </p> </div> <div align="right" id="pager" class="pager"> <form> <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/first.png" class="first"/> <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/prev.png" class="prev"/> <input align="middle" type="text" class="pagedisplay" size="5"/> <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/next.png" class="next"/> <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/last.png" class="last"/> <select class="pagesize"> <option value="10">10 per page</option> <option value="25">25 per page</option> <option value="50">50 per page</option> <option value="100">100 per page</option> <option value="250">250 per page</option> </select> </form> <script defer="defer"> $(document).ready(function() { $("tabledlist") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); } ); </script> </div>
  2. Thanks for the fast reply - it works! chris
  3. Hello, I have a small Problem with kACARS: If a Pilot is logged in phpvms AND started a flight with the client, then he's shown twice. Any ideas to fix that? phpvms:Version 2.1.934 kACARS: kACARS_Free Application v1.0.0.8 Chris <div id="Info"> <h3>Users Online</h3> <?php $usersonline = StatsData::UsersOnline(); $guestsonline = StatsData::GuestsOnline(); foreach($usersonline as $pilot) { echo '<p><img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />'; echo " {$pilot->firstname} {$pilot->lastname}</p>"; }?> <p>Pilots Online: <?php echo count($usersonline);?> / Guests Online: <?php echo count($guestsonline);?></p><br /> </div>
  4. scandiFLY VA At first I have to say thank you for all the developers, especially Nabeel, who brings this project forward, it’s an amazing peace of code. For “beginners†not always easy to understand, but I’m a little proud to say, with no experience in php, mysql, css…. It’s done – we are now online. (I know the Forum in and out… ;-) scandiFLY at first is a project, who comes form FSEconomy, where we made since 2009 our first steps. But this wonderful place offers only possibilities to fly as GA- Pilot with smaller aircrafts . Bigger planes as Airbusses, Boeings aren’t in their portfolio. I have to say, that I have a look since over 2 years for phpvms, but the intention, developing an own VA wasn’t given at this time. But time changes so for 2 months a few members of scandiFLY FSE and me decided to make a bigger step. And the result is scandiFLY VA. The project never is ready, it’s a BETA Version yet, but I hope in future to understand more of coding, so that the website will be growing to a professional status. Nabeel, thank you one more time, greetings from Germany, chris One little question at final: Does anybody have a working menu for brilliancev1? The layout.tpl incl. the css file is like a monster for me. ;-)
  5. I have an idea for a new feature ;-) If we log all the costs of flying with phpvms, what is with the maintance of the birds? My little suggestion: Maintance for smaller AC: all 50hours The bigger ones and heavy: all 100hours You can open maintance points (airports)as the hubs in the control center. When time is coming for a check >45/90hours, as admin you have a possibility to see in a AC list the flown hours of the aircrafts, for createing routes to airports with maintance options. When the "eagle has landed" at this point, a procedure automatically happens and the fixcosts are charged. New party for the next 50/100 hours. If not, the system grounds the aircraft and only the admin can enable this process. If it´s madness, forget and delete my post ,-) rock on... chris
  6. Could it be, that the font "Segoe UI" in combination with my good old WindowsXP makes these problems? Wikipedia: The Segoe UI font family can be obtained as part of Microsoft Office 2007 or Windows Vista. Certain Segoe fonts, but not Segoe UI, were included in Windows XP Media Center Edition 2005, replacing Trebuchet MS. Segoe UI is installed into Windows XP if the user installs Windows Live Messenger, or Windows Live Mail, which are available as free downloads. Microsoft Word Viewer and Microsoft PowerPoint Viewer 2007 install certain Segoe fonts, but not Segoe UI. I don´t have this font in my WindowsXP. rock on... chris --------------------------------------------- - I´ve installed Segoe UI - changed to Config::Set('PAGE_ENCODING', 'UTF-8'); - made several test with the problem characters - nearly all is looking good! Only the editor for the news don´t work. It´s 07:15AM good night :-)
  7. Hi Nabeel :-) it is a truely new basic install with creating a new database too. The only change I made was to modify: local.config.php: # Page encoding options Config::Set('PAGE_ENCODING', 'UTF-8'); and the topbanner.jpg. Nothing else has happend. I switched back to: Config::Set('PAGE_ENCODING', 'ISO-8859-1'); The result: (and something has swapped... ;-) After default modifying, the entries in the app.config.php are: # Page encoding options Config::Set('PAGE_ENCODING', 'UTF-8'); Config::Set('DB_CHARSET_NAME', 'utf8'); Wait, I forgot... I changed in the admin center the Date Format to d/m/Y
  8. I´ve the same problem Today I made a completly new Beta install Version 2.1.935. I changed the charakter set in the local.config.php to utf-8 for german öö üü ää ßß test. Checked the app.config.php and it should be OK. Checked my localhost: utf8_general_ci ...and the result in the News:
  9. Hi guys, I´m new here and have a question about aircraft/schedule/pilots in phpvms. I´m allways in a testing enviroment to check out the features of this good piece of software. Bu my problem is, that if I fly with maybe a B733 with an identified aircraft-ICAO from A to B, then if I´ve landed, the aircraft and I have to be in B and nothingwhere else. All other flights/schedules, coupled with this aircraft and my airport I am staying yet, should be terminated - exept for airport B. I´ve had seen this feature in lot aif VA´s and for my opinion, it´s a normal procedure. And the phpvms should have then a possibility to jump, maybe for $ or flighthours, to another airport, so you have a chance to fly from other destinations. Greetings from Germany - rock on... chris
×
×
  • Create New...