Пример #1
0
                            <th class="aa">Seats</th>
                            <th class="aa">Weights</th>
                            <th class="aa">Multiple Stops?</th>
                            <th class="aa">Comments</th>
                          </tr>
                      </thead>
                      <tbody>

                      <?php 
    foreach ($requests_of_this_date as $rq) {
        $member_id = $rq->getMemberId();
        $pilot_req = PilotRequestPeer::retrieveByPK($rq->getPilotRequestId());
        $pilot = PilotPeer::getByMemberId($member_id);
        if (isset($pilot) && $pilot instanceof Pilot) {
            $person = $pilot->getMember()->getPerson();
            $pilot_aircraft = PilotAircraftPeer::getPrimary($member_id);
            #pilot's aircraft
            if (isset($pilot_aircraft) && $pilot_aircraft instanceof PilotAircraft) {
                $aircraft = $pilot_aircraft->getAircraft();
            }
        }
        ?>
                      <?php 
        if (isset($pilot) && $pilot instanceof Pilot) {
            ?>
                          <tr>
                          <td  class="aa"><?php 
            if (isset($person) && $person instanceof Person) {
                echo $person->getLastName() . ' ' . $person->getFirstName();
            }
            ?>