Salem Posted August 18, 2018 Report Share Posted August 18, 2018 (edited) Good day all, You would like show the data " payadjsut" on view all pirep page ( pirep_list.php). But that tells me 0. Will you have a problem regarding this problems. <?php foreach($pireps as $pirep) { if($pirep->accepted == PIREP_PENDING) $td_class = 'pending'; else $td_class = ''; $error = false; $schedule = SchedulesData::getScheduleByFlight($pirep->code, $pirep->flightnum); ?> <tr class="<?php echo $class?> pirep_list" id="row<?php echo $pirep->pirepid;?>"> <td align="center" valign="top" nowrap="nowrap" style="width: 27px;" class="<?php echo $td_class;?>"> <img height="25px" width="25px" src="<?php echo PilotData::GetPilotAvatar($pirep->pilotid);?>" align="left" /> </td> <td align="left" valign="top" nowrap class="<?php echo $td_class;?>"> <strong><a href="<?php echo SITE_URL?>/admin/index.php/pilotadmin/viewpilots?action=viewoptions&pilotid=<?php echo $pirep->pilotid;?>"> <?php echo PilotData::GetPilotCode($pirep->pcode, $pirep->pilotid) . ' - ' .$pirep->rank .'--' .$pirep->firstname .' ' . $pirep->lastname;?></a></strong></br></br> <strong>Flight:</strong> <?php echo $pirep->code . $pirep->flightnum ; ?></div> <strong>Dep/Arr: </strong><?php echo $pirep->depicao; ?>/<?php echo $pirep->arricao; ?> <strong>FL: </strong><?php echo $schedule->flightlevel; ?><font color="#FFFFFF">------</font><strong>Point(s) without bonus: </strong><b><font color="#FF0000"><?php echo $schedule->payforflight; ?></font></b></br></br> <strong>Estimation Enroute Time (EET): </strong><b><font color="#2E2EFE"><?php echo $schedule->flighttime; ?></font><font color="#FFFFFF">------</font><strong>Time flown: </strong><b><font color="#04B404"><?php echo $pirep->flighttime; ?></font><font color="#FFFFFF">------</font><b><font color="#FFFFFF">------</font></br></br> <strong>Landing rate: </strong><b><font color="#FF8000"><?php echo $pirep->landingrate; ?></font> </br></br> <strong> Payadjust </strong><b><font color="#04B404"><?php echo sprintf("%.00f", $pirep->payadjust); ?></font>        </br></br> Thanking you in advance Best regards Edited August 18, 2018 by Salem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.