mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Bugfix benutzer
This commit is contained in:
parent
ca9c1fc354
commit
61c0675e58
@ -30108,11 +30108,14 @@ function ChargenMHDAuslagern($artikel, $menge, $lagerplatztyp, $lpid,$typ,$wert,
|
||||
|
||||
//$tpl .="<option value=\"0\">-- kein --</option>";
|
||||
$drucker = $this->app->DB->SelectArr("SELECT id, name FROM drucker WHERE aktiv='1' AND art='1'");
|
||||
|
||||
if (gettype($drucker) == 'array') {
|
||||
for($i=0;$i<count($drucker);$i++)
|
||||
{
|
||||
if($drucker[$i]['id']==$selected) $mark="selected"; else $mark="";
|
||||
$tpl .="<option value=\"{$drucker[$i]['id']}\" $mark>{$drucker[$i]['name']}</option>";
|
||||
}
|
||||
}
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
|
@ -1009,6 +1009,8 @@ class Benutzer
|
||||
for($i=0;$i<$maxcols || $i<count($value);$i++) {
|
||||
if($i%$maxcols==0) $out .= "<tr>";
|
||||
|
||||
if (gettype($rights[$module]) == 'array') {
|
||||
|
||||
if(isset($value[$i]) && in_array($value[$i], $rights[$module])) {
|
||||
$class = 'class="blue"';
|
||||
$active = '1';
|
||||
@ -1016,6 +1018,11 @@ class Benutzer
|
||||
$class = 'class="grey"';
|
||||
$active = 0;
|
||||
}
|
||||
} else {
|
||||
$class = 'class="grey"';
|
||||
$active = 0;
|
||||
}
|
||||
|
||||
$class = ((isset($value[$i])) ? $class : '');
|
||||
|
||||
$action = ((isset($value[$i])) ? strtolower($value[$i]) : '');
|
||||
|
Loading…
Reference in New Issue
Block a user