added balance list menu
This commit is contained in:
@@ -156,6 +156,10 @@ class page {
|
|||||||
# BEÁLLÍTÁSOK
|
# BEÁLLÍTÁSOK
|
||||||
include('include_settings.php');
|
include('include_settings.php');
|
||||||
break;
|
break;
|
||||||
|
case 'balance_list':
|
||||||
|
# BEÁLLÍTÁSOK
|
||||||
|
include('include_balance_list.php');
|
||||||
|
break;
|
||||||
case 'delete_training_type':
|
case 'delete_training_type':
|
||||||
# EDZÉS TÍPUS TÖRLÉS
|
# EDZÉS TÍPUS TÖRLÉS
|
||||||
include('include_delete_training_type.php');
|
include('include_delete_training_type.php');
|
||||||
|
|||||||
@@ -73,6 +73,10 @@ main #loading {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.float_right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
.danger {
|
.danger {
|
||||||
background-color: #ffdddd;
|
background-color: #ffdddd;
|
||||||
border-left: 6px solid #002E4C;
|
border-left: 6px solid #002E4C;
|
||||||
|
|||||||
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');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
|
||||||
<a href="/admin/create/money_deposit" class="addbutton add-big">Új befizetés</a>
|
<a href="/admin/create/money_deposit" class="addbutton add-big">Új befizetés</a>
|
||||||
|
<a href="/admin/balance_list" class="addbutton add-big">Egyenleg lista</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
13
template/templates/user_balance_list.tpl
Normal file
13
template/templates/user_balance_list.tpl
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<div class="list">
|
||||||
|
{foreach $user_kids as $user}
|
||||||
|
<a href="#">
|
||||||
|
<div class="list_item">
|
||||||
|
<img src="/_image/shuttlecock.png">
|
||||||
|
{$user->get_uk_name()}
|
||||||
|
<span class="float_right">{$user->get_uk_balance()|number_format:0:'':' '} Ft</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
Reference in New Issue
Block a user