get_logic(); $relation =& $game->get_action('R'); //viewarr($_POST); if (isset($_POST['group_relation_id'])) { //if ( $relation =& $game->get_action('R', $_POST['group_relation_id']) ) { if ( $relation->set_id($_POST['group_relation_id']) and $relation->commit()) { //$compObj = include('page.grouprel.php'); //$compObj->compose($parent_tpl, $relation, $place); $this->add_comp('relation', NULL, $relation); return; } //veateate määramine ja väljastatakse uuesti see sama leht siin all koos teatega } $this->def_tplfile('relations.tpl.php'); //$this = & new Template('body.groups.tpl.php'); //$parent_tpl->add_template($place, $this); //siin on $relation kui infopäring, mitte kui grupisuhe (ta on initsialiseerimata) $this->set('name', $relation->name); $this->set('heading', $relation->heading); $this->set('description', $relation->description); $this->set('weeks', $relation->time_cost); $this->set('message', $relation->message); $list = & new ListView('listview.tpl.php'); $list->set_items($game->get_action_items('R')); //$list->set_items($game->get_group_relations()); $list->set('headerLabelsMap', array('relation_name'=>'Rühmad','group_relation_id'=>'','infocard'=>'vaadatud')); $list->set('inputTypeMap', array('group_relation_id'=>'radio')); $this->set('list', $list->render()); } } ?>