diff --git a/_class/class_page.php b/_class/class_page.php index 0283087..8a44c7d 100755 --- a/_class/class_page.php +++ b/_class/class_page.php @@ -156,6 +156,10 @@ class page { # BEÁLLÍTÁSOK include('include_settings.php'); break; + case 'balance_list': + # BEÁLLÍTÁSOK + include('include_balance_list.php'); + break; case 'delete_training_type': # EDZÉS TÍPUS TÖRLÉS include('include_delete_training_type.php'); diff --git a/_css/default.css b/_css/default.css index 1e887c2..39ad6b0 100644 --- a/_css/default.css +++ b/_css/default.css @@ -73,6 +73,10 @@ main #loading { text-align: right; } +.float_right { + float: right; +} + .danger { background-color: #ffdddd; border-left: 6px solid #002E4C; diff --git a/_include/include_balance_list.php b/_include/include_balance_list.php new file mode 100644 index 0000000..f913fd9 --- /dev/null +++ b/_include/include_balance_list.php @@ -0,0 +1,27 @@ +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'); + +} + +?> \ No newline at end of file diff --git a/template/templates/money_deposit.tpl b/template/templates/money_deposit.tpl index 133ec65..37438d6 100644 --- a/template/templates/money_deposit.tpl +++ b/template/templates/money_deposit.tpl @@ -1,6 +1,7 @@
diff --git a/template/templates/user_balance_list.tpl b/template/templates/user_balance_list.tpl new file mode 100644 index 0000000..bd68b78 --- /dev/null +++ b/template/templates/user_balance_list.tpl @@ -0,0 +1,13 @@ +
+ {$user->get_uk_name()}
+ {$user->get_uk_balance()|number_format:0:'':' '} Ft
+