Jump to content

SkilledPilotA320

Members
  • Posts

    63
  • Joined

  • Last visited

Posts posted by SkilledPilotA320

  1. Well...without you posting any information of what LINE 21 is :blink: then maybe you can check your code against mine to see what your problem may be.

    <?php
    if(Auth::LoggedIn() == false)
    {
      echo 'You must be logged in to view this page!';
      return;
    }
    ?>
    <?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/
    ?>
    <table width="100%" border="1" bgcolor="#042233">
       <tr>
           <td align = "center"><b><font color="#CCCCCC">Pilot</b></td>
           <td align = "center"><b><font color="#CCCCCC">Aircraft</b></td>
           <td align = "center"><b><font color="#CCCCCC">Arrival Field</b></td>
           <td align = "center"><b><font color="#CCCCCC">Landing Rate</b></td>
           <td align = "center"><b><font color="#CCCCCC">Date Posted</b></td>
       </tr>
    <?php
       foreach($stats as $stat)
       {
           $pilot = PilotData::getPilotData($stat->pilotid);
           $aircraft = OperationsData::getAircraftInfo($stat->aircraft);
           echo '<tr>';
           echo '<td align = "center"><font color="#CCCCCC">'.PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname.'</td>';
           echo '<td align = "center"><font color="#CCCCCC">'.$aircraft->fullname.'</td>';
           echo '<td align = "center"><font color="#CCCCCC">'.$stat->arricao.'</td>';
           echo '<td align = "center"><font color="#CCCCCC">'.$stat->landingrate.'</td>';
           echo '<td align = "center"><font color="#CCCCCC">'.date(DATE_FORMAT, strtotime($stat->submitdate)).'</td>';
           echo '</tr>';
       }
    ?>
    </table>

    You do not need to have this code in there. I just use it for members eyes only.

    <?php
    if(Auth::LoggedIn() == false)
    {
      echo 'You must be logged in to view this page!';
      return;
    }
    ?>

    THNXXXXX!!!! WORKED FOR ME :))))

  2. Warning: Invalid argument supplied for foreach() in /home1/akariyou/public_html/aivirtual/core/templates/tp_index.tpl on line 24

    Warning: Invalid argument supplied for foreach() in /home1/akariyou/public_html/aivirtual/core/templates/tp_index.tpl on line 42

    What is this?.. please help me!

  3. Error for me,

    some thing comes like this -

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'PopUpNews::popupnewsitem' was given in /home1/akariyou/public_html/aivirtual/core/classes/MainController.class.php on line 218

    PLEASE HELP ME, I DONT HAVE ANY IDEA!

  4. Hi,

    i uploaded and did every stuffs in phpvms, but now i want to edit the template.. do any one help me pls?... i want immediate help.. i had saved all the Flights Schedules and many things.. pls help me in creating the template,,

    looking forward,

    afsalzain

×
×
  • Create New...