Beispiel #1
0
 function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->addToolbar();
     parent::display($tpl);
 }
Beispiel #2
0
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->addToolbar();
     parent::display($tpl);
 }
Beispiel #3
0
 public function display($tpl = null)
 {
     JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css');
     $layout = $this->getLayout();
     if ($layout == 'uploadcsv') {
         $text = JText::_('COM_JINC_ACTION_IMPORT');
         JToolBarHelper::title(JText::_('COM_JINC_NEWSLETTER') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jinc');
         if ($newsletter = $this->get('Newsletter')) {
             $this->csv_format = $newsletter->getSubscriptionInfo();
             $this->news_id = $newsletter->get('id');
             jincimport('utility.jinchelper');
             JToolBarHelper::back();
             JINCHelper::helpOnLine(12);
             parent::display($tpl);
         } else {
             jincimport('utility.jinchtmlhelper');
             JINCHTMLHelper::showError('COM_JINC_ERR001');
         }
     } elseif ($layout == 'import') {
         $text = JText::_('COM_JINC_ACTION_IMPORT');
         JToolBarHelper::title(JText::_('COM_JINC_NEWSLETTER') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jinc');
         JToolBarHelper::back();
         jincimport('utility.jinchelper');
         JINCHelper::helpOnLine(12);
         parent::display($tpl);
     } elseif ($layout == 'addsubscriber') {
         $this->form = $this->get('AddsubscriberForm');
         if ($newsletter = $this->get('Newsletter')) {
             $this->csv_format = $newsletter->getSubscriptionInfo();
             $this->news_id = $newsletter->get('id');
         }
         parent::display($tpl);
     } else {
         $this->state = $this->get('State');
         $this->form = $this->get('Form');
         $this->item = $this->get('Item');
         $user = JFactory::getUser();
         $item = $this->item;
         $this->canAdmin = $user->authorise('core.admin', 'com_jinc.newsletter.' . $item->id);
         $this->addToolbar();
         parent::display($tpl);
     }
 }
Beispiel #4
0
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     JRequest::setVar('hidemainmenu', true);
     JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css');
     $layout = $this->getLayout();
     if ($layout == 'send') {
         $this->process = $this->get('Process');
         $this->newsletter = $this->get('Newsletter');
         $this->id = JRequest::getInt('id', 0);
         JToolBarHelper::title(JText::_('COM_JINC_MESSAGE') . ': <small><small>[ ' . JText::_('COM_JINC_JTOOLBAR_SEND') . ' ]</small></small>', 'jinc');
         jincimport('utility.jinchelper');
         JINCHelper::helpOnLine(96);
     } else {
         if ($layout == 'history') {
             $this->history = $this->get('History');
             JToolBarHelper::title(JText::_('COM_JINC_MESSAGE') . ': <small><small>[ ' . JText::_('COM_JINC_HISTORY') . ' ]</small></small>', 'jinc');
             JToolBarHelper::back();
             jincimport('utility.jinchelper');
             JINCHelper::helpOnLine(96);
         } else {
             if ($layout == 'report') {
                 $this->report = $this->get('Report');
             } else {
                 if ($layout == 'preview') {
                     JToolBarHelper::title(JText::_('COM_JINC_MESSAGE') . ': <small><small>[ ' . JText::_('COM_JINC_JTOOLBAR_PREVIEW') . ' ]</small></small>', 'jinc');
                     jincimport('utility.jinchelper');
                     JToolBarHelper::back();
                     JINCHelper::helpOnLine(96);
                 } else {
                     $this->addToolbar();
                 }
             }
         }
     }
     parent::display($tpl);
 }