Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. It depends on what you expect from your airline. For instance, if you like to show live flights on your website's front page then you will need an ACARS to do so but I've seen virtual airlines based on FSPassengers where all the pilot needs to do is to send the flight to the website and the website's just storing the data and basically show them in a table. Reports even don't have to get accepted or rejected as it's just DB to store data, so it's really up to you. You can even go further and create a form where the pilot can fill out the info of their flight and just submit it to your website and that can be stored in your DB for any other uses.
  2. Well, honestly, I used a different pagination that i found in a Google search and so far it's working just fine. The problem I had was that simply I wasn't able to get the pages paginated even though i followed the instructions.
  3. Ha ha, never mind I resolved the issue. Thanks though.
  4. If you don't know how to delete those airports i strongly suggest that you don't mess around with them.
  5. Parkho

    pilot pay?

    search for Pilot Shop add-on.
  6. You need to add the following into public function generateSignature($pilotid) in pilotdata.class.php: if(Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true)); { $pilotrank = Auth::$userinfo->ranklevel; $rank = RanksData::getrankinfo($pilotrank); $output[] = 'Rank: ' . $rank->rank.'<img src="<?php echo $rank->image ?>">'; } that should give you the Rank and the Rank image of yourself.
  7. <div id="box"> <div> <h2>Users Online</h2> <p> <?php $usersonline = StatsData::UsersOnline(); $guestsonline = StatsData::GuestsOnline(); ?> <h4>Pilots Online</h4> <?php $shown = array(); foreach($usersonline as $pilot) { if(in_array($pilot->pilotid, $shown)) continue; else $shown[] = $pilot->pilotid; echo "<p>"; echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />'; echo '<img src="<?php echo $userinfo->rankimage ?>" />'; $rank = RanksData::getRankInfo($pilot->rank); echo '<img src="<?php echo $rank->rankimage ;?>">'. $rank->rank ; echo " {$pilot->firstname} {$pilot->lastname}<br />"; echo "</p>"; } ?> <h4>Guests Online</h4> <p class="txt-red10">Currently <?php echo count($guestsonline);?> guest(s) visiting. </p> </div> </div> This should work.
  8. The module's working just fine and has no problem, Michael Kraan, I think you needed to add an airline named, "Charter Flight" with "CH" code which I think you didn't.
  9. You can use the news item and every time you add a news it will show up in the pilot center too. To do that add the following to your profile_main.tpl: MainController::Run('News', 'ShowNewsFront', 5);
  10. Yes it's possible. You have to limit your pilots to choose the vvg at the registration point. Open registration_mainform.tpl and find the following: <dd> <select name="code" id="code"> <?php foreach($allairlines as $airline) { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } ?> </select> </dd> And change it to the following: <dd> <select name="code" id="code"> <?php foreach($allairlines as $airline) { if($airline->code == "VVG") { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } } ?> </select> </dd>
  11. I'm not a registered user, so I'm not able to see any tabs.
  12. I was just checking on your website and all the links are showing their appropriate pages, so what is it that's not showing?
  13. What do you have instead of " $row->flightnum " in your acars.tpl? it has to be "$something->flightnum" , so just replace that with" $row->flightnum"
  14. Okay try this. It's tested and working: <META HTTP-EQUIV="refresh" CONTENT="30"> <div style="position:relative"><h1>Flight Stats</h1> <p style="text-align: right; position:absolute; right:5px;top:0;"><strong>Share</strong><span class='st_blogger' ></span><span class='st_twitter' ></span><span class='st_facebook' ></span><span class='st_yahoo' ></span><span class='st_email' ></span></p> </div> <img alt="" border="1" height="136" src="http://www.airindiavirtual.com/images/flightstats_pg.jpg" width="950" /></p> <h3> Live Flight Departure/Arrival Board</h3> <table width="100%" cellspacing="0" cellpadding="4"> <tr class="title-row"> <th width="105">Airline</th> <th width="77"> Flight #</th> <!--<img src="http://airindiavirtual.com/lib/skins/aivirtual/images/logo.png"><th width="50" " height="22" background="" class="style1"><span class="tablesorterBIS"> <div align="center"> Aircraft</span></th>--> <th width="200">Depart</th> <th width="200">Arrival</th> <th width="80">Status</th> </tr> <?php $rowCounter = 1; ?> <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $row) { $font = "<font color=''>"; // Standard font color if nothing below is TRUE if($row->phasedetail == 'Boarding') $font = "<font color='#2ba600'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'Landed') $font = "<font color='#FFBF00'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'En Route') $font = "<font color='#2A7F00'>"; //This should set the font color to green when Cruise. if($row->phasedetail == 'Departed') $font = "<font color='#FF0000'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'Approach') $font = "<font color='#690d0d'>"; //This should set the font color to green when Cruise. if($row->phasedetail == 'Arrived') $font = "<font color='#e13838'>"; //This should set the font color to red when Taxiing. // You can add more checks here for whatever you wish ?> <tr class="listingTable <?php if( ($rowCounter % 2) == 0 ){ echo ' evenCol'; } $rowCounter++; ?>"> <td align="center"> <?php $code = substr($row->flightnum, 0,3); ?> <img src="<?php echo fileurl('/lib/images/airlines/'.$code.'.gif'); ?>" alt="<?php echo $airline->name;?>" /> </td> <td align="center"><?php echo $row->flightnum;?></td> <!--<td align="center"><?php echo $row->aircraftname;?></td>--> <td align="center"><?php echo $row->depname;?></td> <td align="center"><?php echo $row->arrname;?></td> <td align="center"><?php echo $font.$row->phasedetail;?></td> </tr> <?php } } ?> </table> <?php if(!$results) { echo '<p align="center">No Online Flights Scheduled!</p>'; return; } ?> Screenshot:
  15. Using explode() function, you have to separate the string (CPC) from (CPC1234) which is the flight number in ACARS data and then say if this string is equal to the airline code show the image. That's the only way you can show the image on live flights for each flight. Otherwise the image will not show or shows as many airline's logo as you have.
  16. Okay. Now try to put the image itself like <img src="<?php echo fileurl('/lib/images/ABD.gif') ;?>"> see if this shows the images.
  17. you could also use this free slideshow website where you can upload your images and customize them and get the html code for it. The website is www.slideful.com.
  18. Can you clear your browser's cache cause it should show you the images.
  19. Try this: <META HTTP-EQUIV="refresh" CONTENT="30"> <div style="position:relative"><h1>Flight Stats</h1> <p style="text-align: right; position:absolute; right:5px;top:0;"><strong>Share</strong><span class='st_blogger' ></span><span class='st_twitter' ></span><span class='st_facebook' ></span><span class='st_yahoo' ></span><span class='st_email' ></span></p> </div> <img alt="" border="1" height="136" src="http://www.airindiavirtual.com/images/flightstats_pg.jpg" width="950" /></p> <h3> Live Flight Departure/Arrival Board</h3> <table width="100%" cellspacing="0" cellpadding="4"> <tr class="title-row"> <th width="105">Airline</th> <th width="77"> Flight #</th> <!--<img src="http://airindiavirtual.com/lib/skins/aivirtual/images/logo.png"><th width="50" " height="22" background="" class="style1"><span class="tablesorterBIS"> <div align="center"> Aircraft</span></th>--> <th width="200">Depart</th> <th width="200">Arrival</th> <th width="80">Status</th> </tr> <?php $rowCounter = 1; ?> <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $row) { $font = "<font color=''>"; // Standard font color if nothing below is TRUE if($row->phasedetail == 'Boarding') $font = "<font color='#2ba600'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'Landed') $font = "<font color='#FFBF00'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'En Route') $font = "<font color='#2A7F00'>"; //This should set the font color to green when Cruise. if($row->phasedetail == 'Departed') $font = "<font color='#FF0000'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'Approach') $font = "<font color='#690d0d'>"; //This should set the font color to green when Cruise. if($row->phasedetail == 'Arrived') $font = "<font color='#e13838'>"; //This should set the font color to red when Taxiing. // You can add more checks here for whatever you wish ?> <tr class="listingTable <?php if( ($rowCounter % 2) == 0 ){ echo ' evenCol'; } $rowCounter++; ?>"> <td align="center"> <?php $airlines = OperationsData::getAllAirlines(); foreach($airlines as $airline) { ?> <img src="<?php echo fileurl('/lib/images/airlines/'.$airline->icao.'.gif'); ?>" alt="<?php echo $airline->name;?>" /> <?php } ?></td> <td align="center"><?php echo $row->flightnum;?></td> <!--<td align="center"><?php echo $row->aircraftname;?></td>--> <td align="center"><?php echo $row->depname;?></td> <td align="center"><?php echo $row->arrname;?></td> <td align="center"><?php echo $font.$row->phasedetail;?></td> </tr> <?php } } ?> </table> <?php if(!$results) { echo '<p align="center">No Online Flights Scheduled!</p>'; return; } ?>
  20. Okay. For that, you would write a code as a function like this and place it in the OperationsData.class.php:: public function airports() { $sql = "SELECT * FROM phpvms_airports ORDER by id "; return DB::get_results($sql); } Then you will need to call the function like this: $airports = OperationsData::airports(); Now you need to set it in a loop lik this: <?php foreach($airports as $airport) { echo $airport->name; } I don't know where you want to use this but this is basically the way. For your second request, you would do it like above instead, you have to change this part: $sql = "SELECT * FROM phpvms_airports ORDER by id "; To this: $sql = "SELECT DISTINCT depicao, arricao FROM phpvms_schedules ORDER by id "; Remember using above, will limit your query to depicao and arricao only, so you only have option to echo these 2.(ex. $airport->depicao, $airport->arricao).
  21. Okay. Where do you use the $airline->icao? You gotta have something like below: <?php $airlines = OperationsData::getAllairlines(); foreach($airlines as $airline) { ?> <img src="<?php echo fileurl('/lib/images/airlines/'.$airline->icao.'.gif'); ?>" alt="<?php echo $airline->name;?>" /> <?php } ?>
×
×
  • Create New...