Exemplo n.º 1
0
} else {
    $T->set_var('enable_auto_end_date', "false");
}
//this section for supervisors and/or Root
if (SEC_inGroup('Root') || SEC_inGroup('nexTime Supervisors') || SEC_inGroup('nexTime Admin')) {
    $T->parse('reportscontent', 'reportspage');
    $T->set_var('reports_row', $T->get_var('reportscontent'));
    $T->set_var('approval_row', 'style=""');
    //now set the employee_dropdown
    $output = $ts->getOptionListOfAssignedEmployees($uid);
    $T->set_var('employee_dropdown', $output);
    $output = $ts->getOptionListOfAssignedEmployees($uid, true);
    $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', '');