public function matchOpportunityAction()
 {
     $this->_helper->layout->disableLayout();
     $client = PR_Session::getSession(PR_Session::SESSION_USER);
     $CandidateProfileID = $client['CandidateProfileID'];
     $request = $this->getRequest();
     $params = $this->getRequest()->getParams();
     $industry = $request->getParam("technology_id", "");
     $experienced = $request->getParam("experience_name", "");
     $country = $request->getParam("country_name", "");
     $city = $request->getParam("city_name", "");
     if (isset($params['matchopportunitySear'])) {
         $opportunitiesSearchList = $request->getParam("matchopportunitySear", "");
     } else {
         $opportunitiesSearchList = array();
     }
     $core = new PR_Api_Core_CandidateClass();
     $opportunityList1 = $core->getOpportunitiesMatch($industry, $experienced, $country, $city, $opportunitiesSearchList);
     $list_candidate = $core->get_candidate_list($CandidateProfileID);
     $candidateImg = $list_candidate[0];
     $PR_Api = new PR_Api_Core_CareerClass();
     $oppList = array();
     //$result = array();
     if ($opportunityList1 != "") {
         foreach ($opportunityList1 as $key => $opportunityList1Info) {
             if ($opportunityList1Info['status'] == 1) {
                 $result = $PR_Api->getOpportunityInfoByID($opportunityList1Info['OpportunityID']);
                 $hadApplied = $core->opportunityCandidateHadApplied($opportunityList1Info['OpportunityID'], $CandidateProfileID);
                 if ($hadApplied) {
                     $result['hadApplied'] = true;
                     $result['image'] = $candidateImg['image'];
                     $oppList[] = $result;
                 } else {
                     $result['hadApplied'] = false;
                     $result['image'] = "";
                     $oppList[] = $result;
                 }
             }
         }
     }
     /*echo "<pre>";
           print_r($oppList); echo "<br>";
       echo "</pre>"; die();*/
     $this->view->oppList = $oppList;
     $this->view->CandidateProfileID = $client['CandidateProfileID'];
 }