function adopted_childs($parent) { global $smarty; $rel_types = ADMIN_CHILDREN::get_rel_types($parent); $childs_arr = ADMIN_CHILDREN::get_children_data($parent, $rel_types); $smarty->assign("childs_arr", $childs_arr); $smarty->assign("parent", $parent); $smarty->display('admin_add_children.tpl'); }