<?php

// no direct access
defined('_VALID_HM') or die('Restricted access');

if (defined('STANDARDTICKET') && STANDARDTICKET == 1) {
    $menuArray[] = array(
        'name'      => 'Neu',
        'menu_link' => '?module=ticket&amp;event=newTicket',
        'menu_alt'  => 'Neues Ticket erstellen',
        'menu_img'  => 'ticket_add.gif',
        'right_id'  => 1,
        'right_id2' => 402,
        'childs'    => array(
            array(
                'name'      => 'Neues Ticket',
                'menu_link' => '?module=ticket&amp;event=newTicket',
                'menu_alt'  => 'Neues Ticket anlegen',
                'menu_img'  => 'ticket_add.gif',
                'right_id'  => 1
            ),
            array(
                'name'      => 'Ticket aus Vorlage',
                'menu_link' => '?module=ticket&event=newTicketFromTemplate',
                'menu_alt'  => 'Ticket aus Vorlage erstellen',
                'menu_img'  => 'tickettemplate_add.gif',
                'right_id'  => 402,
                'secure'    => 'TicketTemplate'
            ),
            array(
                'name'      => 'Workflow starten',
                'menu_link' => '?module=workflow&amp;event=selectwf',
                'menu_alt'  => 'Workflow starten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 705,
                'secure'    => 'Workflow',
            )

        )
    );
}

$menuArray[] = array(
    'name'      => 'Ticket',
    'menu_link' => '?module=ticketlist',
    'menu_alt'  => 'Tickets',
    'menu_img'  => 'ticket.gif',
    'right_id'  => 0,
    'childs'    => array(
        array(
            'name'      => 'Liste',
            'menu_link' => '?module=ticketlist',
            'menu_alt'  => 'Bestehende Tickets auflisten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 0
        ),
        array(
            'name'      => 'Neu',
            'menu_link' => '?module=ticket&amp;event=newTicket',
            'menu_alt'  => 'Neues Ticket anlegen',
            'menu_img'  => 'ticket_add.gif',
            'right_id'  => 1
        ),
        array(
            'name'      => 'Aus Vorlage',
            'menu_link' => '?module=ticket&event=newTicketFromTemplate',
            'menu_alt'  => 'Ticket aus Vorlage erstellen',
            'menu_img'  => 'tickettemplate_add.gif',
            'right_id'  => 402,
            'secure'    => 'TicketTemplate'
        ),
        array(
            'name'      => 'Merkliste',
            'menu_link' => '?module=ticketlist&amp;event=ticketbasket',
            'menu_alt'  => 'Merkliste',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 0
        )
    )
);

$menuArray[] = array(
    'name'      => 'Workflow',
    'menu_link' => '?module=workflow',
    'menu_alt'  => 'Workflow',
    'menu_img'  => 'project.png',
    'secure'    => 'Workflow',
    'right_id'  => 705,
    'right_id2' => 703,
    'childs'    => array(
        array(
            'name'      => 'Definition',
            'menu_link' => '?module=workflow&amp;event=listwfds',
            'menu_alt'  => 'Workflow Definitionen auflisten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 703,
            'childs'    => array(
                array(
                    'name'      => 'Liste',
                    'menu_link' => '?module=workflow&amp;event=listwfds',
                    'menu_alt'  => 'Workflow Definitionen auflisten',
                    'menu_img'  => 'ticket_list.gif',
                    'right_id'  => 703,
                ),
                array(
                    'name'      => 'Neu',
                    'menu_link' => '?module=workflow&amp;event=create',
                    'menu_alt'  => 'Neue Workflow Definition',
                    'menu_img'  => 'ticket_list.gif',
                    'right_id'  => 703,
                ),
            )
        ),
        array(
            'name'      => 'Workflowliste',
            'menu_link' => '?module=workflow&amp;event=active',
            'menu_alt'  => 'Aktive Workflows auflisten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 703
        ),
        array(
            'name'      => 'Workflow starten',
            'menu_link' => '?module=workflow&amp;event=selectwf',
            'menu_alt'  => 'Workflow starten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 705
        ),
        array(
            'name'      => 'Zeitgesteuerter Workflow',
            'menu_link' => '?module=scheduledworkflow&amp;event=ShowScheduledWorkflows',
            'menu_alt'  => 'Zeitgesteuerter Workflow',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 705
        ),
        array(
            'name'      => 'Detailreport',
            'menu_link' => '?module=scheduledworkflow&amp;event=ShowScheduledWorkflows',
            'menu_alt'  => 'Detailierter Report über WFs und deren Formulardaten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 705
        )
    )
);

$menuArray[] = array(
    'name'      => 'Services',
    'menu_link' => '?module=services&amp;class=sla',
    'menu_alt'  => 'Services',
    'menu_img'  => 'project.png',
    'secure'    => 'ITILServices',
    'right_id'  => 821,
    'childs'    => array(
        array(
            'name'      => 'Servicekatalog',
            'menu_link' => '?module=services&amp;class=service',
            'menu_alt'  => 'Servicekatalog',
            'menu_img'  => 'project_add.png',
            'right_id'  => 821,
            'secure'    => 'ITILServices'
        ),
        array(
            'name'      => 'Service Contracts (SLAs)',
            'menu_link' => '?module=services&amp;class=sla',
            'menu_alt'  => 'SLAs',
            'menu_img'  => 'project_add.png',
            'right_id'  => 821,
            'secure'    => 'ITILServices'
        )
    )
);

$menuArray[] = array(
    'name'      => 'Projekte',
    'menu_link' => '?module=project',
    'menu_alt'  => 'Projekte',
    'menu_img'  => 'project.png',
    'right_id'  => 500,
    'secure'    => 'Projects',
    'childs'    => array(
        array(
            'name'      => 'Neues Projekt',
            'menu_link' => '?module=project&amp;event=newProject',
            'menu_alt'  => 'Neues Projekt anlegen',
            'menu_img'  => 'project_add.png',
            'right_id'  => 501,
            'secure'    => 'Projects'
        ),
        array(
            'name'      => 'Projektliste',
            'menu_link' => '?module=project',
            'menu_alt'  => 'Bestehende Projekte auflisten',
            'menu_img'  => 'project.png',
            'right_id'  => 500,
            'secure'    => 'Projects'
        ),
        array(
            'name'      => 'Projekttickets',
            'menu_link' => '?module=project&amp;task=ticket',
            'menu_alt'  => 'Alle Projektetickets auflisten',
            'menu_img'  => 'ticket.gif',
            'right_id'  => 500,
            'secure'    => 'Projects'
        ),
        array(
            'name'      => 'Projekttypen',
            'menu_link' => '?module=project&amp;class=projecttype',
            'menu_alt'  => 'Projekttypen verwalten',
            'menu_img'  => 'type.png',
            'right_id'  => 503,
            'secure'    => 'Projects'
        )
    )
);


$menuArray[] = array(
    'name'      => 'ChangeRequests',
    'menu_link' => '?module=changerequest',
    'menu_alt'  => 'ChangeRequests',
    'menu_img'  => 'tickettemplate_add.gif',
    'right_id'  => 304,
    'secure'    => 'ChangeRequest',
    'childs'    => array(
        array(
            'name'      => 'Neuer ChangeRequest',
            'menu_link' => '?module=changerequest&amp;event=create',
            'menu_alt'  => 'Neuen Request erstellen',
            'menu_img'  => 'tickettemplate_add.gif',
            'right_id'  => 304,
            'secure'    => 'ChangeRequest'
        ),
        array(
            'name'      => 'ChangeRequest Liste',
            'menu_link' => '?module=changerequest',
            'menu_alt'  => 'Auflistung aller Requests',
            'menu_img'  => 'tickettemplate_add.gif',
            'right_id'  => 304,
            'secure'    => 'ChangeRequest'
        ),
    )
);


$menuArray[] = array(
    'name'      => 'Kalender',
    'menu_link' => '?module=calendar',
    'menu_alt'  => 'Termine verwalten',
    'menu_img'  => 'calendar.gif',
    'right_id'  => 412,
    'secure'    => 'Calendar'
);

if (defined('HMCOMPANY') && (HMCOMPANY == 'MESSE DÜSSELDORF' || HMCOMPANY == 'BHS BAD HOMBURGER SERVICEGESELLSCHAFT')) {

    $menuArray[] = array(
        'name'      => 'Reporting',
        'menu_link' => '?module=reporting&amp;event=tcatkumu',
        'menu_alt'  => 'Reporting',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Tickets',
                'menu_link' => '?module=reporting&amp;event=tcatkumu',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket.gif',
                'right_id'  => 30,
                'childs'    => array(
                    array(
                        'name'      => 'je Kategorie',
                        'menu_link' => '?module=reporting&amp;event=tcat',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie (kumulativ)',
                        'menu_link' => '?module=reporting&amp;event=tcatkumu',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'       => 'je Struktur',
                        'menu_link'  => '?module=reporting&amp;event=tstruct',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'structure.gif',
                        'right_id'   => 30,
                        'asset.desk' => 0
                    ),
                    array(
                        'name'       => 'je Ger&auml;t',
                        'menu_link'  => '?module=reporting&amp;event=tdevnew',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'computer.gif',
                        'right_id'   => 30,
                        'asset.desk' => 1,
                    ),
                    array(
                        'name'      => 'je Firma',
                        'menu_link' => '?module=reporting&amp;event=company',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Abteilung',
                        'menu_link' => '?module=reporting&amp;event=tdepartment',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kostenstelle',
                        'menu_link' => '?module=reporting&amp;event=tcostcenter',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Priorit&auml;t',
                        'menu_link' => '?module=reporting&amp;event=tprio',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Bearbeitungsart',
                        'menu_link' => '?module=reporting&amp;event=tproctype',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Eskalationsstufe',
                        'menu_link' => '?module=reporting&amp;event=tesca',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Schlagwort',
                        'menu_link' => '?module=reporting&amp;event=tTags',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 219,
                    ),
                )
            ),
            array(
                'name'      => 'Ticketweitergabe',
                'menu_link' => '?module=reporting&amp;event=move',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket_go.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Erweitertes Reporting',
                'menu_link' => '?module=reporting&amp;class=advance',
                'menu_alt'  => 'Erweitertes Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 60,
                'secure'    => 'Reporting',
            ),
            array(
                'name'      => 'SLA Reporting',
                'menu_link' => '?module=sla',
                'menu_alt'  => 'SLA Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 302
            )
        )
    );
} else if (HMCOMPANY == 'STADT PADERBORN') {

    $menuArray[] = array(
        'name'      => 'Reporting',
        'menu_link' => '?module=reporting&amp;event=tcat',
        'menu_alt'  => 'Reporting',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Tickets',
                'menu_link' => '?module=reporting&amp;event=tcat',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket.gif',
                'right_id'  => 30,
                'childs'    => array(
                    array(
                        'name'      => 'je Kategorie',
                        'menu_link' => '?module=reporting&amp;event=tcat',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie (kumulativ)',
                        'menu_link' => '?module=reporting&amp;event=tcatkumu',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    )
                )
            )
        )
    );
} else {

    $menuArray[] = array(
        'name'      => 'Reporting',
        'menu_link' => '?module=reporting&amp;event=tuser',
        'menu_alt'  => 'Reporting',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Tickets',
                'menu_link' => '?module=reporting&amp;event=tuser',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket.gif',
                'right_id'  => 30,
                'childs'    => array(
                    array(
                        'name'      => 'je Kontakt',
                        'menu_link' => '?module=reporting&amp;event=tcon',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'kontact.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Benutzer',
                        'menu_link' => '?module=reporting&amp;event=tuser',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'user.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Supporter',
                        'menu_link' => '?module=reporting&amp;event=tsupporter',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'user.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Gruppe',
                        'menu_link' => '?module=reporting&amp;event=tgroup',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'group.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie',
                        'menu_link' => '?module=reporting&amp;event=tcat',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie (kumulativ)',
                        'menu_link' => '?module=reporting&amp;event=tcatkumu',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'       => 'je Struktur',
                        'menu_link'  => '?module=reporting&amp;event=tstruct',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'structure.gif',
                        'right_id'   => 30,
                        'asset.desk' => 0
                    ),
                    array(
                        'name'       => 'je Ger&auml;t',
                        'menu_link'  => '?module=reporting&amp;event=tdevnew',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'computer.gif',
                        'right_id'   => 30,
                        'asset.desk' => 1,
                    ),
                    array(
                        'name'      => 'je Firma',
                        'menu_link' => '?module=reporting&amp;event=company',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Abteilung',
                        'menu_link' => '?module=reporting&amp;event=tdepartment',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kostenstelle',
                        'menu_link' => '?module=reporting&amp;event=tcostcenter',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Priorit&auml;t',
                        'menu_link' => '?module=reporting&amp;event=tprio',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Bearbeitungsart',
                        'menu_link' => '?module=reporting&amp;event=tproctype',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Eskalationsstufe',
                        'menu_link' => '?module=reporting&amp;event=tesca',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Schlagwort',
                        'menu_link' => '?module=reporting&amp;event=tTags',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 219,
                    ),
                )
            ),
            array(
                'name'      => 'Ticketweitergabe',
                'menu_link' => '?module=reporting&amp;event=move',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket_go.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Erweitertes Reporting',
                'menu_link' => '?module=reporting&amp;class=advance',
                'menu_alt'  => 'Erweitertes Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 60,
                'secure'    => 'Reporting',
            ),
            array(
                'name'      => 'SLA Reporting',
                'menu_link' => '?module=sla',
                'menu_alt'  => 'SLA Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 302
            ),
            array(
                'name'      => 'Supporter-Berichte',
                'menu_link' => '?module=reporting&amp;event=TicketReports',
                'menu_alt'  => '',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 48,
                'right_id2' => 60,
            )
        )
    );
}
if (defined('HMCOMPANY') && (HMCOMPANY == 'FAIR COMPUTER SYSTEMS GMBH' || HMCOMPANY == 'VHS HAMBURG' || HMCOMPANY == 'STADT NETTETAL' )) {
    $menuArray[7]['childs'][0]['childs'][] = array(
        'name'      => 'je LDAP Gerät',
        'menu_link' => '?module=reporting&amp;event=tldapdev',
        'menu_alt'  => '',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'right_id2' => 62,
    );
}

if (defined('HMCOMPANY') && (HMCOMPANY == 'ACTANO' || HMCOMPANY == 'STADT HILDESHEIM')) {

    $cnt = count($menuArray) - 1;
    $menuArray[$cnt]['childs'][] = array(
        'name'      => 'Termintreue',
        'menu_link' => '?module=reporting&amp;event=dating',
        'menu_alt'  => 'Termintreue kontrollieren',
        'menu_img'  => 'dating.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Termintreue',
                'menu_link' => '?module=reporting&amp;event=dating',
                'menu_alt'  => 'Termintreue kontrollieren',
                'menu_img'  => 'dating.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Kontakt',
                'menu_link' => '?module=reporting&amp;event=dcontact',
                'menu_alt'  => 'Termintreue kontrollieren',
                'menu_img'  => 'kontact.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Benutzer',
                'menu_link' => '?module=reporting&amp;event=duser',
                'menu_alt'  => 'Termintreue kontrollieren',
                'menu_img'  => 'user.gif',
                'right_id'  => 30,
            ),
        )
    );
    $menuArray[$cnt]['childs'][] = array(
        'name'      => 'Priorit&auml;ts&auml;nderung',
        'menu_link' => '?module=reporting&amp;event=priohistory',
        'menu_alt'  => 'Priot&auml;ts und F&auml;lligkeitsverlauf',
        'menu_img'  => 'dating.gif',
        'right_id'  => 30,
    );
    $menuArray[$cnt]['childs'][] = array(
        'name'      => 'Weitergabe',
        'menu_link' => '?module=reporting&amp;event=handover',
        'menu_alt'  => 'Weitergabeinformation',
        'menu_img'  => 'ticket_go.gif',
        'right_id'  => 30,
    );
}

$menuArray[] = array(
    'name'      => 'Verwaltung',
    'menu_link' => '',
    'menu_alt'  => 'Systemverwaltung',
    'menu_img'  => 'settings.gif',
    'right_id'  => 0,
    'childs'    => array(
        array(
            'name'      => 'Benutzer',
            'menu_link' => '?module=user',
            'menu_alt'  => 'Benutzerverwaltung',
            'menu_img'  => 'user.gif',
            'right_id'  => 40,
            'childs'    => array(
                array(
                    'name'      => 'Neu',
                    'menu_link' => '?module=user&amp;event=create',
                    'menu_alt'  => 'Benutzer erstellen',
                    'menu_img'  => 'user_add.gif',
                    'right_id'  => 40
                ),
                array(
                    'name'      => 'Liste',
                    'menu_link' => '?module=user',
                    'menu_alt'  => 'Benutzerliste',
                    'menu_img'  => 'user_list.gif',
                    'right_id'  => 40
                ),
                array(
                    'name'      => 'Gruppen',
                    'menu_link' => '?module=groups',
                    'menu_alt'  => 'Benutzergruppen',
                    'menu_img'  => 'group.gif',
                    'right_id'  => 38,
                    'childs'    => array(
                        array(
                            'name'      => 'Liste',
                            'menu_link' => '?module=groups',
                            'menu_alt'  => 'Gruppenliste',
                            'menu_img'  => 'group_list.gif',
                            'right_id'  => 38
                        ),
                        array(
                            'name'      => 'Neu',
                            'menu_link' => '?module=groups&amp;event=create',
                            'menu_alt'  => 'Gruppe erstellen',
                            'menu_img'  => 'group_add.gif',
                            'right_id'  => 38
                        ),
                        array(
                            'name'        => 'LDAP-Zuordnung',
                            'menu_link'   => '?module=groups&amp;class=LDAP',
                            'menu_alt'    => 'LDAP-Gruppen zuordnen',
                            'menu_img'    => 'category_assign.gif',
                            'right_id'    => 38,
                            'ldap.groups' => 1
                        )
                    )
                )
            )
        ),
        array(
            'name'      => 'Kontakte',
            'menu_link' => '?module=contact',
            'menu_alt'  => 'Kontaktliste',
            'menu_img'  => 'kontact.gif',
            'right_id'  => 42,
            'right_id2' => 1005,
            'childs'    => array(
                array(
                    'name'      => 'Neu',
                    'menu_link' => '?module=contact&amp;event=create',
                    'menu_alt'  => 'Neuer Kontakte',
                    'menu_img'  => 'contact_add.gif',
                    'right_id'  => 42
                ),
                array(
                    'name'      => 'Liste',
                    'menu_link' => '?module=contact',
                    'menu_alt'  => 'Kontakte',
                    'menu_img'  => 'contact_list.gif',
                    'right_id'  => 42,
                    'right_id2' => 1005
                ),
                array(
                    'name'       => 'Mitarbeiter-Import',
                    'menu_link'  => '?module=employee&amp;event=importEmployees',
                    'menu_alt'   => 'Mitarbeiter-Import',
                    'menu_img'   => 'contact_import.gif',
                    'right_id'   => 47,
                    'asset.desk' => 1
                ),
                array(
                    'name'       => 'Mitarbeiter-Update',
                    'menu_link'  => '?module=employee&amp;event=updateEmployees',
                    'menu_alt'   => 'Mitarbeiter-update',
                    'menu_img'   => 'contact_refresh.gif',
                    'right_id'   => 47,
                    'asset.desk' => 1
                ),
                // RG, 30.07.07: CSV-Importer:
                array(
                    'name'      => 'CSV-Import',
                    'menu_link' => '?module=employee&amp;event=csvImportEmployees',
                    'menu_alt'  => 'CSV-Import',
                    'menu_img'  => 'csv_import.gif',
                    'right_id'  => 47
                ),
                array(
                    'name'        => 'LDAP-Import',
                    'menu_link'   => '?module=employee&amp;event=adImportEmployees',
                    'menu_alt'    => 'LDAP- oder ActiveDirectory-Import',
                    'menu_img'    => 'csv_import.gif',
                    'right_id'    => 47,
                    'ldap.import' => 1
                ),
                array(
                    'name'        => 'LDAP-Update',
                    'menu_link'   => '?module=employee&amp;event=adUpdateEmployees',
                    'menu_alt'    => 'LDAP- oder ActiveDirectory-Update',
                    'menu_img'    => 'csv_import.gif',
                    'right_id'    => 47,
                    'ldap.import' => 1
                ),
                array(
                    'name'      => 'Firmen verwalten',
                    'menu_link' => '?module=contact&amp;class=company',
                    'menu_alt'  => 'Firmen',
                    'right_id'  => 42
                )
            )
        ),
        array(
            'name'      => 'Mandanten',
            'menu_link' => '?module=mandant',
            'menu_alt'  => 'Mandantenverwaltung',
            'menu_img'  => 'category.gif',
            'right_id'  => 850,
            'childs'    => array(
                array(
                    'name'      => 'Liste',
                    'menu_link' => '?module=mandant',
                    'menu_alt'  => 'Mandanten anzeigen',
                    'menu_img'  => 'category_add.gif',
                    'right_id'  => 850
                ),
                array(
                    'name'      => 'Neu',
                    'menu_link' => '?module=mandant&amp;event=edit',
                    'menu_alt'  => 'Mandant anlegen',
                    'menu_img'  => 'category_add.gif',
                    'right_id'  => 850
                )
            )
        ),
        array(
            'name'      => 'Kategorien',
            'menu_link' => '?module=category',
            'menu_alt'  => 'Kategorienverwalten',
            'menu_img'  => 'category.gif',
            'right_id'  => 34,
            'right_id2' => 33,
            'childs'    => array(
                array(
                    'name'      => 'Neu',
                    'menu_link' => '?module=category&amp;event=create',
                    'menu_alt'  => 'Kategorie anlegen',
                    'menu_img'  => 'category_add.gif',
                    'right_id'  => 34
                ),
                array(
                    'name'      => 'Liste',
                    'menu_link' => '?module=category',
                    'menu_alt'  => 'Kategorienliste',
                    'menu_img'  => 'category_list.gif',
                    'right_id'  => 34
                ),
                array(
                    'name'      => 'Zuordnung',
                    'menu_link' => '?module=category&amp;event=assignCategory',
                    'menu_alt'  => 'Kategorienzuordnung',
                    'menu_img'  => 'category_assign.gif',
                    'right_id'  => 33
                )
            )
        ),
        array(
            'name'       => 'Struktur',
            'menu_link'  => '?module=structure',
            'menu_alt'   => 'Firmenstruktur',
            'menu_img'   => 'structure.gif',
            'right_id'   => 32,
            'asset.desk' => 0,
            'childs'     => array(
                array(
                    'name'       => 'Liste',
                    'menu_link'  => '?module=structure',
                    'menu_alt'   => 'Firmenstruktur',
                    'menu_img'   => 'structure_list.gif',
                    'right_id'   => 32,
                    'asset.desk' => 0,
                ),
                array(
                    'name'       => 'Neu',
                    'menu_link'  => '?module=structure&amp;task=new',
                    'menu_alt'   => 'Firmenstruktur erstellen',
                    'menu_img'   => 'structure_add.gif',
                    'right_id'   => 32,
                    'asset.desk' => 0,
                ),
                array(
                    'name'       => 'Strukturtyp',
                    'menu_link'  => '?module=structure&amp;class=type',
                    'menu_alt'   => 'Strukturtyp',
                    'menu_img'   => 'structure_type.gif',
                    'right_id'   => 32,
                    'asset.desk' => 0,
                )
            )
        ),
        array(
            'name'      => 'Nachrichten',
            'menu_link' => '?module=news',
            'menu_alt'  => 'Nachrichten',
            'menu_img'  => 'news.gif',
            'right_id'  => 46,
            'childs'    => array(
                array(
                    'name'      => 'Neue Nachricht',
                    'menu_link' => '?module=news&amp;event=editNews',
                    'menu_alt'  => 'Neue Nachricht',
                    'menu_img'  => 'news_add.gif',
                    'right_id'  => 46
                ),
                array(
                    'name'      => 'Nachrichtenliste',
                    'menu_link' => '?module=news',
                    'menu_alt'  => 'Nachrichten',
                    'menu_img'  => 'news_list.gif',
                    'right_id'  => 46
                )
            )
        ),
        array(
            'name'      => 'Formulare',
            'menu_link' => '?module=formwizard',
            'menu_alt'  => 'Formulare',
            'menu_img'  => 'formwizard.gif',
            'right_id'  => 810,
            'right_id2' => 36,
            'secure'    => 'FormWizard',
        ),
        array(
            'name'      => 'Ticketvorlagen',
            'menu_link' => '?module=tickettemplate&amp;event=listTemplates',
            'menu_alt'  => 'Vorlagen fuer Tickets',
            'menu_img'  => 'tickettemplate.gif',
            'right_id'  => 401,
            'secure'    => 'TicketTemplate',
            'childs'    => array(
                array(
                    'name'      => 'Neue Vorlage',
                    'menu_link' => '?module=tickettemplate&amp;event=newTemplate',
                    'menu_alt'  => 'Neue Vorlage',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 401,
                    'secure'    => 'TicketTemplate',
                ),
                array(
                    'name'      => 'Vorlagen',
                    'menu_link' => '?module=tickettemplate&amp;event=listTemplates',
                    'menu_alt'  => 'Vorlagen verwalten',
                    'menu_img'  => 'tickettemplate.gif',
                    'right_id'  => 401,
                    'secure'    => 'TicketTemplate',
                ),
            )
        ),
        array(
            'name'      => 'Listen',
            'menu_link' => '?module=selectablelistview',
            'menu_alt'  => 'Listen anpassen',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 410,
            'right_id2' => 411,
            'childs'    => array(
                array(
                    'name'      => 'Standard',
                    'menu_link' => '?module=selectablelistview&amp;event=standard',
                    'menu_alt'  => 'Alle Listen anpassen',
                    'menu_img'  => 'ticket_list.gif',
                    'right_id'  => 410,
                ),
                array(
                    'name'      => 'Benutzer',
                    'menu_link' => '?module=selectablelistview&amp;event=user',
                    'menu_alt'  => 'Benutzerlisten anpassen',
                    'menu_img'  => 'ticket_list.gif',
                    'right_id'  => 411,
                ),
            )
        ),
        array(
            'name'      => 'Bearbeitungsart',
            'menu_link' => '?module=processingtypes',
            'menu_alt'  => 'Bearbeitungsart',
            'menu_img'  => 'tickettemplate.gif',
            'right_id'  => 113,
            'childs'    => array(
                array(
                    'name'      => 'Neue',
                    'menu_link' => '?module=processingtypes&amp;event=edit',
                    'menu_alt'  => 'Neue Bearbeitungsart',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 113,
                ),
                array(
                    'name'      => 'Liste',
                    'menu_link' => '?module=processingtypes',
                    'menu_alt'  => 'Bearbeitungsarten verwalten',
                    'menu_img'  => 'tickettemplate.gif',
                    'right_id'  => 113,
                ),
            )
        ),
        array(
            'name'      => 'Service',
            'menu_link' => '?module=services&amp;class=service',
            'menu_alt'  => 'Service',
            'menu_img'  => 'tickettemplate.gif',
            'right_id'  => 821,
            'secure'    => 'ITILServices',
            'childs'    => array(
                array(
                    'name'      => 'Neuer Service',
                    'menu_link' => '?module=services&amp;class=service&amp;event=create',
                    'menu_alt'  => 'Neuer Service',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 821,
                    'secure'    => 'ITILServices'
                ),
                array(
                    'name'      => 'Servicekatalog',
                    'menu_link' => '?module=services&amp;class=service',
                    'menu_alt'  => 'Servicekatalog',
                    'menu_img'  => 'project_add.png',
                    'right_id'  => 821,
                    'secure'    => 'ITILServices'
                ),
                array(
                    'name'      => 'Neuer Servicetyp',
                    'menu_link' => '?module=services&amp;class=servicetype&amp;event=create',
                    'menu_alt'  => 'Neuer Servicetyp',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 821,
                    'secure'    => 'ITILServices'
                ),
                array(
                    'name'      => 'Servicetypen Liste',
                    'menu_link' => '?module=services&amp;class=servicetype',
                    'menu_alt'  => 'Servicetypen Liste',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 821,
                    'secure'    => 'ITILServices'
                ),
                array(
                    'name'      => 'Neuer Servicelevel',
                    'menu_link' => '?module=services&amp;class=servicelvl&amp;event=create',
                    'menu_alt'  => 'Neuen Servicelevel anlegen',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 821,
                    'secure'    => 'ITILServices'
                ),
                array(
                    'name'      => 'Servicelevel Liste',
                    'menu_link' => '?module=services&amp;class=servicelvl',
                    'menu_alt'  => 'Servicelevel Liste',
                    'menu_img'  => 'tickettemplate_add.gif',
                    'right_id'  => 821,
                    'secure'    => 'ITILServices'
                )
            )
        ),
        array(
            'name'      => 'Einstellungen',
            'menu_link' => '?module=settings',
            'menu_alt'  => 'Einstellungen',
            'menu_img'  => 'settings.gif',
            'right_id'  => 36,
            'childs'    => array(
                array(
                    'name'      => 'Datenbank',
                    'menu_link' => '?module=settings#tab-DB',
                    'menu_alt'  => 'Datenbank Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Benachrichtigungen',
                    'menu_link' => '?module=settings#NotificationPanel',
                    'menu_alt'  => 'Benachrichtigungseinstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'MailTemplates',
                    'menu_link' => '?module=settings#MailTemplatePanel',
                    'menu_alt'  => 'E-Mail Templates',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Allgemein',
                    'menu_link' => '?module=settings#tab-other',
                    'menu_alt'  => 'Allgemeine Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Ticket',
                    'menu_link' => '?module=settings#tab-ticket',
                    'menu_alt'  => 'Ticket Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Rest-API',
                    'menu_link' => '?module=settings#tab-rest',
                    'menu_alt'  => 'Rest-API Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Kosten',
                    'menu_link' => '?module=settings#tab-costs',
                    'menu_alt'  => 'Kostengruppen Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Eskalation',
                    'menu_link' => '?module=settings#tab-escalation',
                    'menu_alt'  => 'Eskalations Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Optik',
                    'menu_link' => '?module=settings#tab-template',
                    'menu_alt'  => 'Oberflächen Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Authentifizierung',
                    'menu_link' => '?module=settings#tab-auth',
                    'menu_alt'  => 'LDAP & Login Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'E-Mail in Ticket',
                    'menu_link' => '?module=settings#tab-mail2ticket',
                    'menu_alt'  => 'Mail2Ticket Einstellungen',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36,
                    'secure'    => 'POP3'
                ),
                array(
                    'name'      => 'Logs',
                    'menu_link' => '?module=settings#tab-logdebug',
                    'menu_alt'  => 'Debug',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Dashboard',
                    'menu_link' => '?module=settings#tab-dashboard',
                    'menu_alt'  => 'Loginseite',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
                array(
                    'name'      => 'Über HEINZELMANN',
                    'menu_link' => '?module=settings#tab-about',
                    'menu_alt'  => 'HEINZELMANN Infos',
                    'menu_img'  => 'settings.gif',
                    'right_id'  => 36
                ),
            )
        ),
        array(
            'name'      => 'Eigenes Passwort &auml;ndern',
            'menu_link' => '?module=user&amp;class=pwdchange',
            'menu_alt'  => 'Passwort &auml;ndern',
            'menu_img'  => 'key.gif',
            'right_id'  => 37
        ),
        array(
            'name'      => 'Eigene Sprache &auml;ndern',
            'menu_link' => '?module=user&amp;class=langchange',
            'menu_alt'  => 'Sprache &auml;ndern',
            'menu_img'  => 'key.gif',
            'right_id'  => 0
        )
    )
);

$menuArray[] = array(
    'name'      => 'Knowledgebase',
    'menu_link' => '?module=knowledgebase',
    'menu_alt'  => 'Knowledgebase',
    'menu_img'  => 'kb.gif',
    'right_id'  => 31,
    'childs'    => array(
        array(
            'name'      => 'Erweiterte Volltextsuche',
            'menu_link' => '?module=knowledgebase&amp;event=search',
            'menu_alt'  => 'Erweiterte Volltextsuche',
            'menu_img'  => 'kb_search.gif',
            'right_id'  => 31,
        ),
        array(
            'name'      => 'Rubriken verwalten',
            'menu_link' => '?module=knowledgebase&amp;class=category',
            'menu_alt'  => 'Rubriken verwalten',
            'menu_img'  => 'kb_categories.gif',
            'right_id'  => 19,
        ),
        array(
            'name'      => 'Beitrag erstellen',
            'menu_link' => '?module=knowledgebase&amp;event=create',
            'menu_alt'  => 'Beitrag erstellen',
            'menu_img'  => 'kb_add.gif',
            'right_id'  => 15,
        ),
        array(
            'name'      => 'Beitragsfreigabe',
            'menu_link' => '?module=knowledgebase&amp;event=release',
            'menu_alt'  => 'Beitragsfreigabe',
            'menu_img'  => 'kb_publish.gif',
            'right_id'  => 19,
        )
    )
);
