Jump to content

flyalaska

Members
  • Posts

    1941
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by flyalaska

  1. Try this! Just edit the button class to your own if you don't have Bootstrap 4.

     

    <?php
    $count = 10;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    <table class="table table-striped mt30" width="100%" cellspacing="0">
        <tr>
            <th>Flight</th>
            <th>Departure</th>
            <th>Arrival</th>
            <th>Aircraft</th>
            <th>Duration</th>
            <th>Landing</th>
            <th>Status</th>
    	</tr>
    <?php
    if(count($pireps) > 0)
    {
      foreach ($pireps as $pirep)
      {
        $pilotinfo = PilotData::getPilotData($pirep->pilotid);
        $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
        $acrid = OperationsData::getAircraftByReg($pirep->registration);
    
        echo '<tr>';
        echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>';
        echo '<td>'.$pirep->depicao.'</td>';
        echo '<td>'.$pirep->arricao.'</td>';
        echo '<td>'.$pirep->aircraft.'</td>';
        echo '<td>'.$pirep->flighttime.'</td>';
        echo '<td>'.$pirep->landingrate.' ft/m</td>';
    
    if($pirep->accepted == PIREP_ACCEPTED)
    
    echo '<td><button type="button" class="btn btn-outline btn-success btn-xs mb-2">Flight Approved</button></td>';
    
                                    elseif($pirep->accepted == PIREP_REJECTED)
    
    echo '<td><button type="button" class="btn btn-outline btn-danger btn-xs mb-2">Flight Rejected</button></td>';
    
                                    elseif($pirep->accepted == PIREP_PENDING)
    
    echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">Approval Pending</button></td>';
    
                                    elseif($pirep->accepted == PIREP_INPROGRESS)
    
    echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">On Progress</button></td>';
        echo '</tr>';
      }
    }
    else
    {
        echo '<tr><td>There are no recent flights!</td></tr>';
    }
    ?>
    </tbody>
    </table>
    <div class="clear"></div>
    <div class="clear"></div>

     

  2. 4 hours ago, seatbackpocket said:

    I just got done getting SkyBlue setup and so far so good. I went to do some trial review (incognito browser) and was surprised to discover the site looked completely different.

    IMGUR link of site when authenticated - https://imgur.com/uDAE9xx

    IMGUR link of site when un-authenticated - https://imgur.com/rQQwJxw

    URL of VA - http://allegiantvirtual.org

    I've clearly setup something incorrectly but I'm unsure what I did, followed the documentation to the letter.

    You dont have any data in touchdown stats. Make a manaul pirep and edit the table to add a negative landing or edit a existing PIREP.

  3. 10 hours ago, sayedzaafir said:

    can anyone tell me how to get the dept airport and arr airport of last flown flight and the flight time

     

    thank you

    I just have the last flight date.

    <?php echo date('m/d/Y', strtotime($userinfo->lastpirep));?>

     

  4. On 2/4/2019 at 9:42 PM, Nabeel said:

    Installed the new plugin... hopefully it will be better now

    Is your IPB license current? They have a strong spam block with IPB, need to have the license current.I would get spam all the time when I let mine go for a bit. 

  5. On 12/31/2018 at 6:34 PM, ATACEO said:

    Hello flyalaska, thanks for your reply.  Sorry it has taken me sop long to reply however I have been out of the FlightSim loop for a good while now.  Anyways I am starting the VA back up again and am once again trying to get the site up and running as well as using this Skin.  Yes the VA is under MAJOR construction and will be for some time however here is the URL you requested - http://www.ata-virtual.com/index.php

     

    Thanks in advance for your help.

    Glad you got the dimensions fixed. You have another issue with google maps. Not your fault. Google put the screws to everyone last summer. You either have to put a credit card on file, or get a new map.

     

  6. 2 minutes ago, ATACEO said:

    Hello flyalaska, thanks for your reply.  Sorry it has taken me sop long to reply however I have been out of the FlightSim loop for a good while now.  Anyways I am starting the VA back up again and am once again trying to get the site up and running as well as using this Skin.  Yes the VA is under MAJOR construction and will be for some time however here is the URL you requested - http://www.ata-virtual.com/index.php

     

    Thanks in advance for your help.

    You need to change the map dimensions. Go in local.config and change the map width.The readme states the dimensions needed.

  7. I didn't notice the full url until now.

    Replace

    <a href="http://pacificair-virtual.com/index.php/Join"><strong>Join Today!</strong></a>

    with

    <a href="<?php echo url('/Join'); ?>"><strong>Join Today!</strong></a>

     

×
×
  • Create New...