Copy and paste this in pirep_viewreport.tpl where you want to display it
What it does in each pirep view it displays a line
Rank Control: Min rank for B737-800 is First Office Pilots Rank is New Hire
Basec on the airplane and pilots rank
<li><strong>Rank Control: </strong>
<?php $acinfo=(OperationsData::getAircraftByReg($pirep->registration));
$acrankname=RanksData::GetRankInfo($acinfo->minrank);
$pilotInfo= PilotData::getPilotData($pirep->pilotid);
$pilotrank=$pilotInfo->rank ;
echo "Min rank for ",$pirep->aircraft," is ",$acrankname->rank," Pilots Rank is ",$pilotrank ;?></li>
Small demo
http://www.baggelis.com/phpvms/index.php/pireps/view/46