$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', ''); } 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'));