<?php
$lang->nonRDMenu = new stdclass();
$lang->nonRDMenu->my       = $lang->navIcons['my'] . 'My|my|calendar|';
$lang->nonRDMenu->oa       = $lang->navIcons['oa'] . 'OA|attend|personal|';
$lang->nonRDMenu->feedback = $lang->navIcons['feedback'] . 'Feedback|feedback|browse|';
$lang->nonRDMenu->admin    = "{$lang->navIcons['admin']} {$lang->admin->common}|company|browse|";

$lang->nonRDMenu->menuOrder[5]  = 'my';
$lang->nonRDMenu->menuOrder[10] = 'oa';
$lang->nonRDMenu->menuOrder[15] = 'feedback';
$lang->nonRDMenu->menuOrder[20] = 'admin';

$lang->my->nonRDMenu = new stdclass();
$lang->my->nonRDMenu->calendar = array('link' => "$lang->calendar|my|calendar|", 'subModule' => 'todo', 'alias' => 'todo');
$lang->my->nonRDMenu->effort   = array('link' => "Effort|effort|calendar|", 'subModule' => 'effort', 'alias' => 'effort');

$lang->my->nonRDMenuOrder[5]  = 'calendar';
$lang->my->nonRDMenuOrder[10] = 'effort';

$lang->admin->nonRDMenu = new stdclass();
$lang->admin->nonRDMenu->company = array('link' => "{$lang->personnel->common}|company|browse|", 'subModule' => ',user,dept,');
$lang->admin->nonRDMenu->group   = array('link' => "Priv Group|group|browse|");

$lang->admin->nonRDMenuOrder[5]  = 'company';
$lang->admin->nonRDMenuOrder[10] = 'group';

$lang->nonRDWebMenu = new stdclass();
$lang->nonRDWebMenu->my       = $lang->navIcons['my'] . 'My|my|calendar|';
$lang->nonRDWebMenu->oa       = $lang->navIcons['oa'] . 'OA|attend|personal|';
$lang->nonRDWebMenu->feedback = $lang->navIcons['feedback'] . 'Feedback|feedback|browse|';
$lang->nonRDWebMenu->company  = "{$lang->navIcons['admin']} {$lang->admin->common}|company|browse|";

$lang->nonRDWebMenu->menuOrder[5]  = 'my';
$lang->nonRDWebMenu->menuOrder[10] = 'oa';
$lang->nonRDWebMenu->menuOrder[15] = 'feedback';
$lang->nonRDWebMenu->menuOrder[20] = 'company';

$lang->admin->nonRDWebMenu = new stdclass();
$lang->admin->nonRDWebMenu->company = array('link' => "{$lang->personnel->common}|company|browse|", 'subModule' => ',user,dept,');
$lang->admin->nonRDWebMenuOrder[5] = 'company';

if(!empty($_SESSION['user']->feedback) or !empty($_COOKIE['feedbackView']))
{
    $lang->createIcons = array();
    $lang->createIcons['todo']   = 'todo';
    $lang->createIcons['effort'] = 'time';

    $lang->mainNav = $lang->nonRDMenu;
    $lang->mainNav->menuOrder = $lang->nonRDMenu->menuOrder;

    $lang->my->menu      = $lang->my->nonRDMenu;
    $lang->my->menuOrder = $lang->my->nonRDMenuOrder;

    $lang->admin->menu      = $lang->admin->nonRDMenu;
    $lang->admin->menuOrder = $lang->admin->nonRDMenuOrder;

    $lang->webMainNav = $lang->nonRDWebMenu;
    $lang->webMenuOrder = $lang->nonRDWebMenu->menuOrder;

    $lang->my->webMenu      = $lang->my->nonRDMenu;
    $lang->my->webMenuOrder = $lang->my->nonRDMenuOrder;

    $lang->company->webMenu      = $lang->admin->nonRDWebMenu;
    $lang->company->webMenuOrder = $lang->admin->nonRDWebMenuOrder;

    $lang->feedback->webMenu = new stdclass();
    $lang->feedback->webMenu->unclosed   = array('link' => 'Unclosed|feedback|browse|browseType=unclosed', 'subModule' => 'tree');
    $lang->feedback->webMenu->all        = array('link' => 'All|feedback|browse|browseType=all');
    $lang->feedback->webMenu->public     = array('link' => 'Public|feedback|browse|browseType=public');

    $lang->feedback->webMenuOrder = array();
    $lang->feedback->webMenuOrder[5]  = 'unclosed';
    $lang->feedback->webMenuOrder[10] = 'all';
    $lang->feedback->webMenuOrder[15] = 'public';
}
