public function profileAction() { $request = $this->getRequest(); $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER); $companyid = $request->getParam("companyid"); $api = new PR_Api_Core_ClientClass(); $company = $api->getCompany($companyid); $rslState = ""; if (count($company) > 0 && !empty($company)) { $rslState = $api->getStateByStateCode(trim($company['state'])); if (empty($rslState)) { $stateName = trim($company['state']); } else { $stateInfo = $rslState[0]; $stateName = $stateInfo['state_name']; } } $this->view->company = $company; $this->view->stateOfCompany = $stateName; $Industry = $company["Industry"]; $listOrtherCompany = $api->getCompany_Industry($Industry); //echo("tetstt:<pre>");print_r($listOrtherCompany); echo("</pre>"); $this->view->listOrtherCompany = $listOrtherCompany; $Oppotunity_PR_Api = new PR_Api_Core_CareerClass(); $getListOpp = $Oppotunity_PR_Api->getListOpportunity(array('CompanyID' => $companyid)); $this->view->getListOpp = $getListOpp; $this->render('companyprofileview'); }
public function careerlistAction() { $request = $this->getRequest(); $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER); $CompanyID = $sestionClient['CompanyID']; $Oppotunity_PR_Api = new PR_Api_Core_CareerClass(); $getListOpp = $Oppotunity_PR_Api->getListOpportunity(array('CompanyID' => $CompanyID)); $this->view->getListOpp = $getListOpp; }
public function indexAction() { $request = $this->getRequest(); $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER); $CompanyID = $sestionClient['CompanyID']; $clientID = $sestionClient['UserID']; $Oppotunity_PR_Api = new PR_Api_Core_CareerClass(); $getListOpp = $Oppotunity_PR_Api->getListOpportunity(array('CompanyID' => $CompanyID)); $notiClass = new PR_Api_Core_NotiClass(); $messageList = $notiClass->getList($clientID, $limit = 10, $offset = 0); $receivIDs = $Oppotunity_PR_Api->getListReceiveIDbySenderID($clientID); $listCandidate1 = $Oppotunity_PR_Api->getListCandidateByUserID($receivIDs, 3, 0); $listSkill = $Oppotunity_PR_Api->getSkillByCompanyID($CompanyID); $listCandidate = array(); $list = array(); if (!empty($listCandidate1) && count($listCandidate1) > 0) { foreach ($listCandidate1 as $kkk => $listCandidate1Info) { if (!empty($listCandidate1Info['Skills']) && count($listCandidate1Info['Skills']) > 0) { $list = ""; foreach ($listCandidate1Info['Skills'] as $listInfor) { if (!empty($listSkill) && count($listSkill) > 0) { foreach ($listSkill as $keylistskill => $listSkillInfo) { if ($listSkillInfo['SkillID'] == $listInfor['SkillID']) { $list[] = $listSkillInfo['title']; } } } } } if (!empty($list) && count($list) > 0) { $list = array_unique($list); $listCandidate1Info['strTitle'] = $list; $listCandidate[] = $listCandidate1Info; } } } $getTestList_PR_Api_Core = new PR_Api_Core_TestClass(); $resultTestList = $getTestList_PR_Api_Core->getTestList(array('CompanyID' => $CompanyID), 10, 0); $useCS = new PR_Api_Core_NotiClass(); $uselist = $useCS->geAllUser(); $this->view->uselist = $uselist; /*echo "<pre>"; print_r($messageList); echo "</pre>"; die();*/ $this->view->getListOpp = $getListOpp; $this->view->messageList = $messageList; $this->view->listCandidate = $listCandidate; $this->view->resultTestList = $resultTestList; }
public function matchopportunitiesAction() { $client = PR_Session::getSession(PR_Session::SESSION_USER); $CandidateProfileID = $client['CandidateProfileID']; $PR_Api = new PR_Api_Core_CareerClass(); $skillList = $PR_Api->getListSkill(); $result = $PR_Api->getListOpportunity(); $industryListUnique = array(); $industryList = array(); // $experiencedUnique = array(); $experienced_List = array(); $countryUnique = array(); //$country_List = array(); $cityUnique = array(); $city_List = array(); $country_code = array(); $core = new PR_Api_Core_CandidateClass(); $oppList = array(); if ($result != "") { foreach ($result as $kk => $oppListInfo) { if ($oppListInfo['status'] == 1) { $industryListUnique[] = trim(strtolower($oppListInfo['industry'])); if ($oppListInfo['country'] != "" || !empty($oppListInfo['country'])) { $countryUnique[] = $oppListInfo['country']; } if ($oppListInfo['city'] != "" || !empty($oppListInfo['city'])) { $cityUnique[] = trim(strtolower($oppListInfo['city'])); } /* $hadApplied = $core->opportunityCandidateHadApplied($oppListInfo['OpportunityID'],$CandidateProfileID); if($hadApplied){ $oppListInfo['hadApplied'] =true ; $oppList[] = $oppListInfo; } else { $oppListInfo['hadApplied'] =false ; $oppList[] = $oppListInfo; } */ } // $experiencedUnique[] = $oppListInfo['experienced']; } $industryListUnique = array_unique($industryListUnique); $cityUnique = array_unique($cityUnique); foreach ($industryListUnique as $industryInfo) { $industryList[] = ucwords($industryInfo); } foreach ($cityUnique as $cityInfo) { $city_List[] = ucwords($cityInfo); } $country_code = array_unique($countryUnique); } $experienced_List = $PR_Api->getListExperiencedTime(); $country_List = $core->getCountryList($country_code); $candID = $client['CandidateProfileID']; $rslCanID = $core->get_candidate_list($candID); /*echo "<pre>"; print_r($rslCanID[0]); echo "<pre>"; die(); */ $this->view->candidateInfo = $rslCanID[0]; $this->view->skillList = $skillList; //$this->view->oppList = $oppList; $this->view->industryList = $industryList; $this->view->experienced_List = $experienced_List; $this->view->country_List = $country_List; $this->view->city_List = $city_List; $this->view->CandidateProfileID = $client['CandidateProfileID']; // $this->render('profile'); }