diff --git a/app.php b/app.php index 8eae1e2..21bfb1f 100644 --- a/app.php +++ b/app.php @@ -1,11 +1,10 @@ - - + + + + -
-
-
- - - + + strip_tags($_GET['arg'])], false); + } + $alerttype = MESSAGES[$_GET['msg']]['type']; + $alerticon = "square-o"; + switch (MESSAGES[$_GET['msg']]['type']) { + case "danger": + $alerticon = "times"; + break; + case "warning": + $alerticon = "exclamation-triangle"; + break; + case "info": + $alerticon = "info-circle"; + break; + case "success": + $alerticon = "check"; + break; + } + echo << +
+
+ + $alertmsg +
- + +
- + \n"; diff --git a/index.php b/index.php index 088c0e7..0072492 100644 --- a/index.php +++ b/index.php @@ -1,15 +1,10 @@ - - + -
-
-
-
+
+
+ +
+
+
+
+
+
+
- - -
-
-
-

-
-
- - -
- -
- + +
+ - " required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus />
- " required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
- -
-
- - - -
- -
- " required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus />
- - - - - -
-
+ if ($multiauth != true) { + ?> + " required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus />
+ " required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
+ +
+
+ + + +
+ +
+ " required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus />
+ + + + +
-
- - - + +
+ + + \ No newline at end of file diff --git a/lib/getitemtable.php b/lib/getitemtable.php index 0c833f5..9a45d52 100644 --- a/lib/getitemtable.php +++ b/lib/getitemtable.php @@ -115,8 +115,8 @@ $out['recordsFiltered'] = $recordsFiltered; $usercache = []; for ($i = 0; $i < count($items); $i++) { - $items[$i]["editbtn"] = ' ' . lang("edit", false) . ''; - $items[$i]["clonebtn"] = ' ' . lang("clone", false) . ''; + $items[$i]["editbtn"] = ' ' . lang("edit", false) . ''; + $items[$i]["clonebtn"] = ' ' . lang("clone", false) . ''; if (is_null($items[$i]['userid'])) { $items[$i]["username"] = ""; } else { diff --git a/pages.php b/pages.php index a450419..9c3ab32 100644 --- a/pages.php +++ b/pages.php @@ -10,12 +10,12 @@ define("PAGES", [ "home" => [ "title" => "home", "navbar" => true, - "icon" => "home" + "icon" => "fas fa-home" ], "items" => [ "title" => "items", "navbar" => true, - "icon" => "cubes", + "icon" => "fas fa-cubes", "styles" => [ "static/css/datatables.min.css", "static/css/tables.css" @@ -28,7 +28,7 @@ define("PAGES", [ "locations" => [ "title" => "locations", "navbar" => true, - "icon" => "map-marker", + "icon" => "fas fa-map-marker", "styles" => [ "static/css/datatables.min.css", "static/css/tables.css" @@ -41,7 +41,7 @@ define("PAGES", [ "categories" => [ "title" => "categories", "navbar" => true, - "icon" => "archive", + "icon" => "fas fa-archive", "styles" => [ "static/css/datatables.min.css", "static/css/tables.css" @@ -79,7 +79,7 @@ define("PAGES", [ "export" => [ "title" => "report export", "navbar" => true, - "icon" => "download", + "icon" => "fas fa-download", "scripts" => [ "static/js/export.js" ] diff --git a/pages/404.php b/pages/404.php index 4b4197f..eeccaea 100644 --- a/pages/404.php +++ b/pages/404.php @@ -3,8 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ?> -
-
+
+

\ No newline at end of file diff --git a/pages/categories.php b/pages/categories.php index cfacc25..1c8fd98 100644 --- a/pages/categories.php +++ b/pages/categories.php @@ -7,16 +7,16 @@ require_once __DIR__ . '/../required.php'; redirectifnotloggedin(); ?> -
- +
+
- +
- - + + @@ -31,7 +31,7 @@ redirectifnotloggedin(); @@ -44,8 +44,8 @@ redirectifnotloggedin(); - - + +
- +
\ No newline at end of file diff --git a/pages/editcat.php b/pages/editcat.php index 5742bd6..024d241 100644 --- a/pages/editcat.php +++ b/pages/editcat.php @@ -1,5 +1,4 @@
-
-
-

+
+

+ + "" . htmlspecialchars($catdata['catname']) . ""]); ?> - "" . htmlspecialchars($catdata['catname']) . ""]); ?> - - - -

-
-
+ + +

+
- +
@@ -59,12 +56,12 @@ if (!is_empty($VARS['id'])) { -