mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 23:01:14 +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>";
|
//$tpl .="<option value=\"0\">-- kein --</option>";
|
||||||
$drucker = $this->app->DB->SelectArr("SELECT id, name FROM drucker WHERE aktiv='1' AND art='1'");
|
$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++)
|
for($i=0;$i<count($drucker);$i++)
|
||||||
{
|
{
|
||||||
if($drucker[$i]['id']==$selected) $mark="selected"; else $mark="";
|
if($drucker[$i]['id']==$selected) $mark="selected"; else $mark="";
|
||||||
$tpl .="<option value=\"{$drucker[$i]['id']}\" $mark>{$drucker[$i]['name']}</option>";
|
$tpl .="<option value=\"{$drucker[$i]['id']}\" $mark>{$drucker[$i]['name']}</option>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $tpl;
|
return $tpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1009,6 +1009,8 @@ class Benutzer
|
|||||||
for($i=0;$i<$maxcols || $i<count($value);$i++) {
|
for($i=0;$i<$maxcols || $i<count($value);$i++) {
|
||||||
if($i%$maxcols==0) $out .= "<tr>";
|
if($i%$maxcols==0) $out .= "<tr>";
|
||||||
|
|
||||||
|
if (gettype($rights[$module]) == 'array') {
|
||||||
|
|
||||||
if(isset($value[$i]) && in_array($value[$i], $rights[$module])) {
|
if(isset($value[$i]) && in_array($value[$i], $rights[$module])) {
|
||||||
$class = 'class="blue"';
|
$class = 'class="blue"';
|
||||||
$active = '1';
|
$active = '1';
|
||||||
@ -1016,6 +1018,11 @@ class Benutzer
|
|||||||
$class = 'class="grey"';
|
$class = 'class="grey"';
|
||||||
$active = 0;
|
$active = 0;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$class = 'class="grey"';
|
||||||
|
$active = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$class = ((isset($value[$i])) ? $class : '');
|
$class = ((isset($value[$i])) ? $class : '');
|
||||||
|
|
||||||
$action = ((isset($value[$i])) ? strtolower($value[$i]) : '');
|
$action = ((isset($value[$i])) ? strtolower($value[$i]) : '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user