예제 #1
0
        $success = false;
        $error_message = $exc->getMessage();
    }
    $users = AdminUtility::searchUsers($searchQuery, false, true, $sort_type, $order);
} else {
    //Process GET requests or no requests
    $page = filter_input(INPUT_GET, "pg");
    if (isset($page)) {
        //if switching page, repeat search
        $searchQuery = filter_input(INPUT_GET, "q");
        $sort_type = filter_input(INPUT_GET, "s");
        $order = filter_input(INPUT_GET, "o");
        $users = AdminUtility::searchUsers($searchQuery, false, true, $sort_type, $order);
    } else {
        $page = 1;
        $users = AdminUtility::getSuspendedUsers();
    }
}
?>

<!--
Copyright 2015 NACOSS UNN Developers Group (NDG).

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,