added balance list menu
This commit is contained in:
27
_include/include_balance_list.php
Normal file
27
_include/include_balance_list.php
Normal 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');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user