Exemple #1
1
 function display($tpl = null)
 {
     global $mainframe;
     // Check if registration is allowed
     $usersConfig =& JComponentHelper::getParams('com_users');
     if (!$usersConfig->get('allowUserRegistration')) {
         JError::raiseError(403, JText::_('Access Forbidden'));
         return;
     }
     $pathway =& $mainframe->getPathway();
     $document =& JFactory::getDocument();
     $params =& $mainframe->getParams();
     // Page Title
     $menus =& JSite::getMenu();
     $menu = $menus->getActive();
     // because the application sets a default page title, we need to get it
     // right from the menu item itself
     if (is_object($menu)) {
         $menu_params = new JParameter($menu->params);
         if (!$menu_params->get('page_title')) {
             $params->set('page_title', JText::_('Registration'));
         }
     } else {
         $params->set('page_title', JText::_('Registration'));
     }
     $document->setTitle($params->get('page_title'));
     $pathway->addItem(JText::_('New'));
     // Load the form validation behavior
     JHTML::_('behavior.formvalidation');
     $user =& JFactory::getUser();
     $this->assignRef('user', $user);
     $this->assignRef('params', $params);
     parent::display($tpl);
 }
Exemple #2
1
 function display($tpl = null)
 {
     global $mainframe, $option;
     $cid = JRequest::getVar('cid_user');
     if (!is_array($cid)) {
         $mainframe->redirect('index.php?option=' . $option);
         return;
     }
     $user_id = $cid[0];
     $model = $this->getModel('user');
     $model->load($user_id);
     $this->_setToolBar();
     $say = JText::sprintf('USER_RESOURCES_TITLE', $model->user->username);
     $root_node = JText::_('RESOURCES_TREE_ROOT_NODE');
     $nowdate = JFactory::getDate();
     $str_now = JHTML::_('date', $nowdate->toMySQL(), '%Y-%m-%d %H:%M:%S');
     $this->assign('nowdate', $str_now);
     $this->assign('say', $say);
     $this->assign('root_node', $root_node);
     $this->assignRef('uid', $user_id);
     $this->assignRef('option', $option);
     //hide the menu
     JRequest::setVar('hidemainmenu', 1);
     parent::display();
 }
Exemple #3
1
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_REDSOCIALSTREAM_CONFIGURE'), 'configure.png');
     JToolBarHelper::apply();
     JToolBarHelper::cancel('cancel', 'COM_REDSOCIALSTREAM_CLOSE');
     //DEVNOTE: set document title
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSOCIALSTREAM_REDSOCIALSTREAMS'));
     $mainframe = JFactory::getApplication();
     $context = "config";
     $model = $this->getModel('configure');
     $db = JFactory::getDbo();
     $q = "SELECT * FROM #__redsocialstream_settings";
     $db->setQuery($q);
     $this->settingsrows = $db->loadObjectList();
     $typelist = $this->get('type_list_sorted');
     $pagination = $this->get('Pagination');
     //DEVNOTE:give me ordering from request
     $filter_order = $mainframe->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'ordering');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $this->assignRef('lists', $lists);
     $this->assignRef("typelist", $typelist);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Exemple #4
0
 /**
  * Display the view
  */
 function display()
 {
     JHtml::stylesheet('izi.css', 'media/com_dbconnect/css/');
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('TASK_DETAILS'));
     parent::display();
 }
Exemple #5
0
 /**
  * Display the view
  *
  * @return	mixed	False on error, null otherwise.
  */
 function display($tpl = null)
 {
     // Initialise variables.
     $user =& JFactory::getUser();
     $app =& JFactory::getApplication();
     $state = $this->get('State');
     $items = $this->get('Items');
     $pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseWarning(500, implode("\n", $errors));
         return false;
     }
     $params =& $state->params;
     // PREPARE THE DATA
     // Compute the newsfeed slug and prepare description (runs content plugins).
     foreach ($items as $i => &$item) {
         $item->slug = $item->route ? $item->id . ':' . $item->route : $item->id;
         $item->description = JHtml::_('content.prepare', $item->description);
     }
     $this->assignRef('params', $params);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('user', $user);
     $this->_prepareDocument();
     parent::display($tpl);
 }
Exemple #6
0
    /**
     * Execute and display a template script.
     *
     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
     *
     * @return  mixed  A string if successful, otherwise a JError object.
     */
    function display($tpl = 'default')
    {
        FabrikHelperHTML::framework();
        $app = JFactory::getApplication();
        $params = $app->getParams('com_fabrik');
        $document = JFactory::getDocument();
        $usersConfig = JComponentHelper::getParams('com_fabrik');
        $model = $this->getModel();
        $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
        $this->row = $model->getVisualization();
        $params = $model->getParams();
        $this->assign('params', $params);
        $pluginParams = $model->getPluginParams();
        $tpl = $pluginParams->get('fb_gm_layout', $tpl);
        $tmplpath = JPATH_ROOT . '/plugins/fabrik_visualization/kaltura/views/kaltura/tmpl/' . $tpl;
        $js = <<<EOT
\t\t<script type="text/javascript" >
function entryClicked ( entry_id )
{
\twindow.location = "./player.php?entry_id=" + entry_id;
}
</script>
EOT;
        $this->assignRef('data', $this->get('Data'));
        FabrikHelperHTML::addScriptDeclaration($js);
        FabrikHelperHTML::stylesheetFromPath('plugins/fabrik_visualization/kaltura/views/kaltura/tmpl/' . $tpl . '/template.css');
        $template = null;
        $this->assign('containerId', $this->get('ContainerId'));
        $this->assign('showFilters', JRequest::getInt('showfilters', $params->get('show_filters')) === 1 ? 1 : 0);
        $this->assignRef('filters', $this->get('Filters'));
        $this->_setPath('template', $tmplpath);
        echo parent::display($template);
    }
Exemple #7
0
 function display($tpl = null)
 {
     global $option, $mainframe;
     $model =& $this->getModel();
     $menu =& JMenu::getInstance('site');
     $item = $menu->getActive();
     $params =& $menu->getParams($item->id);
     //get controller
     $controller = new VnffhotelController();
     $cityid = $params->get('cityid', '1');
     $cityid = JRequest::getVar('cityid', $cityid);
     //if($cityid==1)
     $hotels = $model->getHotelsByCity($cityid);
     $pagination = $model->getPagination();
     for ($i = 0; $i < count($hotels); $i++) {
         $hotels[$i]->images = $model->getHotelImages($hotels[$i]->hotel_ID, 'm');
         if (count($hotels[$i]->images) == 0) {
             $image->image_Name = "noimage.png";
             $hotels[$i]->images[0] = $image;
         }
         $hotels[$i]->shortDes = $controller->cutDes($hotels[$i]->Overview, 30);
         $hotels[$i]->linkToHotel = $controller->linkToHotel($hotels[$i]->hotel_ID);
     }
     //get controller
     $mainframe->setPageTitle(JTEXT::_("HOTELS IN") . " " . $hotels[0]->city_Name);
     //echo $hotels[0]->images[0]->image_Name;
     //echo $hotels[0]->city_ID."hehehejhe";
     $this->assignRef('hotels', $hotels);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('controller', $controller);
     //echo $this->cutDes("thang nay khung qua di thoi");
     parent::display($tpl);
 }
Exemple #8
0
 public function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARD_MANAGEMENT'), 'redshop_giftcard_48');
     $uri = JFactory::getURI();
     jimport('joomla.html.pane');
     $pane = JPane::getInstance('sliders');
     $this->pane = $pane;
     $this->setLayout('default');
     $lists = array();
     $detail = $this->get('data');
     $isNew = $detail->giftcard_id < 1;
     $text = $isNew ? JText::_('COM_REDSHOP_NEW') : JText::_('COM_REDSHOP_EDIT');
     JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARDS') . ': <small><small>[ ' . $text . ' ]</small></small>', 'redshop_giftcard_48');
     JToolBarHelper::apply();
     JToolBarHelper::save();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
     }
     $lists['customer_amount'] = JHTML::_('select.booleanlist', 'customer_amount', 'class="inputbox" ', $detail->customer_amount);
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $detail->published);
     if (ECONOMIC_INTEGRATION == 1) {
         $redhelper = new redhelper();
         $accountgroup = $redhelper->getEconomicAccountGroup();
         $op = array();
         $op[] = JHTML::_('select.option', '0', JText::_('COM_REDSHOP_SELECT'));
         $accountgroup = array_merge($op, $accountgroup);
         $lists["accountgroup_id"] = JHTML::_('select.genericlist', $accountgroup, 'accountgroup_id', 'class="inputbox" size="1" ', 'value', 'text', $detail->accountgroup_id);
     }
     $this->lists = $lists;
     $this->detail = $detail;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Exemple #9
0
 public function display($tpl = null)
 {
     // if redirecting to another page, we need to simply send some javascript
     // to : a / close the popup, b / redirect the parent page to where we
     // want to go
     if (!empty($this->redirectTo)) {
         $js = 'window.addEvent( \'domready\', function () {
   setTimeout( \'shRedirectTo()\', 2000);
 });
 function shRedirectTo() {
   parent.window.location="' . $this->redirectTo . '";
   window.parent.SqueezeBox.close();
 }
 
 ';
         $document =& JFactory::getDocument();
         $document->addScriptDeclaration($js);
         // insert needed css files
         $this->_addCss();
     } else {
         // get action
         $this->task = empty($this->task) ? 'delete' : $this->task;
         // build the toolbar
         $toolBar = $this->_makeToolbar();
         $this->assignRef('toolbar', $toolBar);
         // add confirmation phrase to toolbar
         $this->assign('toolbarTitle', '<div class="headerconfirm" >' . JText::_('COM_SH404SEF_CONFIRM_TITLE') . '</div>');
         // insert needed css files
         $this->_addCss();
         // link to  custom javascript
         JHtml::script('edit.js', Sh404sefHelperGeneral::getComponentUrl() . '/assets/js/');
     }
     // now display normally
     parent::display($tpl);
 }
Exemple #10
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $document =& JFactory::getDocument();
     $this->_addScripts();
     if ($this->published) {
         jimport('joomla.utilities.date');
         //$this->config = & $this->get('ShareConfig', 'Config');
         $this->assign('setstate', JobBoardHelper::renderJobBoard());
         if ($this->config->use_location) {
             $job_location = $this->data->country_name != 'COM_JOBBOARD_DB_ANYWHERE_CNAME' ? ', ' . $this->data->city : ', ' . JText::_('WORK_FROM_ANYWHERE');
         } else {
             $job_location = '';
         }
         $ref_num = $this->data->ref_num != '' ? ' (' . JText::_('COM_JOBBOARD_ENT_REF') . ': ' . $this->data->ref_num . ')' : '';
         $document->setTitle(JText::_('EMAIL_JOB') . ': ' . $this->data->job_title . $job_location . $ref_num);
     } else {
         $document->setTitle(JText::_('COM_JOBBOARD_JOB_DISABLED'));
     }
     $this->itemid = JRequest::getInt('Itemid');
     $this->user_entry_point = 'com_users';
     if (version_compare(JVERSION, '2.5.0', 'ge') || version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '1.6.0', 'ge')) {
         $this->user_entry_point = 'com_users';
     } elseif (version_compare(JVERSION, '1.5.0', 'ge')) {
         $this->user_entry_point = 'com_user';
     }
     $retries = $app->getUserState('com_jobboard.member.retry', 0, 'int');
     $this->retries = $retries;
     parent::display($tpl);
 }
Exemple #11
0
    public function display($tpl = null) {


        global $mainframe;
        $document = & JFactory::getDocument();
        $document->addScript('components/com_gglms/js/jquery-ui-1.8.2.custom.min.js');
        $document->addStyleSheet(JURI::root(true) . '/components/com_gglms/css/provagratuita.css');


        $user = JFactory::getUser();
        $userid = $user->get('id');
        if (!$userid) {
            $tpl = "loggati";
        } else {
            $model = & $this->getModel();
            $pg = $model->check_Coupon();

            if (!empty($pg)) {

                $this->assignRef('data_scadenza', $pg['data_scadenza_f']);
                $this->assignRef('ora_scadenza', $pg['ora_scadenza_f']);

                if (strtotime($pg['data_scadenza']) < strtotime(date("Y-m-d H:i:s")))
                    $tpl = "scaduta";
                else
                    $tpl = "incorso";
            } else
                $tpl = "attivala";
        }
        parent::display($tpl);
    }
Exemple #12
0
 /**
  * redFORM view display method
  * @return void
  **/
 function display($tpl = null)
 {
     /* Get the pagination */
     $pagination = $this->get('Pagination');
     /* Get the values list */
     $values = $this->get('Values');
     /* Check if there are any forms */
     $fields = $this->get('TotalFields');
     /* Get the forms */
     $forms = (array) $this->get('FormsOptions');
     array_unshift($forms, JHTML::_('select.option', 0, JText::_('COM_REDFORM_All')));
     /* Create the dropdown list */
     $lists['form_id'] = JHTML::_('select.genericlist', $forms, 'form_id', '', 'value', 'text', JRequest::getVar('form_id', 0));
     /* Set variabels */
     $this->assignRef('pagination', $pagination);
     $this->assignRef('values', $values);
     $this->assignRef('fields', $fields);
     $this->assignRef('lists', $lists);
     // set the menu
     RedformHelper::setMenu();
     /* Get the toolbar */
     JToolBarHelper::title(JText::_('COM_REDFORM_Values'), 'redform_values');
     if ($fields > 0) {
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
         JToolBarHelper::spacer();
         JToolBarHelper::deleteList();
         JToolBarHelper::editListX();
         JToolBarHelper::addNew();
     }
     /* Display the page */
     parent::display($tpl);
 }
Exemple #13
0
 function display($tpl = null)
 {
     //		require_once( JPATH_COMPONENT.DS.'models'.DS.'yt_url.php' );
     //		$ytModel = new RateModelYt_Url();
     $user =& JFactory::getUser();
     if ($user->get('guest')) {
         global $mainframe;
         $mainframe->redirect('index.php?option=com_user&view=login', JText::_('LOGIN_DESCRIPTION'));
     }
     $model =& $this->getModel();
     $db =& JFactory::getOracleDBO();
     $merkezId = JRequest::getVar('merkezId');
     if ($merkezId != null) {
         $yetCombo = $model->getYeterlilikler($db, $merkezId);
         $this->assignRef('yetCombo', $yetCombo);
         $yetId = JRequest::getVar('yeterlilik_konusu');
         //			if($yetId != null){
         //				$sekilCombo = $model->getSinavSekilleri($db,$merkezId,$yetId);
         //
         ////				echo '*<pre>';
         ////				print_r($sekilCombo);
         ////				echo '</pre>*';
         //				$this->assignRef('sekilCombo'  , $sekilCombo);
         //			}
     }
     $turCombo = $model->getSinavTurleri($db);
     $yerCombo = $model->getMerkezler($db, $merkezId);
     $this->assignRef('yerCombo', $yerCombo);
     $this->assignRef('turCombo', $turCombo);
     parent::display($tpl);
 }
Exemple #14
0
 public function display($tpl = null)
 {
     $context = "rating";
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $user = JFactory::getUser();
     $document->setTitle(JText::_('COM_REDSHOP_RATING'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_RATING_MANAGEMENT'), 'redshop_rating48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'rating_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $ratings = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->user = $user;
     $this->lists = $lists;
     $this->ratings = $ratings;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     $params =& JComponentHelper::getParams('com_joomailermailchimpintegration');
     $paramsPrefix = version_compare(JVERSION, '1.6.0', 'ge') ? 'params.' : '';
     $MCapi = $params->get($paramsPrefix . 'MCapi');
     $MCauth = new MCauth();
     if (!$MCapi || !$MCauth->MCauth()) {
         JToolBarHelper::title(JText::_('JM_NEWSLETTER') . ' : ' . JText::_('JM_UPDATE'), 'MC_logo_48.png');
         $user =& JFactory::getUser();
         if (version_compare(JVERSION, '1.6.0', 'ge') && $user->authorise('core.admin', 'com_joomailermailchimpintegration') || !version_compare(JVERSION, '1.6.0', 'ge')) {
             JToolBarHelper::preferences('com_joomailermailchimpintegration', '350');
             JToolBarHelper::spacer();
         }
     } else {
         JToolBarHelper::title(JText::_('JM_NEWSLETTER') . ' : ' . JText::_('JM_UPDATE'), 'MC_logo_48.png');
         $task = JRequest::getCmd('task');
         $force = $task == 'force';
         // Load the model
         $model =& $this->getModel();
         $updates =& $model->getUpdates($force);
         $this->assignRef('updates', $updates);
     }
     parent::display($tpl);
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'footer.php';
 }
 function display($tpl = null)
 {
     wfimport('admin.models.updates');
     $mainframe = JFactory::getApplication();
     $model = $this->getModel();
     $installer = WFInstaller::getInstance();
     $version = $model->getVersion();
     // Check Groups DB
     if (!$installer->profiles) {
         $link = JHTML::link('index.php?option=com_jce&amp;task=repair&amp;table=profiles', WFText::_('WF_DB_CREATE_RESTORE'));
         $mainframe->enqueueMessage(WFText::_('WF_DB_PROFILES_ERROR') . ' - ' . $link, 'error');
     }
     $component = WFExtensionHelper::getComponent();
     // get params definitions
     $params = new WFParameter($component->params, '', 'preferences');
     $canUpdate = WFModelUpdates::canUpdate();
     $options = array('feed' => (int) $params->get('feed', 0), 'updates' => (int) $params->get('updates', $canUpdate ? 1 : 0), 'labels' => array('feed' => WFText::_('WF_CPANEL_FEED_LOAD'), 'updates' => WFText::_('WF_UPDATES'), 'updates_available' => WFText::_('WF_UPDATES_AVAILABLE')));
     $this->document->addScript('components/com_jce/media/js/cpanel.js?version=' . $model->getVersion());
     $this->document->addScriptDeclaration('jQuery(document).ready(function($){$.jce.CPanel.init(' . json_encode($options) . ')});');
     WFToolbarHelper::preferences();
     WFToolbarHelper::updates($canUpdate);
     WFToolbarHelper::help('cpanel.about');
     $this->assignRef('icons', $icons);
     $this->assignRef('model', $model);
     $this->assignRef('installer', $installer);
     $this->assignRef('params', $params);
     $this->assignRef('version', $version);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $uri = JFactory::getUri();
     // Get data from the model
     $items = $this->get('Items');
     $this->assignRef('items', $items);
     foreach ($this->items as $item) {
         $item->count_projectdivisions = 0;
         $mdlProjectDivisions = JModel::getInstance("divisions", "JoomleagueModel");
         $item->count_projectdivisions = $mdlProjectDivisions->getProjectDivisionsCount($item->id);
         $item->count_projectpositions = 0;
         $mdlProjectPositions = JModel::getInstance("Projectposition", "JoomleagueModel");
         $item->count_projectpositions = $mdlProjectPositions->getProjectPositionsCount($item->id);
         $item->count_projectreferees = 0;
         $mdlProjectReferees = JModel::getInstance("Projectreferees", "JoomleagueModel");
         $item->count_projectreferees = $mdlProjectReferees->getProjectRefereesCount($item->id);
         $item->count_projectteams = 0;
         $mdlProjecteams = JModel::getInstance("Projectteams", "JoomleagueModel");
         $item->count_projectteams = $mdlProjecteams->getProjectTeamsCount($item->id);
         $item->count_matchdays = 0;
         $mdlRounds = JModel::getInstance("Rounds", "JoomleagueModel");
         $item->count_matchdays = $mdlRounds->getRoundsCount($item->id);
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Exemple #18
0
 function display($tpl = null)
 {
     //Load pane behavior
     jimport('joomla.html.pane');
     //initialise variables
     $document =& JFactory::getDocument();
     $pane =& JPane::getInstance('sliders');
     $user =& JFactory::getUser();
     //build toolbar
     JToolBarHelper::title(JText::_('IMPORT'), 'home');
     JToolBarHelper::help('el.import', true);
     // Get data from the model
     $eventfields =& $this->get('EventFields');
     $catfields =& $this->get('CategoryFields');
     //add css and submenu to document
     $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css');
     //Create Submenu
     JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist', true);
     JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events');
     JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues');
     JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories');
     JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive');
     JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups');
     JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help');
     if ($user->get('gid') > 24) {
         JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit');
     }
     //assign vars to the template
     $this->assignRef('eventfields', $eventfields);
     $this->assignRef('catfields', $catfields);
     parent::display($tpl);
 }
Exemple #19
0
 /**
  * Display the view
  */
 function display()
 {
     //DEVNOTE: set document title
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('NEW_DABATASE_CONNECTION'));
     JHtml::script('dbConfigForm.js', 'media/com_dbconnect/js/');
     JHtml::stylesheet('izi.css', 'media/com_dbconnect/css/');
     if (@$this->pdoError != '') {
         //máme chybu
         $this->setLayout('error');
         $this->assignRef('error', $this->pdoError);
     } else {
         if ($_POST['step'] == 2 && isset($_POST['db_table'])) {
             //máme vybranou tabulku, musíme vybrat primární klíč
             $this->setLayout('selectprimarykey');
             $unidbModel = $this->getModel('unidb', 'unidbModel');
             $this->assignRef('columns', $unidbModel->getColumns($_POST['db_table']));
         } elseif ($_POST['step'] == 1 && isset($_POST['db_username']) && isset($_POST['db_password'])) {
             //máme nastavené připojení k DB, musíme vybrat tabulku
             $this->setLayout('selecttable');
             $unidbModel = $this->getModel('unidb', 'unidbModel');
             $this->assignRef('tables', $unidbModel->getTables());
         } else {
             //musíme vybrat nastavení serveru atp.
             $this->setLayout('setdatabase');
             $this->assignRef('dbTypes', $this->get('DBTypes'));
         }
     }
     parent::display();
 }
Exemple #20
0
 function display($tpl = null)
 {
     $model =& $this->getModel();
     $data = $model->getData();
     $this->assignRef('data', $data);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('JM_NEWSLETTER_SUPPORTED_EXTENSIONS'), 'MC_logo_48.png');
     JToolBarHelper::back();
     parent::display($tpl);
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'footer.php';
 }
 function display()
 {
     // Decide what to do; delegate data loading to private methods
     $task = JRequest::getCmd('task', 'display');
     $layout = JRequest::getCmd('layout', 'default');
     switch ($layout) {
         case 'default_edit':
             switch ($task) {
                 case 'add':
                     $helpfile = 'eff';
                     JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('EFF_PAGETITLE_NEW') . '</small></small>');
                     $this->_add();
                     break;
                 case 'edit':
                     $helpfile = 'eff';
                     JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('EFF_PAGETITLE_EDIT') . '</small></small>');
                     $this->_edit();
                     break;
             }
             break;
         default:
             $helpfile = 'eff';
             JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('EXTRADIRS') . '</small></small>');
             $this->_default();
             break;
     }
     // Load the util helper
     $this->loadHelper('utils');
     $document =& JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
     // Add a spacer, a help button and show the template
     JToolBarHelper::spacer();
     JoomlapackHelperUtils::addLiveHelp('$helpfile');
     parent::display();
 }
Exemple #23
0
    public function display($tpl = null) {

        $document = & JFactory::getDocument();
        $document->addStyleSheet('components/com_gglms/css/lista.css');
        $document->addStyleSheet('components/com_gglms/css/jquery.dataTables.css');
        $document->addStyleSheet('components/com_gglms/css/jquery.dataTables_themeroller.css');
        $document->addScript('components/com_gglms/js/jquery.dataTables.js');


        $model = & $this->getModel();




        $tpl = JRequest::getVar('tpl');


        if ($tpl == "byContent") {
            $contentStat = $model->getContentStat();
            $this->assignRef('ContentStat', $contentStat);
        }

        if ($tpl == "byDate") {
            $AccesByDay = $model->getAccesByDay();
            $this->assignRef('AccesByDay', $AccesByDay);
        }

        parent::display($tpl);
    }
Exemple #24
0
 function display($tpl = null)
 {
     $canDo = CeltawebtrafficHelper::getActions();
     $model =& $this->getModel();
     $countries =& $model->getCountries();
     $cities =& $model->getCities();
     // Is this the Professional release?
     jimport('joomla.filesystem.file');
     $isPro = COM_CELTAWEBTRAFFIC_PRO == 1;
     $this->assign('isPro', $isPro);
     $version = COM_CELTAWEBTRAFFIC_VERSION;
     $this->assign('version', $version);
     $releaseDate = COM_CELTAWEBTRAFFIC_DATE;
     $this->assign('release_date', $releaseDate);
     $this->assignRef('countries', $countries);
     $this->assignRef('cities', $cities);
     if (!$this->geodatExist('geoip')) {
         echo JText::_('COM_CELTAWEBTRAFFIC_NOGEO_CPANEL_MESSAGE');
     }
     JToolBarHelper::title(JText::_('COM_CELTAWEBTRAFFIC_TITLE_MAIN') . ' [ ' . JText::_('COM_CELTAWEBTRAFFIC_TITLE_CPANEL') . ' ]', 'cwt-cpanel');
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_celtawebtraffic');
     }
     $help_url = 'http://coalaweb.com/services/joomla-services-such-a-great-cms/joomla-docs/item/celtaweb-traffic-guide';
     JToolBarHelper::help('COM_CELTAWEBTRAFFIC_TITLE_HELP', false, $help_url);
     parent::display($tpl);
 }
Exemple #25
0
 function display($tpl = null)
 {
     //initialise variables
     $document =& JFactory::getDocument();
     $db =& JFactory::getDBO();
     $app =& JFactory::getApplication();
     JHTML::_('behavior.tooltip');
     JHTML::_('behavior.modal');
     //get vars
     $filter_order = $app->getUserStateFromRequest('com_eventlist.categoryelement.filter_order', 'filter_order', 'c.ordering', 'cmd');
     $filter_order_Dir = $app->getUserStateFromRequest('com_eventlist.categoryelement.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter_state = $app->getUserStateFromRequest('com_eventlist.categoryelement.filter_state', 'filter_state', '*', 'word');
     $search = $app->getUserStateFromRequest('com_eventlist.categoryelement.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     $template = $app->getTemplate();
     //prepare document
     $document->setTitle(JText::_('SELECT CATEGORY'));
     $document->addStyleSheet('templates/' . $template . '/css/general.css');
     $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css');
     // Get data from the model
     $rows =& $this->get('Data');
     $pageNav =& $this->get('Pagination');
     //publish unpublished filter
     $lists['state'] = JHTML::_('grid.state', $filter_state);
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     //assign data to template
     $this->assignRef('lists', $lists);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     parent::display($tpl);
 }
Exemple #26
0
 /**
  * Display function
  *
  * @since 1.5
  */
 function display($tpl = null)
 {
     jimport('joomla.html.html');
     $mainframe =& JFactory::getApplication();
     // Get the page/component configuration
     $params =& $mainframe->getParams();
     $menus =& JSite::getMenu();
     $menu = $menus->getActive();
     // because the application sets a default page title, we need to get it
     // right from the menu item itself
     if (is_object($menu)) {
         $menu_params = new JParameter($menu->params);
         if (!$menu_params->get('page_title')) {
             $params->set('page_title', JText::_('FORGOT_YOUR_USERNAME'));
         }
     } else {
         $params->set('page_title', JText::_('FORGOT_YOUR_USERNAME'));
     }
     $document =& JFactory::getDocument();
     $document->setTitle($params->get('page_title'));
     // Load the form validation behavior
     JHTML::_('behavior.formvalidation');
     // Add the tooltip behavior
     JHTML::_('behavior.tooltip');
     $this->assignRef('params', $params);
     parent::display($tpl);
 }
Exemple #27
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     if ($this->getLayout() == 'pagebreak') {
         // TODO: This is really dogy - should change this one day.
         $eName = JRequest::getVar('e_name');
         $eName = preg_replace('#[^A-Z0-9\\-\\_\\[\\]]#i', '', $eName);
         $document = JFactory::getDocument();
         $document->setTitle(JText::_('COM_CONTENT_PAGEBREAK_DOC_TITLE'));
         $this->assignRef('eName', $eName);
         parent::display($tpl);
         return;
     }
     // Initialiase variables.
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     $this->canDo = ContentHelper::getActions($this->state->get('filter.category_id'));
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Exemple #28
0
 public function display($tpl = null)
 {
     $Redconfiguration = new Redconfiguration();
     $uri = JFactory::getURI();
     $lists = array();
     $detail = $this->get('data');
     $isNew = $detail->zipcode_id < 1;
     $text = $isNew ? JText::_('COM_REDSHOP_NEW') : JText::_('COM_REDSHOP_EDIT');
     JToolBarHelper::title(JText::_('COM_REDSHOP_ZIPCODE_DETAIL') . ': <small><small>[ ' . $text . ' ]</small></small>', 'redshop_region_48');
     JToolBarHelper::save();
     JToolBarHelper::apply();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
     }
     $countryarray = $Redconfiguration->getCountryList((array) $detail);
     $detail->country_code = $countryarray['country_code'];
     $lists['country_code'] = $countryarray['country_dropdown'];
     $statearray = $Redconfiguration->getStateList((array) $detail);
     $lists['state_code'] = $statearray['state_dropdown'];
     $this->detail = $detail;
     $this->lists = $lists;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Exemple #29
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     JHTML::stylesheet('imageshow.css', 'administrator/components/com_imageshow/assets/css/');
     JHTML::script('jsn_is_imageshow.js', 'administrator/components/com_imageshow/assets/js/');
     parent::display($tpl);
 }
Exemple #30
0
 function display($tmpl = 'default')
 {
     FabrikHelperHTML::framework();
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
     $visualization = $model->getVisualization();
     $pluginParams = $model->getPluginParams();
     $pluginManager = JModel::getInstance('Pluginmanager', 'FabrikModel');
     $plugin = $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->published == 0) {
         return JError::raiseWarning(500, JText::_('COM_FABRIK_SORRY_THIS_VISUALIZATION_IS_UNPUBLISHED'));
     }
     //plugin is basically a model
     $pluginTask = JRequest::getVar('plugintask', 'render', 'request');
     // @FIXME cant set params directly like this, but I think plugin model setParams() is not right
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin = $plugin;
     $viewName = $this->getName();
     $this->addTemplatePath($this->_basePath . DS . 'plugins' . DS . $this->_name . DS . $plugin->_name . DS . 'tmpl' . DS . $tmpl);
     $this->addTemplatePath(JPATH_SITE . DS . 'templates' . DS . $app->getTemplate() . DS . 'html' . DS . 'com_fabrik' . DS . 'visualization' . DS . $plugin->_name . DS . $tmpl);
     $ab_css_file = JPATH_SITE . "/plugins/fabrik_visualization/" . $plugin->_name . "/tmpl/{$tmpl}/template.css";
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     echo parent::display();
 }