# Pax and cargo to your briefing

**URL:** <https://forum.phpvms.net/t/pax-and-cargo-to-your-briefing/11661>\
**Category:** Code Snippets\
**Created:** [February 23, 2017, 7:14pm UTC](https://forum.phpvms.net/t/pax-and-cargo-to-your-briefing/11661 "2017-02-23T19:14:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProSkyDesign](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proskydesign/32/1019_2.png) [@ProSkyDesign](https://forum.phpvms.net/u/ProSkyDesign)\
**Post date:** [February 23, 2017, 7:14pm UTC](https://forum.phpvms.net/t/pax-and-cargo-to-your-briefing/11661/1 "2017-02-23T19:14:30Z")

</div>

Hi, I wanna share my code that I’m using to the briefing to my pilots.

This code display the pax and cargo that they will use to their flight.&nbsp;

It incluides Cargo and Passengers flight.

```
\<div class="col-md-4"\> \<table style="width: 100%"\> \<tr\> \<td class="auto-style12"\>\<span class="auto-style26"\>\<strong\> \<?php if($schedule-\>flighttype == "P") { echo "Pasajeros:"; } else if($schedule-\>flighttype == "C") { echo "Carga (KG):"; } ?\>\</strong\>\</span\> \<span class="auto-style26"\>\<?php $allaircraft = OperationsData::GetAllAircraft(true); foreach($allaircraft as $aircraft) if($aircraft-\>registration == $schedule-\>registration) { if($schedule-\>flighttype == "P"){ echo round($aircraft-\>maxpax \* 0.80, 0);} else if($schedule-\>flighttype == "C"){ echo round($aircraft-\>maxcargo \* 0.80, 0) ;} } ?\>\</td\> \</span\>\</td\> \</tr\> \<tr\> \<td class="auto-style26"\>\<strong\>\<?php if($schedule-\>flighttype == "P") { echo "Carga (KG):"; } else if($schedule-\>flighttype == "C") { echo "Pasajeros:"; } ?\>\</strong\>\</span\> \<span class="auto-style26"\>\<?php $allaircraft = OperationsData::GetAllAircraft(true); foreach($allaircraft as $aircraft) if($aircraft-\>registration == $schedule-\>registration) { if($schedule-\>flighttype == "P"){ echo round($aircraft-\>maxcargo \* 0.30, 0);} else if($schedule-\>flighttype == "C"){ echo '0';} } ?\>\</td\> \</tr\> \</table\> \</div\>

```

Put the code in: “/core/templates/schedule\_briefing.tpl”
