Jump to content

Danny

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Posts posted by Danny

  1. The only one i can see if in pilots.php

    public function index()
    {
    	// Get all of our hubs, and list pilots by hub
    	$allhubs = OperationsData::GetAllHubs();
    
    	if(!$allhubs) $allhubs = array();
    
    	foreach($allhubs as $hub)
    	{
    		$this->set('title', $hub->name);
    		$this->set('icao', $hub->icao);
    
    		$this->set('allpilots', PilotData::findPilots(array('p.hub'=>$hub->icao)));
    
    		$this->render('pilots_list.tpl');
    	}
    
    	$nohub = PilotData::findPilots(array('p.hub'=>''));
    	if(!$nohub)
    	{
    		return;
    	}
    
    	$this->set('title', 'No Hub');
    	$this->set('icao', '');
    	$this->set('allpilots', $nohub);
    	$this->render('pilots_list.tpl');
    }

  2. Ok i guess the title makes no sense.

    Well watch the tutorial it shows you how to hide the side bar apart from on the homepage.. I want to make it not show on multiple pages but show on the rest atm i have it like this

    <?php
    if($_GET['module'] == 'profile')
    {
    ?>
    
    <?php
    } else {
    ?> 
    
    <div id="right">
    <h3>Recent Reports</h3>
    
    <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>
    
    <h3>Newest Pilots</h3>
    
    <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>
        
        <h3>Teamspeak Viewer</h3>
        
        <script type="text/javascript" charset="iso-8859-1" src="http://www.tsviewer.com/ts_viewer_pur.php?ID=907838&bg=transparent&type=8f8f8f&type_size=11&type_family=1&info=1&channels=1&users=1&js=1&type_s_color=000000&type_s_weight=bold&type_s_style=normal&type_s_variant=normal&type_s_decoration=none&type_s_color_h=525284&type_s_weight_h=bold&type_s_style_h=normal&type_s_variant_h=normal&type_s_decoration_h=underline&type_i_color=000000&type_i_weight=normal&type_i_style=normal&type_i_variant=normal&type_i_decoration=none&type_i_color_h=525284&type_i_weight_h=normal&type_i_style_h=normal&type_i_variant_h=normal&type_i_decoration_h=underline&type_c_color=000000&type_c_weight=normal&type_c_style=normal&type_c_variant=normal&type_c_decoration=none&type_c_color_h=525284&type_c_weight_h=normal&type_c_style_h=normal&type_c_variant_h=normal&type_c_decoration_h=underline&type_u_color=000000&type_u_weight=normal&type_u_style=normal&type_u_variant=normal&type_u_decoration=none&type_u_color_h=525284&type_u_weight_h=normal&type_u_style_h=normal&type_u_variant_h=normal&type_u_decoration_h=none&skin=ts2_classic"></script><noscript>Enable JavaScript or visit</noscript>
    
    <h3>Users Online<br />
         <?php
    $usersonline = StatsData::UsersOnline();
    $guestsonline = StatsData::GuestsOnline();
    
    ?>
        </h3>
       <h4 class="style6">Pilots Online </h4>
                   <?php
           foreach($usersonline as $pilot)   
    
       {
    
          echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />';
          echo " {$pilot->firstname} {$pilot->lastname}<br />"; 
    
       }
    
    
       ?>
                   <br />
                   There's <?php echo count($usersonline);?> Pilot(s) Online.
                   <h4 class="style3">Guests Online </h4>
                   <p class="txt-red10"> There's <?php echo count($guestsonline);?> Guest(s) Online.
    </div>
    <?php 
    }
    ?>  

    Any ideas of this is possible

  3. This is the code there currently.

    <?php $roster = PilotData::getAllPilots();  ?>
    <?php
       if(!$roster)
       {
          echo 'There are no pilots!';
          return;
       }
    ?>
    <table id="tabledlist" class="tablesorter">
    <thead>
    <tr>
       <th>Pilot ID</th>
       <th>Name</th>
       <th>Rank</th>
       <th>Flights</th>
       <th>Hours</th>
       <th>HUBs</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($roster as $pilot) { ?>
    <tr>
       <td width="1%" nowrap>
           <img src="<?php echo Countries::getCountryImage($pilot->location);?>"
             alt="<?php echo Countries::getCountryName($pilot->location);?>" />
      <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>
    
             
          <center><?php echo $pilot->firstname.' '.$pilot->lastname?></center>
       </td>
       <center><td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td></center>
       <center><td><?php echo $pilot->totalflights?></td></center>
       <center><td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td></center>
       <center><td><?php echo $pilot->hub?></td></center>
    </tr>
    <?php } ?>
    </tbody>
    </table>

  4. I have emailed them yes and i am waiting for a reply the domain is only a small cost so if i have to change name then thats fine to me :)

    I tried that Mitchell But all i got was

    There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!

×
×
  • Create New...