isadmin()) die('Zugriff verweigert'); $rep=null; $newuser=true; if($staff && $_REQUEST['a']!='new'){ $rep=$staff->getInfo(); $title='Aktualisieren: '.$rep['firstname'].' '.$rep['lastname']; $action='update'; $pwdinfo='Um das Passwort zurück zu setzen geben Sie nachfolgend ein neues ein'; $newuser=false; }else { $title='Neuer Mitarbeiter'; $pwdinfo='Temp. Passwort erforderlich'; $action='create'; $rep['resetpasswd']=isset($rep['resetpasswd'])?$rep['resetpasswd']:1; $rep['isactive']=isset($rep['isactive'])?$rep['isactive']:1; $rep['dept_id']=$rep['dept_id']?$rep['dept_id']:$_GET['dept']; $rep['isvisible']=isset($rep['isvisible'])?$rep['isvisible']:1; } $rep=($errors && $_POST)?Format::input($_POST):Format::htmlchars($rep); //get the goodies. $groups=db_query('SELECT group_id,group_name FROM '.GROUP_TABLE); $depts= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE); ?>