checkToken(); signOut(); var param = {} param["nbPages"] = 20; var search = getQuery("search"); if(search.length > 0){ document.getElementById("searchUser").value=search; } var listQuery = [{"query": "roles", "id":"inputRoles"}, {"query":"status", "id":"inputStatus"}] for (var i=0; i 0){ var listOption = document.querySelectorAll("#"+listQuery[i]["id"]+" option"); for(var j=0; j 1){ document.getElementById("page").classList.remove("hidden"); var pageCurrent = getQuery("page"); var page = 1; if(pageCurrent.length > 0){ page = Number.parseInt(pageCurrent); } for (var i=0; i 0){ param["page"] = Number.parseInt(pageCurrent); param["page"] = param["page"] - 1; } var listQuery = ["search", "uuid", "roles", "status", "email"]; for (var i=0; i 0){ param[listQuery[i]]=query; } } instance.get("users", {withCredentials: true, params :param}).then(function(response){ var listData = response.data; if(!Array.isArray(listData)){ var listData = [] listData.push(response.data); } for (var i=0; i