search in user list
loading gif lists can be closed and opened number of trainings at diary
This commit is contained in:
@@ -48,6 +48,7 @@ if ($this->is_id()) {
|
||||
IN ( " . implode(',', $tr_ids) . " )
|
||||
AND `uk_deleted` = 0
|
||||
AND `tr_deleted` = 0
|
||||
AND `uk_is_active` = 1
|
||||
GROUP BY `pr_user_kid_uk_id`
|
||||
ORDER BY count( `pr_id` ) DESC, uk_name ASC;
|
||||
";
|
||||
@@ -69,7 +70,7 @@ if ($this->is_id()) {
|
||||
$exeptions[] = $user->get_uk_id();
|
||||
}
|
||||
|
||||
if (!empty($exeptions)) $rest_user_query = "SELECT * FROM user_kid WHERE uk_id NOT IN (" . implode(',', $exeptions) . ") AND uk_deleted = 0 ORDER BY uk_name ASC;"; //ha vannak kiemelt userek
|
||||
if (!empty($exeptions)) $rest_user_query = "SELECT * FROM user_kid WHERE uk_id NOT IN (" . implode(',', $exeptions) . ") AND uk_deleted = 0 AND uk_is_active = 1 ORDER BY uk_name ASC;"; //ha vannak kiemelt userek
|
||||
else $rest_user_query = "SELECT * FROM user_kid WHERE uk_deleted = 0 ORDER BY uk_name;"; //ha nincsenek kiemelt userek
|
||||
$rest_user_assoc_array = $sql->assoc_array($rest_user_query);
|
||||
foreach ($rest_user_assoc_array as $rest_user) {
|
||||
|
||||
Reference in New Issue
Block a user