UsersBUS::SetStatus($id, 0);
        }
    }
}
if (isset($_REQUEST["btEnable"])) {
    if ($_REQUEST['cbId']) {
        $cb = $_REQUEST['cbId'];
        foreach ($cb as $id) {
            UsersBUS::SetStatus($id, 1);
        }
    }
}
if (isset($_REQUEST["btDelete"])) {
    $cb = $_REQUEST['cbId'];
    foreach ($cb as $id) {
        UsersBUS::Delete($id);
    }
}
$status = isset($_REQUEST["status"]) ? $_REQUEST["status"] : -1;
$type = isset($_REQUEST["type"]) ? (int) $_REQUEST["type"] : -1;
$kw = isset($_REQUEST["kw"]) ? $_REQUEST["kw"] : "";
$totalItems = 0;
//UsersBUS::Count($type,$status,$kw);
$users = "";
//UsersBUS::getUsers();
?>
<div id="listItem">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm"></div>
	<div class="mid">
        }
        $status = 1;
        $time = date('Y-m-d');
        $ip = "";
        echo "<br>role=" . $role;
        echo "<br>level=" . $level;
        echo "<br>";
        $id = UsersBUS::Add($password, $email, $hoten, $gender, $diachi, $sdt1, $sdt2, $role, $level, 1, $time, $ip);
        break;
    case "lock":
        $uid = explode(',', $_GET["uid"]);
        for ($i = 0; $i < count($uid); $i++) {
            UsersBUS::SetStatus($uid[$i], 0);
        }
        break;
    case "unlock":
        $uid = explode(',', $_GET["uid"]);
        for ($i = 0; $i < count($uid); $i++) {
            UsersBUS::SetStatus($uid[$i], 1);
        }
        break;
    case "delete":
        $uid = explode(',', $_GET["uid"]);
        for ($i = 0; $i < count($uid); $i++) {
            UsersBUS::Delete($uid[$i]);
        }
        break;
}
$status = isset($_REQUEST["status"]) ? $_REQUEST["status"] : -1;
$type = isset($_REQUEST["type"]) ? (int) $_REQUEST["type"] : -1;
header("Location:../../index.php?view=user&type=" . $type . "&status=" . $status);