isAdmin()) die('Access Denied'); $info = $qs = array(); if($dept && $_REQUEST['a']!='add') { //Editing Department. $title=__('Update Department'); $action='update'; $submit_text=__('Save Changes'); $info = $dept->getInfo(); $info['id'] = $dept->getId(); $qs += array('id' => $dept->getId()); } else { if (!$dept) $dept = Dept::create(); $title=__('Add New Department'); $action='create'; $submit_text=__('Create Dept'); $info['ispublic']=isset($info['ispublic'])?$info['ispublic']:1; $info['ticket_auto_response']=isset($info['ticket_auto_response'])?$info['ticket_auto_response']:1; $info['message_auto_response']=isset($info['message_auto_response'])?$info['message_auto_response']:1; if (!isset($info['group_membership'])) $info['group_membership'] = 1; $qs += array('a' => $_REQUEST['a']); } $info = Format::htmlchars(($errors && $_POST) ? $_POST : $info, true); ?>

:  
:  
: getId() == $cfg->getDefaultDeptId()) echo $dept->getStatus(); else { ?>   
:      
:   
:   
:  
:   
:
:
:
:    
:    
:
:
:
:  
:
:
: