From 6d2ae9d9233ecbc10e7735a167938c1f2794d647 Mon Sep 17 00:00:00 2001 From: Roni <54395471+Roni-Neto@users.noreply.github.com> Date: Tue, 4 May 2021 01:25:46 -0300 Subject: [PATCH] Color on action buttons I'm not very good, I did it with (id = ""), in the future someone wants to organize better. --- tinyfilemanager.php | 59 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 60dfad1..839685c 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1,6 +1,6 @@ data['hide_Cols']) ? $cfg->data['hide_Cols'] : true; // Show directory size: true or speedup output: false $calc_folder = isset($cfg->data['calc_folder']) ? $cfg->data['calc_folder'] : true; +// Color on action buttons +$actioncolor = isset($cfg->data['actioncolor']) ? $cfg->data['actioncolor'] : true; + //available languages $lang_list = array( 'en' => 'English' @@ -473,7 +476,7 @@ if (isset($_POST['ajax']) && !FM_READONLY) { // Save Config if (isset($_POST['type']) && $_POST['type'] == "settings") { - global $cfg, $lang, $report_errors, $show_hidden_files, $lang_list, $hide_Cols, $calc_folder; + global $cfg, $lang, $report_errors, $show_hidden_files, $lang_list, $hide_Cols, $calc_folder, $actioncolor; $newLng = $_POST['js-language']; fm_get_translations([]); if (!array_key_exists($newLng, $lang_list)) { @@ -484,6 +487,7 @@ if (isset($_POST['ajax']) && !FM_READONLY) { $shf = isset($_POST['js-show-hidden']) && $_POST['js-show-hidden'] == "true" ? true : false; $hco = isset($_POST['js-hide-cols']) && $_POST['js-hide-cols'] == "true" ? true : false; $caf = isset($_POST['js-calc-folder']) && $_POST['js-calc-folder'] == "true" ? true : false; + $actcol = isset($_POST['js-actcol-2']) && $_POST['js-actcol-2'] == "true" ? true : false; if ($cfg->data['lang'] != $newLng) { $cfg->data['lang'] = $newLng; @@ -509,6 +513,10 @@ if (isset($_POST['ajax']) && !FM_READONLY) { $cfg->data['calc_folder'] = $caf; $calc_folder = $caf; } + if ($cfg->data['actioncolor'] != $actcol) { + $cfg->data['actioncolor'] = $actcol; + $actioncolor = $actcol; + } $cfg->save(); echo true; } @@ -1435,6 +1443,20 @@ if (isset($_GET['settings']) && !FM_READONLY) { + +
+ +
+
+ + +
+
+
@@ -1881,6 +1903,22 @@ $num_folders = count($folders); $all_files_size = 0; $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white"; ?> + + +#testclass1120{ } +#testclass1121{ background-color:red; } +#testclass1122{ background-color:yellow; color:black; } +#testclass1123{ background-color:green; } +#testclass1124{ } +#testclass1125{ } +#testclass1128{ background-color:blue; } +#testclass1129{ background-color:blue; } +"; +} +?> +
@@ -1966,9 +2004,10 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white - - - + + + + @@ -2030,13 +2069,13 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white - - + + + href="?p=&copy="> - - + +