Merged Colors and Theme Colors array into one

This commit is contained in:
johnnyq 2023-01-20 14:22:07 -05:00
parent 7d29b551e7
commit 06cca61354
2 changed files with 18 additions and 41 deletions

View File

@ -86,26 +86,25 @@ $config_theme = $row['config_theme'];
$config_enable_dark_mode = "dark_mode";
$colors_array = array(
'green',
'olive',
'yellowgreen',
'lime',
'blue',
'darkblue',
'cadetblue',
'green',
'cyan',
'purple',
'indigo',
'magenta',
'yellow',
'red',
'crimson',
'indianred',
'pink',
'orange',
'teal',
'black',
'gray-dark',
'gray'
'gray',
'light',
'indigo',
'navy',
'purple',
'fuchsia',
'pink',
'maroon',
'orange',
'lime',
'teal',
'olive'
);
$net_terms_array = array(
@ -927,26 +926,4 @@ $asset_status_array = array(
'Retired'
);
$themes_array = array(
'blue',
'green',
'cyan',
'yellow',
'red',
'black',
'gray-dark',
'gray',
'light',
'indigo',
'navy',
'purple',
'fuchsia',
'pink',
'maroon',
'orange',
'lime',
'teal',
'olive'
);
?>

View File

@ -12,17 +12,17 @@
<?php
foreach($themes_array as $theme_color) {
foreach($colors_array as $color) {
?>
<div class="col-3 text-center mb-3">
<div class="form-check">
<input class="form-check-input" type="radio" name="theme" value="<?php echo $theme_color; ?>" <?php if($config_theme == $theme_color){ echo "checked"; } ?>>
<input class="form-check-input" type="radio" name="theme" value="<?php echo $color; ?>" <?php if($config_theme == $color){ echo "checked"; } ?>>
<label class="form-check-label">
<i class="fa fa-fw fa-6x fa-circle text-<?php echo $theme_color; ?>"></i>
<i class="fa fa-fw fa-6x fa-circle text-<?php echo $color; ?>"></i>
<br>
<?php echo $theme_color; ?>
<?php echo $color; ?>
</label>
</div>
</div>