Jump to content

PIAS2011

Members
  • Posts

    110
  • Joined

  • Last visited

Posts posted by PIAS2011

  1. Hi

    My VA is unable to send VA PIREP logs to VACENTRAL.NET here is the error ;

    FAILED exporting PIREP #18 - No response from API server
    FAILED exporting PIREP #17 - No response from API server
    FAILED exporting PIREP #16 - No response from API server
    FAILED exporting PIREP #15 - No response from API server
    FAILED exporting PIREP #14 - No response from API server
    FAILED exporting PIREP #13 - No response from API server
    FAILED exporting PIREP #12 - No response from API server
    FAILED exporting PIREP #11 - No response from API server
    FAILED exporting PIREP #10 - No response from API server
    FAILED exporting PIREP #7 - No response from API server
    FAILED exporting PIREP #6 - No response from API server
    FAILED exporting PIREP #5 - No response from API server
    FAILED exporting PIREP #4 - No response from API server
    FAILED exporting PIREP #3 - No response from API server
    FAILED exporting PIREP #2 - No response from API server
    FAILED exporting PIREP #1 - No response from API server
    Completed

    • Like 1
  2. Just do what i did and make the things.

    I made the blinking green and yellow dots a couple of years ago, just take them from my site.

    Cant access your site as i need to REGISTER inorder to view the site. Can u attach them here or something thanks.

  3. in this code it looks like everything is ok but THE PROBLEM IS HERE

    in this part of it the status is being displayed wrong when i reject a pirep it shows pending.

     <?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>

  4. I did say look here ;

    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

×
×
  • Create New...