2012-06-14 16:03:30 -04:00
|
|
|
<?php
|
|
|
|
|
global $G_TMP_MENU;
|
|
|
|
|
global $RBAC;
|
|
|
|
|
|
2012-07-25 10:44:00 -04:00
|
|
|
$G_TMP_MENU->AddIdRawOption("S_HOME", "home/appList?t=todo", G::LoadTranslation("ID_HOME"),
|
|
|
|
|
"/images/simplified/in-set-grey.png", null, null, null);
|
2012-06-14 16:03:30 -04:00
|
|
|
|
|
|
|
|
if ($RBAC->userCanAccess("PM_CASES") == 1) {
|
2012-07-25 10:44:00 -04:00
|
|
|
$G_TMP_MENU->AddIdRawOption("S_DRAFT", "home/appList?t=draft", G::LoadTranslation("ID_DRAFT"),
|
|
|
|
|
"/images/simplified/folder-grey.png", null, null, null);
|
2012-07-25 11:54:14 -04:00
|
|
|
$G_TMP_MENU->AddIdRawOption("S_UNASSIGNED", "home/appList?t=unassigned", G::LoadTranslation("ID_UNASSIGNED"),
|
2012-07-25 10:44:00 -04:00
|
|
|
"/images/simplified/folder-grey3.png", null, null, null);
|
|
|
|
|
$G_TMP_MENU->AddIdRawOption("S_NEW_CASE", "#", G::LoadTranslation("ID_NEW_CASE"),
|
|
|
|
|
"/images/simplified/plus-set-grey.png", null, null, null);
|
2012-06-14 16:03:30 -04:00
|
|
|
}
|
2012-07-25 10:44:00 -04:00
|
|
|
|
2016-08-08 13:20:58 -04:00
|
|
|
if ($RBAC->userCanAccess('PM_ALLCASES') == 1) {
|
|
|
|
|
$G_TMP_MENU->AddIdRawOption(
|
|
|
|
|
'S_ADVANCED_SEARCH',
|
|
|
|
|
'home/appAdvancedSearch',
|
|
|
|
|
G::LoadTranslation('ID_ADVANCEDSEARCH'),
|
|
|
|
|
'/images/simplified/advancedSearch.png',
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null
|
|
|
|
|
);
|
|
|
|
|
}
|