From ec20d4426752d51a8eeca67aa08579678ae8ec8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <β€œinfo@veliti.nl”> Date: Mon, 15 Dec 2025 17:08:44 +0100 Subject: [PATCH] Refactor UI elements for consistency and clarity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated action buttons across multiple files to use icons (e.g., "Save" to "πŸ’Ύ+", "Delete" to "X"). - Replaced "Cancel" button text with a left arrow (←) for a more intuitive navigation experience. - Removed unnecessary action columns from tables to streamline the interface. - Enhanced table rows to be clickable for better user interaction, redirecting to relevant management pages. - Adjusted font sizes and styles in CSS for improved readability and aesthetics. - Standardized back button functionality to use a left arrow across various pages. --- account.php | 4 +-- account_manage.php | 6 ++--- accounts.php | 4 +-- assets/functions.php | 5 +--- buildtool.php | 2 +- cartest.php | 4 +-- cartest_manage.php | 6 ++--- cartests.php | 4 +-- category.php | 6 ++--- communication.php | 6 ++--- communication_send.php | 2 +- communications.php | 6 ++--- contract.php | 6 ++--- contract_manage.php | 6 ++--- contracts.php | 6 ++--- dealer.php | 4 +-- dealer_manage.php | 6 ++--- dealers.php | 4 +-- discount.php | 6 ++--- discounts.php | 4 +-- equipment.php | 10 +++----- equipment_data.php | 2 +- equipment_manage.php | 6 ++--- equipments.php | 6 ++--- equipments_mass_update.php | 2 +- firmwaretool.php | 2 +- histories.php | 4 +-- history.php | 22 ++++++---------- history_manage.php | 6 ++--- language.php | 2 +- media_manage.php | 6 ++--- media_scanner.php | 2 +- order.php | 6 ++--- orders.php | 4 +-- partner.php | 6 ++--- partners.php | 4 +-- pricelists.php | 4 +-- pricelists_manage.php | 6 ++--- product.php | 14 ++++------- product_manage.php | 6 ++--- products.php | 4 +-- products_attributes.php | 4 +-- products_attributes_manage.php | 6 ++--- products_configurations.php | 6 ++--- products_software.php | 6 ++--- products_software_upgrade_paths_manage.php | 4 +-- products_software_version.php | 4 +-- products_software_version_manage.php | 4 +-- products_versions.php | 6 ++--- profile.php | 4 +-- profiles.php | 2 +- report_contracts_billing.php | 6 ++--- report_healthindex.php | 7 +++--- rma.php | 6 ++--- rma_manage.php | 4 +-- rmas.php | 4 +-- servicereport.php | 4 ++- servicereports.php | 2 +- settings.php | 2 +- shipping.php | 6 ++--- shipping_manage.php | 6 ++--- style/admin.css | 29 ++++++---------------- tax.php | 4 +-- translation_manage.php | 6 ++--- translations.php | 4 +-- user.php | 6 ++--- users.php | 6 ++--- 67 files changed, 153 insertions(+), 216 deletions(-) diff --git a/account.php b/account.php index dab91a7..d270157 100644 --- a/account.php +++ b/account.php @@ -56,10 +56,10 @@ template_header('Account', 'account', 'view'); $view = '

'.$account_h2.' - '.$_GET['rowID'].'

- '.$button_cancel.' + ← '; if ($update_allowed === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; diff --git a/account_manage.php b/account_manage.php index 211774d..23e2cc2 100644 --- a/account_manage.php +++ b/account_manage.php @@ -133,14 +133,14 @@ $view ='

'.$account_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/accounts.php b/accounts.php index 05514c1..e0aeb49 100644 --- a/accounts.php +++ b/accounts.php @@ -107,7 +107,6 @@ $view .= ' '.$account_id.' '.$account_status.' '.$account_name.' - '.$general_actions.' @@ -125,11 +124,10 @@ $view .= ' $account_details = json_decode($response->accountdetails); $view .= ' - + '.$response->rowID.' '.(($response->status == 'Customer')? ''.$response->status:''.$response->status).' '.$account_details->billcompany.' - '.$general_view .' '; } diff --git a/assets/functions.php b/assets/functions.php index 0b7d3d1..0370dc6 100644 --- a/assets/functions.php +++ b/assets/functions.php @@ -1812,7 +1812,6 @@ function serviceEvents ($messages,$page){ '.$equipment_label3.' '.$general_createdby.' '.$general_created.' - '.$view_asset_actions.' '; @@ -1852,15 +1851,13 @@ function serviceEvents ($messages,$page){ $service_status = ''.$service_report_outcome_good.''; } - $view_data .= ' + $view_data .= ' '.$TETS->serialnumber.' '.$service_date.' '.$service_renewal_date.' '.$service_status.' '.$message->createdby.' '.getRelativeTime($message->created).' - '.$general_view.' - PDF '; } diff --git a/buildtool.php b/buildtool.php index e5c97d6..553a35c 100644 --- a/buildtool.php +++ b/buildtool.php @@ -42,7 +42,7 @@ $view = ' $view .= ' '; diff --git a/cartest.php b/cartest.php index 9db008a..2c768c1 100644 --- a/cartest.php +++ b/cartest.php @@ -58,11 +58,11 @@ template_header('Cartest', 'cartest', 'view'); $view = '

'.$cartest_h2.' - '.$_GET['rowID'].'

- '.$button_cancel.' + ← '; if ($update_allowed === 1 && $version != 0){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; diff --git a/cartest_manage.php b/cartest_manage.php index a50c624..b58f819 100644 --- a/cartest_manage.php +++ b/cartest_manage.php @@ -174,14 +174,14 @@ $view ='

'.$cartest_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/cartests.php b/cartests.php index 985da3b..d946b36 100644 --- a/cartests.php +++ b/cartests.php @@ -122,7 +122,6 @@ $view .= ' '.$cartest_carbrand.' '.$cartest_cartype.' '.$general_createdby.' - '.$general_actions.' @@ -138,12 +137,11 @@ $view .= ' else { foreach ($responses as $response){ $view .= ' - + '.$response->rowID.' '.$response->carbrand.' '.$response->cartype.' '.$response->createdby.' - '.$general_view.' '; } diff --git a/category.php b/category.php index 33d728c..c0544b0 100644 --- a/category.php +++ b/category.php @@ -97,14 +97,14 @@ $view ='

'.($categories_h2 ?? 'Categories').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/communication.php b/communication.php index 8d8d721..9dd632d 100644 --- a/communication.php +++ b/communication.php @@ -99,14 +99,14 @@ $view ='

'.$communication_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/communication_send.php b/communication_send.php index 4c210f6..c9823b2 100644 --- a/communication_send.php +++ b/communication_send.php @@ -37,7 +37,7 @@ $view ='

'.$communication_send_firmware_h2.'

- '.$button_cancel.' + ← '; if ($update_allowed === 1){ diff --git a/communications.php b/communications.php index fb98e90..262a352 100644 --- a/communications.php +++ b/communications.php @@ -15,7 +15,7 @@ $prev_page = (isset($_SESSION['origin']) && $_SESSION['origin'] == 'equipments') $page = 'communications'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed @@ -124,7 +124,6 @@ $view .= ' '.$communication_firmware.' '.$communication_service.' '.$communication_marketing.' - '.$general_actions.' @@ -144,7 +143,7 @@ $view .= ' $type = 'coms_type_'.$response->coms_type; $view .= ' - + '.(($response->status == 1)? ''.$$status:''.$$status).' '.$$type.' '.$response->partnerID.' @@ -152,7 +151,6 @@ $view .= ' type_1 == 1 ?' checked':'').'/> type_2 == 1 ?' checked':'').'/> type_3 == 1 ?' checked':'').'/> - '.$general_view .' '; } diff --git a/contract.php b/contract.php index 8437f2a..0edcb8a 100644 --- a/contract.php +++ b/contract.php @@ -14,7 +14,7 @@ $prev_page = $_SESSION['prev_origin'] ?? ''; $page = 'contract'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -79,7 +79,7 @@ template_header('Contract', 'contract', 'view'); $view = '

'.$responses->rowID.'

- '.$button_cancel.' + ← '; @@ -87,7 +87,7 @@ $view = ' // //------------------------------------ if ($update_allowed_edit === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; diff --git a/contract_manage.php b/contract_manage.php index d08f9cb..c097f9c 100644 --- a/contract_manage.php +++ b/contract_manage.php @@ -114,14 +114,14 @@ $view ='

'.$contract_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/contracts.php b/contracts.php index 3de62d5..3447036 100644 --- a/contracts.php +++ b/contracts.php @@ -15,7 +15,7 @@ $page = $_SESSION['origin'] = 'contracts'; $prev_page = ($_SESSION['origin'] == 'equipments') ? $_SESSION['prev_origin_equipment'] : (($_SESSION['origin'] == 'account')? $_SESSION['prev_origin'] :''); //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -119,7 +119,6 @@ $view .= ' '.$contract_start_date.' '.$contract_end_date.' '.$contract_reference.' - '.$general_actions.' @@ -144,7 +143,7 @@ $view .= ' $partner_data = json_decode($response->accounthierarchy); $view .= ' - + '.$response->rowID.' '.(($response->status == 1)? ''.$$status: (($response->status == 3) ? ''.$$status : ''.$$status)).' '.$partner_data->soldto.' @@ -152,7 +151,6 @@ $view .= ' '.$response->start_date.' '.$date.' '.$response->reference.' - '.$general_view .' '; } diff --git a/dealer.php b/dealer.php index 708ea34..504b682 100644 --- a/dealer.php +++ b/dealer.php @@ -55,14 +55,14 @@ template_header('Dealer', 'dealer', 'view'); $view = '

'.($view_dealer_h2 ?? 'Dealer').' - '.$responses['rowID'].'

- '.$button_cancel.' + ← '; //------------------------------------ // EDIT BUTTON //------------------------------------ if ($update_allowed === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; diff --git a/dealer_manage.php b/dealer_manage.php index b96300d..7a4170d 100644 --- a/dealer_manage.php +++ b/dealer_manage.php @@ -141,14 +141,14 @@ $view ='

'.($dealers_h2 ?? 'Dealer').' '.$responses['name'].'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/dealers.php b/dealers.php index 743e7dd..7ff341a 100644 --- a/dealers.php +++ b/dealers.php @@ -89,7 +89,6 @@ $view .= ' '.($dealers_name ?? 'Name').' '.($dealers_created ?? 'Created').' - '.$general_actions.' '; @@ -105,13 +104,12 @@ $view .= ' $dealer_status = 'general_status_'.$dealer['status']; $view .= ' - + '.$dealer['rowID'].' '.(${$dealer_status} ?? $dealer_status).' '.$dealer['name'].' '.(($dealer['full_path'] !='')?'' : '').' '.getRelativeTime($dealer['created']).' - '.$general_view.' '; } } diff --git a/discount.php b/discount.php index 778fe37..6945376 100644 --- a/discount.php +++ b/discount.php @@ -113,14 +113,14 @@ $view ='

'.($discounts_h2 ?? 'discounts').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/discounts.php b/discounts.php index 154e660..b30eedc 100644 --- a/discounts.php +++ b/discounts.php @@ -92,7 +92,6 @@ $view .= ' '.($discounts_value ?? 'Value').' '.($discounts_start_date ?? 'Start Date').' '.($discounts_end_date ?? 'End Date').' - '.$general_actions.' '; @@ -106,7 +105,7 @@ $view .= ' $current_date = strtotime((new DateTime())->format('Y-m-d H:i:s')); $view .= ' - + '.$discount['id'].' '.$discount['discount_code'].' '.(($current_date >= strtotime($discount['start_date']) && $current_date <= strtotime($discount['end_date'])) ? $general_yes : $general_no).' @@ -116,7 +115,6 @@ $view .= ' '.$discount['discount_value'].' '.date('Y-m-d h:ia', strtotime($discount['start_date'])).' '.date('Y-m-d h:ia', strtotime($discount['end_date'])).' - '.$general_view.' '; } diff --git a/equipment.php b/equipment.php index c7db234..7008a36 100644 --- a/equipment.php +++ b/equipment.php @@ -126,7 +126,7 @@ template_header('Asset', 'asset', 'view'); $view = '

'.$view_asset_h2.' - '.$responses->equipmentID.'

- '.$button_cancel.' + ← '; //------------------------------------ @@ -137,7 +137,7 @@ $equipment_owner = (($responses->createdby == $_SESSION['username'])? 1 : 0); // //------------------------------------ if ($update_allowed_edit === 1 || $equipment_owner === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; @@ -320,17 +320,15 @@ $view .= '
'.$view_asset_data_rowID.' '.$view_asset_data_historyid.' '.$view_asset_data_ranking.' - '.$general_actions.' '; foreach ($equipment_data as $data){ - $view .= ' + $view .= ' '.$data->rowID.' '.(($view_history == 1)? ''.$data->historyid.'':$data->historyid).' - '.$data->healthindex.' - '.$general_view.' + '.$data->healthindex.' '; } $view .= ' diff --git a/equipment_data.php b/equipment_data.php index 80e5577..69b9f40 100644 --- a/equipment_data.php +++ b/equipment_data.php @@ -43,7 +43,7 @@ $view ='

'.$view_asset_data_text.'

- '.$button_cancel.' + ← '; $view .= '
'; diff --git a/equipment_manage.php b/equipment_manage.php index e808157..85a3064 100644 --- a/equipment_manage.php +++ b/equipment_manage.php @@ -143,16 +143,16 @@ $view ='

'.$label_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1 || $equipment_owner === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1 || $equipment_owner === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/equipments.php b/equipments.php index 1e341c6..75263e0 100644 --- a/equipments.php +++ b/equipments.php @@ -14,7 +14,7 @@ $prev_page = $_SESSION['prev_origin'] ?? ''; $page = $_SESSION['origin'] = 'equipments'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -203,7 +203,6 @@ $view .= ' '.$general_location.' '.$general_section.' - '.$view_asset_actions.' @@ -244,7 +243,7 @@ foreach ($media_responses as $media){ $indicators = overviewIndicators($response->warranty_date,$response->service_date,$response->sw_version, $response->sw_version_latest); -$view .= ' +$view .= ' '.$indicators.' '.$response->serialnumber.' '.$$status_text.' @@ -252,7 +251,6 @@ $view .= ' '.(($full_path !='')?'' : '').' '.$location.' '.$section.' - '.$general_view .' '; } diff --git a/equipments_mass_update.php b/equipments_mass_update.php index 8efae3a..f183148 100644 --- a/equipments_mass_update.php +++ b/equipments_mass_update.php @@ -144,7 +144,7 @@ template_header('Mass update', 'equipment_mass_update', 'view'); $view = '

'.$mass_update_h2.'

- '.$button_cancel.' + ← '; $view .= '
'; diff --git a/firmwaretool.php b/firmwaretool.php index 835017e..4cdb3e2 100644 --- a/firmwaretool.php +++ b/firmwaretool.php @@ -36,7 +36,7 @@ if (isset($_GET['equipmentID'])){$returnpage = 'equipment&equipmentID='.$_GET['e if (isAllowed('dashboard',$_SESSION['profile'],$_SESSION['permission'],'R') != 0){ $view .= ' '; } diff --git a/histories.php b/histories.php index 2eedd58..5f56614 100644 --- a/histories.php +++ b/histories.php @@ -92,7 +92,6 @@ $view .= ' '.$history_label3.' '.$history_label4.' '.$history_label5.' - '.$view_asset_actions.' @@ -116,13 +115,12 @@ $view .= ' $description = str_replace($search, $replace, $description); - $view .= ' + $view .= ' '.$response->historyID.' '.$response->type.' '.getRelativeTime($response->created).' '.$response->createdby.'
' . $description . '
- '.$general_view .' '; } diff --git a/history.php b/history.php index 7b75b45..116b24f 100644 --- a/history.php +++ b/history.php @@ -79,7 +79,7 @@ if (isset($success_msg)){ } $view .= '
- '.$button_cancel.' + ← '; $view .= ' @@ -120,12 +120,8 @@ $view .= ' '.$history_label2.' '.$history_label3.' '.$history_label4.' - '.$history_label5.''; -if ($update_allowed === 1){ - $view .= ' '.$view_asset_actions.''; -} - - $view .= ' + '.$history_label5.' + '; @@ -148,18 +144,16 @@ $search = ['{', '}', '"',':','[',']',',']; $replace = ['', '','','=','','','']; $description = str_replace($search, $replace, $description); -$view .= ' +$view .= 'historyID.'\'" style="cursor: pointer;"'; +} +$view .= '> '.$response->historyID.' '.$response->type.' '.$response->created.' '.$response->createdby.'
' . $description . '
- '; -if ($update_allowed === 1){ - $view .= ' '.$general_view .' - '; -} - $view .= ' '; } diff --git a/history_manage.php b/history_manage.php index 1ab9a6e..536912f 100644 --- a/history_manage.php +++ b/history_manage.php @@ -101,14 +101,14 @@ $view ='

'.$history_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/language.php b/language.php index b8deff5..9e754dc 100644 --- a/language.php +++ b/language.php @@ -33,7 +33,7 @@ if (isset($_GET['success_msg'])) {

Translations

- +
diff --git a/media_manage.php b/media_manage.php index 095d5c8..dd3efb4 100644 --- a/media_manage.php +++ b/media_manage.php @@ -109,14 +109,14 @@ $view .='

'.($media_h2 ?? 'Media').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/media_scanner.php b/media_scanner.php index d2f3d3d..a9e4a50 100644 --- a/media_scanner.php +++ b/media_scanner.php @@ -324,7 +324,7 @@ $view ='

Media scanner

- '.$button_cancel.' + ←
diff --git a/order.php b/order.php index f63271e..19460e3 100644 --- a/order.php +++ b/order.php @@ -14,7 +14,7 @@ $prev_page = $_SESSION['prev_origin'] ?? ''; $page = 'order'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -59,7 +59,7 @@ template_header('order', 'order', 'view'); $view = '

'.$order['header']['id'].' - '.$order['header']['txn_id'].'

- '.$button_cancel.' + ← '; @@ -67,7 +67,7 @@ $view = ' // //------------------------------------ if ($update_allowed_edit === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; diff --git a/orders.php b/orders.php index 9d73cee..18fc5c5 100644 --- a/orders.php +++ b/orders.php @@ -89,7 +89,6 @@ $view .= ' '.($orders_method ?? 'Method').' '.($orders_status ?? 'Status').' '.($orders_created ?? 'Created').' - '.$general_actions.' '; @@ -106,14 +105,13 @@ $view .= ' $payment_method = 'payment_method_'.$order['payment_method']; $view .= ' - + '.$order['id'].' '.$order['first_name'].' '.$order['last_name'].' '.number_format($order['payment_amount'], 2).' '.(${$payment_method} ?? $order['payment_method']).' '.(${$payment_status} ?? $order['payment_status']).' '.getRelativeTime($order['created']).' - '.$general_view.' '; } } diff --git a/partner.php b/partner.php index 66d5dda..89693c9 100644 --- a/partner.php +++ b/partner.php @@ -106,14 +106,14 @@ $view ='

'.$partner_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/partners.php b/partners.php index 3ffc7b3..d8f9faf 100644 --- a/partners.php +++ b/partners.php @@ -113,7 +113,6 @@ $view .= ' '.$partner_partnertype.' '.$partner_partnername.' '.$partner_salesID.' - '.$general_actions.' @@ -136,12 +135,11 @@ $view .= ' $view .= ' - + '.$response->partnerID.' '.$response->partnertype.' '.$response->partnername.' '.$partner_hierarchy.' - '.$general_view.' '; } diff --git a/pricelists.php b/pricelists.php index 14f3d53..a83b070 100644 --- a/pricelists.php +++ b/pricelists.php @@ -98,7 +98,6 @@ $view .= ' '.($pricelists_status ?? 'status').' '.($pricelists_name ?? 'name').' '.$general_created.' - '.$general_actions.' @@ -114,12 +113,11 @@ $view .= ' else { foreach ($responses as $response){ $view .= ' - + '.$response['rowID'].' '.${'general_status_'.$response['status']}.' '.$response['name'].' '.getRelativeTime($response['created']).' - '.$general_view .' '; diff --git a/pricelists_manage.php b/pricelists_manage.php index b083314..d0d18a1 100644 --- a/pricelists_manage.php +++ b/pricelists_manage.php @@ -165,14 +165,14 @@ $view .='

'.($pricelists_h2 ?? '').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/product.php b/product.php index 0591ea6..6ad6dfe 100644 --- a/product.php +++ b/product.php @@ -14,7 +14,7 @@ $prev_page = $_SESSION['prev_origin'] ?? ''; $page = 'product'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -150,7 +150,7 @@ template_header('Product', 'product', 'view'); $view = '

'.$responses->productcode.' - '.(${$responses->productname} ?? $responses->productname).'

- '.$button_cancel.' + ← '; @@ -158,7 +158,7 @@ $view = ' // //------------------------------------ if ($update_allowed_edit === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; @@ -261,18 +261,16 @@ $view .= '
'.$product_status.' '.$product_version_version.' '.($product_version_config ?? 'Config').' - '.$general_actions.' '; foreach ($product_versions as $version){ - $view .= ' + $view .= ' '.$version->rowID.' '.(($version->status == 1)? ''.$prod_status_1:''.$prod_status_0).' '.$version->version.' '.(!empty($version->config) ? ($general_yes ?? 'Y') : ($general_no ?? 'N')).' - '.$general_view.' '; } $view .= ' @@ -301,17 +299,15 @@ if ($responses->configurable == 1){ '.($product_configuration_version ?? 'Config-version').' '.($product_configuration_assignment ?? 'Code').' '.($product_configuration_assignment ?? 'Name').' - '.$general_actions.' '; foreach ($products_configurations as $product_config){ - $view .= ' + $view .= ' '.$product_config['version'].' '.$product_config['assignment'].' '.(${$product_config['assignment_name']} ?? $product_config['assignment_name']).' - '.$general_view.' '; } $view .= ' diff --git a/product_manage.php b/product_manage.php index 59d96c3..832d21a 100644 --- a/product_manage.php +++ b/product_manage.php @@ -145,14 +145,14 @@ $view ='

'.$product_h2.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/products.php b/products.php index e9bb024..129b453 100644 --- a/products.php +++ b/products.php @@ -111,7 +111,6 @@ $view .= ' '.$product_parttype.' '.$product_name.' - '.$general_actions.' @@ -128,7 +127,7 @@ $view .= ' foreach ($responses as $response){ $view .= ' - + '.$response->productcode.' '.${'part_type'.$response->parttype}.' '.${'product_category'.$response->product_category}.' @@ -136,7 +135,6 @@ $view .= ' '.(($response->full_path !='')?'' : '').' '.(${$response->productname} ?? $response->productname).' - '.$general_view .' '; } diff --git a/products_attributes.php b/products_attributes.php index 77413a4..ee85fea 100644 --- a/products_attributes.php +++ b/products_attributes.php @@ -101,7 +101,6 @@ $view .= ' '.($products_attribute_group_name_internal ?? 'Internal name').' '.($products_attribute_group_type ?? 'type').' '.$general_created.' - '.$general_actions.' @@ -117,14 +116,13 @@ $view .= ' else { foreach ($responses as $response){ $view .= ' - + '.$response['group_id'].' '.${'general_status_'.$response['group_status']}.' '.(${$response['group_name']} ?? $response['group_name']).' '.(${$response['group_name_internal']} ?? $response['group_name_internal']).' '.(${'general_form_'.$response['group_type']} ?? $response['group_type'] ).' '.getRelativeTime($response['created']).' - '.$general_view .' '; diff --git a/products_attributes_manage.php b/products_attributes_manage.php index 30f7364..8767555 100644 --- a/products_attributes_manage.php +++ b/products_attributes_manage.php @@ -162,14 +162,14 @@ $view .='

'.($products_attributes_h2 ?? '').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/products_configurations.php b/products_configurations.php index 77c5de9..a736d21 100644 --- a/products_configurations.php +++ b/products_configurations.php @@ -127,14 +127,14 @@ $view ='

'.($product_configuration ?? 'Product configuration').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/products_software.php b/products_software.php index 0c69d6a..8211b86 100644 --- a/products_software.php +++ b/products_software.php @@ -174,14 +174,14 @@ $view ='

'.$product_version_software.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/products_software_upgrade_paths_manage.php b/products_software_upgrade_paths_manage.php index 88acf7a..46f3ca8 100644 --- a/products_software_upgrade_paths_manage.php +++ b/products_software_upgrade_paths_manage.php @@ -164,10 +164,10 @@ $view =' '; if ($delete_allowed === 1 && isset($_GET['id'])){ - $view .= ''; + $view .= ''; } if (($update_allowed === 1 && isset($_GET['id'])) || ($create_allowed === 1 && !isset($_GET['id']))){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/products_software_version.php b/products_software_version.php index 6179792..b4da2e4 100644 --- a/products_software_version.php +++ b/products_software_version.php @@ -85,8 +85,8 @@ $view = '
- '.$button_cancel.' - '.($update_allowed_edit ? 'Edit' : '').' + ← + '.($update_allowed_edit ? '✏️' : '').'
diff --git a/products_software_version_manage.php b/products_software_version_manage.php index 598e062..02cb4da 100644 --- a/products_software_version_manage.php +++ b/products_software_version_manage.php @@ -123,10 +123,10 @@ $view =' '; if ($delete_allowed === 1 && isset($_GET['id'])){ - $view .= ''; + $view .= ''; } if (($update_allowed === 1 && isset($_GET['id'])) || ($create_allowed === 1 && !isset($_GET['id']))){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/products_versions.php b/products_versions.php index 598ecd9..f1b6e0d 100644 --- a/products_versions.php +++ b/products_versions.php @@ -96,14 +96,14 @@ $view ='

'.$product_version_version.'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/profile.php b/profile.php index f9e9d1b..66aa7ab 100644 --- a/profile.php +++ b/profile.php @@ -83,10 +83,10 @@ $view ='

'.$user_h2.'

- '.$button_cancel.' + ← '; if ($update_allowed === 1 && $_SESSION['permission'] != 0){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/profiles.php b/profiles.php index 6ae0f1d..e2ddf85 100644 --- a/profiles.php +++ b/profiles.php @@ -122,7 +122,7 @@ $view .= '

Profiles

- +
'; diff --git a/report_contracts_billing.php b/report_contracts_billing.php index ea1021d..cc31836 100644 --- a/report_contracts_billing.php +++ b/report_contracts_billing.php @@ -15,7 +15,7 @@ $page = $_SESSION['origin'] = 'report_contracts_billing'; $prev_page = ($_SESSION['origin'] == 'equipments') ? $_SESSION['prev_origin_equipment'] : (($_SESSION['origin'] == 'account')? $_SESSION['prev_origin'] :''); //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -158,7 +158,6 @@ $view .= ' '.$contract_service_2.' '.$contract_overrun.' '.$contract_reference.' - '.$general_actions.' @@ -175,7 +174,7 @@ $view .= ' foreach ($responses as $response){ $view .= ' - + '.$response['#'].' '.(($response['Status'] == $contract_status1)? ''.$response['Status']: (($response['Status'] == $contract_status3) ? ''.$response['Status'] : ''.$response['Status'])).' '.$response['Account'].' @@ -188,7 +187,6 @@ $view .= ' '.$response['Contracted'].' '.$response['Deviation'].' '.$response['Period'].' - '.$general_view .' '; } diff --git a/report_healthindex.php b/report_healthindex.php index 4002fd4..c9c4f5c 100644 --- a/report_healthindex.php +++ b/report_healthindex.php @@ -14,7 +14,7 @@ $prev_page = $_SESSION['prev_origin'] ?? ''; $page = $_SESSION['origin'] = 'report_healthindex'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -164,7 +164,6 @@ $view .= ' '.$general_soldto.' '.$general_shipto.' - '.$view_asset_actions.' @@ -190,7 +189,7 @@ $shipto = getPartnerName($partner_data->shipto) ?? $not_specified; $picture = glob("./assets/images/products/".$response->productcode.".{jpg,jpeg,png,gif}", GLOB_BRACE); $indicators = overviewIndicators($response->warranty_date,$response->service_date,$response->sw_version,$response->hw_version); -$view .= ' +$view .= ' '.$response->healthindex.' '.$indicators.' '.$response->serialnumber.' @@ -205,7 +204,7 @@ $view .= ' '; $view .= ' '.$soldto.' '.$shipto.' - '.$general_view .' + '; } diff --git a/rma.php b/rma.php index 26e710f..9457f52 100644 --- a/rma.php +++ b/rma.php @@ -69,11 +69,11 @@ template_header('RMA', 'rma','manage'); $view = '

'.($rma_h2 ?? 'Return Material Request').' - '.$_GET['rowID'].'

- '.$button_cancel.' + ← '; if ($update_allowed === 1){ - $view .= 'Edit'; + $view .= '✏️'; } $view .= '
'; @@ -126,7 +126,7 @@ $view .= '
$view .='

'.$servicereport_details.'

-

'.$general_view.'

+

'.$general_view.'

'; } diff --git a/rma_manage.php b/rma_manage.php index 6968970..b092fe0 100644 --- a/rma_manage.php +++ b/rma_manage.php @@ -228,11 +228,11 @@ $view ='

'.($rma_h2 ?? 'Return Material Request').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ $view .= ''; diff --git a/rmas.php b/rmas.php index a2233c1..2a0c6ef 100644 --- a/rmas.php +++ b/rmas.php @@ -123,7 +123,6 @@ $view .= ' '.$general_created.' '.$general_createdby.' '.$general_updated.' - '.$general_actions.' @@ -144,13 +143,12 @@ $view .= ' $status_text = 'rma_status'.$response['status'].'_text'; $view .= ' - + '.$response['rowID'].' '.$$status_text.' '.getRelativeTime($response['created']).' '.$response['createdby'].' '.getRelativeTime($response['updated']).' - '.$general_view.' '; } diff --git a/servicereport.php b/servicereport.php index 3733d4c..af91735 100644 --- a/servicereport.php +++ b/servicereport.php @@ -15,7 +15,7 @@ $prev_page = (isset($_SESSION['origin']) && $_SESSION['origin'] == 'equipments') $page = 'servicereport'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed @@ -44,6 +44,7 @@ $view = '
'.$back_btn_orgin.' +
'; //Get all related service events @@ -59,6 +60,7 @@ if (empty($history)){ $view .= '
'.$servicereport_details.' - '.$_GET['historyID'].' +
'.$service_events.'
diff --git a/servicereports.php b/servicereports.php index 7bc35c8..2dbf311 100644 --- a/servicereports.php +++ b/servicereports.php @@ -16,7 +16,7 @@ $prev_page = ((isset($_SESSION['prev_origin_equipment'])) ? $_SESSION['prev_orig $page = $_SESSION['origin'] = 'servicereports'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ diff --git a/settings.php b/settings.php index aeb6764..b6b5cce 100644 --- a/settings.php +++ b/settings.php @@ -132,7 +132,7 @@ $view .= '

Settings

- +
'; diff --git a/shipping.php b/shipping.php index 7da0d7f..16982bc 100644 --- a/shipping.php +++ b/shipping.php @@ -96,7 +96,6 @@ $view .= ' '.($shipping_price ?? 'Price Range').' '.($shipping_weight ?? 'Weight Range').' '.($shipping_price_total ?? 'Total price').' - '.$general_actions.' '; @@ -117,15 +116,14 @@ $view .= ' } $view .= ' - + '.$shipment['id'].' '.$shipment['name'].' '.($shipment['type'] == 0 ? ($shipping_type_standard ?? 'Standard' ) : ($shipping_type_express ?? 'Express')).' '.$shipping_countries.' - '.number_format($shipment['price_from'], 2).' - '.number_format($shipment['price_to'], 2).' + '.number_format($shipment['price_from'], 2).' - '.number_format($shipment['price_to'], 2).' kg '.number_format($shipment['weight_from'], 2).' kg - '.number_format($shipment['weight_to'], 2).' kg '.number_format($shipment['price'], 2).' - '.$general_view.' '; } } diff --git a/shipping_manage.php b/shipping_manage.php index ffc2ebd..0e279f8 100644 --- a/shipping_manage.php +++ b/shipping_manage.php @@ -97,14 +97,14 @@ $view ='

'.($shipping_h2 ?? 'shipping').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/style/admin.css b/style/admin.css index 641daef..a616525 100644 --- a/style/admin.css +++ b/style/admin.css @@ -15,7 +15,7 @@ * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif; - font-size: 16px; + font-size: 12px; } html { @@ -138,7 +138,6 @@ aside h1 { aside > a { font-size: 14px; - font-weight: 600; text-decoration: none; color: var( --text-color-accent-2); padding: 15px 20px; @@ -228,15 +227,13 @@ main.full { } main h2 { - font-size: 20px; + font-size: 18px; padding-bottom: 20px; - font-weight: 600; } main h2 span { - font-size: 16px; + font-size: 14px; margin-left: 5px; - font-weight: 600; color: #959faf; } @@ -265,9 +262,9 @@ main .content-title .title i { align-items: center; background-color: var(--color-green); color: var(--color-white); - width: 52px; - height: 42px; - border-radius: 4px; + width: 40px; + height: 40px; + border-radius: 3px; margin-right: 12px; } @@ -284,6 +281,7 @@ main .content-title .title p { font-size: 14px; color: var( --text-color-accent-2); font-weight: 500; + display: none; } main .msg { @@ -1256,7 +1254,7 @@ background-color: var(--color-indicator-1); background: var(--color-green); color: var(--color-white); padding: 0 14px; - font-size: 14px; + font-size: 12px; font-weight: 600; border-radius: 4px; height: 38px; @@ -1283,17 +1281,6 @@ background-color: var(--color-indicator-1); font-style: italic; } -a.btn:after{ - content: ' '; - display: inline-block; - border-bottom: 1px solid var(--color-white); - border-right: 1px solid var(--color-white); - height: 8px; - width: 8px; - transform: rotate(-45deg); - margin-left: 1rem; -} - .btn_link { display: inline-flex; align-items: center; diff --git a/tax.php b/tax.php index d616b08..1aa1be9 100644 --- a/tax.php +++ b/tax.php @@ -47,9 +47,9 @@ if (isset($_GET['id'])) {

Tax

Cancel - + - +
diff --git a/translation_manage.php b/translation_manage.php index 2d4e89c..d2a41ec 100644 --- a/translation_manage.php +++ b/translation_manage.php @@ -167,14 +167,14 @@ $view .='

'.($text_variables_h2 ?? '').'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/translations.php b/translations.php index 6afcc0a..8c8f0ca 100644 --- a/translations.php +++ b/translations.php @@ -97,7 +97,6 @@ $view .= ' '.($text_variable_rowID ?? '').' '.($text_variable_variable ?? '').' '.$general_created.' - '.$general_actions.' @@ -113,11 +112,10 @@ $view .= ' else { foreach ($responses as $response){ $view .= ' - + '.$response['rowID'].' '.$response['variable'].' '.getRelativeTime($response['created']).' - '.$general_view .' '; diff --git a/user.php b/user.php index 9614f78..6b6d64d 100644 --- a/user.php +++ b/user.php @@ -171,14 +171,14 @@ $view .='

'.$user_h2.': '.$user['username'].' '.(($user['login_count'] > 4)? ''.$User_block:(($user['userkey'] && $user['userkey'] !='')? ''.$enabled:''.$disabled)).'

- '.$button_cancel.' + ← '; if ($delete_allowed === 1){ - $view .= ''; + $view .= ''; } if ($update_allowed === 1){ - $view .= ''; + $view .= ''; } $view .= '
'; diff --git a/users.php b/users.php index a22f749..589d9be 100644 --- a/users.php +++ b/users.php @@ -15,7 +15,7 @@ $prev_page = (isset($_SESSION['origin']) && $_SESSION['origin'] == 'equipments') $page = 'users'; //create backbutton to prev_origin -$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; +$back_btn_orgin = ($prev_page != '')? '←':''; //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ @@ -125,7 +125,6 @@ $view .= ' '.$User_permission.' '.$User_profile.' '.$User_lastlogin.' - '.$general_actions.' @@ -148,7 +147,7 @@ $view .= ' $permission_user = 'permission'.$response->view; $view .= ' - + '.(($response->login_count > 4)? ''.$User_block:(($response->userkey && $response->userkey !='')? ''.$enabled:''.$disabled)).' '.(($response->service && $response->service !='')? ''.$enabled:''.$disabled).' @@ -157,7 +156,6 @@ $view .= ' '.$$permission_user.' '.$response->settings.' '.getRelativeTime($response->lastlogin).' - '.$general_view .' '; }