protected function addToolbar() { JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); JToolBarHelper::title(JText::_('COM_JINC_MENU_SUBSCRIBERS'), 'jinc'); $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Popup', 'addsubscriber', 'COM_JINC_ADDSUBSCRIBER', 'index.php?option=com_jinc&view=newsletter&tmpl=component&layout=addsubscriber', 875, 550, 0, 0, ''); JToolBarHelper::custom('subscribers.approve', 'approve', 'approve', 'COM_JINC_APPROVE', true); JToolBarHelper::deleteList(JText::_('COM_JINC_WARNING_DELETE_ITEMS'), 'subscribers.delete'); jincimport('utility.jinchelper'); JINCHelper::helpOnLine(98); }
protected function addToolbar() { $state = $this->get('State'); JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); JToolBarHelper::title(JText::_('COM_JINC_MENU_TEMPLATES'), 'jinc'); JToolBarHelper::addNew('template.add', 'JTOOLBAR_NEW'); JToolBarHelper::editList('template.edit', 'JTOOLBAR_EDIT'); JToolBarHelper::deleteList(JText::_('COM_JINC_WARNING_DELETE_ITEMS'), 'templates.delete'); jincimport('utility.jinchelper'); JINCHelper::helpOnLine(95); }
function display($tpl = null) { JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); JToolBarHelper::title(JText::_('COM_JINC_CPANEL_JINC'), 'jinc'); JToolBarHelper::preferences('com_jinc', '550'); jincimport('utility.jinchelper'); JINCHelper::helpOnLine(87); $version = JINCHelper::getJINCVersion(); $copyright = JINCHelper::getJINCCopyright(); $license = JINCHelper::getJINCLicense(); $this->assignRef('version', $version); $this->assignRef('copyright', $copyright); $this->assignRef('license', $license); parent::display($tpl); }
protected function addToolbar() { JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); JToolBarHelper::title(JText::_('COM_JINC_MENU_NEWSLETTERS'), 'jinc'); $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Popup', 'attributes', 'COM_JINC_ATTRIBUTES', 'index.php?option=com_jinc&view=attributes&tmpl=component', 875, 550, 0, 0, ''); JToolBarHelper::divider(); JToolBarHelper::addNew('newsletter.add', 'JTOOLBAR_NEW'); JToolBarHelper::editList('newsletter.edit', 'JTOOLBAR_EDIT'); JToolBarHelper::deleteList(JText::_('COM_JINC_WARNING_DELETE_ITEMS'), 'newsletters.delete'); JToolBarHelper::divider(); JToolBarHelper::custom('newsletters.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::custom('newsletters.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true); jincimport('utility.jinchelper'); JINCHelper::helpOnLine(88); }
protected function addToolbar() { $state = $this->get('State'); JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); JToolBarHelper::title(JText::_('COM_JINC_MENU_MESSAGES'), 'jinc'); // $bar = JToolBar::getInstance('toolbar'); // $bar->appendButton('Popup', 'jincpreview', 'COM_JINC_JTOOLBAR_PREVIEW', 'index.php?option=com_jinc&view=message&tmpl=component&layout=preview', 875, 550, 0, 0, ''); JToolBarHelper::custom('message.previewPage', 'jincpreview', 'jincpreview', 'COM_JINC_JTOOLBAR_PREVIEW', false); JToolBarHelper::custom('message.sendPage', 'jincsend', 'jincsend', 'COM_JINC_JTOOLBAR_SEND', false); JToolBarHelper::custom('message.history', 'jinchistory', 'jinchistory', 'COM_JINC_JTOOLBAR_HISTORY', false); JToolBarHelper::divider(); JToolBarHelper::addNew('message.add', 'JTOOLBAR_NEW'); JToolBarHelper::editList('message.edit', 'JTOOLBAR_EDIT'); JToolBarHelper::deleteList(JText::_('COM_JINC_WARNING_DELETE_ITEMS'), 'messages.delete'); jincimport('utility.jinchelper'); JINCHelper::helpOnLine(89); }
protected function addToolbar() { JRequest::setVar('hidemainmenu', true); JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); $isNew = $this->item->id == 0; $text = $isNew ? JText::_('NEW') : JText::_('EDIT'); JToolBarHelper::title(JText::_('COM_JINC_TEMPLATE') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jinc'); JToolBarHelper::apply('template.apply', 'JTOOLBAR_APPLY'); JToolBarHelper::save('template.save', 'JTOOLBAR_SAVE'); JToolBarHelper::addNew('template.save2new', 'JTOOLBAR_SAVE_AND_NEW'); if (empty($this->item->id)) { JToolBarHelper::cancel('template.cancel', 'JTOOLBAR_CANCEL'); } else { JToolBarHelper::cancel('template.cancel', 'JTOOLBAR_CLOSE'); } jincimport('utility.jinchelper'); JINCHelper::helpOnLine(95); }
function display($tpl = null) { jincimport('statistics.statisticfactory'); JHTML::stylesheet('administrator/components/com_jinc/assets/css/jinc_admin.css'); JToolBarHelper::title(JText::_('COM_JINC_STATISTICS'), 'jinc'); jincimport('utility.jinchelper'); JINCHelper::helpOnLine(91); $session =& JFactory::getSession(); $config =& JFactory::getConfig(); $tzoffset = $config->getValue('config.offset'); $this->news_id = JRequest::getInt('id', 0); $this->stat_type = JRequest::getInt('stat_type', STATISTICFACTORY_SUBS_TYPE); $this->time_type = JRequest::getInt('time_type', STATISTICFACTORY_STAT_DAILY); $start_date = JRequest::getFloat('start_date', time()); $end_date = JRequest::getFloat('end_date', time()); $sdate =& JFactory::getDate($start_date, $tzoffset); $edate =& JFactory::getDate($end_date, $tzoffset); $this->start_time = $sdate; $this->end_time = $edate; $this->values = $session->get('stats.values'); $this->legend = $session->get('stats.legend'); parent::display($tpl); }
protected function addToolbar() { $isNew = $this->item->id == 0; $text = $isNew ? JText::_('NEW') : JText::_('EDIT'); JToolBarHelper::title(JText::_('COM_JINC_MESSAGE') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jinc'); $bar = JToolBar::getInstance('toolbar'); $id = JRequest::getInt('id', 0); $bar->appendButton('Popup', 'tags', 'COM_JINC_TAGS', 'index.php?option=com_jinc&view=tags&tmpl=component&msg_id=' . $id, 875, 550, 0, 0, ''); $bar->appendButton('Popup', 'load-template', 'COM_JINC_LOAD_TEMPLATE', 'index.php?option=com_jinc&view=templates&layout=select&tmpl=component', 875, 550, 0, 0, ''); JToolBarHelper::divider(); JToolBarHelper::apply('message.apply', 'JTOOLBAR_APPLY'); JToolBarHelper::save('message.save', 'JTOOLBAR_SAVE'); JToolBarHelper::addNew('message.save2new', 'JTOOLBAR_SAVE_AND_NEW'); if (empty($this->item->id)) { JToolBarHelper::cancel('message.cancel', 'JTOOLBAR_CANCEL'); } else { JToolBarHelper::cancel('message.cancel', 'JTOOLBAR_CLOSE'); } jincimport('utility.jinchelper'); JINCHelper::helpOnLine(89); }
protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $isNew = $this->item->id == 0; $text = $isNew ? JText::_('NEW') : JText::_('EDIT'); JToolBarHelper::title(JText::_('COM_JINC_NEWSLETTER') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jinc'); $bar = JToolBar::getInstance('toolbar'); $id = JRequest::getInt('id', 0); $bar->appendButton('Popup', 'tags', 'COM_JINC_TAGS', 'index.php?option=com_jinc&view=tags&tmpl=component&news_id=' . $id, 875, 550, 0, 0, ''); JToolBarHelper::divider(); JToolBarHelper::apply('newsletter.apply', 'JTOOLBAR_APPLY'); JToolBarHelper::save('newsletter.save', 'JTOOLBAR_SAVE'); JToolBarHelper::addNew('newsletter.save2new', 'JTOOLBAR_SAVE_AND_NEW'); if (empty($this->item->id)) { JToolBarHelper::cancel('newsletter.cancel', 'JTOOLBAR_CANCEL'); } else { JToolBarHelper::cancel('newsletter.cancel', 'JTOOLBAR_CLOSE'); } jincimport('utility.jinchelper'); JINCHelper::helpOnLine(88); }