" . $userList . "
";
$methodName = $this->app->getMethodName();
$label = "
{$lang->user->schedule}";
if($this->config->edition != 'open' and common::hasPriv('user', 'todocalendar'))
{
$link = $this->createLink('user', 'todocalendar', "userID={$user->id}");
}
elseif($this->config->edition != 'open' and common::hasPriv('user', 'effortcalendar'))
{
$link = $this->createLink('user', 'effortcalendar', "userID={$user->id}");
}
elseif(common::hasPriv('user', 'todo'))
{
$link = $this->createLink('user', 'todo', "userID={$user->id}");
}
elseif(common::hasPriv('user', 'effort'))
{
$link = $this->createLink('user', 'effort', "userID={$user->id}");
}
if($link)
{
$active = '';
if($methodName == 'todocalendar' or $methodName == 'todo' or $methodName == 'effortcalendar' or $methodName == 'effort') $active = ' btn-active-text';
echo html::a($link, $label, '', "class='btn btn-link $active todoTab'");
}
$label = "
{$lang->user->task}";
$active = $methodName == 'task' ? ' btn-active-text' : '';
common::printLink('user', 'task', "userID={$user->id}", $label, '', "class='btn btn-link $active taskTab'");
$label = "
{$lang->SRCommon}";
$active = ($methodName == 'story' and $storyType == 'story') ? ' btn-active-text' : '';
common::printLink('user', 'story', "userID={$user->id}&storyType=story", $label, '', "class='btn btn-link $active SRTab'");
if($this->config->systemMode == 'ALM')
{
$label = "
{$lang->user->execution}";
$active = $methodName == 'execution' ? ' btn-active-text' : '';
common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active executionTab'");
}
$label = "
{$lang->user->dynamic}";
$active = $methodName == 'dynamic' ? ' btn-active-text' : '';
common::printLink('user', 'dynamic', "userID={$user->id}&type=today", $label, '', "class='btn btn-link $active dynamicTab'");
$label = "
{$lang->user->profile}";
$active = $methodName == 'profile' ? ' btn-active-text' : '';
common::printLink('user', 'profile', "userID={$user->id}", $label, '', "class='btn btn-link $active profileTab'");
?>