added balance list menu

This commit is contained in:
Ricsi
2017-02-14 19:53:20 +01:00
parent 7080ef002c
commit 75dafb1656
5 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
# HA NINCS ID, AKKOR EGYENLEGLISTA
# HA VAN ID, AKKOR EMPTY
if ($this->is_id()) {
# EMPTY
}
else {
# EGYENLEG LISTA
$active_kid_assoc_array = $sql->assoc_array('select * from user_kid where uk_deleted = 0 and uk_is_active = 1 order by uk_name asc;');
$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->display('user_balance_list.tpl');
}
?>