added credits
This commit is contained in:
@@ -129,6 +129,8 @@ if ($this->is_id()) {
|
||||
$s_users[] = $s_user;
|
||||
}
|
||||
|
||||
//lekérjük a hitelalkalom beállítást
|
||||
$credit = $sql->single_variable("SELECT setv_int FROM setting_value JOIN setting ON setv_setting_set_id = set_id WHERE set_name = 'Hitelalkalom';");
|
||||
|
||||
|
||||
$smarty->assign('training', $training);
|
||||
@@ -141,12 +143,11 @@ if ($this->is_id()) {
|
||||
$smarty->assign('sorted_users', $s_users);
|
||||
$smarty->assign('rest_users', $rest_users);
|
||||
$smarty->assign('tr_id', $this->get_id());
|
||||
$smarty->assign('has_credit', $credit !== null);
|
||||
$smarty->assign('credit', $credit);
|
||||
|
||||
$smarty->display("presence.tpl");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user