} /* -------------------------------------------------------End of Reset Password part--------------------------------------------------------- */ /* -----------------------------------------------------Sign up part--------------------------------------------------------- */ if (isset($_GET['ctg']) && $_GET['ctg'] == "signup" && $configuration['signup']) { if (eF_checkSpam() == true) { $message = _SPAMDETECTION; $message_type = 'failure'; eF_redirect(basename($_SERVER['PHP_SELF']) . '?message=' . urlencode($message) . '&message_type=' . $message_type); } if (G_VERSIONTYPE == 'enterprise') { #cpp#ifdef ENTERPRISE if (isset($_GET['postAjaxRequest'])) { try { $currentBranch = new EfrontBranch($_GET['branch']); if (isset($_GET['getJobSelect'])) { $ar = $currentBranch->createJobDescriptionsSelect($attributes); } else { if (isset($_GET['getSupervisorsSelect'])) { $ar = $currentBranch->createSupervisorsSelect($_GET['only_existing']); } } foreach ($ar as $val => $element) { echo $val . "<option>" . $element . "<option>"; } exit; } catch (Exception $e) { } } } #cpp#endif $users = eF_countTableData("users", "login", "active=1 and archive=0");
/* Braches (in hierarchical form) */ //$branches = eF_getTableData("module_hcd_branch", "branch_ID, name, father_branch_ID","","father_branch_ID ASC,branch_ID ASC"); $branches_list = eF_createBranchesTreeSelect(false, 6); $branches_list[0] = _DONTTAKEINTOACCOUNT; $form->addElement('select', 'search_branch', _WORKINGATBRANCH, $branches_list, 'id = "search_branch" class = "inputSelectMed" onchange="javascript:refreshResults()"'); // If a branch is selected then the form will reload on clicking the checkbox. if (isset($_GET['branch_ID'])) { $onclick_event = ' onclick = "" '; } else { $onclick_event = ''; } $form->addElement('advcheckbox', 'include_subbranches', _INCLUDESUBBRANCHES, null, 'class = "inputCheckbox" id="include_subbranchesId" onClick="javascript:includeSubbranches()"'); /* Job descriptions (all different job descriptions irrespective of the branch they belong to) */ if (isset($_GET['branch_ID']) && $_GET['branch_ID'] != "" && $_GET['branch_ID'] > 0) { $activeBranch = new EfrontBranch($_GET['branch_ID']); $job_description_list = $activeBranch->createJobDescriptionsSelect(); $job_description_list[0] = _DONTTAKEINTOACCOUNT; } else { //Changed code so that description_ID is sending in request instead of description because of this #3112 //$job_descriptions = eF_getTableData("module_hcd_job_description", "job_description_ID, description",""); $job_descriptions = eF_getTableData("module_hcd_job_description", "job_description_ID, description", "", "", "description having count(*) >= 1"); $job_description_list = array("0" => _DONTTAKEINTOACCOUNT); foreach ($job_descriptions as $job_description) { //$log = $job_description['description']; $job_description_list[$job_description['job_description_ID']] = $job_description['description']; } } $form->addElement('select', 'search_job_description', _WITHJOBDESCRIPTION, $job_description_list, 'id = "search_job_description" class = "inputSelectMed" onchange="javascript:refreshResults()"'); /* Skills */ $skills = eF_getTableData("module_hcd_skills", "skill_ID, description", ""); $skills_list = array("0" => _DONTTAKEINTOACCOUNT);