<?php

/**
 * @Copyright Copyright (C) 2009-2010 Ahmad Bilal
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 * Company:     Buruj Solutions
 + Contact:     https://www.burujsolutions.com , info@burujsolutions.com
 * Created on:  Nov 22, 2010
 ^
 + Project:     JS Jobs
 ^ 
 */
 
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class JSJobsViewOutput extends JSView {

    function display($tpl = NULL) {
        require_once(JPATH_COMPONENT . '/views/common.php');
        $viewtype = 'pdf';
        if ($layout == 'resumepdf') {
            $resumeid = $this->getJSModel('common')->parseId(JFactory::getApplication()->input->get('rd', ''));
            $myresume = 6; // hard code b/c here we go for the pdf output
            $folderid = JFactory::getApplication()->input->get('fd', '');
            $sortvalue = $sort = JFactory::getApplication()->input->get('sortby', false);
            $tabaction = JFactory::getApplication()->input->get('ta', false);
            $show_only_section_that_have_value = $this->getJSModel('configurations')->getConfigValue('show_only_section_that_have_value');
            if (is_numeric($resumeid) == true) {
                $resume_model = $this->getJSModel('resume');
                $result = $resume_model->getResumeViewbyId($uid, false, $resumeid, $myresume, $sort, $tabaction);
            }
            $this->resume = $result['personal'];
            $this->addresses = $result['addresses'];
            $this->institutes = $result['institutes'];
            $this->employers = $result['employers'];
            $this->skills = $result['skills'];
            $this->editor = $result['editor'];
            $this->references = $result['references'];
            $this->languages = $result['languages'];
            $this->fieldsordering = $result['fieldsordering'];
            $this->userfields = $result['userfields'];
        }
        $this->config = $config;
        $document = JFactory::getDocument();
        $document->setTitle('Resume');
        parent::display();
    }

}

?>
