added set credit to zero option
This commit is contained in:
@@ -264,6 +264,10 @@ class page {
|
|||||||
# GYEREKLISTA EXPORTÁLÁSA
|
# GYEREKLISTA EXPORTÁLÁSA
|
||||||
include('include_export_users.php');
|
include('include_export_users.php');
|
||||||
break;
|
break;
|
||||||
|
case 'set_credit_to_zero':
|
||||||
|
# HITELALKALOM NULLÁZÁS
|
||||||
|
include('include_set_credit_to_zero.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');
|
||||||
|
|||||||
14
_include/include_set_credit_to_zero.php
Normal file
14
_include/include_set_credit_to_zero.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# HITELALKALOM NULLÁZÁS
|
||||||
|
|
||||||
|
if ($this->is_id()) {
|
||||||
|
$sql->update_table("user_kid", array(
|
||||||
|
"uk_credit" => 0,
|
||||||
|
), array(
|
||||||
|
"uk_id" => $this->get_id(),
|
||||||
|
));
|
||||||
|
|
||||||
|
header("Location: /admin/members/{$this->get_id()}");
|
||||||
|
}
|
||||||
|
?>
|
||||||
@@ -231,6 +231,7 @@ elseif ($_GET['page'] == 'taborvezeto' && (isset($_COOKIE['badminton_camp_leader
|
|||||||
}
|
}
|
||||||
|
|
||||||
$smarty->assign('can_logout', $logout);
|
$smarty->assign('can_logout', $logout);
|
||||||
|
$smarty->assign('maxCredit', $sql->single_variable("SELECT setv_int FROM setting_value WHERE setv_setting_set_id = 5"));
|
||||||
|
|
||||||
//$page = new page();
|
//$page = new page();
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,12 @@
|
|||||||
<div style="padding-top: 6px;">{{$user_data.uk_balance|number_format:0:'':' '}} Ft</div>
|
<div style="padding-top: 6px;">{{$user_data.uk_balance|number_format:0:'':' '}} Ft</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label>Hitelalkalom:</label>
|
||||||
|
<div style="padding-top: 6px;">{$user_data.uk_credit|number_format:0:'':' '}/{$maxCredit}</div>
|
||||||
|
<div style="margin-top: 6px;"><a class="addbutton small" href="/admin/set_credit_to_zero/{$user_data.uk_id}">Nullázás</a></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="padding-bottom: 15px; border-bottom: 1px solid;">
|
<div style="padding-bottom: 15px; border-bottom: 1px solid;">
|
||||||
{if $user_data.uk_balance}
|
{if $user_data.uk_balance}
|
||||||
<label>Lejár:</label>
|
<label>Lejár:</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user