From b5b5f467bbda85c4f519eb12dc8d32142436d991 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 22 Oct 2020 12:26:52 -0600 Subject: [PATCH] Devices - Export: Minor visual adjustments. --- app/devices/app_languages.php | 23 +++++++++++++++++++++++ app/devices/device_download.php | 30 ++++++++++++++++++------------ 2 files changed, 41 insertions(+), 12 deletions(-) diff --git a/app/devices/app_languages.php b/app/devices/app_languages.php index fdb0516c8c..938af64009 100644 --- a/app/devices/app_languages.php +++ b/app/devices/app_languages.php @@ -4713,6 +4713,29 @@ $text['header-device']['ru-ru'] = "Устройство"; $text['header-device']['sv-se'] = "Enhet"; $text['header-device']['uk-ua'] = ""; +$text['description-device_export']['en-us'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['en-gb'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['ar-eg'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['de-at'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['de-ch'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['de-de'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['ek-gr'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['es-cl'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['es-mx'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['fr-ca'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['fr-fr'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['he-il'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['it-it'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['nl-nl'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['pl-pl'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['pt-br'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['pt-pt'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['ro-ro'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['ru-ru'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['sv-se'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['uk-ua'] = "Select the fields you wish to include in the export."; +$text['description-device_export']['tr-tr'] = "Select the fields you wish to include in the export."; + $text['description-user']['en-us'] = "Assign a user to this device."; $text['description-user']['en-gb'] = "Assign a user to this device."; $text['description-user']['ar-eg'] = ""; diff --git a/app/devices/device_download.php b/app/devices/device_download.php index 95892c64e8..f3569ae1be 100644 --- a/app/devices/device_download.php +++ b/app/devices/device_download.php @@ -147,7 +147,6 @@ $database = new database; $devices = $database->select($sql, $parameters, 'all'); unset($sql, $parameters, $column_names); - //print_r($extensions); foreach($column_group as $table_name => $columns) { if ($table_name !== 'devices') { @@ -202,27 +201,36 @@ echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo " \n"; - echo "\n"; + echo $text['description-device_export']; + echo "

\n"; if (is_array($available_columns) && @sizeof($available_columns) != 0) { $x = 0; foreach ($available_columns as $table_name => $columns) { + $table_name_label = ucwords(str_replace(['-','_',],' ', $table_name)); + echo "
\n"; + echo "".$table_name_label."\n"; + echo "
\n"; + echo "
\n"; - echo " \n"; - echo " ".$text['label-column_name']."
\n"; + echo "\n"; + echo " \n"; + echo " \n"; + echo "\n"; foreach ($columns as $column_name) { $list_row_onclick = "if (!this.checked) { document.getElementById('checkbox_all').checked = false; }"; echo "\n"; echo " \n"; echo " "; echo ""; $x++; } + echo "
\n"; + echo " \n"; + echo " ".$text['label-column_name']."
\n"; - echo " \n"; + echo " \n"; echo " ".$column_name."
\n"; + echo "
\n"; + echo "\n"; } } @@ -231,12 +239,10 @@ //echo " \n"; //echo " \n"; - echo "\n"; - echo "
\n"; echo "\n"; echo "\n"; //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file