Jump to content

PIAS2011

Members
  • Posts

    110
  • Joined

  • Last visited

Posts posted by PIAS2011

  1. Other than your math, I don't see anything wrong with either the code or how it looks on the site.

       <thead>
        <tr>
       <th width="7%" align="center" style="background-color: #171717;">Flight#</th>
       <th width="30%" align="center" style="background-color: #171717;">Departure</th>
       <th width="30%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="10%" align="center" style="background-color: #171717;">Landing Rate</th>
       <th width="8%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="5%" align="center" style="background-color: #171717;">Status</th>

    This adds up to 105%, you're 5% over (maybe a workbook, or maybe a calculator might help).

    If you'd like any more further support, I'd suggest you don't gripe about the answers you get for what you ask for, or how you ask them. This isn't going to get you far.

    There is no problem in this THE PROBLEM IS THAT THE WHEN I REJECT ANY PIREP REPORT IT DOES NOT SHOW REJECTED. !!

  2. The problem is in the way YOU coded the table. Your page source show this:

    <h2>Recent Flights Booked</h2>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
    <th width="10%" align="center" style="background-color: #171717;">Flight Number</div></th>
    <th width="10%" align="center" style="background-color: #171717;">Depart</div></th>	
    <th width="10%" align="center" style="background-color: #171717;">Arrive</div></th>
    <th width="20%" align="center" style="background-color: #171717;">Pilot Name</div></th>
    <th width="20%" align="center" style="background-color: #171717;">Aircraft</th>   //There is no </div> in this line
    <th width="10%" align="center" style="background-color: #171717;">Tail No.</div></th>
    <th width="20%" align="center" style="background-color: #171717;">Flight Time</div></th>
    </tr>          //You have a </tr> but no <tr> in the table
    </thead> 
    <tbody>
    
    <tr bgcolor="#171717">
    <td height="25" width="15%" align="center">PIA356</a> </td>  //There is a <span></span> missing here
    <td height="25" width="13%" align="center"><span>OPLA</span></td>
    <td height="25" width="13%" align="center"><span>OPRN</span></td>
    
    <td height="25" width="20%" align="center"><span>Sajid Ali</span></td>
    <td height="25" width="15%" align="center"><span>ATR42</span></td>
    <td height="25" width="12%" align="center">AP-BHP</td> //There is a <span></span> missing here
    <td height="25" width="12%" align="center"><span>1 Hours</span></td>
    </tr> 
    
    <tr bgcolor="#171717">
    <td height="25" width="15%" align="center">PIA653</a> </td> //There is a <span></span> missing here
    <td height="25" width="13%" align="center"><span>OPRN</span></td>
    <td height="25" width="13%" align="center"><span>OPLA</span></td>
    
    <td height="25" width="20%" align="center"><span>Ali Asad</span></td>
    <td height="25" width="15%" align="center"><span>ATR42</span></td>
    <td height="25" width="12%" align="center">AP-BHP</td>  //There is a <span></span> missing here
    <td height="25" width="12%" align="center"><span>1 Hours</span></td>
    </tr> 
    </tbody>
    </table>

    Redo the table to fix the problems, then it should look right.

    Jeff thanks for your help but i did not ask help for this i asked help for RECENT FLIGHT ARRIVALS i mean the Recent Arrivals Board. I have problem that it DOES NOT display the current status properly.

    Thanks

    CEO PIASimulations

  3. After a long development phase, I am pleased to announce that Plusair virtual airline is now in the Beta testing phase.

    Based at Leeds Bradford airport, we operate scheduled and charter passenger domestic and European flights, although we plan to introduce long haul flights in the near future.

    Any help with the Beta testing and/or suggestions for improvements would be more than welcome.

    Many thanks,

    Nigel Airey (CEO)

    Plusair Virtual Airline

    http://www.plusair.co.uk

    plusair_banner_500x92.jpg

    Really nice va and site Good Luck :)

  4. Maybe because there isn't as many titles along the top so it doesn't stretch as far? Just extend the width of it a bit I did that with one before.

    Thanks Palmairva.co.uk and thanks tom for your help now just need help with the recent flights board code.

  5. anyone on this problem

    RECENT FLIGHTS BOARD

    Problem: The status of this board i.e ACCEPTED , REJECTED , PENDIMG does not work properly.

    <center><h2>Recent Arrivals</center></h>
    <table align="center" border="0" width="605px">
    </table>
    <?php
    $count = 10;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
      <thead>
        <tr>
       <th width="7%" align="center" style="background-color: #171717;">Flight#</th>
       <th width="30%" align="center" style="background-color: #171717;">Departure</th>
       <th width="30%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="10%" align="center" style="background-color: #171717;">Landing Rate</th>
       <th width="8%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="5%" align="center" style="background-color: #171717;">Status</th>
        </tr> 	
       </thead>
       <tbody>
    <?php
    if(count($pireps) > 0)
    {
     foreach ($pireps as $pirep)
     {
       $pilotinfo = PilotData::getPilotData($pirep->pilotid);
       $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); 
    
       if($pirep->accepted == '0') $status = 'REJECTED';
       if($pirep->accepted == '1') $status = 'ACCEPTED';
       else $status = 'PENDING'; 
    
       echo "<tr>";
       echo "<td align=center   bgcolor=#171717> $pirep->code-$pirep->flightnum </font></td>";
       echo "<td align=center   bgcolor=#171717> $pirep->depname </font></td>";
       echo "<td align=center  bgcolor=#171717> $pirep->arrname </font></td>";
       echo "<td align=center   bgcolor=#171717> $pilotid $pilotinfo->firstname $pilotinfo->lastname </font></td>";
       echo "<td align=center  bgcolor=#171717> $pirep->landingrate </font></td>";
       echo "<td align=center   bgcolor=#171717> $pirep->aircraft </font></td>";
       echo "<td align=center    bgcolor=#171717> $status </font></td>";
       echo "</tr>";
     }
    }
    else
    {
       echo "<tr><td><center>There are no recent flights!</td></tr></center>";
    }
    ?>
    </tbody>
    </table>

    Please if someone could check my codes and tell me whats wrong in them.

    Thanks A lot

  6. Just use the code you had at the top it works fine.

    Change:

    <tr> <td align="center">No Flights in Progres</td></tr>

    to:

    <tr> <td colspan="7" align="center">No Flights in Progress</td></tr>

    The code works fine now but look the table gets shorter and does not match the other table sizes. what to do?

  7. <!--
    th {
    color: #ff8710;
    
    font-weight: bolder;
    
    }
    td {
    color: #ff961e;
    
    
    font-weight: normal;
    }
    -->
    </style>
    <h2>Flight Departures Board</h2>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
     <tr>
       <th align="center" style="background-color: #171717; width: 3.5%;"> </th>
       <th width="5%" align="center" style="background-color: #171717;">Flight</th>
       <th width="20%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="25%" align="center" style="background-color: #171717;">Departure</th>
       <th width="25%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="10%" align="center" style="background-color: #171717;">Status</th>
    </tr>
    
    <?php
    
    $results = ACARSData::GetACARSData();
    
    if (!$results){
      foreach($results as $flight){ ?>
         <tr>
             <td align="center"><?php if($flight->phasedetail == "Boarding") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots_blink.gif'>"; } elseif($flight->phasedetail == "Arrived") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots.gif'>"; } elseif($flight->phasedetail == "Taxiing to Runway") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots.gif'>"; } elseif($flight->phasedetail == "On Approach") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots_yellow.gif'>"; } ?></td>
             <td align="center"><?php echo $flight->flightnum;?></td>
             <td align="center"><?php echo $flight->pilotname;?></td>/td>
             <td align="center"><?php echo $flight->depname;?></td>
             <td align="center"><?php echo $flight->arrname;?></td>
             <td align="center"><?php echo $flight->aircraftname;?></td>
             <td align="center"><?php if($flight->phasedetail != 'Paused') { echo $flight->phasedetail; } else { echo "Cruise"; }?></td>
         </tr>
    <?php          
                   }
               } else { ?>
                   <tr> <td align="center">No Flights in Progress</td></tr>
               <?php
               }
               ?>
    </table>

    Try that maybe?

    P.S. (This is probably more to the person who originally wrote the code because I'm sure it's in the snippets forum) Stop using <font> it's so outdated.

    P.P.S. 'Alot' -> 'a lot' ;)

    Does not work

    ERROR

    Warning: Invalid argument supplied for foreach() in ********************* on line 33

  8. Hello All

    Can you guys please check the codes of the following as I think that there is some problem with my codes.

    LIVE FLIGHT BOARD

    Problem that i am facing is that when there are no live flights the message 'there are currently no live flights' does NOT display properly.

    <style type="text/css">
    <!--
    th {
    color: #ff8710;
    
    font-weight: bolder;
    
    }
    td {
    color: #ff961e;
    
    
    font-weight: normal;
    }
    -->
    </style>
    <h2>Flight Departures Board</h2>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
     <tr>
       <th align="center" style="background-color: #171717; width: 3.5%;"> </th>
       <th width="5%" align="center" style="background-color: #171717;">Flight</th>
       <th width="20%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="25%" align="center" style="background-color: #171717;">Departure</th>
       <th width="25%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="10%" align="center" style="background-color: #171717;">Status</th>
    </tr>
    
    <?php
    
    $results = ACARSData::GetACARSData();
    
    if (count($results) > 0)
      {
      foreach($results as $flight)
         {
    
            ?>
         <tr>
             <td align="center"><?php if($flight->phasedetail == "Boarding") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots_blink.gif'>"; } elseif($flight->phasedetail == "Arrived") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots.gif'>"; } elseif($flight->phasedetail == "Taxiing to Runway") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots.gif'>"; } elseif($flight->phasedetail == "On Approach") { echo "<img style='padding-left:3px;' src='http://pias.waleeddc.com/lib/skins/PIAvirtual/images/dots_yellow.gif'>"; } ?></td>
             <td align="center"><?php echo $flight->flightnum;?></td>
             <td align="center"><?php echo $flight->pilotname;?></td>/td>
             <td align="center"><?php echo $flight->depname;?></td>
             <td align="center"><?php echo $flight->arrname;?></td>
             <td align="center"><?php echo $flight->aircraftname;?></td>
             <td align="center"><?php if($flight->phasedetail
       != 'Paused') { echo $flight->phasedetail; }
       else { echo "Cruise"; }?></font></td>
         </tr>
     <?php          
                   }
               } else { ?>
                   <tr> <td align="center">No Flights in Progres</td></tr>
               <?php
               }
               ?>
    </table>

    RECENT FLIGHTS BOARD

    Problem: The status of this board i.e ACCEPTED , REJECTED , PENDIMG does not work properly.

    <center><h2>Recent Arrivals</center></h>
    <table align="center" border="0" width="605px">
    </table>
    <?php
    $count = 10;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
      <thead>
        <tr>
       <th width="7%" align="center" style="background-color: #171717;">Flight#</th>
       <th width="30%" align="center" style="background-color: #171717;">Departure</th>
       <th width="30%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="10%" align="center" style="background-color: #171717;">Landing Rate</th>
       <th width="8%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="5%" align="center" style="background-color: #171717;">Status</th>
        </tr> 	
       </thead>
       <tbody>
    <?php
    if(count($pireps) > 0)
    {
     foreach ($pireps as $pirep)
     {
       $pilotinfo = PilotData::getPilotData($pirep->pilotid);
       $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); 
    
       if($pirep->accepted == '0') $status = 'REJECTED';
       if($pirep->accepted == '1') $status = 'ACCEPTED';
       else $status = 'PENDING'; 
    
       echo "<tr>";
       echo "<td align=center   bgcolor=#171717> $pirep->code-$pirep->flightnum </font></td>";
       echo "<td align=center   bgcolor=#171717> $pirep->depname </font></td>";
       echo "<td align=center  bgcolor=#171717> $pirep->arrname </font></td>";
       echo "<td align=center   bgcolor=#171717> $pilotid $pilotinfo->firstname $pilotinfo->lastname </font></td>";
       echo "<td align=center  bgcolor=#171717> $pirep->landingrate </font></td>";
       echo "<td align=center   bgcolor=#171717> $pirep->aircraft </font></td>";
       echo "<td align=center    bgcolor=#171717> $status </font></td>";
       echo "</tr>";
     }
    }
    else
    {
       echo "<tr><td><center>There are no recent flights!</td></tr></center>";
    }
    ?>
    </tbody>
    </table>

    Please if someone could check my codes and tell me whats wrong in them.

    Thanks A lot

  9. Sorry to say but the flight board i got from phpvms site does NOT contain complete blinking dots. I mean blinking dot signs.

    They are INCOMPLETE that's why i am re-requesting here that if someone could either make me one or something....

    Thanks

  10. I'm not sure how may people out there would be willing to actually do that for FREE...

    Most airlines unless they have as part of the management team a professional repainter then they use a paid service.

    If you want high quality stuff and to make a good appearance of your VA that may be the only way. But most VA owners are constantly having to pay for different things.

    But if you've had a look around you will find repaint services aren't actually that expensive at all...

    Good Luck anyhow :)

    Thanks. Actually i cannot pay anyone for this stuff. thats why wanted to post here so that may be someone will help.

    Hope someone will help thanks.

  11. Hello i am using this code for my recent arrivals board but i am getting the error : Syntax error in line 98

    <center><h2>Recent Arrivals</center></h>
    <table align="center" border="0" width="605px">
    </table>
    <?php
    $count = 10;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
      <thead>
        <tr>
       <th width="7%" align="center" style="background-color: #171717;">Flight#</th>
       <th width="30%" align="center" style="background-color: #171717;">Departure</th>
       <th width="30%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="10%" align="center" style="background-color: #171717;">Landing Rate</th>
       <th width="8%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="5%" align="center" style="background-color: #171717;">Status</th>
        </tr> 	
       </thead>
       <tbody>
    <?php
    if(count($pireps) > 0)
    {
     foreach ($pireps as $pirep)
     {
       $pilotinfo = PilotData::getPilotData($pirep->pilotid);
       $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); 
    
       if($pirep->accepted == '0') $status = 'REJECTED';
       if($pirep->accepted == '1') $status = 'ACCEPTED';
       else $status = 'PENDING'; 
    
       echo "<tr>";
       echo "<td align=center   bgcolor=#171717> $pirep->code-$pirep->flightnum </font></td>";
       echo "<td align=center   bgcolor=#171717> $pirep->depname </font></td>";
       echo "<td align=center  bgcolor=#171717> $pirep->arrname </font></td>";
       echo "<td align=center   bgcolor=#171717> $pilotid $pilotinfo->firstname $pilotinfo->lastname </font></td>";
       echo "<td align=center  bgcolor=#171717> $pirep->landingrate </font></td>";
       echo "<td align=center   bgcolor=#171717> $pirep->aircraft </font></td>";
       echo "<td align=center    bgcolor=#171717> <?php
    
                   if($pirep->accepted == PIREP_ACCEPTED)
                           echo 'Accepted';
                   elseif($pirep->accepted == PIREP_REJECTED)
                           echo 'Rejected';
                   elseif($pirep->accepted == PIREP_PENDING)
                           echo 'Approval Pending';
                   elseif($pirep->accepted == PIREP_INPROGRESS)
                           echo 'Flight in Progress';
    
                   ?>
    
       </font></td>";
       echo "</tr>";
     }
    }
    else
    {
       echo "<tr><td><center>There are no recent flights!</td></tr></center>";
    }
    ?>
    </tbody>
    </table>

    thanks

×
×
  • Create New...