Aggiunta colorazione righe controllo database

This commit is contained in:
Luca 2021-01-14 01:40:45 +01:00
parent 8b4bd266c5
commit 7b0d4e3d51
1 changed files with 7 additions and 2 deletions

View File

@ -116,7 +116,7 @@ if (!empty($results)) {
if (!empty($errors)) {
echo '
<table class="table table-bordered table-striped">
<table class="table table-bordered">
<thead>
<tr>
<th>'.tr('Colonna').'</th>
@ -127,8 +127,13 @@ if (!empty($results)) {
<tbody>';
foreach ($errors as $name => $diff) {
if(count($diff) == 1 && array_key_exists('type',$diff) && str_contains($diff['type']['expected'] , $diff['type']['current'])){
$class="info";
}else{
$class="warning";
}
echo '
<tr>
<tr class="bg-'.$class.'" >
<td>
'.$name.'
</td>