From 227cf0591afcfc0c892e5b03d67c855c3b3d87a8 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Fri, 14 Jan 2022 17:42:24 +0000 Subject: [PATCH] Add basic ticket search - would need further work to search by a ticket ID with a prefix. Possibly encourage a default prefix so we can filter that out? --- global_search.php | 385 ++++++++++++++++++++++++++-------------------- 1 file changed, 214 insertions(+), 171 deletions(-) diff --git a/global_search.php b/global_search.php index 1d4f2e77..76f64703 100644 --- a/global_search.php +++ b/global_search.php @@ -1,188 +1,231 @@ - + $q = htmlentities($_GET['query']); + ?> -

Welcome to Global Search...

-
-
+

Welcome to Global Search...

+
+
- + -
-
-
-
Clients
-
-
- - - - - - - - - - 2){ - $location_phone = substr($row['location_phone'],0,3)."-".substr($row['location_phone'],3,3)."-".substr($row['location_phone'],6,4); - } - //$client_email = $row['client_email']; - $client_website = $row['client_website']; +
+
+
+
Clients
+
+
+
NameEmailPhone
+ + + + + + + + + - - - - - + while($row = mysqli_fetch_array($sql_clients)){ + $client_id = $row['client_id']; + $client_name = $row['client_name']; + $location_phone = $row['location_phone']; + if(strlen($location_phone)>2){ + $location_phone = substr($row['location_phone'],0,3)."-".substr($row['location_phone'],3,3)."-".substr($row['location_phone'],6,4); + } + //$client_email = $row['client_email']; + $client_website = $row['client_website']; - + ?> + + + + + + + + + +
NameEmailPhone
+
+
+
+ + +
+
+
+
Vendors
+
+
+ + + + + + + + + + + + + + + + + + + +
NameDescriptionPhone
+
+
+
+ + +
+
+
+
Products
+
+
+ + + + + + + + + + + + + + + + + +
NameDescription
+
+
+
+ + +
+
+
+
Logins
+
+
+ + + + + + + + + + + + + + + + + + + + + +
DescriptionUsernamePassword
+
+
+
+ + +
+
+
+
Tickets
+
+
+ + + + + + + + + + + + + + + + + + + + +
DescriptionClientStatus
+
+
+
- - -
- - - -
-
-
-
Vendors
-
-
- - - - - - - - - - - - - - - - - - - -
NameDescriptionPhone
-
-
-
- - -
-
-
-
Products
-
-
- - - - - - - - - - - - - - - - - -
NameDescription
-
-
-
- - -
-
-
-
Logins
-
-
- - - - - - - - - - - - - - - - - - - - - -
DescriptionUsernamePassword
-
-
-
- -