示例#1
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $document =& JFactory::getDocument();
     $this->_addScripts();
     if ($this->published) {
         jimport('joomla.utilities.date');
         //$this->config = & $this->get('ShareConfig', 'Config');
         $this->assign('setstate', JobBoardHelper::renderJobBoard());
         if ($this->config->use_location) {
             $job_location = $this->data->country_name != 'COM_JOBBOARD_DB_ANYWHERE_CNAME' ? ', ' . $this->data->city : ', ' . JText::_('WORK_FROM_ANYWHERE');
         } else {
             $job_location = '';
         }
         $ref_num = $this->data->ref_num != '' ? ' (' . JText::_('COM_JOBBOARD_ENT_REF') . ': ' . $this->data->ref_num . ')' : '';
         $document->setTitle(JText::_('EMAIL_JOB') . ': ' . $this->data->job_title . $job_location . $ref_num);
     } else {
         $document->setTitle(JText::_('COM_JOBBOARD_JOB_DISABLED'));
     }
     $this->itemid = JRequest::getInt('Itemid');
     $this->user_entry_point = 'com_users';
     if (version_compare(JVERSION, '2.5.0', 'ge') || version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     $retries = $app->getUserState('com_jobboard.member.retry', 0, 'int');
     $this->retries = $retries;
     parent::display($tpl);
 }
示例#2
0
 function display($tpl = null)
 {
     $app =& JFactory::getApplication();
     $today =& JFactory::getDate();
     $uri =& JURI::getInstance();
     $this->uri = $uri->getScheme() . '://' . $uri->getHost() . $uri->getPath();
     $itemid = JRequest::getInt('Itemid');
     $this->step = isset($this->step) ? $this->step : 0;
     $this->assignRef('today', $today);
     if ($this->step != 1 && $this->step > 0) {
         $this->assignRef('av_date', $today);
     }
     $_format = JRequest::getString('tmpl', '');
     $this->is_modal = $_format == 'component' ? true : false;
     $this->_addScripts($this->step, $this->is_modal);
     $user =& JFactory::getUser();
     $this->assignRef('user', $user);
     $this->setstate = JobBoardHelper::renderJobBoard();
     $this->day_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%d' : 'd';
     $this->month_long_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%B' : 'F';
     $this->month_short_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%b' : 'M';
     $this->year_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%Y' : 'Y';
     $this->user_entry_point = 'com_users';
     if (version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     parent::display($tpl);
 }
示例#3
0
 function display($tpl = null)
 {
     $document =& JFactory::getDocument();
     $app = JFactory::getApplication();
     $this->config =& $this->get('JobConfig', 'Config');
     if ($this->published) {
         jimport('joomla.utilities.date');
         require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jobboard_job.php';
         $this->assign('post_date', JobBoardJobHelper::formatDate($this->data->post_date));
         $this->assign('setstate', JobBoardHelper::renderJobBoard());
         $extra_keywords = strlen($this->data->job_tags) > 1 ? ', ' . $this->data->job_tags : '';
         if ($this->config->use_location) {
             $job_location = $this->data->country_name != 'COM_JOBBOARD_DB_ANYWHERE_CNAME' ? ', ' . $this->data->city : ', ' . JText::_('WORK_FROM_ANYWHERE');
         } else {
             $job_location = '';
         }
         $ref_num = $this->data->ref_num != '' ? ' (' . JText::_('COM_JOBBOARD_ENT_REF') . ': ' . $this->data->ref_num . ')' : '';
         $params =& JComponentHelper::getParams('com_jobboard');
         $title_string = $this->data->job_title . $job_location . $ref_num;
         $menus =& JSite::getMenu();
         $menu = $menus->getActive();
         $uri =& JURI::getInstance();
         $this->uri = $uri->getScheme() . '://' . $uri->getHost() . $uri->getPath();
         if (is_object($menu) && isset($menu->query['view']) && $menu->query['view'] == 'job' && isset($menu->query['id']) && $menu->query['id'] == $item->id) {
             $menu_params = new JParameter($menu->params);
             if (!$menu_params->get('page_title')) {
                 $params->set('page_title', $title_string);
             }
         } else {
             $params->set('page_title', $title_string);
         }
         $document->setTitle($params->get('page_title'));
     } else {
         $document->setTitle(JText::_('COM_JOBBOARD_JOB_DISABLED'));
     }
     $this->rformat = JRequest::getVar('format', '');
     $this->user_entry_point = 'com_users';
     $retries = $app->getUserState('com_jobboard.member.retry', 0, 'int');
     $this->retries = $retries;
     if (version_compare(JVERSION, '2.5.0', 'ge') || version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     $this->day_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%d' : 'd';
     $this->long_day_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%a' : 'D';
     $this->month_long_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%B' : 'F';
     $this->month_short_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%b' : 'M';
     $this->year_format = !version_compare(JVERSION, '1.6.0', 'ge') ? '%Y' : 'Y';
     $_format = JRequest::getString('tmpl', '');
     $this->is_modal = $_format == 'component' ? true : false;
     $this->itemid = JRequest::getInt('Itemid');
     $this->_addScripts($this->is_modal);
     parent::display($tpl);
 }
示例#4
0
 function display($tpl = null)
 {
     jimport('joomla.utilities.date');
     $app = JFactory::getApplication();
     $this->data =& $this->get('Data');
     $featured_count = $this->countFeatured(&$this->data);
     $locsrch = $this->escape($this->locsrch);
     if ($featured_count > 0 && $locsrch != '') {
         $this->data = $this->sortFeatured(&$this->data);
     }
     $this->config =& $this->get('Querycfg', 'Config');
     $this->jobsearch =& $this->get('Search');
     $this->jobtypes =& $this->get('JobTypes');
     $this->jobcareerlvls =& $this->get('Careerlvls');
     $this->jobedlvls =& $this->get('Edlvls');
     if ($this->config->use_location == true) {
         $this->radii =& $this->get('Distances');
         $this->dist_symbol = $this->config->distance_unit == 0 ? JText::_('COM_JOBBOARD_DIST_METRIC') : JText::_('COM_JOBBOARD_DIST_IMPERIAL');
         $this->sel_distance = $app->getUserStateFromRequest("com_jobboard.sel_distance", 'sel_distance', $this->config->default_distance, 'int');
         $geo_address = $app->getUserState('com_jobboard.geo_address');
         $this->assign('geo_address', $geo_address);
     }
     $this->featured_count = $featured_count;
     $this->filter_job_type = $app->getUserStateFromRequest("com_jobboard.filter_job_type", 'filter_job_type', array(), 'array');
     $this->filter_careerlvl = $app->getUserStateFromRequest("com_jobboard.filter_careerlvl", 'filter_careerlvl', array(), 'array');
     $this->filter_edulevel = $app->getUserStateFromRequest("com_jobboard.filter_edulevel", 'filter_edulevel', array(), 'array');
     $this->pagination =& $this->get('Pagination');
     $this->categories =& $this->get('Categories');
     $this->setstate = JobBoardHelper::renderJobBoard();
     $this->jobsearch = $this->escape($this->jobsearch);
     $this->keysrch = $this->escape($this->keysrch);
     $this->locsrch = $locsrch;
     $retries = $app->getUserState('com_jobboard.member.retry', 0, 'int');
     $this->retries = $retries;
     $this->user_entry_point = 'com_users';
     if (version_compare(JVERSION, '2.5.0', 'ge') || version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     $this->_addScripts();
     $this->rss_on = JobBoardListHelper::rssEnabled();
     $document =& JFactory::getDocument();
     parent::display($tpl);
 }
示例#5
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $this->_addScripts();
     $this->assign('setstate', JobBoardHelper::renderJobBoard());
     $this->assign('errors', JRequest::getVar('errors', 0));
     $this->itemid = JRequest::getInt('Itemid');
     $retries = $app->getUserState('com_jobboard.member.retry', 0, 'int');
     $this->retries = $retries;
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('SUBMIT_YOUR_CV_RESUME'));
     if ($this->errors == 1) {
         $this->fields = $app->getUserState('com_jobboard.fields', null);
     }
     $this->user_entry_point = 'com_users';
     if (version_compare(JVERSION, '2.5.0', 'ge') || version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     parent::display($tpl);
 }
示例#6
0
 function display($tpl = null)
 {
     jimport('joomla.utilities.date');
     $app = JFactory::getApplication();
     $app->setUserState("com_jobboard.jobsearch", '');
     $app->setUserState("com_jobboard.keysrch", '');
     $app->setUserState("com_jobboard.locsrch", '');
     $app->setUserState('com_jobboard.daterange', 0);
     $app->setUserState('com_jobboard.list.country_id', 0);
     $app->setUserState('com_jobboard.list.sort', '');
     $app->setUserState('com_jobboard.list.order', '');
     $app->setUserState('com_jobboard.list.selcat', 1);
     $app->setUserState("com_jobboard.sel_distance", null);
     $app->setUserState("com_jobboard.filter_job_type", array());
     $app->setUserState("com_jobboard.filter_careerlvl", array());
     $app->setUserState("com_jobboard.filter_edulevel", array());
     $app->setUserState('com_jobboard.list.layout', 'table');
     $this->data =& $this->get('Data');
     $app->setUserState('com_jobboard.list.layout', $this->layout);
     $featured_count = $this->countFeatured(&$this->data);
     $locsrch = $this->escape($this->locsrch);
     if ($featured_count > 0) {
         $split_data = $this->sortFeatured(&$this->data);
         $this->featured_jobs = $split_data[0];
         $this->latest_jobs = $split_data[1];
         unset($split_data, $this->data);
     } else {
         $this->featured_jobs = array();
         $latest_jobs = array();
         for ($j = 0; $j < 5; $j++) {
             if (isset($this->data[$j])) {
                 $latest_jobs[] = $this->data[$j];
             }
         }
         $this->latest_jobs = $latest_jobs;
         unset($latest_jobs, $this->data);
     }
     $this->config =& $this->get('Querycfg', 'Config');
     $this->jobsearch =& $this->get('Search');
     $this->jobtypes =& $this->get('JobTypes');
     $this->jobcareerlvls =& $this->get('Careerlvls');
     $this->jobedlvls =& $this->get('Edlvls');
     $this->intro_cats =& $this->get('IntroCats', 'Jobboard');
     if ($this->config->use_location == true) {
         $this->radii =& $this->get('Distances');
         $this->dist_symbol = $this->config->distance_unit == 0 ? JText::_('COM_JOBBOARD_DIST_METRIC') : JText::_('COM_JOBBOARD_DIST_IMPERIAL');
         $this->sel_distance = $app->setUserState("com_jobboard.sel_distance", $this->config->default_distance, 'int');
         $geo_address = $app->getUserState('com_jobboard.geo_address');
         $this->assign('geo_address', $geo_address);
     }
     $this->featured_count = $featured_count;
     $this->filter_job_type = $app->getUserStateFromRequest("com_jobboard.filter_job_type", 'filter_job_type', array(), 'array');
     $this->filter_careerlvl = $app->getUserStateFromRequest("com_jobboard.filter_careerlvl", 'filter_careerlvl', array(), 'array');
     $this->filter_edulevel = $app->getUserStateFromRequest("com_jobboard.filter_edulevel", 'filter_edulevel', array(), 'array');
     $this->categories =& $this->get('Categories');
     $this->setstate = JobBoardHelper::renderJobBoard();
     $this->jobsearch = $this->escape($this->jobsearch);
     $this->keysrch = $this->escape($this->keysrch);
     $this->locsrch = $locsrch;
     $retries = $app->getUserState('com_jobboard.member.retry', 0, 'int');
     $this->retries = $retries;
     $this->user_entry_point = 'com_users';
     if (version_compare(JVERSION, '2.5.0', 'ge') || version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     $this->_addScripts();
     $this->rss_on = JobBoardListHelper::rssEnabled();
     $document =& JFactory::getDocument();
     parent::display($tpl);
 }