Jump to content

piper338

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by piper338

  1. Hi everyone,

    I wanted to throw out the idea we are trying to implement over at my VA as far as the ranking system goes.  I wanted to see what is the best/easiest way of going about this.

    Here we go..

    All pilots will be hired on as a NEW HIRE and progress up through the ranks based only on the hours flow with our VA.  "That's the easy part"

    Upon completion of our application the pilot will be given an Entry Exam, based on this score pilots will be placed on different aircraft.

    ex. Score>70 A/C= B1900

          Score 71-85 A/C= E145

          Score 86-100 A/C= 737 & DC9

    (So a person with a score off 100% with 0hrs with our VA will be ranked as a 737 New Hire)

    Of course a person assigned a higher ranking aircraft will be able to fly the lower airplanes as well.  And to Progress, we will have Type rating Exams for other airplanes.

    So I hope I explained that well enough. Here is my question what would be the easiest way to do this lol.  They Rank is easy I can just set PHPVMS to not count Xfer hours towards the ranks. The aircraft is the hard part.  I am thinking about just renaming the Awards to something Like Category or something and store this info there.  Here it would be up to the person approving pireps to notice what CAT a person is in to approve or deny pireps.

    Is this the easiest way to do it? Is there a better way? I would love to hear anyone's suggestions.

    Thanks!

    Chad C.

  2. Hey guys, I didn't want to have to ask here, but our guy fell of the face of the earth and we need a few repaints. Anyone know who does them?

    I'm willing to pay via paypal. I have 2 maybe 3 planes that need done.  737, B1900, and I would like to redo our E145 send me your estimates if your interested.

    Thanks!

    Chad C.

  3. Yeah i guess so, my website will stay the same. I'm just planning to make my website more better.

    Please don't use flash to make your website "More better" a few flash elements fine, but nothing gets on my nerves more than a 100% flash site.

    But hey, I'm just one person.

  4. Well the css you can ignore I should have that in an external style sheet... it is just in my .tpl though...

    Now the error. I am not sure that was just copied out of the old (frontpage_reports.tpl)

    <?php
    if(!$reports)
    {
       echo 'No reports have been filed';
       return;
    }
    
    foreach($reports as $report)
    {
    ?>

    Maybe someone better with php could help us out here?

  5. I'm probably the wrong guy to be giving advise, but here is how I did it.

    First copy frontpage_reports.tpl to your skin folder. 

    I edited mine to look like this

    <style type="text/css">
    
    a:link {
    color: ##FFCC33;
    }
    a:visited {
    color: ##FFCC33;
    }
    a:hover {
    color: ##FF9933;
    }
    a:active {
    color: ##FF9933;
    }
    .style2 {color: #FFFFFF}
    .style3 {color: #000000; }
    </style>
    
    
      <table width="100%" class="tablesorter" id="tabledlist">
        <thead>
        <td colspan="6">
          <div align="center"><img src="<?php echo SITE_URL?>/lib/skins/valujet2/images/arrivals.png">      </div></td>
        <tr>
          <th bgcolor="#666666"><div align="center" class="style2">Flight Number</div></th>
          <th bgcolor="#666666"><div align="center" class="style2">Depart</div></th>
          <th bgcolor="#666666"><div align="center" class="style2">Arrive</div></th>
          <th bgcolor="#666666" class="style2">Pilot Name</th>
          <th bgcolor="#666666"><div align="center" class="style2">Aircraft</div></th>
          <th bgcolor="#666666"><div align="center" class="style2">Flight Time</div></th>
          </tr>
        </thead>
        <tbody>
    <?php
    if(!$reports)
    {
    echo 'No reports have been filed';
    return;
    }
    
    foreach($reports as $report)
    {
    ?>
          <tr>
            <td align="center" bgcolor="#CCCCCC"><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><a href="<?php echo url('/pireps/view/'.$report->pirepid);?>" class="style3"><img src="<?php echo SITE_URL?>/lib/skins/valujet2/images/smallplane.png"></a></td>
              </tr>
            </table>          <a href="<?php echo url('/pireps/view/'.$report->pirepid);?>" class="style3"><?php echo $report->code . $report->flightnum; ?></a> </td>
            <td align="center" bgcolor="#CCCCCC"><span class="style1 style3"><?php echo $report->depicao; ?></span></td>
            <td align="center" bgcolor="#CCCCCC"><span class="style1 style3"><?php echo $report->arricao; ?></span></td>
            <td align="center" bgcolor="#CCCCCC"><a href="<?php echo url('/profile/view/'.$report->pilotid);?>"><?php echo $report->firstname . ' ' . $report->lastname?></td>
            <td align="center" bgcolor="#CCCCCC"><span class="style1 style3"><?php echo $report->aircraft . " ($report->registration)"; ?></span></td>
            <td align="center" bgcolor="#CCCCCC"><span class="style1 style3"><?php echo $report->flighttime; ?> Hours</span></td>
          </tr>
          <?php
    }
    ?>
        </tbody>
      </table>
    
      

    Then Just place  this where ever you want it to be displayed

    <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

    Someone correct me if I'm wrong. There might be a more correct way to do it.

    • Like 1
  6. VATSIM ID is how it is in the field, I changed it from Vatsim ID to VATSIM ID

    <h3><?php echo $title?></h3>
    
    <?php
    if(!$allpilots)
    {
    	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>Vatsim ID</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 url('/profile/view/'.$pilot->pilotid);?>">
    		<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
    </td>
    <td>
    	<img src="<?php echo Countries::getCountryImage($pilot->location);?>" 
    		alt="<?php echo Countries::getCountryName($pilot->location);?>" />
    
    	<?php echo $pilot->firstname.' '.$pilot->lastname?>
    </td>
    <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
    <td><?php echo $pilot->totalflights?></td>
    <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
        <td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?></td>
    <?php
    }
    ?>
    </tbody>
    </table>

  7. Hey guys thanks for trying to help me, but I still cant get it through my head what/Where I need to Edit the following.

    I added

    <td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'Vatsim ID')?></td>

    as that is what is commented to do...

    <h3><?php echo $title?></h3>
    
    <?php
    if(!$allpilots)
    {
    	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>VATSIM ID</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 url('/profile/view/'.$pilot->pilotid);?>">
    		<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
    </td>
    <td>
    	<img src="<?php echo Countries::getCountryImage($pilot->location);?>" 
    		alt="<?php echo Countries::getCountryName($pilot->location);?>" />
    
    	<?php echo $pilot->firstname.' '.$pilot->lastname?>
    </td>
    <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
    <td><?php echo $pilot->totalflights?></td>
    <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
        <td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'Vatsim ID')?></td>
        </tr>
    <?php
    }
    ?>
    </tbody>
    </table>

×
×
  • Create New...