</tr> <!-- End: Add row for new additional name --> <!-- List of existing additional names --> <?php if (is_object($this->item)) { $names = $this->item->getPersonNames(); if (count($names)) { $k = 4; for ($i = 0, $n = count($names); $i < $n; $i++) { $name =& $names[$i]; $namCnt = $name->orderNumber > $namCnt ? $name->orderNumber : $namCnt; ?> <!-- Row for one existing additional name --> <?php echo FormHelper::getNameEventRow(true, 'personName', $this->form, $this->item, $name, $this->lists['appId'], null); ?> <!-- End: Row for one existing additional name --> <?php $k = 7 - $k; } } } ?> <!-- End: List of existing additional names --> </tbody> <!-- End: tabel body for additional names --> </table> <!-- End: Additional names -->
</tr> <!-- End: Add row for new event --> <!-- List of existing events --> <?php if (is_object($this->item)) { $events = $this->item->getPartnerEvents($this->relation->id, $this->relation->living); if (count($events)) { $k = 4; for ($i = 0, $n = count($events); $i < $n; $i++) { $event =& $events[$i]; $evtCnt = $event->orderNumber > $evtCnt ? $event->orderNumber : $evtCnt; ?> <!-- Row for one existing event --> <?php echo FormHelper::getNameEventRow(true, 'relationEvent', $this->form, $this->item, $event, $this->lists['appId'], $this->relation->id); ?> <!-- End: Row for one existing event --> <?php $k = 7 - $k; } } } ?> <!-- End: List of existing events --> </tbody> <!-- End: tabel body for events --> </table> <!-- End: Events -->