diff --git a/assets/css/custom.css b/assets/css/custom.css index cbf23e5..c77e0ed 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -169,4 +169,10 @@ th.meta { height: 2.4rem; line-height: 2.4rem; color: rgba(255,255,255,0.87)!important; +} +input#SearchInput { + height: 3.6rem; + border-left: 11px solid white; + margin-left: -11px; + margin-top: 9px; } \ No newline at end of file diff --git a/assets/js/search-bar.js b/assets/js/search-bar.js new file mode 100644 index 0000000..4116545 --- /dev/null +++ b/assets/js/search-bar.js @@ -0,0 +1,14 @@ +$(document).ready(function(){ + $("#SearchInput").on("keyup", function() { + var value = $(this).val().toLowerCase(); + $("#Search_table tr").filter(function() { + $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) + }); + }); + }); + + $(document).ready(function(){ + $("#SearchButton").click(function(){ + $("#SearchInput").toggle(); + }); + }); \ No newline at end of file diff --git a/backend/archive.php b/backend/archive.php index 6267f2f..becb5b5 100644 --- a/backend/archive.php +++ b/backend/archive.php @@ -57,6 +57,8 @@ require_once "../assets/php/cuttext.php"; + + @@ -145,8 +147,15 @@ require_once "../assets/php/cuttext.php";
- + + +

Ticket archive

+
+ + + +
@@ -173,7 +182,7 @@ require_once "../assets/php/cuttext.php"; echo "Date/Time"; echo ""; echo ""; - echo ""; + echo ""; while($row = mysqli_fetch_array($result)){ echo ""; echo "" . $row['id'] . ""; diff --git a/backend/systems.php b/backend/systems.php index c574ca9..48d3df0 100644 --- a/backend/systems.php +++ b/backend/systems.php @@ -60,6 +60,8 @@ require_once "../assets/php/cuttext.php"; + + @@ -145,12 +147,14 @@ require_once "../assets/php/cuttext.php";
- -
-

Systems

+
+ + + +
@@ -176,7 +180,7 @@ require_once "../assets/php/cuttext.php"; echo "ServiceTag"; echo ""; echo ""; - echo ""; + echo ""; while($row = mysqli_fetch_array($result)){ echo ""; echo "" . $row['id'] . ""; diff --git a/backend/tickets.php b/backend/tickets.php index 1d6d65f..3d4e9fa 100644 --- a/backend/tickets.php +++ b/backend/tickets.php @@ -57,6 +57,8 @@ require_once "../assets/php/cuttext.php"; + + @@ -145,13 +147,15 @@ require_once "../assets/php/cuttext.php";
+

Tickets

"; ?> + +
-

Tickets

@@ -178,7 +182,7 @@ require_once "../assets/php/cuttext.php"; echo "Date/Time"; echo ""; echo ""; - echo ""; + echo ""; while($row = mysqli_fetch_array($result)){ echo ""; echo "" . $row['id'] . ""; diff --git a/backend/users.php b/backend/users.php index 6215ea2..f06ffaa 100644 --- a/backend/users.php +++ b/backend/users.php @@ -57,6 +57,8 @@ require_once "../assets/php/cuttext.php"; + + @@ -144,10 +146,14 @@ require_once "../assets/php/cuttext.php"; -
- -

Users

+
+

Users

+
+ + +
+
@@ -168,7 +174,7 @@ require_once "../assets/php/cuttext.php"; echo "User name"; echo ""; echo ""; - echo ""; + echo ""; while($row = mysqli_fetch_array($result)){ echo ""; echo "" . $row['id'] . "";