Exemplo n.º 1
0
    $T->set_var('other_employee_dropdown', $output);
    $T->set_var('delegated_employee_dropdown', '');
    if (SEC_inGroup('nexTime Supervisors')) {
        $output = $ts->getOptionListOfDelegatedEmployees($uid, true);
        if ($output != '<option value=""></option>' && $output != '<option value=""></option><option value="0">View All</option>') {
            $T->set_var('delegated_employee_dropdown', $output);
            $T->set_var('delegate_row', 'style=""');
        }
    }
    $T->set_var('uid', $_USER['uid']);
    $output = $ts->getOptionListOfHierarchyEmployees($uid);
    if ($output != '' && !SEC_inGroup('nexTime Supervisors')) {
        $T->set_var('supervisor_dropdown', $output);
        $T->set_var('has_supervisors', '');
    } else {
        $T->set_var('has_supervisors', 'none');
    }
    $T->set_var('is_finance_show_supervisors', 'none');
    $T->set_var('get_supervisors', '');
}
if (SEC_inGroup('nexTime Finance') || SEC_inGroup('Root') || SEC_inGroup('nexTime Admin') || SEC_inGroup('nexTime Supervisors')) {
    $T->parse('reportscontent', 'reportspage');
    $T->set_var('reports_row', $T->get_var('reportscontent'));
    $T->set_var('is_finance_show_supervisors', '');
    $T->set_var('get_supervisors', $ts->getSupervisorsDropDownList());
    $T->set_var('get_tasks', $ts->getTasksDropDown(false, true, 'options'));
    $T->set_var('get_projects', $ts->getExpandedProjectDropDown(true));
}
$T->parse('output', 'page');
echo $T->finish($T->get_var('output'));
echo COM_siteFooter();