is_id()) { # RENDEZÉS /* 1 - egyenleg szerint növekvő */ $order_by = 'uk_balance ASC, uk_name ASC'; $url_postfix = '/' . $this->get_id(); } else { # EGYENLEG LISTA $order_by = 'uk_name ASC'; $url_postfix = ''; } $active_kid_assoc_array = $sql->assoc_array('select * from user_kid where uk_deleted = 0 and uk_is_active = 1 order by '. $order_by .';'); $user_kids = array(); foreach ($active_kid_assoc_array as $kid) { $new_kid = new user_kid(); $new_kid->set_user_data_by_id($kid['uk_id']); $user_kids[] = $new_kid; } $smarty->assign('user_kids', $user_kids); $smarty->assign('url_postfix', $url_postfix); $smarty->display('user_balance_list.tpl'); ?>