Ejemplo n.º 1
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     if ($this->getLayout() == 'print') {
         $this->_displayprint($tpl);
         return;
     }
     //initialise variables
     $db =& JFactory::getDBO();
     $elsettings = ELAdmin::config();
     $document =& JFactory::getDocument();
     $user =& JFactory::getUser();
     //get vars
     $filter_order = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order', 'filter_order', 'u.username', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter = $mainframe->getUserStateFromRequest($option . '.attendees.filter', 'filter', '', 'int');
     $search = $mainframe->getUserStateFromRequest($option . '.attendees.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     //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');
     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');
     }
     //add toolbar
     JToolBarHelper::title(JText::_('REGISTERED USERS'), 'users');
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
     JToolBarHelper::back();
     JToolBarHelper::spacer();
     JToolBarHelper::help('el.registereduser', true);
     // Get data from the model
     $rows =& $this->get('Data');
     $pageNav =& $this->get('Pagination');
     $event =& $this->get('Event');
     $event->dates = strftime($elsettings->formatdate, strtotime($event->dates));
     //build filter selectlist
     $filters = array();
     $filters[] = JHTML::_('select.option', '1', JText::_('NAME'));
     $filters[] = JHTML::_('select.option', '2', JText::_('USERNAME'));
     $lists['filter'] = JHTML::_('select.genericlist', $filters, 'filter', 'size="1" class="inputbox"', 'value', 'text', $filter);
     // search filter
     $lists['search'] = $search;
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     //assign to template
     $this->assignRef('lists', $lists);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     $this->assignRef('event', $event);
     parent::display($tpl);
 }
Ejemplo n.º 2
0
 public function registerToolbar()
 {
     $task = JRequest::getCmd('task');
     if ($task == 'labels.edit') {
         if ($this->label->id != 0) {
             JToolBarHelper::title(JText::_('COM_EASYDISCUSS_EDITING_LABEL'), 'labels');
         } else {
             JToolBarHelper::title(JText::_('COM_EASYDISCUSS_ADD_NEW_LABEL'), 'labels');
         }
         JToolBarHelper::back(JText::_('COM_EASYDISCUSS_BACK'), 'index.php?option=com_easydiscuss&view=labels');
         JToolBarHelper::divider();
         JToolBarHelper::custom('save', 'save.png', 'save_f2.png', JText::_('COM_EASYDISCUSS_SAVE_BUTTON'), false);
         JToolBarHelper::custom('savePublishNew', 'save.png', 'save_f2.png', JText::_('COM_EASYDISCUSS_SAVE_AND_NEW'), false);
         JToolBarHelper::divider();
         JToolBarHelper::cancel();
     } else {
         JToolBarHelper::title(JText::_('COM_EASYDISCUSS_LABELS'), 'labels');
         JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false);
         JToolBarHelper::divider();
         JToolbarHelper::publishList();
         JToolbarHelper::unpublishList();
         JToolBarHelper::divider();
         JToolbarHelper::addNew('labels.edit');
         JToolbarHelper::deleteList();
     }
 }
Ejemplo n.º 3
0
 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';
 }
Ejemplo n.º 4
0
 /**
  * Add Toolbar
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JEM_UPDATECHECK_TITLE'), 'settings');
     JToolBarHelper::back();
     JToolBarHelper::divider();
     JToolBarHelper::help('update', true);
 }
Ejemplo n.º 5
0
 /**
  * The default layout, shows a list of profiles
  *
  */
 function _default()
 {
     // Get reference to profiles model
     $model =& $this->getModel('profiles');
     // Load list of profiles
     $profiles = $model->getProfilesList();
     $this->assign('profiles', $profiles);
     // Get profile ID
     $profileid = AEPlatform::getInstance()->get_active_profile();
     $this->assign('profileid', $profileid);
     // Get profile name
     $model->setId($profileid);
     $profile_data = $model->getProfile();
     $this->assign('profilename', $profile_data->description);
     // Add toolbar buttons
     JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option=' . JRequest::getCmd('option'));
     JToolBarHelper::spacer();
     JToolBarHelper::addNew();
     if (version_compare(JVERSION, '1.6.0', 'ge')) {
         JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', 'JLIB_HTML_BATCH_COPY', false);
     } else {
         JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', 'Copy', false);
     }
     JToolBarHelper::spacer();
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
 }
Ejemplo n.º 6
0
 /**
  * Private method to set the toolbar for this view
  * 
  * @access private
  * 
  * @return null
  **/
 public function setToolBar()
 {
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_MAINTENANCE'), 'profiles');
     // Add the necessary buttons
     JToolBarHelper::back(JText::_('COM_COMMUNITY_HOME'), 'index.php?option=com_community');
 }
Ejemplo n.º 7
0
	public function display()
	{
		JToolBarHelper::title(JText::_('AKEEBA').': <small>'.JText::_('SRPRESTORATION').'</small>','akeeba');
		JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option='.JRequest::getCmd('option'));
		
		// Add references to scripts and CSS
		AkeebaHelperIncludes::includeMedia(true);

		$task = JRequest::getVar('task','');
		$model =& $this->getModel();
		if($task == 'start')
		{
			$password = JRequest::getVar('password','','default','none',2);
			$this->assign('password', $password );	
			$this->setLayout('restore');
		}
		else
		{
			$model->validateRequest();
			$id					= $model->getId();
			$ftpparams			= $model->getFTPParams();
			$extractionmodes	= $model->getExtractionModes();
			
			$this->assign('id', $id);
			$this->assign('ftpparams', $ftpparams);
			$this->assign('extractionmodes', $extractionmodes);
			$this->assignRef('info', $model->info);
		}

		// Add live help
		AkeebaHelperIncludes::addHelp();

		parent::display();
	}
Ejemplo n.º 8
0
 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_posts {background-image:url(components/com_jobboard/images/job_posts.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_USERS'), 'job_posts.png');
     JToolBarHelper::publishList('publish', JText::_('COM_JOBBOARD_JOB_POST_ACTIVATE'));
     JToolBarHelper::unpublishList('unpublish', JText::_('COM_JOBBOARD_JOB_POST_DEACTIVATE'));
     JToolBarHelper::back();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'users');
     }
     JobBoardToolbarHelper::setToolbarLinks('users');
     $users_model =& $this->getModel('Users');
     $gid = JRequest::getInt('selrow', 0);
     if ($gid > 0) {
         $app =& JFactory::getApplication();
         if ($users_model->setUserGroup(JRequest::getInt('seluser', 0), $gid)) {
             $app->enqueueMessage(JText::sprintf('COM_JOBBOARD_JOB_USERS_GRP_CHANGE_SUCCESS', $gid), 'message');
         } else {
             $this->enqueueMessage(JText::sprintf('COM_JOBBOARD_JOB_USERS_GRP_CHANGE_ERR', $gid), 'error');
         }
     }
     $view =& $this->getView('users', 'html');
     $view->setModel($users_model, true);
     $view->display();
 }
Ejemplo n.º 9
0
 function display($tpl = null)
 {
     $cid = JRequest::getVar('cid', array(0), 'get', 'array');
     $edit = JRequest::getVar('edit', true);
     $me = JFactory::getUser();
     JArrayHelper::toInteger($cid, array(0));
     $db = JFactory::getDBO();
     $user = JTable::getInstance('ExtUser', 'KunenaImporterTable');
     $user->load($cid[0]);
     $importer = $this->getModel('import');
     $items = $importer->findPotentialUsers($user, true);
     $myuser = JFactory::getUser();
     $acl = JFactory::getACL();
     // Check for post data in the event that we are returning
     // from a unsuccessful attempt to save data
     /*		$post = JRequest::get('post');
     		if ( $post ) {
     			$user->bind($post);
     		}*/
     // build the html select list
     $lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox" size="1"', $user->get('block'));
     // build the html select list
     $lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox" size="1"', $user->get('sendEmail'));
     $this->assignRef('me', $me);
     $this->assignRef('lists', $lists);
     $this->assignRef('user', $user);
     $this->assignRef('items', $items);
     JToolBarHelper::makeDefault('select', 'Select');
     JToolBarHelper::back();
     parent::display($tpl);
 }
Ejemplo n.º 10
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_KOMENTO_MAIL_QUEUE'), 'mailq');
     JToolBarHelper::back(JText::_('COM_KOMENTO_ADMIN_HOME'), 'index.php?option=com_komento');
     JToolBarHelper::divider();
     JToolBarHelper::custom('purge', 'purge', 'icon-32-unpublish.png', 'COM_KOMENTO_PURGE_ITEMS', false);
 }
Ejemplo n.º 11
0
 function displayShow($tpl = null)
 {
     JToolBarHelper::title($this->order->order_number, 'generic.png');
     JToolBarHelper::back();
     JToolBarHelper::custom('send', 'send', 'send', _JSHOP_SEND_MAIL, false);
     parent::display($tpl);
 }
Ejemplo n.º 12
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_DBTOOLS_TITLE'), 'config.png');
     JToolBarHelper::back();
     JToolBarHelper::help('screen.joomleague', true);
 }
Ejemplo n.º 13
0
 function _displaylist($tpl = null)
 {
     $document = JFactory::getDocument();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_ACTIVITY') . ': ' . $this->name, 'searchtext');
     getCpanelToolbar();
     JToolBarHelper::back('Back');
     JToolBarHelper::divider();
     if (JFactory::getUser()->authorise('core.edit', 'com_alphauserpoints')) {
         JToolBarHelper::editList('edituserdetails');
     }
     if (JFactory::getUser()->authorise('core.delete', 'com_alphauserpoints')) {
         JToolBarHelper::custom('deleteuserdetails', 'trash.png', 'delete.png', JText::_('AUP_DELETE'));
         JToolBarHelper::custom('deleteuserallactivities', 'delete.png', 'delete.png', JText::_('AUP_DELETE_ALL'), false);
         JToolBarHelper::divider();
     }
     if (JFactory::getUser()->authorise('core.create', 'com_alphauserpoints')) {
         JToolBarHelper::custom('exportallactivitiesuser', 'upload.png', 'upload.png', JText::_('AUP_EXPORT_ACTIVITIES'), false);
     }
     JToolBarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     JHtml::_('bootstrap.modal', 'collapseModal');
     $title = JText::_('AUP_CUSTOM_POINTS');
     $dhtml = "<button data-toggle=\"modal\" data-target=\"#generatorModal\" class=\"btn btn-small\">\r\n\t\t\t\t\t<i class=\"icon-apply icon-white\" title=\"{$title}\"></i>\r\n\t\t\t\t\t{$title}</button>";
     $bar->appendButton('Custom', $dhtml, 'applycustom');
     //$bar->appendButton( 'Popup', 'apply', JText::_('AUP_CUSTOM_POINTS'), 'index.php?option=com_alphauserpoints&task=applycustom&layout=modal&tmpl=component&cid='.$this->cid.'&name='.$this->name, 800, 460, 0, 0, 'window.top.location.reload(true);document.location.reload(true);' );
     getPrefHelpToolbar();
     $this->assignRef('userDetails', $this->userDetails);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('name', $this->name);
     parent::display($tpl);
 }
Ejemplo n.º 14
0
 /**
  * Add Toolbar
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JEM_HOUSEKEEPING'), 'housekeeping');
     JToolBarHelper::back();
     JToolBarHelper::divider();
     JToolBarHelper::help('housekeeping', true);
 }
Ejemplo n.º 15
0
 function display($tpl = null)
 {
     $icon = 'statistics.png';
     JToolbarHelper::title(JText::_('COM_SEF_STATISTICS'), $icon);
     JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef');
     parent::display($tpl);
 }
Ejemplo n.º 16
0
    protected function onBrowse($tpl = null)
    {
        $model = $this->getModel();
        $state = $model->getState('scanstate', false);
        $total = $model->totalFolders;
        $done = $model->doneFolders;
        if ($state) {
            if ($total > 0) {
                $percent = min(max(round(100 * $done / $total), 1), 100);
            }
            $more = true;
        } else {
            $percent = 100;
            $more = false;
            JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_admintools');
        }
        $this->more = $more;
        $this->percentage = $percent;
        $this->setLayout('default');
        if ($more) {
            $script = <<<JS


;// This comment is intentionally put here to prevent badly written plugins from causing a Javascript error
// due to missing trailing semicolon and/or newline in their code.
(function(\$){
\t\$(document).ready(function(){
\t\tdocument.forms.adminForm.submit();
\t})
})(akeeba.jQuery);

JS;
            JFactory::getDocument()->addScriptDeclaration($script);
        }
    }
Ejemplo n.º 17
0
 public function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('JM_NEWSLETTER_SUPPORTED_EXTENSIONS'), $this->getPageTitleClass());
     JToolBarHelper::back();
     parent::display($tpl);
     require_once JPATH_COMPONENT . '/helpers/jmFooter.php';
 }
Ejemplo n.º 18
0
 public function _displayEditLayout($tpl)
 {
     // Load frontend language file.
     $lang = JFactory::getLanguage();
     $lang->load('com_community', JPATH_ROOT);
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_GROUPS'), 'groups');
     // Add the necessary buttons
     JToolBarHelper::back('Back', 'index.php?option=com_community&view=groups');
     JToolBarHelper::divider();
     JToolBarHelper::save();
     $group = JTable::getInstance('Group', 'CTable');
     $group->load(JRequest::getInt('groupid'));
     $post = JRequest::get('POST');
     $group->bind($post);
     $categories = $this->get('Categories');
     $config = CFactory::getConfig();
     $editorType = $config->get('allowhtml') ? $config->get('htmleditor', 'none') : 'none';
     $editor = new CEditor($editorType);
     $this->assignRef('categories', $categories);
     $this->assignRef('group', $group);
     $this->assignRef('editor', $editor);
     $document = JFactory::getDocument();
     JHTML::_('behavior.modal', 'a.modal');
     $this->url = 'index.php?option=com_users&amp;view=users&amp;layout=modal&amp;tmpl=component&amp;field=jform_user_id_to';
     parent::display($tpl);
 }
Ejemplo n.º 19
0
 function _displayEditLayout($tpl)
 {
     // Load frontend language file.
     $lang =& JFactory::getLanguage();
     $lang->load('com_community', JPATH_ROOT);
     $userId = JRequest::getVar('id', '', 'REQUEST');
     $user = CFactory::getUser($userId);
     // Set the titlebar text
     JToolBarHelper::title($user->username, 'users');
     // Add the necessary buttons
     JToolBarHelper::back('Back', 'index.php?option=com_community&view=users');
     JToolBarHelper::divider();
     JToolBarHelper::cancel('removeavatar', JText::_('CC REMOVE AVATAR'));
     JToolBarHelper::save();
     $model = CFactory::getModel('Profile');
     $profile = $model->getEditableProfile($user->id, $user->getProfileType());
     $config =& CFactory::getConfig();
     $params = $user->getParams();
     $userDST = $params->get('daylightsavingoffset');
     $offset = !empty($userDST) ? $userDST : $config->get('daylightsavingoffset');
     $counter = -4;
     $options = array();
     for ($i = 0; $i <= 8; $i++, $counter++) {
         $options[] = JHTML::_('select.option', $counter, $counter);
     }
     $offsetList = JHTML::_('select.genericlist', $options, 'daylightsavingoffset', 'class="inputbox" size="1"', 'value', 'text', $offset);
     $user->profile =& $profile;
     $this->assignRef('user', $user);
     $this->assignRef('params', $user->getParameters(true));
     $this->assignRef('offsetList', $offsetList);
     parent::display($tpl);
 }
Ejemplo n.º 20
0
 public function _displayEditLayout($tpl)
 {
     JToolBarHelper::title(JText::_('COM_COMMUNITY_CONFIGURATION_MULTIPROFILES'), 'multiprofile');
     // Add the necessary buttons
     JToolBarHelper::back('Back', 'index.php?option=com_community&view=multiprofile');
     JToolBarHelper::divider();
     JToolBarHelper::apply();
     JToolBarHelper::save();
     $mainframe = JFactory::getApplication();
     $jinput = $mainframe->input;
     $postedFields = $jinput->get('fields', '', 'NONE');
     $id = $jinput->request->get('id', '', 'INT');
     //JRequest::getVar( 'id' , '' , 'REQUEST' );
     $multiprofile = JTable::getInstance('MultiProfile', 'CTable');
     $multiprofile->load($id);
     $post = JRequest::get('POST');
     $multiprofile->bind($post);
     $profile = $this->getModel('Profiles');
     $fields = $profile->getFields();
     $config = CFactory::getConfig();
     $this->assignRef('multiprofile', $multiprofile);
     $this->assignRef('fields', $fields);
     $this->assignRef('config', $config);
     $this->assignRef('postedFields', $postedFields);
     parent::display($tpl);
 }
Ejemplo n.º 21
0
 /**
  * Private method to set the toolbar for this view
  *
  * @access private
  *
  * @return null
  **/
 function setToolBar()
 {
     // Set the titlebar text
     JToolBarHelper::title(XiptText::_('PROFILE_FIELDS'), 'profilefields');
     // Add the necessary buttons
     JToolBarHelper::back('Home', 'index.php?option=com_xipt');
 }
Ejemplo n.º 22
0
 protected function addToolBar()
 {
     $app = JFactory::getApplication();
     $app->input->set('hidemainmenu', true);
     $isNew = $this->item->id == 0;
     $user = JFactory::getUser();
     $userId = $user->id;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     JToolBarHelper::title(JText::_('COM_JUDIRECTORY_PAGE_' . ($checkedOut ? 'VIEW_PLUGIN' : ($isNew ? 'ADD_PLUGIN' : 'EDIT_PLUGIN'))), 'plugin-add');
     if ($isNew && $this->canDo->get('core.create')) {
         if ($this->getLayout() == 'install') {
             JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_judirectory&view=plugins');
         } else {
             JToolBarHelper::apply('plugin.apply');
             JToolBarHelper::save('plugin.save');
             JToolBarHelper::cancel('plugin.cancel');
         }
     } else {
         if (!$checkedOut) {
             if ($this->canDo->get('core.edit') || $this->canDo->get('core.edit.own') && $this->item->created_by == $userId) {
                 JToolBarHelper::apply('plugin.apply');
                 JToolBarHelper::save('plugin.save');
             }
         }
         JToolBarHelper::cancel('plugin.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolBarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     $bar->addButtonPath(JPATH_ADMINISTRATOR . "/components/com_judirectory/helpers/button");
     $bar->appendButton('JUHelp', 'help', JText::_('JTOOLBAR_HELP'));
 }
Ejemplo n.º 23
0
 public function _displayEditLayout($tpl)
 {
     // Load frontend language file.
     $lang = JFactory::getLanguage();
     $lang->load('com_community', JPATH_ROOT);
     // Add the necessary buttons
     JToolBarHelper::back('Back', 'index.php?option=com_community&view=badges');
     JToolBarHelper::divider();
     JToolBarHelper::apply();
     JToolBarHelper::save();
     $badge = JTable::getInstance('Badges', 'CommunityTable');
     $badge->load(JRequest::getInt('badgeid'));
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_BADGES_ADD'), 'badges');
     if ($badge->id) {
         JToolBarHelper::title(JText::_('COM_COMMUNITY_BADGES_EDIT'), 'badges');
         $badge->image = $this->getImage($badge);
     }
     $post = JRequest::get('POST');
     $badge->bind($post);
     $this->assignRef('badge', $badge);
     $badgesTable = JTable::getInstance('Badges', 'CommunityTable');
     $this->assign('badges', $this->prepare($badgesTable->getBadges()));
     parent::display($tpl);
 }
Ejemplo n.º 24
0
 function display()
 {
     $task = JRequest::getCmd('task', 'default');
     switch ($task) {
         case 'showcomment':
             JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option') . '&view=buadmin');
             JoomlapackHelperUtils::addLiveHelp('buadmin');
             $document =& JFactory::getDocument();
             $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
             jpimport('models.statistics', true);
             $model =& JoomlapackModelStatistics::getInstance('Statistics', 'JoomlapackModel');
             $model->setId(JRequest::getInt('id'));
             $record =& $model->getStatistic();
             $this->assignRef('record', $record);
             JRequest::setVar('tpl', 'comment');
             break;
         case 'restore':
             JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             JRequest::setVar('tpl', 'restore');
             $this->assign('password', JRequest::getVar('password'));
             $this->assign('link', JRequest::getVar('linktarget'));
             break;
         default:
             $registry =& JoomlapackModelRegistry::getInstance();
             $easy = $registry->get('easymode', false);
             if (!$easy) {
                 JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             } else {
                 JToolBarHelper::title(JText::_('JOOMLAPACKEASY') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             }
             JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option'));
             JToolBarHelper::spacer();
             JToolBarHelper::deleteList();
             JToolBarHelper::custom('deletefiles', 'delete.png', 'delete_f2.png', JText::_('STATS_LABEL_DELETEFILES'), true);
             JToolBarHelper::save('download', JText::_('STATS_LOG_DOWNLOAD'));
             if (!$easy) {
                 JToolBarHelper::editList('showcomment', JText::_('STATS_LOG_VIEWCOMMENT'));
                 if (JPSPECIALEDITION) {
                     JToolBarHelper::publish('restore', JText::_('STATS_LOG_RESTORE'));
                 }
             }
             JToolBarHelper::spacer();
             if (!$easy) {
                 JoomlapackHelperUtils::addLiveHelp('buadmin');
             } else {
                 JoomlapackHelperUtils::addLiveHelp('buadmineasy');
             }
             $document =& JFactory::getDocument();
             $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
             jpimport('models.statistics', true);
             $model =& JoomlapackModelStatistics::getInstance('Statistics', 'JoomlapackModel');
             $list =& $model->getStatisticsListWithMeta();
             $this->assignRef('list', $list);
             $this->assignRef('pagination', $model->getPagination());
             $this->assign('easy', $easy);
             break;
     }
     parent::display(JRequest::getVar('tpl'));
 }
 function display()
 {
     $tpl = JRequest::getVar('tpl');
     // Add toolbar buttons
     JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('DBEF') . '</small></small>');
     JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option'));
     JToolBarHelper::spacer();
     $bar =& JToolBar::getInstance('toolbar');
     switch ($tpl) {
         case 'tab':
             JToolBarHelper::deleteList();
             $bar->appendButton('Link', 'preview', JText::_('NORMALVIEW'), 'index.php?option=com_joomlapack&view=' . JRequest::getCmd('view'));
             break;
         case '':
         default:
             $bar->appendButton('Link', 'preview', JText::_('TABULARVIEW'), 'index.php?option=com_joomlapack&view=' . JRequest::getCmd('view') . '&tpl=tab');
             break;
     }
     JToolBarHelper::spacer();
     JoomlapackHelperUtils::addLiveHelp('dbef');
     if ($tpl == 'tab') {
         $model =& $this->getModel('Dbef');
         $task = JRequest::getCmd('task', 'default');
         $list =& $model->getRecordsList();
         $this->assignRef('list', $list);
         $this->assignRef('pagination', $model->getPagination());
         $this->assignRef('class', $model->_filterclass);
     }
     $document =& JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
     parent::display($tpl);
 }
Ejemplo n.º 26
0
 private function _displayEditLayout($tpl)
 {
     $element = JRequest::getString('id');
     $override = JRequest::getInt('override');
     // @rule: Test if this folder really exists
     $path = COMMUNITY_BASE_PATH . '/templates/' . $element;
     if ($override) {
         $path = JPATH_ROOT . '/templates/' . $element . '/html/com_community';
     }
     if (!JFolder::exists($path)) {
         $mainframe = JFactory::getApplication();
         $mainframe->redirect('index.php?option=com_community&view=templates', JText::_('COM_COMMUNITY_TEMPLATES_INVALID_TEMPLATE'), 'error');
     }
     $params = $this->getParams($element, $override);
     $files = $this->getFiles($element, $override);
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_TEMPLATES'), 'templates');
     // Add the necessary buttons
     JToolBarHelper::back('Back', 'index.php?option=com_community&view=templates');
     JToolBarHelper::divider();
     JToolBarHelper::save();
     JToolBarHelper::apply();
     $this->assign('files', $files);
     $this->assign('template', $this->getTemplate($element, $override));
     $this->assign('params', $params);
     $this->assign('override', $override);
     parent::display($tpl);
 }
Ejemplo n.º 27
0
 function _UPDATECHECK()
 {
     JToolBarHelper::title(JText::_('JCrawler'), 'component');
     //JToolBarHelper::save();
     //JToolBarHelper::apply();
     JToolBarHelper::back();
 }
Ejemplo n.º 28
0
 public function display($tpl = null)
 {
     // Add toolbar buttons
     JToolBarHelper::title(JText::_('AKEEBA') . ': <small>' . JText::_('VIEWLOG') . '</small>', 'akeeba');
     JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option=' . JRequest::getCmd('option'));
     JToolBarHelper::spacer();
     $document = JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . '../media/com_akeeba/theme/akeebaui.css?' . AKEEBAMEDIATAG);
     // Add live help
     AkeebaHelperIncludes::addHelp();
     // Get a list of log names
     if (!class_exists('AkeebaModelLog')) {
         JLoader::import('models.log', JPATH_COMPONENT_ADMINISTRATOR);
     }
     $model = new AkeebaModelLog();
     $this->assign('logs', $model->getLogList());
     $tag = JRequest::getCmd('tag', null);
     if (empty($tag)) {
         $tag = null;
     }
     $this->assign('tag', $tag);
     // Get profile ID
     $profileid = AEPlatform::getInstance()->get_active_profile();
     $this->assign('profileid', $profileid);
     // Get profile name
     if (!class_exists('AkeebaModelProfiles')) {
         JLoader::import('models.profiles', JPATH_COMPONENT_ADMINISTRATOR);
     }
     $model = new AkeebaModelProfiles();
     $model->setId($profileid);
     $profile_data = $model->getProfile();
     $this->assign('profilename', $profile_data->description);
     AkeebaHelperIncludes::includeMedia(false);
     parent::display($tpl);
 }
Ejemplo n.º 29
0
 function registerToolbar()
 {
     $parentId = JRequest::getVar('parentid', 0);
     // JToolBarHelper::title( text, iconfilename )
     if ($parentId) {
         if ($parentId) {
             $parent = Komento::getTable('comments');
             $parent->load($parentId);
         }
         JToolBarHelper::title(JText::_('COM_KOMENTO_COMMENTS_TITLE_CHILD_OF') . $parentId, 'comments');
         JToolBarHelper::back(JText::_('COM_KOMENTO_BACK'), 'index.php?option=com_komento&view=comments&parentid=' . $parent->parent_id);
     } else {
         JToolBarHelper::title(JText::_('COM_KOMENTO_COMMENTS_TITLE'), 'comments');
         JToolBarHelper::back(JText::_('COM_KOMENTO_ADMIN_HOME'), 'index.php?option=com_komento');
     }
     JToolBarHelper::divider();
     if (Komento::joomlaVersion() >= '3.0') {
         JToolBarHelper::custom('stick', 'star', '', JText::_('COM_KOMENTO_STICK'));
         JToolBarHelper::custom('unstick', 'star-empty', '', JText::_('COM_KOMENTO_UNSTICK'));
     } else {
         JToolBarHelper::custom('stick', 'kmt-stick', '', JText::_('COM_KOMENTO_STICK'));
         JToolBarHelper::custom('unstick', 'kmt-unstick', '', JText::_('COM_KOMENTO_UNSTICK'));
     }
     JToolBarHelper::divider();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolBarHelper::deleteList();
 }
Ejemplo n.º 30
0
 public function display($tpl = null)
 {
     global $context;
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_PRODUCT'));
     $task = JRequest::getVar('task');
     JToolBarHelper::title(JText::_('COM_REDSHOP_PRODUCT_MANAGEMENT'), 'redshop_products48');
     if ($task == 'assignCategory') {
         JToolBarHelper::custom('saveProduct_Category', 'save.png', 'save_f2.png', JText::_('COM_REDSHOP_ASSIGN_CATEGORY'), false);
     } else {
         JToolBarHelper::custom('removeProduct_Category', 'delete.png', 'delete.png', JText::_('COM_REDSHOP_REMOVE_CATEGORY'), false);
     }
     JToolBarHelper::back();
     $model = $this->getModel("product_category");
     $products = $model->getProductlist();
     $product_category = new product_category();
     $categories = $product_category->getCategoryListArray();
     $temps = array();
     $temps[0]->category_id = "0";
     $temps[0]->category_name = JText::_('COM_REDSHOP_SELECT');
     $categories = @array_merge($temps, $categories);
     $lists['category'] = JHTML::_('select.genericlist', $categories, 'category_id[]', 'class="inputbox" multiple="multiple"', 'category_id', 'category_name');
     $this->products = $products;
     $this->lists = $lists;
     parent::display($tpl);
 }