01 2020
This commit is contained in:
parent
bed91c4f4a
commit
c8948338bb
122 changed files with 7911 additions and 1639 deletions
|
|
@ -61,6 +61,7 @@ class HTMLHelper
|
|||
0 => 'Kunde',
|
||||
1 => 'Admin',
|
||||
2 => 'SuperAdmin',
|
||||
3 => 'SysAdmin',
|
||||
];
|
||||
|
||||
|
||||
|
|
@ -103,6 +104,9 @@ class HTMLHelper
|
|||
case 2:
|
||||
return 'badge-primary';
|
||||
break;
|
||||
case 3:
|
||||
return 'badge-success';
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,4 +127,17 @@ class Util
|
|||
$html = $dom->saveHTML();
|
||||
return $html;
|
||||
}
|
||||
|
||||
public static function convertArrayWindowsCharset($values){
|
||||
foreach ($values as $key=>$string){
|
||||
$values[$key] = self::convertStringWindowsCharset($string);
|
||||
}
|
||||
return $values;
|
||||
}
|
||||
|
||||
public static function convertStringWindowsCharset($value) {
|
||||
|
||||
$charset = mb_detect_encoding($value, "UTF-8, ISO-8859-1, ISO-8859-15", true);
|
||||
return mb_convert_encoding($value, "Windows-1252", $charset);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue