Ejemplo n.º 1
0
                   <th></th>
                   <th>Name</th>
                   <th></th>
                   <th>Location</th>
                   <th>Weights</th>
                   <th>Comments</th>
                   <th>Distance</th>
                 </tr>
                 </thead>
                 <tbody>
                 <?php 
 $passengers = array();
 $linked_passengers = array();
 $cc = 0;
 foreach ($missions as $miss) {
     $legs = MissionLegPeer::getbyMissIdNoPilotId($miss->getId());
     if ($legs && isset($legs) && $miss->getMissionDate('m/d/Y') == $key) {
         $passengers[$cc] = $miss->getPassengerId();
         $cc++;
     }
 }
 if (isset($passengers)) {
     ?>
                 <?php 
     for ($u = 0; $u < count($passengers); $u++) {
         //if passenger is linked and listed already, dont show
         $print = true;
         foreach ($linked_passengers as $key => $value) {
             if ($passengers[$u] == $value) {
                 $print = false;
                 break;