def_tplfile('relation.tpl.php'); //$body = & new Template('body.grouprel.tpl.php'); //$parent_tpl->add_template($place, $body); $relation =& $this->get_logic(); $personlist =& new ListView('listview.tpl.php'); //$body->set('personlist', $personlist->render()); //$body->set('groups', $relation->get_groups() ); $this->set('name', $relation->name ); $groups = $relation->groups; foreach ($groups as $group_id => $group) { $personlist->set_items($group['members']); $personlist->set('headerLabelsMap', array('name'=>'nimi','profname'=>'amet')); $groups[$group_id]['listing'] = $personlist->render(); } $this->set('groups', $groups ); } } ?>