public function industry() { $userid = self::get_user(); $industry = new IndustryList($userid); $indusdata = $industry->currentindustry(); while ($rowsindus = $indusdata->fetch_object()) { $this->industrydata[] = $rowsindus; } // echo "<pre>"; // print_r($this->industrydata);exit; }
JHtml::_('behavior.keepalive'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.calendar'); JHtml::_('formbehavior.chosen', 'select'); $user = JFactory::getUser(); /* add custom js controller */ $document = JFactory::getDocument(); $document->addScript("/media/custom_js/jobseeker/profile_edit.js"); /* Jobseeker Class */ jimport("recruitment.jobseeker.jobseeker"); $jobseeker = new Jobseeker($user->id); $juser_result = $jobseeker->current_user(); $data = $juser_result->fetch_object(); /* IndustryList Class */ jimport("recruitment.jobseeker.industrylist"); $industrylist = new IndustryList(); $industrylist_result = $industrylist->all(); $industrylist_options = industry_options($industrylist_result, $data->industry); /* CoutnryList Class */ jimport("recruitment.jobseeker.countrylist"); $countrylist = new CountryList(); $countrylist_result = $countrylist->all(); $countrylist_options = country_options($countrylist_result, $data->country); function country_options($result, $current) { $html = ""; $selected = ""; while ($row = $result->fetch_object()) { if ($current == $row->name) { $selected = "selected='selected'"; } else {