Example #1
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formsubcategory') {
         // categories
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         $session = JFactory::getSession();
         $categoryid = $session->get('sub_categoryid');
         $subcategory = $this->getJSModel('subcategory')->getSubCategorybyId($c_id, $categoryid);
         if (isset($subcategory->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::title(JText::_('SUB_CATEGORY') . ': <small><small>[ ' . $text . ' ]</small></small>');
         $this->assignRef('subcategory', $subcategory);
         $this->assignRef('categoryid', $categoryid);
         JToolBarHelper::save('subcategory.savesubcategory');
         if ($isNew) {
             JToolBarHelper::cancel('subcategory.cancelsubcategories');
         } else {
             JToolBarHelper::cancel('subcategory.cancelsubcategories', 'Close');
         }
     } elseif ($layoutName == 'subcategories') {
         //sub categories
         $categoryid = JRequest::getVar('cd', '');
         $session = JFactory::getSession();
         $session->set('sub_categoryid', $categoryid);
         $result = $this->getJSModel('subcategory')->getSubCategories($categoryid, $limitstart, $limit);
         JToolBarHelper::title(JText::_('SUB_CATEGORIES') . ' [' . $result[2]->cat_title . ']');
         JToolBarHelper::addNew('subcategory.editsubcategories');
         JToolBarHelper::editList('subcategory.editsubcategories');
         JToolBarHelper::deleteList(JText::_('JS_ARE_YOU_SURE'), 'subcategory.removesubcategory');
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #2
0
 function display($tpl = NULL)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'pdf';
     $cur_layout = 'resumepdf';
     if ($cur_layout == 'resumepdf') {
         $resumeid = $this->getJSModel('common')->parseId(JRequest::getVar('rd', ''));
         $jobid = $this->getJSModel('common')->parseId(JRequest::getVar('bd', ''));
         $myresume = JRequest::getVar('ms', '6');
         if (is_numeric($resumeid) == true) {
             $result = $this->getJSModel('resume')->getResumeViewbyId($uid, $jobid, $resumeid, $myresume);
         }
         sleep(10);
         $this->assignRef('resume', $result[0]);
         $this->assignRef('resume2', $result[1]);
         $this->assignRef('resume3', $result[2]);
         $this->assignRef('ms', $myresume);
         $this->assignRef('fieldsordering', $result[3]);
         $this->assignRef('isjobsharing', $_client_auth_key);
     }
     $document = JFactory::getDocument();
     $document->setTitle($result[0]->first_name . ' ' . $result[0]->last_name . ' ' . JText::_('JS_RESUME'));
     $this->assignRef('config', $config);
     parent::display();
 }
Example #3
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'configurations' || $layoutName == 'configurationsemployer' || $layoutName == 'configurationsjobseeker') {
         if ($layoutName == 'configurations') {
             $ptitle = JText::_('JS_CONFIGURATIONS');
         } elseif ($layoutName == 'configurationsemployer') {
             $ptitle = JText::_('JS_EMPLOYER_CONFIGURATIONS');
         } else {
             $ptitle = JText::_('JS_JOBSEEKER_CONFIGURATIONS');
         }
         JToolBarHelper::title($ptitle);
         JToolBarHelper::save('configuration.save');
         $result = $this->getJSModel('configuration')->getConfigurationsForForm();
         $this->assignRef('lists', $result[1]);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #4
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'jobcat') {
         //job cat
         $page_title .= ' - ' . JText::_('JS_JOB_CATEGORIES');
         $result = $this->getJSModel('job')->getJobCat();
         $application = $result[0];
         $filterlists = $result[2];
         $filtervalues = $result[3];
         $this->assignRef('application', $application);
         $this->assignRef('filterlists', $filterlists);
         $this->assignRef('filtervalues', $filtervalues);
         $this->assignRef('filterid', $filterid);
     }
     require_once 'category_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #5
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'jobappliedresume') {
         //job applied resume
         JToolBarHelper::title(JText::_('JS_APPLIED_RESUME'));
         $jobid = JRequest::getVar('oi');
         $tab_action = JRequest::getVar('ta', '');
         $session = JFactory::getSession();
         $needle_array = $session->get('jsjobappliedresumefilter');
         if (empty($tab_action)) {
             $tab_action = 1;
         }
         $form = 'com_jsjobs.jobappliedresume.list.';
         $result = $this->getJSModel('jobapply')->getJobAppliedResume($needle_array, $tab_action, $jobid, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('oi', $jobid);
         $this->assignRef('tabaction', $tab_action);
         $this->assignRef('searchoptions', $result1[0]);
         // for advance search tab
         $session->clear('jsjobappliedresumefilter');
     } elseif ($layoutName == 'appliedresumes') {
         //applied resumes
         JToolBarHelper::title(JText::_('JS_APPLIED_RESUME'));
         $form = 'com_jsjobs.appliedresumes.list.';
         $searchtitle = $mainframe->getUserStateFromRequest($form . 'searchtitle', 'searchtitle', '', 'string');
         $searchcompany = $mainframe->getUserStateFromRequest($form . 'searchcompany', 'searchcompany', '', 'string');
         $searchjobcategory = $mainframe->getUserStateFromRequest($form . 'searchjobcategory', 'searchjobcategory', '', 'string');
         $searchjobtype = $mainframe->getUserStateFromRequest($form . 'searchjobtype', 'searchjobtype', '', 'string');
         $searchjobstatus = $mainframe->getUserStateFromRequest($form . 'searchjobstatus', 'searchjobstatus', '', 'string');
         $result = $this->getJSModel('jobapply')->getAppliedResume($searchtitle, $searchcompany, $searchjobcategory, $searchjobtype, $searchjobstatus, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('lists', $lists);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #6
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'formcoverletter') {
         // form cover letter
         $page_title .= ' - ' . JText::_('JS_COVER_LETTER_FORM');
         if (isset($_GET['cl'])) {
             $letterid = $_GET['cl'];
         } else {
             $letterid = null;
         }
         $letterid = $this->getJSModel('common')->parseId(JRequest::getVar('cl', ''));
         $result = $this->getJSModel('coverletter')->getCoverLetterbyId($letterid, $uid);
         $this->assignRef('coverletter', $result[0]);
         $this->assignRef('canaddnewcoverletter', $result[4]);
         JHTML::_('behavior.formvalidation');
     } elseif ($layout == 'mycoverletters') {
         // my cover letters
         $page_title .= ' - ' . JText::_('JS_MY_COVER_LETTERS');
         $mycoverletter_allowed = $this->getJSModel('permissions')->checkPermissionsFor("MY_COVER_LETTER");
         if ($mycoverletter_allowed == VALIDATE) {
             $result = $this->getJSModel('coverletter')->getMyCoverLettersbyUid($uid, $limit, $limitstart);
             $this->assignRef('coverletters', $result[0]);
             if ($result[1] <= $limitstart) {
                 $limitstart = 0;
             }
             $pagination = new JPagination($result[1], $limitstart, $limit);
             $this->assignRef('pagination', $pagination);
         }
         $this->assignRef('mycoverletter_allowed', $mycoverletter_allowed);
     } elseif ($layout == 'view_coverletter') {
         // view cover letter
         $page_title .= ' - ' . JText::_('JS_VIEW_COVER_LETTER');
         $letterid = $this->getJSModel('common')->parseId(JRequest::getVar('cl', ''));
         $result = $this->getJSModel('coverletter')->getCoverLetterbyId($letterid, null);
         $this->assignRef('coverletter', $result[0]);
         $nav = JRequest::getVar('nav', '');
         $this->assignRef('nav', $nav);
         $jobaliasid = JRequest::getVar('bd', '');
         $this->assignRef('jobaliasid', $jobaliasid);
         $resumealiasid = JRequest::getVar('rd', '');
         $this->assignRef('resumealiasid', $resumealiasid);
     }
     require_once 'coverletter_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #7
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formjobseekerpackage') {
         // job seeker
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (is_numeric($c_id) == true) {
             $result = $this->getJSModel('jobseekerpackages')->getJobSeekerPackagebyId($c_id);
         }
         if (isset($result[0]->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::title(JText::_('JS_JOBSEEKER_PACKAGE') . ': <small><small>[ ' . $text . ' ]</small></small>');
         $this->assignRef('package', $result[0]);
         $this->assignRef('lists', $result[1]);
         $this->assignRef('paymentconfigs', $result[2]);
         $this->assignRef('paymentmethodlink', $paymentmethodlink);
         JToolBarHelper::save('jobseekerpackages.savejobseekerpackage');
         if ($isNew) {
             JToolBarHelper::cancel('jobseekerpackages.cancel');
         } else {
             JToolBarHelper::cancel('jobseekerpackages.cancel', 'Close');
         }
     } elseif ($layoutName == 'jobseekerpackages') {
         //job seeker packages
         JToolBarHelper::title(JText::_('JS_JOBSEEKER_PACKAGES'));
         JToolBarHelper::addNew('jobseekerpackages.add');
         JToolBarHelper::editList('jobseekerpackages.edit');
         JToolBarHelper::deleteList(JText::_('JS_ARE_YOU_SURE'), 'jobseekerpackages.remove');
         $result = $this->getJSModel('jobseekerpackages')->getJobSeekerPackages($limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #8
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'changerole') {
         // users - change role
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (is_numeric($c_id) == true) {
             $result = $this->getJSModel('userrole')->getChangeRolebyId($c_id);
         }
         $this->assignRef('role', $result[0]);
         $this->assignRef('lists', $result[1]);
         JToolBarHelper::title(JText::_('JS_CHANGE_ROLE'));
         JToolBarHelper::save('userrole.saveuserrole');
         if ($isNew) {
             JToolBarHelper::cancel('userrole.cancel');
         } else {
             JToolBarHelper::cancel('userrole.cancel', 'Close');
         }
     } elseif ($layoutName == 'users') {
         JToolBarHelper::title(JText::_('USERS'));
         JToolBarHelper::editList('userrole.edit');
         $form = 'com_jsjobs.users.list.';
         $searchname = $mainframe->getUserStateFromRequest($form . 'searchname', 'searchname', '', 'string');
         $searchusername = $mainframe->getUserStateFromRequest($form . 'searchusername', 'searchusername', '', 'string');
         $searchcompany = $mainframe->getUserStateFromRequest($form . 'searchcompany', 'searchcompany', '', 'string');
         $searchresume = $mainframe->getUserStateFromRequest($form . 'searchresume', 'searchresume', '', 'string');
         $searchrole = $mainframe->getUserStateFromRequest($form . 'searchrole', 'searchrole', '', 'string');
         $result = $this->getJSModel('user')->getAllUsers($searchname, $searchusername, $searchcompany, $searchresume, $searchrole, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('lists', $lists);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #9
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formexperience') {
         // jobtypes
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (is_numeric($c_id) == true and $c_id != 0) {
             $application = $this->getJSModel('experience')->getJobExperiencebyId($c_id);
         }
         if (isset($application->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::title(JText::_('JS_JOB_EXPERIENCE') . ': <small><small>[ ' . $text . ' ]</small></small>');
         JToolBarHelper::apply('experience.savejobexperiencesave', 'SAVE');
         JToolBarHelper::save2new('experience.savejobexperienceandnew');
         JToolBarHelper::save('experience.savejobexperience');
         if ($isNew) {
             JToolBarHelper::cancel('experience.cancel');
         } else {
             JToolBarHelper::cancel('experience.cancel', 'Close');
         }
     } elseif ($layoutName == 'experience') {
         //job types
         JToolBarHelper::title(JText::_('JS_JOB_EXPERIENCE'));
         JToolBarHelper::addNew('experience.editjobexperience');
         JToolBarHelper::editList('experience.editjobexperience');
         JToolBarHelper::deleteList(JText::_('JS_ARE_YOU_SURE'), 'experience.remove');
         $result = $this->getJSModel('experience')->getAllExperience($limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #10
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'mydepartments') {
         // my departments
         $page_title .= ' - ' . JText::_('JS_MY_DEPARTMENTS');
         $mydepartment_allowed = $this->getJSModel('permissions')->checkPermissionsFor("MY_DEPARTMENT");
         if ($mydepartment_allowed == VALIDATE) {
             $result = $this->getJSModel('department')->getMyDepartments($uid, $limit, $limitstart);
             $departments = $result[0];
             $totalresults = $result[1];
             $this->assignRef('departments', $departments);
             if ($result[1] <= $limitstart) {
                 $limitstart = 0;
             }
             $pagination = new JPagination($result[1], $limitstart, $limit);
             $this->assignRef('pagination', $pagination);
         }
         $this->assignRef('mydepartment_allowed', $mydepartment_allowed);
     } elseif ($layout == 'view_department') {
         // view company
         $departmentid = $this->getJSModel('common')->parseId(JRequest::getVar('pd', ''));
         $department = $this->getJSModel('department')->getDepartmentbyId($departmentid);
         $this->assignRef('department', $department);
         if (isset($department)) {
             $page_title .= ' - ' . $department->name;
         }
     } elseif ($layout == 'formdepartment') {
         //form department
         $page_title .= ' - ' . JText::_('JS_DEPARTMENT_INFO');
         $formdepartment_allowed = $this->getJSModel('permissions')->checkPermissionsFor("ADD_DEPARTMENT");
         if ($formdepartment_allowed == VALIDATE) {
             $departmentid = $this->getJSModel('common')->parseId(JRequest::getVar('pd', ''));
             $result = $this->getJSModel('department')->getDepartmentByIdForForm($departmentid, $uid);
             $this->assignRef('department', $result[0]);
             $this->assignRef('lists', $result[1]);
             JHTML::_('behavior.formvalidation');
         }
         $this->assignRef('formdepartment_allowed', $formdepartment_allowed);
     }
     require_once 'department_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #11
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     if ($layoutName == 'controlpanel') {
         //control panel
         JToolBarHelper::title('JS Jobs');
         $ck = $this->getJSModel('configuration')->getCheckCronKey();
         if ($ck == false) {
             $this->getJSModel('configuration')->genearateCronKey();
         }
         $ck = $this->getJSModel('configuration')->getCronKey(md5(date('Y-m-d')));
         $this->assignRef('ck', $ck);
         $today_stats = $this->getJSModel('jsjobs')->getTodayStats();
         $topjobs = $this->getJSModel('job')->getTopJobs();
         $this->assignRef('today_stats', $today_stats);
         $this->assignRef('topjobs', $topjobs);
     } elseif ($layoutName == 'jsjobsstats') {
         // users
         JToolBarHelper::title(JText::_('JS_JOBS_STATS'));
         $result = $this->getJSModel('jsjobs')->getJSJobsStats();
         $this->assignRef('companies', $result[0]);
         $this->assignRef('jobs', $result[1]);
         $this->assignRef('resumes', $result[2]);
         $this->assignRef('totalpaidamount', $result[9]);
         $this->assignRef('totalemployer', $result[10]);
         $this->assignRef('totaljobseeker', $result[11]);
     } elseif ($layoutName == 'info') {
         JToolBarHelper::title(JText::_('Information'));
     } elseif ($layoutName == 'themes') {
         //Themes
         JToolBarHelper::title(JText::_('JS_THEMES'));
         JToolBarHelper::cancel('jsjobs.cancel');
     } elseif ($layoutName == 'updates') {
         // roles
         JToolBarHelper::title(JText::_('JS_JOB_UPDATE'));
         $configur = $this->getJSModel('configuration')->getConfigur();
         $this->assignRef('configur', $configur);
         $count_config = $this->getJSModel('configuration')->getCountConfig();
         $this->assignRef('count_config', $count_config);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #12
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'controlpanel') {
         $emcontrolpanel = $this->getJSModel('configurations')->getConfigByFor('emcontrolpanel');
         if ($uid) {
             $packagedetail = $this->getJSModel('user')->getUserPackageDetailByUid($uid);
             $this->assignRef('packagedetail', $packagedetail);
         }
         $this->assignRef('emcontrolpanel', $emcontrolpanel);
     } elseif ($layout == 'my_stats') {
         // my stats
         $page_title .= ' - ' . JText::_('JS_MY_STATS');
         $mystats_allowed = $this->getJSModel('permissions')->checkPermissionsFor("EMPLOYER_PURCHASE_HISTORY");
         if ($mystats_allowed == VALIDATE) {
             $result = $this->getJSModel('employer')->getMyStats_Employer($uid);
             $this->assignRef('companiesallow', $result[0]);
             $this->assignRef('totalcompanies', $result[1]);
             $this->assignRef('jobsallow', $result[2]);
             $this->assignRef('totaljobs', $result[3]);
             $this->assignRef('publishedjob', $result[14]);
             $this->assignRef('expiredjob', $result[15]);
             if (isset($result[12])) {
                 $this->assignRef('package', $result[12]);
                 $this->assignRef('packagedetail', $result[13]);
             }
             $this->assignRef('ispackagerequired', $result[20]);
             $this->assignRef('goldcompaniesexpire', $result[21]);
             $this->assignRef('featurescompaniesexpire', $result[22]);
         }
         $this->assignRef('mystats_allowed', $mystats_allowed);
     }
     require_once 'employer_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #13
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'fieldsordering') {
         // field ordering
         $fieldfor = JRequest::getVar('ff', 0);
         $session = JFactory::getSession();
         $session->set('fieldfor', $fieldfor);
         $fieldfor = $session->get('fieldfor');
         JToolBarHelper::publishlist('fieldordering.fieldpublished');
         JToolBarHelper::unpublishlist('fieldordering.fieldunpublished');
         JToolBarHelper::custom('fieldordering.visitorfieldpublished', 'visitorpublishedbutton', '', 'Visitor Publish', true);
         JToolBarHelper::custom('fieldordering.visitorfieldunpublished', 'visitorunpublishedbutton', '', 'Visitor Unpublish', true);
         JToolBarHelper::custom('fieldordering.fieldrequired', 'required', '', 'Required', true);
         JToolBarHelper::custom('fieldordering.fieldnotrequired', 'notrequired', '', 'Not Required', true);
         if ($fieldfor) {
             $_SESSION['fford'] = $fieldfor;
         } else {
             $fieldfor = $_SESSION['fford'];
         }
         if ($fieldfor == 11 || $fieldfor == 12 || $fieldfor == 13) {
             JToolBarHelper::title(JText::_('JS_VISITOR_FIELDS'));
         } else {
             JToolBarHelper::title(JText::_('JS_FIELDS'));
         }
         $result = $this->getJSModel('fieldordering')->getFieldsOrdering($fieldfor, $limitstart, $limit);
         // 1 for company
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('ff', $fieldfor);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #14
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout statr
     if ($layoutName == 'finalstep') {
         //job types
         JToolBarHelper::title(JText::_('JS_FINAL_STEP'));
         $session = JFactory::getSession();
         $data = $session->get('data');
         $this->assignRef('data', $data);
     }
     //        layout end
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #15
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'package_buynow') {
         $page_title .= ' - ' . JText::_('JS_BUY_NOW');
         $packageid = JRequest::getVar('gd');
         $package = $this->getJSModel('jobseekerpackages')->getJobSeekerPackageById($packageid);
         $this->assignRef('package', $package);
         $nav = JRequest::getVar('nav', '');
         $this->assignRef('nav', $nav);
         $this->assignRef('paymentmethod', $paymentmethod);
         $this->assignRef('idealdata', $ideal_data);
     } elseif ($layout == 'package_details') {
         $page_title .= ' - ' . JText::_('JS_PACKAGE_DETAILS');
         $packageid = JRequest::getVar('gd');
         $package = $this->getJSModel('jobseekerpackages')->getJobSeekerPackageById($packageid);
         $this->assignRef('package', $package);
     } elseif ($layout == 'packages') {
         // job seeker package
         $page_title .= ' - ' . JText::_('JS_PACKAGES');
         $result = $this->getJSModel('jobseekerpackages')->getJobSeekerPackages($limit, $limitstart);
         $this->assignRef('packages', $result[0]);
         if ($result[1] <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($result[1], $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     require_once 'jobseekerpackages_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('pdflink', $pdflink);
     $this->assignRef('printlink', $printlink);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #16
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'employerpurchasehistory') {
         // my resume searches
         $mypurchasehistory_allowed = $this->getJSModel('permissions')->checkPermissionsFor("EMPLOYER_PURCHASE_HISTORY");
         if ($mypurchasehistory_allowed == VALIDATE) {
             $result = $this->getJSModel('purchasehistory')->getEmployerPurchaseHistory($uid, $limit, $limitstart);
             $this->assignRef('packages', $result[0]);
             if ($result[1] <= $limitstart) {
                 $limitstart = 0;
             }
             $pagination = new JPagination($result[1], $limitstart, $limit);
             $this->assignRef('pagination', $pagination);
         }
         $this->assignRef('mypurchasehistory_allowed', $mypurchasehistory_allowed);
     } elseif ($layout == 'jobseekerpurchasehistory') {
         // my resume searches
         $mypurchasehistory_allowed = $this->getJSModel('permissions')->checkPermissionsFor("JOBSEEKER_PURCHASE_HISTORY");
         if ($mypurchasehistory_allowed == VALIDATE) {
             $result = $this->getJSModel('purchasehistory')->getJobSeekerPurchaseHistory($uid, $limit, $limitstart);
             $this->assignRef('packages', $result[0]);
             if ($result[1] <= $limitstart) {
                 $limitstart = 0;
             }
             $pagination = new JPagination($result[1], $limitstart, $limit);
             $this->assignRef('pagination', $pagination);
         }
         $this->assignRef('mypurchasehistory_allowed', $mypurchasehistory_allowed);
     }
     require_once 'purchasehistory_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #17
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     if ($layoutName == 'resume1') {
         $resumeid = JRequest::getVar('rd');
         if (is_numeric($resumeid) == true) {
             $result = $this->getJSModel('resume')->getResumeViewbyId($resumeid);
         }
         $this->assignRef('resume', $result[0]);
         $this->assignRef('resume2', $result[1]);
         $this->assignRef('resume3', $result[2]);
         $this->assignRef('fieldsordering', $result[3]);
     }
     $this->assignRef('config', $config);
     $document = JFactory::getDocument();
     $document->setTitle('Resume');
     parent::display();
 }
Example #18
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #19
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'controlpanel') {
         $jscontrolpanel = $this->getJSModel('configurations')->getConfigByFor('jscontrolpanel');
         if ($uid) {
             $packagedetail = $this->getJSModel('user')->getUserPackageDetailByUid($uid);
             $this->assignRef('packagedetail', $packagedetail);
         }
         $this->assignRef('jscontrolpanel', $jscontrolpanel);
     } elseif ($layout == 'my_stats') {
         // my stats
         $page_title .= ' - ' . JText::_('JS_MY_STATS');
         $mystats_allowed = $this->getJSModel('permissions')->checkPermissionsFor("JOBSEEKER_STATS");
         if ($mystats_allowed == VALIDATE) {
             $result = $this->getJSModel('jobseeker')->getMyStats_JobSeeker($uid);
             $this->assignRef('resumeallow', $result[0]);
             $this->assignRef('totalresume', $result[1]);
             $this->assignRef('coverlettersallow', $result[6]);
             $this->assignRef('totalcoverletters', $result[7]);
             if (isset($result[8])) {
                 $this->assignRef('package', $result[8]);
                 $this->assignRef('packagedetail', $result[9]);
             }
             $this->assignRef('ispackagerequired', $result[10]);
         }
         $this->assignRef('mystats_allowed', $mystats_allowed);
     }
     require_once 'jobseeker_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #20
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'jobshare') {
         //resume search
         JToolBarHelper::title(JText::_('JS_JOB_SHARING_SERVICE'));
         $session = JFactory::getSession();
         $synchronizedata = $session->get('synchronizedatamessage');
         $session->clear('synchronizedatamessage');
         $empty = 'empty';
         $this->assignRef('result', $empty);
         if ($synchronizedata != "") {
             $this->assignRef('result', $synchronizedata);
         }
     } elseif ($layoutName == 'jobsharelog') {
         //resume search
         JToolBarHelper::title(JText::_('JS_JOB_SHARE_LOG'));
         $searchuid = $mainframe->getUserStateFromRequest($option . 'searchuid', 'searchuid', '', 'string');
         $searchusername = $mainframe->getUserStateFromRequest($option . 'searchusername', 'searchusername', '', 'string');
         $searchrefnumber = $mainframe->getUserStateFromRequest($option . 'searchrefnumber', 'searchrefnumber', '', 'string');
         $searchstartdate = $mainframe->getUserStateFromRequest($option . 'searchstartdate', 'searchstartdate', '', 'string');
         $searchenddate = $mainframe->getUserStateFromRequest($option . 'searchenddate', 'searchenddate', '', 'string');
         $result = $this->getJSModel('sharingservicelog')->getAllSharingServiceLog($searchuid, $searchusername, $searchrefnumber, $searchstartdate, $searchenddate, $limitstart, $limit);
         $this->assignRef('servicelog', $result[0]);
         $this->assignRef('lists', $result[2]);
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #21
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'loadaddressdata') {
         // load address data
         JToolBarHelper::title(JText::_('JS_LOAD_ADDRESS_DATA'));
         $error = 0;
         if (isset($_GET['er'])) {
             $error = $_GET['er'];
         }
         $this->assignRef('error', $error);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #22
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formdepartment') {
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (is_numeric($c_id) == true) {
             $result = $this->getJSModel('department')->getDepartmentById($c_id, $uid);
         }
         if (isset($result[0]->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::title(JText::_('JS_DEPARTMENT') . ': <small><small>[ ' . $text . ' ]</small></small>');
         $this->assignRef('department', $result[0]);
         $this->assignRef('lists', $result[1]);
         $this->assignRef('uid', $uid);
         JToolBarHelper::save('department.savedepatrment');
         if ($isNew) {
             JToolBarHelper::cancel('department.cancel');
         } else {
             JToolBarHelper::cancel('department.cancel', 'Close');
         }
     } elseif ($layoutName == 'company_departments') {
         //employer packages
         JToolBarHelper::title(JText::_('JS_COMPANY_DEPARTMENTS'));
         JToolBarHelper::cancel('department.cancel');
         $companyid = JRequest::getVar('md');
         $_SESSION['companyid'] = $companyid;
         $searchcompany = $mainframe->getUserStateFromRequest($option . 'searchcompany', 'searchcompany', '', 'string');
         $searchdepartment = $mainframe->getUserStateFromRequest($option . 'searchdepartment', 'searchdepartment', '', 'string');
         $result = $this->getJSModel('department')->getCompanyDepartments($companyid, $searchcompany, $searchdepartment, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         if (isset($result[2])) {
             $lists = $result[2];
         }
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         if (isset($lists)) {
             $this->assignRef('lists', $lists);
         }
         $this->assignRef('companyid', $companyid);
     } elseif ($layoutName == 'departmentqueue') {
         //companies queue
         JToolBarHelper::title(JText::_('JS_DEPARTMENT_QUEUE'));
         $searchcompany = $mainframe->getUserStateFromRequest($option . 'searchcompany', 'searchcompany', '', 'string');
         $searchdepartment = $mainframe->getUserStateFromRequest($option . 'searchdepartment', 'searchdepartment', '', 'string');
         $result = $this->getJSModel('department')->getAllUnapprovedDepartments($searchcompany, $searchdepartment, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('lists', $lists);
     } elseif ($layoutName == 'departments') {
         //employer packages
         JToolBarHelper::title(JText::_('JS_DEPARTMENTS'));
         JToolBarHelper::addNew('department.add');
         JToolBarHelper::editList('department.edit');
         JToolBarHelper::deleteList(JText::_("JS_ARE_YOU_SURE"), 'department.remove');
         $searchcompany = $mainframe->getUserStateFromRequest($option . 'searchcompany', 'searchcompany', '', 'string');
         $searchdepartment = $mainframe->getUserStateFromRequest($option . 'searchdepartment', 'searchdepartment', '', 'string');
         $result = $this->getJSModel('department')->getDepartments($searchcompany, $searchdepartment, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('lists', $lists);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #23
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'successfullogin') {
         if (isset($_SESSION['jsjobs_option'])) {
             $jsoption = $_SESSION['jsjobs_option'];
             unset($_SESSION['jsjobs_option']);
         }
         if (isset($_SESSION['jsjobs_view'])) {
             $jsview = $_SESSION['jsjobs_view'];
             unset($_SESSION['jsjobs_view']);
         }
         if (isset($_SESSION['jsjobs_red_layout'])) {
             $jslayout = $_SESSION['jsjobs_red_layout'];
             unset($_SESSION['jsjobs_red_layout']);
         }
         if (isset($_SESSION['jsjobs_comp_url'])) {
             $compurl = $_SESSION['jsjobs_comp_url'];
             unset($_SESSION['jsjobs_comp_url']);
         }
         if ($jslayout == 'successfullogin') {
             $jslayout = 'controlpanel';
         }
         if ($jsoption == '') {
             $jsoption = JRequest::getVar('option');
         }
         if ($jsoption == '') {
             $jsoption = 'com_jsjobs';
         }
         if ($jsoption == 'com_jsjobs') {
             if ($compurl != '') {
                 $mainframe->redirect($compurl);
             } elseif ($jsview != '') {
                 if ($jslayout == 'package_buynow') {
                     if (isset($_SESSION['nav'])) {
                         $mainframe->redirect('index.php?option=com_jsjobs&c=&view=&layout=' . $jslayout . '&nav=' . $_SESSION['nav'] . '&gd=' . $_SESSION['gd'] . '&Itemid=' . $itemid);
                     } else {
                         $mainframe->redirect('index.php?option=com_jsjobs&c=&view=&layout=' . $jslayout . '&gd=' . $_SESSION['gd'] . '&Itemid=' . $itemid);
                     }
                     unset($_SESSION['gd']);
                     unset($_SESSION['nav']);
                 } elseif ($jslayout == 'job_apply') {
                     $mainframe->redirect('index.php?option=com_jsjobs&c=jobapply&view=jobapply&layout=' . $jslayout . '&nav=' . $_SESSION['nav'] . '&bd=' . $_SESSION['bd'] . '&Itemid=' . $itemid);
                     unset($_SESSION['nav']);
                     unset($_SESSION['bd']);
                 } else {
                     $mainframe->redirect('index.php?option=com_jsjobs&c=&view=&layout=' . $jslayout . '&Itemid=' . $itemid);
                 }
             } else {
                 //get role of this user
                 if (isset($role->rolefor)) {
                     if ($role->rolefor == 1) {
                         // employer
                         $mainframe->redirect('index.php?option=com_jsjobs&c=jobseeker&view=jobseeker&layout=controlpanel&Itemid=' . $itemid);
                     } elseif ($role->rolefor == 2) {
                         // jobseeker
                         $mainframe->redirect('index.php?option=com_jsjobs&c=jobseeker&view=jobseeker&layout=controlpanel&Itemid=' . $itemid);
                     }
                 }
             }
         }
         $result = $this->getJSModel('purchasehistory')->getEmployerPurchaseHistory($uid, $limit, $limitstart);
         $this->assignRef('packages', $result[0]);
         if ($result[1] <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($result[1], $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     } elseif ($layout == 'new_injsjobs') {
         // new in jsjobs
         $page_title .= ' - ' . JText::_('JS_WELCOME_JSJOBS');
         $result = $this->getJSModel('userrole')->getUserType($uid);
         $this->assignRef('usertype', $result[0]);
         $this->assignRef('lists', $result[1]);
     } elseif ($layout == 'userlogin') {
         $role = JRequest::getVar('ur');
         $return = JRequest::getVar('return');
         $this->assignRef('userrole', $role);
         $this->assignRef('loginreturn', $return);
     } elseif ($layout == 'userregister') {
         if (!$uid) {
             $mainframe->redirect('index.php?option=com_users&view=registration&Itemid=' . $itemid);
         } else {
             $mainframe->redirect('index.php?option=com_users&view=profile&Itemid=' . $itemid);
         }
     }
     $document->setTitle($page_title);
     $this->assignRef('userrole', $role);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #24
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formcity') {
         // cities
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (isset($_SESSION['js_countrycode'])) {
             $countrycode = $_SESSION['js_countrycode'];
         } else {
             $countrycode = null;
         }
         if (isset($_SESSION['js_countryid'])) {
             $countryid = $_SESSION['js_countryid'];
         } else {
             $countryid = null;
         }
         if (isset($_SESSION['js_statecode'])) {
             $statecode = $_SESSION['js_statecode'];
         } else {
             $statecode = null;
         }
         if (isset($_SESSION['js_stateid'])) {
             $stateid = $_SESSION['js_stateid'];
         } else {
             $stateid = null;
         }
         //if (isset($_SESSION['js_countycode'])) $countycode = $_SESSION['js_countycode']; else $countycode=null;
         if (is_numeric($c_id) == true) {
             $city = $this->getJSModel('city')->getCitybyId($c_id);
         }
         if (isset($city->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::title(JText::_('JS_CITY') . ': <small><small>[ ' . $text . ' ]</small></small>');
         $this->assignRef('city', $city);
         $this->assignRef('countrycode', $countrycode);
         $this->assignRef('countryid', $countryid);
         $this->assignRef('statecode', $statecode);
         $this->assignRef('stateid', $stateid);
         JToolBarHelper::save('city.savecity');
         if ($isNew) {
             JToolBarHelper::cancel('city.cancel');
         } else {
             JToolBarHelper::cancel('city.cancel', 'Close');
         }
     } elseif ($layoutName == 'cities') {
         // cities
         $stateid = JRequest::getVar('sd');
         $countryid = JRequest::getVar('ct');
         $session = JFactory::getSession();
         $session->set('countryid', $countryid);
         $session->set('stateid', $stateid);
         JToolBarHelper::title(JText::_('JS_CITIES'));
         $form = 'com_jsjobs.counties.list.';
         $searchname = $mainframe->getUserStateFromRequest($form . 'searchname', 'searchname', '', 'string');
         $result = $this->getJSModel('city')->getAllStatesCities($searchname, $stateid, $countryid, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         if (isset($result[2])) {
             $this->assignRef('lists', $result[2]);
         }
         $this->assignRef('sd', $stateid);
         $this->assignRef('ct', $countryid);
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         JToolBarHelper::addNew('city.editjobcity');
         JToolBarHelper::editList('city.editjobcity');
         JToolBarHelper::publishList('city.publishcities');
         JToolBarHelper::unpublishList('city.unpublishcities');
         JToolBarHelper::deleteList(JText::_("JS_ARE_YOU_SURE"), 'city.deletecity');
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #25
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'my_jobsearches') {
         // my job searches
         $page_title .= ' - ' . JText::_('JS_JOB_SAVE_SEARCHES');
         $myjobsavesearch_allowed = $this->getJSModel('permissions')->checkPermissionsFor("JOB_SAVE_SEARCH");
         if ($myjobsavesearch_allowed == VALIDATE) {
             $result = $this->getJSModel('jobsearch')->getMyJobSearchesbyUid($uid, $limit, $limitstart);
             $this->assignRef('jobsearches', $result[0]);
             if (isset($result[1])) {
                 $total = $result[1];
             } else {
                 $total = 0;
             }
             if ($total <= $limitstart) {
                 $limitstart = 0;
             }
             $pagination = new JPagination($total, $limitstart, $limit);
             $this->assignRef('pagination', $pagination);
         }
         $this->assignRef('myjobsavesearch_allowed', $myjobsavesearch_allowed);
     } elseif ($layout == 'viewjobsearch') {
         // view job seach
         $page_title .= ' - ' . JText::_('JS_VIEW_JOB_SEARCHES');
         $id = JRequest::getVar('js', '');
         $search = $this->getJSModel('jobsearch')->getJobSearchebyId($id);
         $option = 'com_jsjobs';
         if (isset($search)) {
             $mainframe->setUserState($option . 'title', $search->jobtitle);
             if ($search->category != 0) {
                 $mainframe->setUserState($option . 'jobcategory', $search->category);
             } else {
                 $mainframe->setUserState($option . 'jobcategory', '');
             }
             if ($search->jobtype != 0) {
                 $mainframe->setUserState($option . 'jobtype', $search->jobtype);
             } else {
                 $mainframe->setUserState($option . 'jobtype', '');
             }
             if ($search->jobstatus != 0) {
                 $mainframe->setUserState($option . 'jobstatus', $search->jobstatus);
             } else {
                 $mainframe->setUserState($option . 'jobstatus', '');
             }
             if ($search->salaryrange != 0) {
                 $mainframe->setUserState($option . 'salaryrangefrom', $search->salaryrange);
             } else {
                 $mainframe->setUserState($option . 'salaryrangefrom', '');
             }
             if ($search->heighesteducation != 0) {
                 $mainframe->setUserState($option . 'heighestfinisheducation', $search->heighesteducation);
             } else {
                 $mainframe->setUserState($option . 'heighestfinisheducation', '');
             }
             if ($search->shift != 0) {
                 $mainframe->setUserState($option . 'shift', $search->shift);
             } else {
                 $mainframe->setUserState($option . 'shift', '');
             }
             $mainframe->setUserState($option . 'education', '');
             $mainframe->setUserState($option . 'jobsubcategory', '');
             $mainframe->setUserState($option . 'experience', $search->experience);
             $mainframe->setUserState($option . 'durration', $search->durration);
             if ($search->startpublishing != '0000-00-00 00:00:00') {
                 $mainframe->setUserState($option . 'startpublishing', $search->startpublishing);
             } else {
                 $mainframe->setUserState($option . 'startpublishing', '');
             }
             if ($search->stoppublishing != '0000-00-00 00:00:00') {
                 $mainframe->setUserState($option . 'stoppublishing', $search->stoppublishing);
             } else {
                 $mainframe->setUserState($option . 'stoppublishing', '');
             }
             if ($search->company != 0) {
                 $mainframe->setUserState($option . 'company', $search->company);
             } else {
                 $mainframe->setUserState($option . 'company', '');
             }
             $mainframe->setUserState($option . 'country', $search->country);
             $mainframe->setUserState($option . 'state', $search->state);
             $mainframe->setUserState($option . 'county', $search->county);
             $mainframe->setUserState($option . 'city', $search->city);
             $mainframe->setUserState($option . 'zipcode', $search->zipcode);
             $mainframe->setUserState($option . 'currency', '');
             $mainframe->setUserState($option . 'longitude', '');
             $mainframe->setUserState($option . 'latitude', '');
             $mainframe->setUserState($option . 'radius', '');
             $mainframe->setUserState($option . 'radius_length_type', '');
             $mainframe->setUserState($option . 'keywords', '');
         }
         $mainframe->redirect(JRoute::_('index.php?option=com_jsjobs&c=job&view=job&layout=job_searchresults&Itemid=' . $itemid));
     }
     require_once 'jobsearch_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #26
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'emailtemplate') {
         // email template
         $templatefor = JRequest::getVar('tf');
         switch ($templatefor) {
             case 'ew-cm':
                 $text = JText::_('JS_NEW_COMPANY');
                 break;
             case 'cm-ap':
                 $text = JText::_('JS_COMPANY_APPROVAL');
                 break;
             case 'cm-rj':
                 $text = JText::_('JS_COMPANY_REJECTING');
                 break;
             case 'ew-ob':
                 $text = JText::_('JS_NEW_JOB');
                 break;
             case 'ob-ap':
                 $text = JText::_('JS_JOB_APPROVAL');
                 break;
             case 'ob-rj':
                 $text = JText::_('JS_JOB_REJECTING');
                 break;
             case 'ap-rs':
                 $text = JText::_('JS_APPLIED_RESUME_STATUS');
                 break;
             case 'ew-rm':
                 $text = JText::_('JS_NEW_RESUME');
                 break;
             case 'ew-ms':
                 $text = JText::_('JS_NEW_MESSAGE');
                 break;
             case 'rm-ap':
                 $text = JText::_('JS_RESUME_APPROVAL');
                 break;
             case 'rm-rj':
                 $text = JText::_('JS_RESUME_REJECTING');
                 break;
             case 'ba-ja':
                 $text = JText::_('JS_JOB_APPLY');
                 break;
             case 'ew-md':
                 $text = JText::_('JS_NEW_DEPARTMENT');
                 break;
             case 'ew-rp':
                 $text = JText::_('JS_EMPLOYER_BUY_PACKAGE');
                 break;
             case 'ew-js':
                 $text = JText::_('JS_JOBSEEKER_BUY_PACKAGE');
                 break;
             case 'ms-sy':
                 $text = JText::_('JS_MESSAGE');
                 break;
             case 'jb-at':
                 $text = JText::_('JS_JOB_ALERT');
                 break;
             case 'jb-at-vis':
                 $text = JText::_('JS_EMPLOYER_VISITOR_JOB');
                 break;
             case 'jb-to-fri':
                 $text = JText::_('JS_JOB_TO_FRIEND');
                 break;
         }
         JToolBarHelper::title(JText::_('JS_EMAIL_TEMPLATES') . ' <small><small>[' . $text . '] </small></small>');
         JToolBarHelper::save('emailtemplate.saveemailtemplate');
         $template = $this->getJSModel('emailtemplate')->getTemplate($templatefor);
         $this->assignRef('template', $template);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #27
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/views/common.php';
     $viewtype = 'html';
     if ($layout == 'list_subcategoryjobs') {
         // list jobs
         $subcatid = '';
         $sort = JRequest::getVar('sortby', '');
         if (isset($sort)) {
             if ($sort == '') {
                 $sort = 'createddesc';
             }
         } else {
             $sort = 'createddesc';
         }
         $sortby = $this->getJobListOrdering($sort);
         $cmbfiltercountry = $mainframe->getUserStateFromRequest($option . 'cmbfilter_country', 'cmbfilter_country', '', 'string');
         $cmbfilterradiustype = $mainframe->getUserStateFromRequest($option . 'filter_radius_length_type', 'filter_radius_length_type', '', 'string');
         $city_filter = $mainframe->getUserStateFromRequest($option . 'txtfilter_city', 'txtfilter_city', '', 'string');
         $txtfilterlongitude = $mainframe->getUserStateFromRequest($option . 'filter_longitude', 'filter_longitude', '', 'string');
         $txtfilterlatitude = $mainframe->getUserStateFromRequest($option . 'filter_latitude', 'filter_latitude', '', 'string');
         $txtfilterradius = $mainframe->getUserStateFromRequest($option . 'filter_radius', 'filter_radius', '', 'string');
         if ($txtfilterlongitude == JText::_('JS_LONGITUDE')) {
             $txtfilterlongitude = '';
         }
         if ($txtfilterlatitude == JText::_('JS_LATITTUDE')) {
             $txtfilterlatitude = '';
         }
         if ($txtfilterradius == JText::_('JS_COORDINATES_RADIUS')) {
             $txtfilterradius = '';
         }
         $filterjobtype = $mainframe->getUserStateFromRequest($option . 'filter_jobtype', 'filter_jobtype', '', 'string');
         if (isset($_POST['filter_jobcategory'])) {
             $filterjobcategory = $_POST['filter_jobcategory'];
         } else {
             $filterjobcategory = '';
         }
         if (isset($_POST['filter_jobsubcategory'])) {
             $filterjobsubcategory = $_POST['filter_jobsubcategory'];
         } else {
             $filterjobsubcategory = '';
         }
         if ($_client_auth_key == "") {
             if ($filterjobsubcategory != '') {
                 $subcatid = $filterjobsubcategory;
             }
         }
         $subcat_id = $this->getJSModel('common')->parseId(JRequest::getVar('jobsubcat', ''));
         if ($subcatid == 0) {
             $subcatid = $subcat_id;
         }
         $result = $this->getJSModel('job')->getJobsbySubCategory($uid, $subcatid, $city_filter, $cmbfiltercountry, $filterjobcategory, $filterjobsubcategory, $filterjobtype, $txtfilterlongitude, $txtfilterlatitude, $txtfilterradius, $cmbfilterradiustype, $sortby, $limit, $limitstart);
         $jobs = $result[0];
         $filterlists = $result[2];
         $filtervalues = $result[3];
         $sortlinks = $this->getJobListSorting($sort);
         $sortlinks['sorton'] = $sorton;
         $sortlinks['sortorder'] = $sortorder;
         if ($result[1] <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($result[1], $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('jobs', $jobs);
         $this->assignRef('totalrecords', $result[1]);
         $this->assignRef('filterlists', $filterlists);
         $this->assignRef('filtervalues', $filtervalues);
         $this->assignRef('listjobconfig', $result[4]);
         $this->assignRef('sortlinks', $sortlinks);
         $this->assignRef('categoryid', $catid);
         $this->assignRef('companyid', $companyid);
         $this->assignRef('jobsubcat', $subcat_id);
         $this->assignRef('filterid', $filterid);
         $cm = JRequest::getVar('cm', '');
         $this->assignRef('cm', $cm);
         if (isset($jobs)) {
             $page_title .= ' - ' . $jobs[0]->cat_title;
         }
     }
     require_once 'subcategory_breadcrumbs.php';
     $document->setTitle($page_title);
     $this->assignRef('userrole', $userrole);
     $this->assignRef('config', $config);
     $this->assignRef('option', $option);
     $this->assignRef('params', $params);
     $this->assignRef('viewtype', $viewtype);
     $this->assignRef('employerlinks', $employerlinks);
     $this->assignRef('jobseekerlinks', $jobseekerlinks);
     $this->assignRef('uid', $uid);
     $this->assignRef('id', $id);
     $this->assignRef('Itemid', $itemid);
     $this->assignRef('pdflink', $pdflink);
     $this->assignRef('printlink', $printlink);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #28
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formjob') {
         // jobs  or form job
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (is_numeric($c_id) == true) {
             $result = $this->getJSModel('job')->getJobbyId($c_id, $uid);
         }
         $this->assignRef('job', $result[0]);
         $this->assignRef('lists', $result[1]);
         $this->assignRef('userfields', $result[2]);
         $this->assignRef('fieldsordering', $result[3]);
         if (isset($result[4])) {
             $this->assignRef('multiselectedit', $result[4]);
         }
         if (isset($result[0]->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::title(JText::_('JS_JOB') . ': <small><small>[ ' . $text . ' ]</small></small>');
         JToolBarHelper::save('job.savejob');
         if ($isNew) {
             JToolBarHelper::cancel('job.cancel');
         } else {
             JToolBarHelper::cancel('job.cancel', 'Close');
         }
     } elseif ($layoutName == 'job_searchresult') {
         //job asearch results
         JToolBarHelper::title(JText::_('JS_JOB_SEARCHREULTS'));
         JToolBarHelper::cancel('job.cancel');
         $form = 'com_jsjobs.jobs.list.';
         $title = $mainframe->getUserStateFromRequest($form . 'title', 'title', '', 'string');
         $jobcategory = $mainframe->getUserStateFromRequest($form . 'jobcategory', 'jobcategory', '', 'string');
         $jobsubcategory = $mainframe->getUserStateFromRequest($form . 'jobsubcategory', 'jobsubcategory', '', 'string');
         $jobtype = $mainframe->getUserStateFromRequest($form . 'jobtype', 'jobtype', '', 'string');
         $jobstatus = $mainframe->getUserStateFromRequest($form . 'jobstatus', 'jobstatus', '', 'string');
         $salaryrangefrom = $mainframe->getUserStateFromRequest($form . 'salaryrangefrom', 'salaryrangefrom', '', 'string');
         $salaryrangeto = $mainframe->getUserStateFromRequest($form . 'salaryrangeto', 'salaryrangeto', '', 'string');
         $salaryrangetype = $mainframe->getUserStateFromRequest($form . 'salaryrangetype', 'salaryrangetype', '', 'string');
         $shift = $mainframe->getUserStateFromRequest($form . 'shift', 'shift', '', 'string');
         $durration = $mainframe->getUserStateFromRequest($form . 'durration', 'durration', '', 'string');
         $startpublishing = $mainframe->getUserStateFromRequest($form . 'startpublishing', 'startpublishing', '', 'string');
         $stoppublishing = $mainframe->getUserStateFromRequest($form . 'stoppublishing', 'stoppublishing', '', 'string');
         $company = $mainframe->getUserStateFromRequest($form . 'jobsearch_company', 'jobsearch_company', '', 'string');
         $city = $mainframe->getUserStateFromRequest($form . 'searchcity', 'searchcity', '', 'string');
         $zipcode = $mainframe->getUserStateFromRequest($form . 'zipcode', 'zipcode', '', 'string');
         $currency = $mainframe->getUserStateFromRequest($form . 'currency', 'currency', '', 'string');
         $longitude = $mainframe->getUserStateFromRequest($form . 'longitude', 'longitude', '', 'string');
         $latitude = $mainframe->getUserStateFromRequest($form . 'latitude', 'latitude', '', 'string');
         $radius = $mainframe->getUserStateFromRequest($form . 'radius', 'radius', '', 'string');
         $radius_length_type = $mainframe->getUserStateFromRequest($form . 'radius_length_type', 'radius_length_type', '', 'string');
         $keywords = $mainframe->getUserStateFromRequest($form . 'keywords', 'keywords', '', 'string');
         $zipcode = $mainframe->getUserStateFromRequest($form . 'zipcode', 'zipcode', '', 'string');
         $result = $this->getJSModel('job')->getJobSearch($title, $jobcategory, $jobsubcategory, $jobtype, $jobstatus, $salaryrangefrom, $salaryrangeto, $salaryrangetype, $shift, $durration, $startpublishing, $stoppublishing, $company, $city, $zipcode, $currency, $longitude, $latitude, $radius, $radius_length_type, $keywords, $limit, $limitstart);
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('listjobconfig', $result[2]);
     } elseif ($layoutName == 'jobqueue') {
         // job queue
         JToolBarHelper::title(JText::_('JS_JOBS_APPROVAL_QUEUE'));
         $form = 'com_jsjobs.jobqueue.list.';
         $searchtitle = $mainframe->getUserStateFromRequest($form . 'searchtitle', 'searchtitle', '', 'string');
         $searchcompany = $mainframe->getUserStateFromRequest($form . 'searchcompany', 'searchcompany', '', 'string');
         $searchjobcategory = $mainframe->getUserStateFromRequest($form . 'searchjobcategory', 'searchjobcategory', '', 'string');
         $searchjobtype = $mainframe->getUserStateFromRequest($form . 'searchjobtype', 'searchjobtype', '', 'string');
         $searchjobstatus = $mainframe->getUserStateFromRequest($form . 'searchjobstatus', 'searchjobstatus', '', 'string');
         $result = $this->getJSModel('job')->getAllUnapprovedJobs($searchtitle, $searchcompany, $searchjobcategory, $searchjobtype, $searchjobstatus, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('lists', $lists);
     } elseif ($layoutName == 'jobs') {
         //jobs
         JToolBarHelper::title(JText::_('JS_JOBS'));
         JToolBarHelper::addNew('job.add');
         JToolBarHelper::editList('job.edit');
         JToolBarHelper::deleteList(JText::_('JS_ARE_YOU_SURE'), 'job.remove');
         JToolBarHelper::cancel('job.cancel');
         $form = 'com_jsjobs.jobs.list.';
         $searchtitle = $mainframe->getUserStateFromRequest($form . 'searchtitle', 'searchtitle', '', 'string');
         $searchcompany = $mainframe->getUserStateFromRequest($form . 'searchcompany', 'searchcompany', '', 'string');
         $searchjobcategory = $mainframe->getUserStateFromRequest($form . 'searchjobcategory', 'searchjobcategory', '', 'string');
         $searchjobtype = $mainframe->getUserStateFromRequest($form . 'searchjobtype', 'searchjobtype', '', 'string');
         $searchjobstatus = $mainframe->getUserStateFromRequest($form . 'searchjobstatus', 'searchjobstatus', '', 'string');
         $result = $this->getJSModel('job')->getAllJobs($searchtitle, $searchcompany, $searchjobcategory, $searchjobtype, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
         $this->assignRef('lists', $lists);
     } elseif ($layoutName == 'jobsearch') {
         //job search
         JToolBarHelper::title(JText::_('JS_JOB_SEARCH'));
         $result = $this->getJSModel('job')->getSearchOptions();
         $this->assignRef('searchoptions', $result[0]);
         $this->assignRef('searchjobconfig', $result[1]);
     } elseif ($layoutName == 'view_job') {
         //view job
         JToolBarHelper::title(JText::_('JS_JOB_DETAILS'));
         JToolBarHelper::cancel('job.cancel');
         $jobid = $_GET['oi'];
         $result = $this->getJSModel('job')->getJobbyIdForView($jobid);
         $this->assignRef('job', $result[0]);
         $this->assignRef('userfields', $result[2]);
         $this->assignRef('fieldsordering', $result[3]);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #29
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'formuserfield') {
         // user fields
         if (isset($_GET['cid'][0])) {
             $c_id = $_GET['cid'][0];
         } else {
             $c_id = '';
         }
         if ($c_id == '') {
             $cids = JRequest::getVar('cid', array(0), 'post', 'array');
             $c_id = $cids[0];
         }
         if (is_numeric($c_id) == true) {
             $result = $this->getJSModel('customfield')->getUserFieldbyId($c_id);
         }
         $fieldfor = JRequest::getVar('fieldfor');
         if (empty($fieldfor)) {
             $fieldfor = JRequest::getVar('ff');
         }
         if ($fieldfor == 3) {
             $section = $this->getJSModel('fieldordering')->getResumeSections($c_id);
         }
         if (isset($section)) {
             $this->assignRef('resumesection', $section);
         }
         $this->assignRef('userfield', $result[0]);
         $this->assignRef('fieldvalues', $result[1]);
         $this->assignRef('fieldfor', $fieldfor);
         if (isset($result[0]->id)) {
             $isNew = false;
         }
         $text = $isNew ? JText::_('ADD') : JText::_('EDIT');
         JToolBarHelper::save('customfield.saveuserfield');
         if ($isNew) {
             JToolBarHelper::cancel('customfield.cancel');
         } else {
             JToolBarHelper::cancel('customfield.cancel', 'Close');
         }
     } elseif ($layoutName == 'userfields') {
         // user field
         $fieldfor = JRequest::getVar('ff');
         JToolBarHelper::addNew('customfield.add');
         JToolBarHelper::editList('customfield.add');
         JToolBarHelper::deleteList(JText::_('JS_ARE_YOU_SURE'), 'customfield.remove');
         JToolBarHelper::cancel('customfield.cancel');
         if ($fieldfor == 11 || $fieldfor == 12 || $fieldfor == 13) {
             JToolBarHelper::title(JText::_('JS_VISITOR_USER_FIELDS'));
         } else {
             JToolBarHelper::title(JText::_('JS_USER_FIELDS'));
         }
         $result = $this->getJSModel('customfield')->getUserFields($fieldfor, $limitstart, $limit);
         // 1 for company
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('fieldfor', $fieldfor);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
Example #30
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'assignpackage') {
         // users - change role
         JToolBarHelper::title(JText::_('JS_ASSIGN_PACKAGE'));
         JToolBarHelper::save('paymenthistory.saveuserpackage');
         JToolBarHelper::cancel('paymenthistory.cancelemployerpaymenthistory');
     } elseif ($layoutName == 'employerpaymentdetails') {
         // employer package info
         JToolBarHelper::cancel('paymenthistory.cancelemployerpaymenthistory');
         $paymentid = $_GET['pk'];
         $_SESSION['js_paymentid'] = $paymentid;
         JToolBarHelper::title(JText::_('JS_PAYMENT_HISTORY_DETAILS'));
         $result = $this->getJSModel('paymenthistory')->getEmployerPaymentHistorybyId($paymentid);
         $items = $result[0];
     } elseif ($layoutName == 'employerpaymenthistory') {
         $packagefor = 1;
         JToolBarHelper::title(JText::_('JS_EMPLOYER_PAYMENT_HISTORY'));
         JToolBarHelper::addNew('paymenthistory.edit');
         $form = 'com_jsjobs.jobs.list.';
         $searchtitle = $mainframe->getUserStateFromRequest($form . 'searchtitle', 'searchtitle', '', 'string');
         $searchprice = $mainframe->getUserStateFromRequest($form . 'searchprice', 'searchprice', '', 'string');
         $searchpaymentstatus = $mainframe->getUserStateFromRequest($form . 'searchpaymentstatus', 'searchpaymentstatus', '', 'string');
         $result = $this->getJSModel('paymenthistory')->getEmployerPaymentHistory($searchtitle, $searchprice, $searchpaymentstatus, $packagefor, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         $this->assignRef('lists', $lists);
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     } elseif ($layoutName == 'jobseekerpaymentdetails') {
         // employer package info
         $packageid = $_GET['pk'];
         $_SESSION['js_packageid'] = $packageid;
         JToolBarHelper::title(JText::_('JS_PAYMENT_HISTORY_DETAILS'));
         JToolBarHelper::cancel('paymenthistory.canceljobseekerpaymenthistory');
         $result = $this->getJSModel('paymenthistory')->getJobseekerPaymentHistorybyId($packageid);
         $items = $result[0];
     } elseif ($layoutName == 'jobseekerpaymenthistory') {
         //employer packages
         JToolBarHelper::title(JText::_('JS_JOBSEEKER_PAYMENT_HISTORY'));
         JToolBarHelper::addNew('paymenthistory.edit');
         $form = 'com_jsjobs.jobs.list.';
         $packagefor = 2;
         $searchtitle = $mainframe->getUserStateFromRequest($form . 'searchtitle', 'searchtitle', '', 'string');
         $searchprice = $mainframe->getUserStateFromRequest($form . 'searchprice', 'searchprice', '', 'string');
         $searchpaymentstatus = $mainframe->getUserStateFromRequest($form . 'searchpaymentstatus', 'searchpaymentstatus', '', 'string');
         $result = $this->getJSModel('paymenthistory')->getJobseekerPaymentHistory($searchtitle, $searchprice, $searchpaymentstatus, $packagefor, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         $this->assignRef('lists', $lists);
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     } elseif ($layoutName == 'package_paymentreport') {
         $packageid = JRequest::getVar('pk');
         if ($packageid) {
             $_SESSION['pk'] = $packageid;
         } else {
             $packageid = $_SESSION['pk'];
         }
         $paymentfor = JRequest::getVar('pf');
         if ($paymentfor) {
             $_SESSION['pf'] = $paymentfor;
         } else {
             $paymentfor = $_SESSION['pf'];
         }
         $form = 'com_jsjobs.jobs.list.';
         $searchpaymentstatus = $mainframe->getUserStateFromRequest($form . 'searchpaymentstatus', 'searchpaymentstatus', '', 'string');
         $searchstartdate = $mainframe->getUserStateFromRequest($form . 'searchstartdate', 'searchstartdate', '', 'string');
         $searchenddate = $mainframe->getUserStateFromRequest($form . 'searchenddate', 'searchenddate', '', 'string');
         $result = $this->getJSModel('paymenthistory')->getPackagePaymentReport($packageid, $paymentfor, $searchpaymentstatus, $searchstartdate, $searchenddate, $limitstart, $limit);
         JToolBarHelper::title($result[0][0]->packagetitle . ' ' . JText::_('JS_REPORT'));
         JToolBarHelper::cancel('paymenthistory.cancel');
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         $this->assignRef('lists', $lists);
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     } elseif ($layoutName == 'payment_report') {
         JToolBarHelper::title(JText::_('JS_PAYMENT_REPORT'));
         $form = 'com_jsjobs.jobs.list.';
         $buyername = $mainframe->getUserStateFromRequest($form . 'buyername', 'buyername', '', 'string');
         $paymentfor = $mainframe->getUserStateFromRequest($form . 'paymentfor', 'paymentfor', '', 'string');
         $searchpaymentstatus = $mainframe->getUserStateFromRequest($form . 'searchpaymentstatus', 'searchpaymentstatus', '', 'string');
         $searchstartdate = $mainframe->getUserStateFromRequest($form . 'prsearchstartdate', 'prsearchstartdate', '', 'string');
         $searchenddate = $mainframe->getUserStateFromRequest($form . 'prsearchenddate', 'prsearchenddate', '', 'string');
         $result = $this->getJSModel('paymenthistory')->getPaymentReport($buyername, $paymentfor, $searchpaymentstatus, $searchstartdate, $searchenddate, $limitstart, $limit);
         $items = $result[0];
         $total = $result[1];
         $lists = $result[2];
         $this->assignRef('lists', $lists);
         $this->assignRef('paymentfor', $result[3]);
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }