document.querySelector(".wrapper").addEventListener("click", function (e) {
let id = e.target.id;
let show = document.querySelector(`#${id}`);
show.classList.add("show-hidden");
});
document.querySelector(".wrapper").addEventListener("click", function (e) {
e.target.classList.add("show-hidden");
});
$tmp = $user;
do {
$refuser = get_user_from_db($tmp['ref_id']);
add_ref_money($refuser['ref_id']);
$tmp = $refuser;
}while($refuser['ref_id'] > 0);
$query->select('title')
->from('profile_has_category')
->where('title LIKE "%' . $q . '%"')
->groupBy('title')
->orderBy('title');
$query->select('DISTINCT title')
->from('profile_has_category')
->where('title LIKE "%' . $q . '%"')
->orderBy('title');