|
@@ -11,6 +11,7 @@ else {
|
|
|
Core::addBreadcrumb("/account", "Account");
|
|
Core::addBreadcrumb("/account", "Account");
|
|
|
Core::addBreadcrumb("/account/users", $page_title);
|
|
Core::addBreadcrumb("/account/users", $page_title);
|
|
|
|
|
|
|
|
|
|
+$id = http::value("id", "int");
|
|
|
$first_name = http::value("first_name", "trim");
|
|
$first_name = http::value("first_name", "trim");
|
|
|
$last_name = http::value("last_name", "trim");
|
|
$last_name = http::value("last_name", "trim");
|
|
|
$email = http::value("email", "trim");
|
|
$email = http::value("email", "trim");
|
|
@@ -20,8 +21,9 @@ $customer_id = http::value("customer_id", "int");
|
|
|
$location_id = http::value("location_id", "int");
|
|
$location_id = http::value("location_id", "int");
|
|
|
|
|
|
|
|
$nvp = [];
|
|
$nvp = [];
|
|
|
-if($first_name !== false) $nvp["first_name"] = ((new Constraint("CONTAINS"))->setValues($first_name));
|
|
|
|
|
-if($last_name !== false) $nvp["last_name"] = ((new Constraint("CONTAINS"))->setValues($last_name));
|
|
|
|
|
|
|
+if($id !== false) $nvp["id"] = $id;
|
|
|
|
|
+if(strlen($first_name) > 0) $nvp["first_name"] = ((new Constraint("CONTAINS"))->setValues($first_name));
|
|
|
|
|
+if(strlen($last_name) > 0) $nvp["last_name"] = ((new Constraint("CONTAINS"))->setValues($last_name));
|
|
|
if(strlen($email) > 0) $nvp["email"] = $email;
|
|
if(strlen($email) > 0) $nvp["email"] = $email;
|
|
|
if($level !== false) $nvp["level"] = $level;
|
|
if($level !== false) $nvp["level"] = $level;
|
|
|
|
|
|
|
@@ -43,7 +45,7 @@ $users = array_slice($users, $pagination_object->offset, $pagination_object->pag
|
|
|
|
|
|
|
|
|
|
|
|
|
View::includeOnce("header", compact("page_title"));
|
|
View::includeOnce("header", compact("page_title"));
|
|
|
-View::include("users", compact("users", "pagination_object", "filter_count", "first_name", "last_name", "email", "level", "customer_id", "location_id"));
|
|
|
|
|
|
|
+View::include("users", compact("users", "pagination_object", "filter_count", "id", "first_name", "last_name", "email", "level", "customer_id", "location_id"));
|
|
|
View::includeOnce("modal_page_jump");
|
|
View::includeOnce("modal_page_jump");
|
|
|
View::includeOnce("footer");
|
|
View::includeOnce("footer");
|
|
|
|
|
|