* Fix report-preview menu.
This commit is contained in:
@@ -545,6 +545,7 @@ $lang->report->menu->pivotTable = array('link' => "{$lang->report->pivotTable}|r
|
||||
$lang->report->menuOrder[5] = 'screen';
|
||||
$lang->report->menuOrder[10] = 'pivotTable';
|
||||
|
||||
/*
|
||||
$lang->report->menu->pivotTable['subMenu'] = new stdclass();
|
||||
$lang->report->menu->pivotTable['subMenu']->product = array('link' => "{$lang->product->common}|report|preview|dimension=&group=product");
|
||||
$lang->report->menu->pivotTable['subMenu']->project = array('link' => "{$lang->project->common}|report|preview|dimension=&group=project");
|
||||
@@ -555,6 +556,7 @@ $lang->report->menu->pivotTable['menuOrder'][5] = 'product';
|
||||
$lang->report->menu->pivotTable['menuOrder'][10] = 'project';
|
||||
$lang->report->menu->pivotTable['menuOrder'][15] = 'test';
|
||||
$lang->report->menu->pivotTable['menuOrder'][20] = 'staff';
|
||||
*/
|
||||
|
||||
/* Company menu.*/
|
||||
$lang->company->menu = new stdclass();
|
||||
|
||||
@@ -7,6 +7,13 @@ $config->report->dailyreminder->task = true;
|
||||
$config->report->dailyreminder->todo = true;
|
||||
$config->report->dailyreminder->testTask = true;
|
||||
|
||||
global $lang;
|
||||
$config->report->pivotMenu = array();
|
||||
$config->report->pivotMenu['product'] = array('link' => "{$lang->product->common}|report|preview|dimension=&group=product");
|
||||
$config->report->pivotMenu['project'] = array('link' => "{$lang->project->common}|report|preview|dimension=&group=project");
|
||||
$config->report->pivotMenu['test'] = array('link' => "{$lang->qa->common}|report|preview|dimension=&group=test");
|
||||
$config->report->pivotMenu['staff'] = array('link' => "{$lang->system->common}|report|preview|dimension=&group=staff");
|
||||
|
||||
$config->report->annualData['minMonth'] = 2;
|
||||
$config->report->annualData['colors'] = array('#0075A9', '#22AC38', '#CAAC32', '#2B4D6D', '#0071a4', '#00a0e9', '#7ecef4');
|
||||
$config->report->annualData['itemMinWidth'] = array(1 => 3, 2 => 5, 3 => 7, 4 => 9, 5 => 11);
|
||||
|
||||
@@ -8,6 +8,15 @@ $('#subNavbar li').not('[data-id=<?php echo $group;?>]').removeClass('active');
|
||||
<?php endif;?>
|
||||
<?php js::set('dimension', $dimension);?>
|
||||
<?php js::set('group', $group);?>
|
||||
<div id="mainMenu" class='clearfix'>
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php foreach($this->config->report->pivotMenu as $id => $menuInfo):?>
|
||||
<?php list($menuName, $menuModule, $menuMethod, $menuParams) = explode('|', $menuInfo['link']);?>
|
||||
<?php $active = ($id == $group) ? ' btn-active-text' : '';?>
|
||||
<?php echo html::a(inlink($menuMethod, $menuParams), "<span class='text'>$menuName</span>", '', "class='btn btn-link {$active}'");?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col col-lg' id='sidebar'>
|
||||
<div class="sidebar-toggle">
|
||||
|
||||
Reference in New Issue
Block a user