Jump to content

giorgi

Members
  • Posts

    80
  • Joined

  • Last visited

Posts posted by giorgi

  1. well i have uploaded green-status.gif and red-status.gif in images folder but it doesn't shows again well here's my pilots_list.tpl

    <div class="mcright">
    
    <h3><?php echo $title?></h3>
    
    <?php
    
      if(!$allpilots)
    
      {
    
         echo 'There are no pilots!</div>';
    
         return;
    
      }
    
    ?>
    
    <table class="sortable" width="700" cellspacing="1" cellpadding="5" border="1">
     <thead>
       <tr>
         <th width="56px">Pilot ID</th>
         <th width="150px">Name</th>
         <th width="80px">Rank</th>
         <th width="55px">Flights</th>
         <th width="55px">Hours</th>
         <th width="100px">Last Flight</th>
         <th width="55px">Vatsim</th>
         <th width="55px">Ivao </th>
         <th width="65px">Active/Inactive</th>
       </tr>
     </thead>
    
    <tbody>
    
    <?php
    
    foreach($allpilots as $pilot)
    
    {
    
      /* 
    
         To include a custom field, use the following example:
    
    
    
         <td>
    
            <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
    
         </td>
    
    
    
         For instance, if you added a field called "IVAO Callsign":
    
    
    
            echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');
    
       */
    
    ?>
    
    <tr>
    
      <td width="1%" nowrap><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>">
    
            <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
    
      </td>
    
      <td>
    
         <div align="left"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" 
    
            alt="<?php echo Countries::getCountryName($pilot->location);?>" />
    
    
    
             <?php echo $pilot->firstname.' '.$pilot->lastname?>
    
            </div></td>
    
      <td><div align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></div></td>
    
      <td><div align="center"><?php echo $pilot->totalflights?></div></td>
    
      <td><div align="center"><?php echo $pilot->totalhours?></div></td>
    
      <td><div align="center"><?php
    
    //$report = PIREPData::GetLastReports($pilot->pilotid, 1);
    if($pilot->lastpirep  == 0)
    {
           echo 'No data yet';
    }
    else
    {
    $report = PIREPData::GetLastReports($pilot->pilotid, 1);
    
    echo date('d.M.Y', strtotime($report->submitdate));
    }
    
    ?></td>
    
    <td><div align="center">
         <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' );
    if( $fieldvalue != '' )
    {
    echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Vatsim ID" /></a></a>' ;
    } 
    else
    {
    echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ;
    }
    ?>
       </div></td>
    
    
           <td><div align="center">
         <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'IVAO ID' );
    if( $fieldvalue != '' )
    {
    echo '<a href="http://www.ivao.aero/members/person/details.asp?ID='. $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0"  alt="Ivao ID" /></a>' ;
    }
    else
    {
    echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ;
    }
    ?>
       </div></td>
    
    <td><div align="center"><?php
       If ($pilot->retired == 0)
             { echo '<img src="/images/green-status.gif" />'; }
       else
             { echo '<img src="/images/red-status.gif" />'; }
    ?></div></td></div></td>
    
    
    
        <?php
    
    }
    
    ?>
    
      </div>
    
    </tbody>
    
    </table>
    <br />
    </div>

  2. what? :blink: first i couldn't named this topic because i don't have enough time to think, i wan't be here from tomorrow until 15st September. <_< and if you don't going to help just don't post!be a moderator doesn't mean anything :P

×
×
  • Create New...