From 772c9e46abab265d6126be9dd58353fc7598ec8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Fri, 22 Mar 2024 10:18:25 +0100 Subject: [PATCH] Add settings to GIT --- .gitignore | 1 - settings/settings.php | 271 ++++++++++++++++++++++ settings/translations/translations_NL.php | 1 + settings/translations/translations_US.php | 1 + 4 files changed, 273 insertions(+), 1 deletion(-) create mode 100644 settings/settings.php diff --git a/.gitignore b/.gitignore index 1d30074..d91bc98 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,5 @@ log_22.txt marketing/ firmware/ log/ -settings/settings.php settings/config.php diff --git a/settings/settings.php b/settings/settings.php new file mode 100644 index 0000000..aa77a7d --- /dev/null +++ b/settings/settings.php @@ -0,0 +1,271 @@ + array( + "url" => "dashboard", + "selected" => "dashboard", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_dashboard" + ), + "equipments" => array( + "url" => "equipments", + "selected" => "assets", + "icon" => "fa-solid fa-database", + "name" => "menu_assets" + ), + "servicereports" => array( + "url" => "servicereports", + "selected" => "servicereports", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_service_reports" + ), + "histories" => array( + "url" => "histories", + "selected" => "histories", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_history" + ), + "firmwaretool" => array( + "url" => "firmwaretool", + "selected" => "firmwaretool", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_firmwaretool" + ), + "equipments_mass_update" => array( + "url" => "equipments_mass_update", + "selected" => "equipments_mass_update", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_equipments_mass_update" + ), + "products" => array( + "url" => "products&status=1", + "selected" => "products", + "icon" => "fas fa-box-open", + "name" => "menu_products" + ), + "sales" => array( + "url" => "accounts", + "selected" => "accounts", + "icon" => "fa-solid fa-bars", + "name" => "menu_sales" + ), + "accounts" => array( + "url" => "accounts", + "selected" => "accounts", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_sales_accounts" + ), + "contracts" => array( + "url" => "contracts", + "selected" => "contracts", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_sales_contracts" + ), + "admin" => array( + "url" => "partners", + "selected" => "partners", + "icon" => "fa-solid fa-bars", + "name" => "menu_admin" + ), + "users" => array( + "url" => "users", + "selected" => "users", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_admin_users" + ), + "communications" => array( + "url" => "communications", + "selected" => "communications", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_admin_communications" + ), + "partners" => array( + "url" => "partners", + "selected" => "partners", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_admin_partners" + ), + "settings" => array( + "url" => "settings", + "selected" => "settings", + "icon" => "fas fa-tools", + "name" => "menu_settings" + ), + "config" => array( + "url" => "settings", + "selected" => "settings", + "icon" => "fas fa-tools", + "name" => "menu_config" + ), + "language" => array( + "url" => "language", + "selected" => "language", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_language" + ), + "log" => array( + "url" => "logfile", + "selected" => "logfile", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_log" + ), + "marketing" => array( + "url" => "marketing&product_group=Emergency_Plug&product_content=Images", + "selected" => "marketing", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_marketing" + ), + "Build" => array( + "url" => "buildtool", + "selected" => "buildtoo", + "icon" => "fas fa-tachometer-alt", + "name" => "menu_build" + ) +); + +$routes = array( + '/' => 'equipments.php', + 'equipments' => 'equipments.php', + 'products' => 'products.php', + 'logout' => 'logout.php' +); + +//------------------------------------------ +// API BaseUrl +//------------------------------------------ +$baseurl = 'https://'.$_SERVER['SERVER_NAME'].'/api.php'; //URL of API +$portalURL = $_SERVER['SERVER_NAME']; + +//------------------------------------------ +// Paging +//------------------------------------------ +$page_rows_equipment = 25; //list Equipment +$page_rows_history = 15; //list History +$page_rows_products = 10;//list producst +$page_rows_users = 15;//list users +$page_rows_partners = 15;//list partners +$page_rows_communication = 25; //list communications +$page_rows_accounts = 25 ;// list accounts +$page_rows_contracts = 25 ;// list contracts + +//------------------------------------------ +// Equipmentdetails +//------------------------------------------ +$servicedate = date("Y-m-d", strtotime("-365 days")); +$warrantydate = date("Y-m-d", strtotime("-365 days")); +$warranty_extended = date("Y-m-d", strtotime("+365 days")); +$date = date('Y-m-d H:i:s'); + +//------------------------------------------ +//History Type +//------------------------------------------ +$type1 = 'General'; +$type2 = 'Customer'; +$type3 = 'Service'; +$type4 = 'Testing'; +$type5 = 'Data'; +$type6 = 'Other'; +$type7 = 'Internal'; +$type8 = 'Ignore'; +$type9 = 'Warranty'; +$type10 = 'Contract'; +$type11 = 'Warranty-Expired'; +$type12 = 'Contract-Expired'; +$type13 = "Order"; +$type14 = "ServiceReport"; +$type15 = "SRIncluded"; +$type16 = "Notes"; +$type17 = "Visual"; + +$HistoryType_1 = 'Bootloader'; +$HistoryType_2 = 'Firmware'; +$HistoryType_3 = 'SerialNumber'; +$HistoryType_4 = 'Visual_Test'; +$HistoryType_5 = 'Maintenance_Test'; +$HistoryType_6 = 'Assembly_Test'; +$HistoryType_7 = 'ProductNumber'; +$HistoryType_8 = 'Visual'; +$HistoryType_9 = 'ServiceReport'; +//------------------------------------------ +//Permissions CRUD +//------------------------------------------ +$permission_4 = 'CRUD'; //Admin+ +$permission_3 = 'CRUD'; //Admin +$permission_2 = 'CRU'; //SuperUser +$permission_1 = 'CRU'; //CreateUpdate +$permission_0 = 'R'; //Readonly + +$permissionlabel1 = 'Permission'; +$permission1 = 'Superuser'; #1 +$permission2 = 'Create & Update'; #2 +$permission3 = 'read-only'; // #3 +$permission4 = 'Admin'; //#4 +$permission5 = 'Admin+'; // #5 + +$settingslabel1 = 'profile'; +$setting1 = 'firmware'; //Fix +$setting2 = 'service'; +$setting3 = 'build'; //Fix +$setting4 = 'distribution'; +$setting5 = ''; +$setting6 = ''; +$setting7 = ''; //Fix +$setting8 = 'interface'; + +//------------------------------------------ +//Partners +//------------------------------------------ +$partnertype1 = 'SalesID'; +$partnertype2 = 'SoldTo'; +$partnertype3 = 'ShipTo'; +$partnertype4 = 'Location'; +$partnertype5 = 'Section'; + +// +++++++++++++++++++++++++++++++++++++++++++++++++++++++ +// Marketing +++++++++++++++++++++++++++++++++++++ +// +++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +$main_marketing_dir = './marketing/'; + +$marketing_structure = array( +"Emergency_Plug" => array( + "Documents", + "Images", + "Video" + ) + ); \ No newline at end of file diff --git a/settings/translations/translations_NL.php b/settings/translations/translations_NL.php index abd1d66..880ede6 100644 --- a/settings/translations/translations_NL.php +++ b/settings/translations/translations_NL.php @@ -19,6 +19,7 @@ $menu_config = 'Config'; $menu_language = 'Taal'; $menu_log = 'Log'; $menu_marketing = 'Marketing'; +$menu_build = 'Build'; //TABS $tab1 = 'Algemeen'; diff --git a/settings/translations/translations_US.php b/settings/translations/translations_US.php index b6a07f3..0a29a5d 100644 --- a/settings/translations/translations_US.php +++ b/settings/translations/translations_US.php @@ -19,6 +19,7 @@ $menu_config = 'Config'; $menu_language = 'Language'; $menu_log = 'Log'; $menu_marketing = 'Marketing'; +$menu_build = 'Build'; //TABS $tab1 = 'General';