shirt and money update fix
This commit is contained in:
@@ -16,7 +16,7 @@ else {
|
||||
|
||||
# TÁBORI PÓLÓ LISTA
|
||||
|
||||
$camp_shirt_query = "SELECT * FROM camp_shirt WHERE cshirt_deleted = 0 ORDER BY cshirt_name ASC";
|
||||
$camp_shirt_query = "SELECT * FROM camp_shirt WHERE cshirt_deleted = 0 ORDER BY cshirt_id DESC";
|
||||
$shirt_assoc_array = $sql->assoc_array($camp_shirt_query);
|
||||
|
||||
$smarty->assign('shirt_assoc_array',$shirt_assoc_array);
|
||||
|
||||
@@ -11,8 +11,9 @@
|
||||
|
||||
# EDZÉS LISTA
|
||||
|
||||
$action_list_query = "
|
||||
SELECT
|
||||
|
||||
$action_list_query = "
|
||||
SELECT
|
||||
object_id,
|
||||
timestamp(object_date) as object_date,
|
||||
object_type,
|
||||
@@ -101,15 +102,17 @@
|
||||
pr_user_kid_uk_id = ".$user->get_uk_id()."
|
||||
AND tr_deleted = 0) UNION (SELECT
|
||||
mod_id,
|
||||
timestamp(mod_date),
|
||||
timestamp(mi_date),
|
||||
if(mod_id is not null, 'money_deposit', null) as object_type
|
||||
FROM
|
||||
money_deposit
|
||||
JOIN
|
||||
money_income ON mi_id = mod_money_income_mi_id
|
||||
WHERE
|
||||
mod_user_kid_uk_id = ".$user->get_uk_id()."
|
||||
and mod_deleted = 0)) actions
|
||||
order by object_date ASC;
|
||||
";
|
||||
";
|
||||
|
||||
$action_assoc_array = $sql->assoc_array($action_list_query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user