115 lines
6.7 KiB
PHP
115 lines
6.7 KiB
PHP
|
|
<?php
|
||
|
|
if(!defined('OSTADMININC') || !$thisuser->isadmin()) die('Zugriff verweigert');
|
||
|
|
|
||
|
|
$info=($errors && $_POST)?Format::input($_POST):Format::htmlchars($group);
|
||
|
|
if($group && $_REQUEST['a']!='new'){
|
||
|
|
$title='Gruppe editieren: '.$group['group_name'];
|
||
|
|
$action='update';
|
||
|
|
}else {
|
||
|
|
$title='Neue Gruppe hinzufuegen';
|
||
|
|
$action='create';
|
||
|
|
$info['group_enabled']=isset($info['group_enabled'])?$info['group_enabled']:1; //Default to active
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|
||
|
|
<table width="100%" border="0" cellspacing=0 cellpadding=0>
|
||
|
|
<form action="admin.php" method="POST" name="group">
|
||
|
|
<input type="hidden" name="do" value="<?=$action?>">
|
||
|
|
<input type="hidden" name="a" value="<?=Format::htmlchars($_REQUEST['a'])?>">
|
||
|
|
<input type="hidden" name="t" value="groups">
|
||
|
|
<input type="hidden" name="group_id" value="<?=$info['group_id']?>">
|
||
|
|
<input type="hidden" name="old_name" value="<?=$info['group_name']?>">
|
||
|
|
<tr><td>
|
||
|
|
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
|
||
|
|
<tr class="header"><td colspan=2><?=Format::htmlchars($title)?></td></tr>
|
||
|
|
<tr class="subheader"><td colspan=2>
|
||
|
|
Folgende Gruppenberechtigungen gelten für alle Mitglieder der Gruppe, nicht aber für Administratoren und Leiter von Abteilung.
|
||
|
|
</td></tr>
|
||
|
|
<tr><th>Gruppenname:</th>
|
||
|
|
<td><input type="text" name="group_name" size=25 value="<?=$info['group_name']?>">
|
||
|
|
<font class="error">* <?=$errors['group_name']?></font>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>Gruppenstatus:</th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="group_enabled" value="1" <?=$info['group_enabled']?'checked':''?> /> Aktiv
|
||
|
|
<input type="radio" name="group_enabled" value="0" <?=!$info['group_enabled']?'checked':''?> />Inaktiv
|
||
|
|
<font class="error"> <?=$errors['group_enabled']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th valign="top"><br>Abteilungszugriff</th>
|
||
|
|
<td class="mainTableAlt"><i>Die Gruppenmitglieder sind, zusätzlich zu Ihrer Abteilung, für den Zugriff auf die gewählten Abteilungen berechtigt.</i>
|
||
|
|
<font class="error"> <?=$errors['depts']?></font><br/>
|
||
|
|
<?
|
||
|
|
//Try to save the state on error...
|
||
|
|
$access=($_POST['depts'] && $errors)?$_POST['depts']:explode(',',$info['dept_access']);
|
||
|
|
$depts= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE.' ORDER BY dept_name');
|
||
|
|
while (list($id,$name) = db_fetch_row($depts)){
|
||
|
|
$ck=($access && in_array($id,$access))?'checked':''; ?>
|
||
|
|
<input type="checkbox" name="depts[]" value="<?=$id?>" <?=$ck?> > <?=$name?><br/>
|
||
|
|
<?
|
||
|
|
}?>
|
||
|
|
<a href="#" onclick="return select_all(document.forms['group'])">Wähle alle</a> |
|
||
|
|
<a href="#" onclick="return reset_all(document.forms['group'])">Wähle keine</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Tickets <b>Erstellen</b></th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_create_tickets" value="1" <?=$info['can_create_tickets']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_create_tickets" value="0" <?=!$info['can_create_tickets']?'checked':''?> />Nein
|
||
|
|
<i>Berechtigung um Tickets für Nutzer zu erstellen!</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Tickets <b>Bearbeiten</b></th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_edit_tickets" value="1" <?=$info['can_edit_tickets']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_edit_tickets" value="0" <?=!$info['can_edit_tickets']?'checked':''?> />Nein
|
||
|
|
<i>Berechtigung Tickets zu bearbeiten. Administratoren & Abteilungsleiter sind standardmäβig berechtigt.</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Tickets <b>Schlieβen</b></th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_close_tickets" value="1" <?=$info['can_close_tickets']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_close_tickets" value="0" <?=!$info['can_close_tickets']?'checked':''?> />Nein
|
||
|
|
<i><b>Nur Sammelschlieβen:</b> Die Mitarbeiter können jederzeit ein Ticket schlieβen falls Nein gesetzt ist.</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Tickets <b>Verschieben</b></th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_transfer_tickets" value="1" <?=$info['can_transfer_tickets']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_transfer_tickets" value="0" <?=!$info['can_transfer_tickets']?'checked':''?> />Nein
|
||
|
|
<i>Berechtigung um Tickets von einer Abteilung in eine andere zu verschieben.</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Tickets <b>Löschen</b></th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_delete_tickets" value="1" <?=$info['can_delete_tickets']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_delete_tickets" value="0" <?=!$info['can_delete_tickets']?'checked':''?> />Nein
|
||
|
|
<i>Gelöschte Tickets können wiederhergestellt werden!</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Email-Adressen sperren</th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_ban_emails" value="1" <?=$info['can_ban_emails']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_ban_emails" value="0" <?=!$info['can_ban_emails']?'checked':''?> />Nein
|
||
|
|
<i>Berechtigung um Emails über das Ticketformular von der Sperrliste zu löschen oder der Sperrliste hinzuzufügen.</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Kann Vorlagen verwalten</th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="can_manage_kb" value="1" <?=$info['can_manage_kb']?'checked':''?> />Ja
|
||
|
|
<input type="radio" name="can_manage_kb" value="0" <?=!$info['can_manage_kb']?'checked':''?> />Nein
|
||
|
|
<i>Berechtigung zum Löschen/Hinzufügen/Ändern/Deaktivieren von vorgefertigten Antworten.</i>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<tr><td style="padding-left:165px;padding-top:20px;">
|
||
|
|
<input class="button" type="submit" name="submit" value="Bestätigen">
|
||
|
|
<input class="button" type="reset" name="reset" value="Zurücksetzen">
|
||
|
|
<input class="button" type="button" name="cancel" value="Abbrechen" onClick='window.location.href="admin.php?t=groups"'>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</form>
|
||
|
|
</table>
|