Пример #1
0
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_posts {background-image:url(components/com_jobboard/images/job_posts.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_USERS'), 'job_posts.png');
     JToolBarHelper::publishList('publish', JText::_('COM_JOBBOARD_JOB_POST_ACTIVATE'));
     JToolBarHelper::unpublishList('unpublish', JText::_('COM_JOBBOARD_JOB_POST_DEACTIVATE'));
     JToolBarHelper::back();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'users');
     }
     JobBoardToolbarHelper::setToolbarLinks('users');
     $users_model =& $this->getModel('Users');
     $gid = JRequest::getInt('selrow', 0);
     if ($gid > 0) {
         $app =& JFactory::getApplication();
         if ($users_model->setUserGroup(JRequest::getInt('seluser', 0), $gid)) {
             $app->enqueueMessage(JText::sprintf('COM_JOBBOARD_JOB_USERS_GRP_CHANGE_SUCCESS', $gid), 'message');
         } else {
             $this->enqueueMessage(JText::sprintf('COM_JOBBOARD_JOB_USERS_GRP_CHANGE_ERR', $gid), 'error');
         }
     }
     $view =& $this->getView('users', 'html');
     $view->setModel($users_model, true);
     $view->display();
 }
Пример #2
0
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_applicants {background-image:url(components/com_jobboard/images/job_applicants.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_UNSOL_APPL'), 'job_applicants.png');
     JToolBarHelper::deleteList();
     JToolBarHelper::editList();
     JToolBarHelper::cancel('close', JText::_('COM_JOBBOARD_TXT_CLOSE'));
     JobBoardToolbarHelper::setToolbarLinks('applicants');
     $app =& JFactory::getApplication();
     $vcontext = $app->getUserStateFromRequest('com.jobboard.applicatnts.vcontext', 'vcontext', 3, 'int');
     $unsol_model =& $this->getModel('Unsolicited');
     $cfig_model =& $this->getModel('Config');
     $config = $cfig_model->getApplConfig();
     $status_model =& $this->getModel('Status');
     $statuses = $status_model->getStatuses();
     JRequest::setVar('view', 'unsolicited');
     $_view =& $this->getView('unsolicited', 'html');
     $_view->setModel($unsol_model, true);
     $_view->assignRef('statuses', $statuses);
     $_view->assignRef('config', $config);
     $_view->assign('vcontext', $vcontext);
     $_view->display();
 }
Пример #3
0
 /**
  * Displays the Dashboard (main page)
  * Accessible at index.php?option=com_Jobboard
  */
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_board {background-image:url(components/com_jobboard/images/job_board.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_JOB_BOARD'), 'job_board.png');
     JToolBarHelper::addNewX('newJob', JText::_('COM_JOBBOARD_NEW_JOB'));
     JToolBarHelper::divider();
     JobBoardToolbarHelper::setToolbarLinks('dashboard');
     parent::display();
 }
Пример #4
0
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_posts {background-image:url(components/com_jobboard/images/job_posts.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_EMAIL_TEMPLATES'), 'job_posts.png');
     // JToolBarHelper::addNewX();
     JToolBarHelper::editList();
     // JToolBarHelper::deleteList();
     JToolBarHelper::back();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'messages');
     }
     JobBoardToolbarHelper::setToolbarLinks('messages');
     parent::display();
 }
Пример #5
0
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_applicants {background-image:url(components/com_jobboard/images/job_applicants.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_DEPTS_DIVS'), 'job_applicants.png');
     JToolBarHelper::deleteList();
     JToolBarHelper::addNewX();
     JToolBarHelper::editList();
     JToolBarHelper::back();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'departments');
     }
     JobBoardToolbarHelper::setToolbarLinks('departments');
     $depts_model =& $this->getModel('Departments');
     $status_model =& $this->getModel('Status');
     $view =& $this->getView('departments', 'html');
     $view->setModel($depts_model, true);
     $statuses = $status_model->getStatuses();
     $view->assignRef('statuses', $statuses);
     $view->display();
 }
Пример #6
0
 function editApplication()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-applicant_details {background-image:url(components/com_jobboard/images/applicant_details.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_JOB_APPL_DETAILS'), 'applicant_details.png');
     JToolBarHelper::back();
     JToolBarHelper::apply('applyappl');
     JToolBarHelper::save('saveappl');
     JToolBarHelper::cancel('close', JText::_('COM_JOBBOARD_TXT_CLOSE'));
     JobBoardToolbarHelper::setToolbarLinks('applicants');
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jobboard_admappl.php';
     $view =& $this->getView('applicantedit', 'html');
     // $view->setLayout('admin');
     $cids = JRequest::getVar('cid', array(), 'array');
     $appl_id = isset($cids[0]) ? $cids[0] : JRequest::getInt('aid');
     $appl_ids = JobBoardAdmapplHelper::getApplIds($appl_id);
     $jid = $appl_ids['jid'];
     $appl_uid = $appl_ids['sid'];
     $qid = $appl_ids['qid'];
     $applicant_model =& $this->getModel('Uapplicant');
     $cfig_model =& $this->getModel('Config');
     if ($qid > 0) {
         $questionnaire = $applicant_model->getQuestionnaire($qid);
         $fields = json_decode($questionnaire['fields']);
         if (!is_object($fields)) {
             $qid = 0;
         } else {
             unset($questionnaire['fields']);
             $q_answers = $applicant_model->getApplicantQanswers($qid, $appl_id);
             jimport('joomla.utilities.date');
             $today = new JDate();
             $view->assignRef('questionnaire', $questionnaire);
             $view->assignRef('q_answers', $q_answers);
             $view->assignRef('fields', $fields->fields);
             $view->assignRef('today', $today);
         }
     }
     $user_model =& $this->getModel('User');
     $job_title = $applicant_model->getApplJobTitle($jid);
     $prof_id = $appl_ids['pid'];
     $applicant_name = $user_model->getJUsername($appl_uid);
     $cv_name = $applicant_model->getCvProfileName($prof_id, $appl_uid);
     $user_prof_data = $user_model->getSeekerProfile($appl_uid, true);
     $view->assign('cv_name', $cv_name);
     $view->assign('applicant_name', $applicant_name);
     $view->assign('qid', $qid);
     $view->assign('appl_uid', $appl_uid);
     $view->assign('pid', $prof_id);
     $appl_data = $applicant_model->getApplication($appl_id);
     $statuses = $applicant_model->getStatuses();
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jobboard_admuser.php';
     $pp_status = JobBoardAdmuserHelper::checkProfilePicStatus($appl_uid, &$user_model, 2);
     $view->assign('context', 'application');
     $view->assignRef('user_prof_data', $user_prof_data);
     $view->assignRef('appl_data', $appl_data);
     $view->assignRef('statuses', $statuses);
     $view->assign('is_profile_pic', $pp_status['is_profile_pic']);
     $view->assign('imgthumb', $pp_status['urithumb']);
     $view->assign('imgthumb_115', $pp_status['urithumb2']);
     $view->assign('job_title', $job_title);
     $view->assign('aid', $appl_id);
     $view->assign('jid', $jid);
     $view->assignRef('config', $config);
     $view->display();
 }
Пример #7
0
 function display()
 {
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::cancel();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'config');
     }
     JobBoardToolbarHelper::setToolbarLinks('config');
     $cfg_model =& $this->getModel('Config');
     $depts = $cfg_model->getDepts();
     $countries = $cfg_model->getCountries();
     $jobtypes = $cfg_model->getJobtypes();
     $careers = $cfg_model->getCareers();
     $edu = $cfg_model->getEdu();
     $categories = $cfg_model->getCategories();
     $section = JRequest::getString('section', 'general');
     $view =& $this->getView('config', 'html');
     $view->setModel($cfg_model, true);
     $view->setLayout('config');
     $view->assign('section', $section);
     $view->assignRef('depts', $depts);
     $view->assignRef('countries', $countries);
     $view->assignRef('jobtypes', $jobtypes);
     $view->assignRef('careers', $careers);
     $view->assignRef('edu', $edu);
     $view->assignRef('categories', $categories);
     $view->display();
 }
Пример #8
0
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_posts {background-image:url(components/com_jobboard/images/job_posts.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_M_JOBS'), 'job_posts.png');
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList('publish', JText::_('COM_JOBBOARD_JOB_POST_ACTIVATE'));
     JToolBarHelper::unpublishList('unpublish', JText::_('COM_JOBBOARD_JOB_POST_DEACTIVATE'));
     JToolBarHelper::addNewX();
     JToolBarHelper::editList();
     JToolBarHelper::back();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'jobs');
     }
     JobBoardToolbarHelper::setToolbarLinks('jobs');
     $job_model =& $this->getModel('Jobs');
     parent::display();
 }
Пример #9
0
 function displaySingle($type)
 {
     JobBoardToolbarHelper::setToolbarLinks('statuses');
     JRequest::setVar('view', 'statusedit');
     if ($type = 'new') {
         JRequest::setVar('task', 'add');
     }
     parent::display();
 }
Пример #10
0
 function setToolbar($view)
 {
     JToolBarHelper::title(JText::_('COM_JOBBOARD_EDUCATION_LEVELS'), 'job_posts.png');
     JToolBarHelper::deleteList();
     JToolBarHelper::addNewX();
     JToolBarHelper::editList();
     JToolBarHelper::back();
     JobBoardToolbarHelper::setToolbarLinks($view);
 }