function display($tpl = null) { $app = JFactory::getApplication(); $rows =& $this->get('data'); $pagination =& $this->get('pagination'); $this->search =& $this->get('search'); $this->search = !empty($this->search) ? $this->escape($this->search) : $this->search; $this->assignRef('rows', $rows); $this->assignRef('pagination', $pagination); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $lists['order'] = $app->getUserStateFromRequest('com_jobboard.applicants.filterOrder', 'filter_order', 'request_date'); $lists['orderDirection'] = $app->getUserStateFromRequest('com_jobboard.applicants.filterOrderDirection', 'filter_order_Dir', 'ASC', 'cmd'); $lists['orderDirection'] = strtoupper($lists['orderDirection']) == 'ASC' ? 'ASC' : 'DESC'; $this->assignRef('lists', $lists); $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'; jimport('joomla.environment.browser'); $document =& JFactory::getDocument(); $browser =& JBrowser::getInstance(); if (is_int(strpos($browser->getBrowser(), 'msie'))) { if (intval($browser->getVersion()) > 7) { $cleafix = ".clearfix {display: block;}"; $document->addStyleDeclaration($cleafix); } } $_format = JRequest::getString('tmpl', ''); $this->is_modal = $_format == 'component' ? true : false; if (!$this->is_modal) { require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jobboard_behavior.php'; } parent::display($tpl); }
function display($tpl = null) { $rows =& $this->get('data'); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $this->assignRef('rows', $rows); parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task', ''); $row =& JTable::getInstance('Education', 'Table'); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $cid = JRequest::getVar('cid', array(0), '', 'array'); $id = intval($cid[0]); $row->load($id); $this->assignRef('row', $row); parent::display($tpl); }
function display($tpl = null) { if (version_compare(JVERSION, '1.7.0', 'ge')) { // Options button. if (JFactory::getUser()->authorise('core.admin', 'com_jobboard')) { JToolBarHelper::preferences('com_jobboard'); } } $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); parent::display($tpl); }
function display($tpl = null) { $cid = JRequest::getVar('cid', false, 'DEFAULT', 'array'); if ($cid) { $id = $cid[0]; } else { $id = JRequest::getInt('id', 0); } $newjob = $id > 0 ? false : true; if ($newjob) { $cfigt = JTable::getInstance('Config', 'Table'); $cfigt->load(1); $this->assignRef('config', $cfigt); } $lang =& JFactory::getLanguage()->getTag(); $lang = explode('-', $lang); $document =& JFactory::getDocument(); $_format = JRequest::getVar('format', ''); jimport('joomla.environment.browser'); $browser =& JBrowser::getInstance(); if (is_int(strpos($browser->getBrowser(), 'msie'))) { if (intval($browser->getVersion()) > 7) { $cleafix = ".clearfix {display: block;}"; $document->addStyleDeclaration($cleafix); } } if ($this->config->use_location == 1) { if (empty($_format)) { $this->maps_online = JobBoardHelper::getSite('maps.google.com'); JHTML::_('behavior.mootools'); if ($this->maps_online) { $document->addScript('http://maps.google.com/maps/api/js?v=3&sensor=false&language=' . $lang[0]); } $js_vars = 'var tandolin = tandolin || {}; var mapSlide, windowScroll, jobMap, mapInstrctns; var presentCoords = "' . JText::_('COM_JOBBOARD_TXT_PRESENT_COORDINATES') . '";'; $js_vars .= 'var mapDiv, focusOn, infoSpans, vMapTrigger, mapOpen, jobForm; '; $js_vars .= "window.addEvent('domready', function(){\n jobForm = document.forms['adminForm'];\n infoSpans = document.getElementById('calc_loc').getElements('span');\n });\n "; $document->addScriptDeclaration($js_vars); } } $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $this->assign('newjob', $newjob); $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; if (!$this->is_modal) { require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jobboard_behavior.php'; } parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task', ''); $row =& JTable::getInstance('Category', 'Table'); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $cid = JRequest::getVar('cid', array(0), '', 'array'); $id = $cid[0]; $row->load($id); $this->assignRef('row', $row); $this->assignRef('id', $id); $this->assignRef('type', $type); $this->assignRef('enabled', $enabled); parent::display($tpl); }
function display($tpl = null) { $app = JFactory::getApplication(); $rows =& $this->get('data'); $this->assignRef('rows', $rows); $pagination =& $this->get('pagination'); $this->assignRef('pagination', $pagination); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $lists['order'] = $app->getUserStateFromRequest('com_jobboard.education.filterOrder', 'filter_order', 'level'); $lists['orderDirection'] = $app->getUserStateFromRequest('com_jobboard.education.filterOrderDirection', 'filter_order_Dir', 'DESC', 'cmd'); $lists['orderDirection'] = strtoupper($lists['orderDirection']) == 'ASC' ? 'ASC' : 'DESC'; $this->assignRef('lists', $lists); parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task', ''); $row =& $this->get('data'); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $this->assignRef('config', JRequest::getVar('config', '')); $this->assignRef('row', $row); $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'; parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task', ''); $row =& JTable::getInstance('Messages', 'Table'); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $cid = JRequest::getVar('cid', array(0), '', 'array'); $id = $cid[0]; $row->load($id); $this->assignRef('row', $row); $this->assignRef('id', $id); $this->assignRef('type', $lang_id); $this->assignRef('subject', $variable); $this->assignRef('body', $langtext); parent::display($tpl); }
function display($tpl = null) { $app = JFactory::getApplication(); $rows =& $this->get('data'); $this->search =& $this->get('search'); $this->search = !empty($this->search) ? $this->escape($this->search) : $this->search; $pagination =& $this->get('pagination'); $this->assignRef('rows', $rows); $this->assignRef('pagination', $pagination); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $lists['order'] = $app->getUserStateFromRequest('com_jobboard.departments.filterOrder', 'filter_order', 'name', 'word'); $lists['orderDirection'] = $app->getUserStateFromRequest('com_jobboard.departments.filterOrderDirection', 'filter_order_Dir', 'ASC', 'cmd'); $lists['orderDirection'] = strtoupper($lists['orderDirection']) == 'ASC' ? 'ASC' : 'DESC'; $this->assignRef('lists', $lists); parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task', ''); $row =& $this->get('data'); $this->assignRef('row', $row); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $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; if (!$this->is_modal) { require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jobboard_behavior.php'; } parent::display($tpl); }
function display($tpl = null) { $app = JFactory::getApplication(); $rows =& $this->get('data'); $pagination =& $this->get('pagination'); $search = $this->get('search'); $this->assignRef('rows', $rows); $this->assignRef('pagination', $pagination); $this->assign('search', $search); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $lists['order'] = $app->getUserStateFromRequest('com_jobboard.unsolicited.filterOrder', 'filter_order', 'request_date'); $lists['orderDirection'] = $app->getUserStateFromRequest('com_jobboard.unsolicited.filterOrderDirection', 'filter_order_Dir', 'DESC', 'cmd'); $lists['orderDirection'] = strtoupper($lists['orderDirection']) == 'ASC' ? 'ASC' : 'DESC'; $this->assignRef('lists', $lists); $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'; parent::display($tpl); }
function display($tpl = null) { $app = JFactory::getApplication(); $rows =& $this->get('data'); $pagination =& $this->get('pagination'); $app = JFactory::getApplication(); $this->group = $app->getUserState("com_jobboard.users.group"); $this->config =& $this->get('ListConfig'); $this->search = $this->get('search'); $this->assignRef('rows', $rows); $this->assignRef('pagination', $pagination); $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); $lists['order'] = $app->getUserStateFromRequest('com_jobboard.users.filterOrder', 'filter_order', 'id'); $lists['orderDirection'] = $app->getUserStateFromRequest('com_jobboard.users.filterOrderDirection', 'filter_order_Dir', 'ASC', 'cmd'); $lists['orderDirection'] = strtoupper($lists['orderDirection']) == 'ASC' ? 'ASC' : 'DESC'; $this->assignRef('lists', $lists); if (!empty($this->search)) { $this->search = $this->escape($this->search); } parent::display($tpl); }
function display($tpl = null) { if (version_compare(JVERSION, '1.7.0', 'ge')) { // Options button. if (JFactory::getUser()->authorise('core.admin', 'com_jobboard')) { JToolBarHelper::preferences('com_jobboard'); } } $task = JRequest::getVar('task', ''); //get config data $row =& JTable::getInstance('Config', 'Table'); $id = 1; //there is only one config record, with the id=1 (set during installation) so we don't need to look at the cid even though it might be sent if (!$row->load($id)) { JError::raiseError(500, $row->getError()); } else { $this->assignRef('row', $row); } switch ($this->section) { case 'general': break; case 'users': $this->user_groups =& $this->get('UserGroups'); break; case 'jobs': $this->dist_array = array(10, 15, 20, 30, 50, 70, 100, 300, 500, 1000, 5000, 10000); break; default: break; } /* $this->assignRef('depts', JRequest::getVar('depts', '')); $this->assignRef('countries', JRequest::getVar('countries', '')); $this->assignRef('careers', JRequest::getVar('careers', '')); $this->assignRef('edu', JRequest::getVar('edu', '')); $this->assignRef('jobtypes', JRequest::getVar('jobtypes', '')); $this->assignRef('categories', JRequest::getVar('categories', ''));*/ $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); parent::display($tpl); }
function display($tpl = null) { $task = JRequest::getVar('task', ''); $cid = JRequest::getVar('cid', false, 'DEFAULT', 'array'); if ($cid) { $id = $cid[0]; } else { $id = JRequest::getInt('id', 0); } $newjob = $id > 0 ? false : true; if ($newjob) { /* $cfigt = JTable::getInstance('Config', 'Table'); $cfigt->load(1); $this->assignRef('config', $cfigt);*/ } $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'; $this->assign('jb_render', JobBoardHelper::renderJobBoardx()); // $this->assign('newjob', $newjob); parent::display($tpl); }