diff --git a/apps/sync_mobile.php b/apps/sync_mobile.php index f05c58e..0c24ed0 100644 --- a/apps/sync_mobile.php +++ b/apps/sync_mobile.php @@ -53,11 +53,20 @@ END; $content .= "
"; if (count($activecodes) > 0) { foreach ($activecodes as $c) { - $content .= "
" . trim(chunk_split($c['code'], 5, ' ')) . "
"; + $content .= "
" . trim(chunk_split($c['code'], 5, ' ')) . "
"; } } else { $content .= "
" . lang("no active codes", false) . "
"; } $content .= "
"; + $content .= << + .mobilekey { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + } + +END; $APPS["sync_mobile"]["content"] = $content; } \ No newline at end of file diff --git a/home.php b/home.php index 13b3099..2187ba5 100644 --- a/home.php +++ b/home.php @@ -38,7 +38,7 @@ if (!is_empty($_GET['page'])) {
- +
+ +
+ +
+

+ + "/> + + +

+
+ +
+ "Welcome, {user}!", "change password" => "Change password", - "security options" => "Security options", "account security" => "Account security", + "security options" => "Security options", + "account options" => "Account options", + "options" => "Options", "sign out" => "Sign out", "settings" => "Settings", - "options" => "Options", + "account" => "Account", "404 error" => "404 Error", "page not found" => "Page not found.", "current password incorrect" => "The current password is incorrect. " diff --git a/pages.php b/pages.php index 277780b..a9f809e 100644 --- a/pages.php +++ b/pages.php @@ -6,7 +6,7 @@ define("PAGES", [ "title" => "{DEFAULT}" ], "security" => [ - "title" => "security options" + "title" => "account options" ], "404" => [ "title" => "404 error" diff --git a/settings.template.php b/settings.template.php index 8e1df07..dbfd76c 100644 --- a/settings.template.php +++ b/settings.template.php @@ -68,6 +68,35 @@ define('QWIKCLOCK_HOME', '/qwikclock/app.php'); // See lang folder for language options define('LANGUAGE', "en_us"); +// List of available applications, icons, and other info. +// Used in the mobile app and in the "dock" in Portal. +define('EXTERNAL_APPS', [ + "portal" => [ + "url" => "http://localhost/portal", + "mobileapi" => "/mobile", + "icon" => "/static/img/logo.svg", + "title" => SITE_TITLE + ], + "taskfloor" => [ + "url" => "http://localhost/taskfloor", + "mobileapi" => "/mobile", + "icon" => "/static/img/logo.svg", + "title" => "TaskFloor" + ], + "qwikclock" => [ + "url" => "http://localhost/qwikclock", + "mobileapi" => "/mobile", + "icon" => "/static/img/logo.svg", + "title" => "QwikClock" + ], + "inventory" => [ + "url" => "http://localhost/inventory", + "mobileapi" => "/mobile", + "icon" => "/static/img/logo.svg", + "title" => "Inventory" + ] +]); + // Email settings for receiving admin alerts. define("USE_SMTP", TRUE); // if FALSE, will use PHP's mail() instead define("ADMIN_EMAIL", ""); @@ -100,6 +129,6 @@ define("QUERY_LIMIT", 1000); // /!\ Warning: Changing these values may /!\ // // /!\ violate the terms of your license agreement! /!\ // ////////////////////////////////////////////////////////////// -define("LICENSE_TEXT", "Unlicensed Demo: For Trial Use Only"); +define("LICENSE_TEXT", "Personal, Non-commercial Use Only"); define("COPYRIGHT_NAME", "Netsyms Technologies"); ////////////////////////////////////////////////////////////// \ No newline at end of file diff --git a/static/css/app.css b/static/css/app.css index be0b863..aef129d 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -45,11 +45,55 @@ min-height: 250px; } +.app-dock { + margin: 0 auto 10px auto; + display: flex; + justify-content: space-around; + flex-wrap: wrap; +} + +.app-icon { + border: 1px solid grey; + border-radius: 20%; +} + +.app-dock-item { + padding: 0px 5px 2px 5px; +} + +.app-dock-item p { + margin-bottom: 0px; +} + +.app-dock-item p a { + font-size: 95%; + color: #555; +} + +.app-dock-item p a:hover { + text-decoration: none; +} + +.app-dock-item p a img { + width: 50px; + display: block; + margin: 0 auto; +} + +.app-dock-item p a span { + display: block; + text-align: center; +} + /* Small Devices, Tablets */ @media only screen and (min-width: 768px) and (max-width: 991px) { .row.widget-box > .col-sm-6:nth-child(2n+3) { clear: both; } + + .app-dock { + max-width: 50%; + } } /* Medium Devices, Desktops */ @@ -57,4 +101,8 @@ .row.widget-box > .col-md-4:nth-child(3n+4) { clear: both; } + + .app-dock { + max-width: 50%; + } } \ No newline at end of file