//var_dump($tmp_rows); $ulf = new UserListFactory(); $utlf = new UserTitleListFactory(); $title_options = $utlf->getByCompanyIdArray($current_company->getId()); $uglf = new UserGroupListFactory(); $group_options = $uglf->getArrayByNodes(FastTree::FormatArray($uglf->getByCompanyIdArray($current_company->getId()), 'no_tree_text', TRUE)); $blf = new BranchListFactory(); $branch_options = $blf->getByCompanyIdArray($current_company->getId()); $dlf = new DepartmentListFactory(); $department_options = $dlf->getByCompanyIdArray($current_company->getId()); $slf = new StationListFactory(); $station_type_options = $slf->getOptions('type'); if ($current_company->getProductEdition() == 20) { $jlf = new JobListFactory(); $job_options = $jlf->getByCompanyIdArray($current_company->getId()); $job_status_options = $jlf->getOptions('status'); $jglf = new JobGroupListFactory(); $jglf->getByCompanyId($current_company->getId()); $job_group_options = $jglf->getArrayByListFactory($jglf, FALSE); $jilf = new JobItemListFactory(); $job_item_options = $jilf->getByCompanyIdArray($current_company->getId()); } else { $job_options = array(); $job_status_options = array(); $job_item_options = array(); $job_group_options = array(); } $punch_type_options = $plf->getOptions('type'); if (isset($tmp_rows)) { $x = 0; foreach ($tmp_rows as $pay_period_id => $data_a) {