moduleName, $this->methodName);
foreach($menus as $menuItem)
{
$active = $menuItem->name == $browseType ? ' btn-active-text' : '';
echo html::a($this->createLink('trainplan', 'browse', "projectID=$projectID&browseType=$menuItem->name"), "{$menuItem->text}", '', "class='btn btn-link $active'");
}
?>
trainplan->byQuery;?>
createLink('trainplan', 'create', "projectID=$projectID");
$batchCreateLink = $this->createLink('trainplan', 'batchCreate', "project=$projectID");
$buttonLink = '';
$buttonTitle = '';
if(common::hasPriv('trainplan', 'batchCreate'))
{
$buttonLink = $batchCreateLink;
$buttonTitle = $lang->trainplan->batchCreate;
}
if(common::hasPriv('trainplan', 'create'))
{
$buttonLink = $createTrainPlanLink;
$buttonTitle = $lang->trainplan->create;
}
$hidden = empty($buttonLink) ? 'hidden' : '';
echo html::a($buttonLink, " $buttonTitle", '', "class='btn btn-primary $hidden'");
?>
- trainplan->create);?>
- trainplan->batchCreate);?>