Exemplo n.º 1
0
 /**
  * Add the page title and toolbar.
  *
  * @access  public
  * @return  void
  *
  * @since 2.0
  */
 function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMGALLERY_IMGMAN_IMAGE_MANAGER') . ' :: ' . JText::_('COM_JOOMGALLERY_FIELDSET_EDITIMAGES'), 'images');
     JToolbarHelper::apply('apply');
     JToolbarHelper::save('save');
     JToolbarHelper::cancel('cancel');
     JToolbarHelper::spacer();
 }
Exemplo n.º 2
0
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('Event') . ': <small><small>[ upload ]</small></small>');
     JToolbarHelper::cancel('upload.cancel', 'Close');
     $bar = JToolbar::getInstance('toolbar');
     if ($this->folder->getFolderType()->getName() == 'local') {
         JToolbarHelper::spacer(100);
         $bar->appendButton('Link', 'folder', 'COM_EVENTGALLERY_BUTTON_FILES_DESC', JRoute::_('index.php?option=com_eventgallery&view=files&folderid=' . $this->item->id), false);
         $bar->appendButton('Link', 'edit', 'COM_EVENTGALLERY_BUTTON_EDIT_DESC', JRoute::_('index.php?option=com_eventgallery&task=event.edit&id=' . $this->item->id), false);
     }
 }
Exemplo n.º 3
0
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function setToolbar()
 {
     JToolbarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'pluginsmanager');
     JToolbarHelper::spacer();
     JToolbarHelper::editList('plugin.edit');
     JToolbarHelper::divider();
     JToolbarHelper::publish('publish', 'JTOOLBAR_ENABLE', true);
     JToolbarHelper::unpublish('unpublish', 'JTOOLBAR_DISABLE', true);
     JToolbarHelper::divider();
     JToolbarHelper::checkin('checkin');
     JToolbarHelper::spacer();
 }
Exemplo n.º 4
0
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_EVENTGALLERY') . " " . EVENTGALLERY_VERSION, 'generic.png');
     //JToolbarHelper::deleteList();
     JToolbarHelper::preferences('com_eventgallery', '550');
     JToolbarHelper::spacer(100);
     $bar = JToolbar::getInstance('toolbar');
     // Add a trash button.
     $bar->appendButton('Link', 'trash', 'COM_EVENTGALLERY_SUBMENU_CLEAR_CACHE', JRoute::_('index.php?option=com_eventgallery&view=cache'), false);
     $bar->appendButton('Link', 'checkin', 'COM_EVENTGALLERY_SUBMENU_SYNC_DATABASE', JRoute::_('index.php?option=com_eventgallery&view=sync'), false);
     $bar->appendButton('Link', 'checkin', 'COM_EVENTGALLERY_PICASASYNC', JRoute::_('index.php?option=com_eventgallery&view=picasasync'), false);
     $bar->appendButton('Link', 'checkin', 'COM_EVENTGALLERY_IMPEX_LABEL', JRoute::_('index.php?option=com_eventgallery&view=impex'), false);
 }
Exemplo n.º 5
0
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function setToolbar()
 {
     JToolbarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'puzzle');
     JToolbarHelper::spacer();
     JToolbarHelper::editList('plugin.edit');
     JToolbarHelper::divider();
     JToolbarHelper::publish('publish', 'JTOOLBAR_ENABLE', true);
     JToolbarHelper::unpublish('unpublish', 'JTOOLBAR_DISABLE', true);
     JToolbarHelper::divider();
     JToolbarHelper::checkin('checkin');
     JToolbarHelper::spacer();
     $help_url = 'http://www.kunena.org/docs/';
     JToolBarHelper::help('COM_KUNENA', false, $help_url);
 }
Exemplo n.º 6
0
 protected function setToolBarEdit()
 {
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_KUNENA'), 'categories');
     JToolbarHelper::spacer();
     JToolBarHelper::apply('apply');
     JToolBarHelper::save('save');
     JToolBarHelper::save2new('save2new');
     // If an existing item, can save to a copy.
     if ($this->category->exists()) {
         JToolBarHelper::save2copy('save2copy');
     }
     JToolBarHelper::cancel();
     JToolbarHelper::spacer();
 }
Exemplo n.º 7
0
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     //$canDo = PluginsHelper::getActions();
     JToolbarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'pluginsmanager');
     JToolbarHelper::spacer();
     // If not checked out, can save the item.
     //if ($canDo->get('core.edit'))
     //{
     JToolbarHelper::apply('apply');
     JToolbarHelper::save('save');
     //}
     JToolbarHelper::cancel('cancel', 'JTOOLBAR_CLOSE');
     JToolbarHelper::spacer();
 }
Exemplo n.º 8
0
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_EVENTS'), 'generic.png');
     //JToolbarHelper::deleteList();
     JToolbarHelper::addNew('event.add');
     JToolbarHelper::editList('event.edit');
     JToolbarHelper::publishList('events.publish');
     JToolbarHelper::unpublishList('events.unpublish');
     JToolbarHelper::publishList('events.cartable', 'COM_EVENTGALLERY_EVENT_CARTABLE');
     JToolbarHelper::unpublishList('events.notcartable', 'COM_EVENTGALLERY_EVENT_NOT_CARTABLE');
     JToolbarHelper::deleteList('Remove all selected Events?', 'events.delete', 'Remove');
     JToolbarHelper::preferences('com_eventgallery', '550');
     JToolbarHelper::spacer(100);
     $bar = JToolbar::getInstance('toolbar');
     // Add a trash button.
     $bar->appendButton('Link', 'trash', 'COM_EVENTGALLERY_SUBMENU_CLEAR_CACHE', JRoute::_('index.php?option=com_eventgallery&view=cache'), false);
     $bar->appendButton('Link', 'checkin', 'COM_EVENTGALLERY_SUBMENU_SYNC_DATABASE', JRoute::_('index.php?option=com_eventgallery&view=sync'), false);
     $version = new JVersion();
     if ($version->isCompatible('3.0')) {
         JHtml::_('bootstrap.modal', 'collapseModal');
         $title = JText::_('JTOOLBAR_BATCH');
         // Instantiate a new JLayoutFile instance and render the batch button
         $layout = new JLayoutFile('joomla.toolbar.batch');
         $dhtml = $layout->render(array('title' => $title, 'height' => 200));
         $bar->appendButton('Custom', $dhtml, 'batch');
     }
     $options = array();
     foreach ($this->foldertags as $key => $value) {
         $options[] = JHtml::_('select.option', $key, $value);
     }
     $options[] = JHtml::_('select.option', '------', 'JNONE');
     $options[] = JHtml::_('select.option', '*', 'JALL');
     JHtmlSidebar::addFilter(JText::_('COM_EVENTGALLERY_EVENT_FILTER_TAG'), 'filter_tag', JHtml::_('select.options', $options, 'value', 'text', $this->state->get('filter.tag'), true));
     /**
      * @var EventgalleryLibraryManagerFoldertype $folderTypeMgr
      */
     $folderTypeMgr = EventgalleryLibraryManagerFoldertype::getInstance();
     $options = array();
     /**
      * @var EventgalleryLibraryFoldertype $folderType
      */
     foreach ($folderTypeMgr->getFolderTypes(true) as $folderType) {
         $options[] = JHtml::_('select.option', $folderType->getId(), $folderType->getDisplayName());
     }
     $options[] = JHtml::_('select.option', '*', 'JALL');
     JHtmlSidebar::addFilter(JText::_('COM_EVENTGALLERY_EVENT_FILTER_TYPE'), 'filter_type', JHtml::_('select.options', $options, 'value', 'text', $this->state->get('filter.type'), true));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_category', JHtml::_('select.options', JHtml::_('category.options', 'com_eventgallery'), 'value', 'text', $this->state->get('filter.category')));
 }
Exemplo n.º 9
0
 /**
  *
  */
 protected function setToolBarDefault()
 {
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::spacer();
     JToolBarHelper::apply();
     JToolBarHelper::save('save');
     JToolBarHelper::divider();
     JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'wrench');
     JHtml::_('bootstrap.modal', 'settingModal');
     $title = JText::_('COM_KUNENA_RESET_CONFIG');
     $dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">\n\t\t\t\t\t<i class=\"icon-checkbox-partial\" title=\"{$title}\"></i>\n\t\t\t\t\t{$title}</button>";
     $bar->appendButton('Custom', $dhtml, 'restore');
     JToolbarHelper::spacer();
     $help_url = 'http://www.kunena.org/docs/Configuration';
     JToolBarHelper::help('COM_KUNENA', false, $help_url);
 }
Exemplo n.º 10
0
 private function addToolbar()
 {
     $isNew = $this->item->id < 1;
     $text = $isNew ? JText::_('New') : JText::_('Edit');
     $bar = JToolbar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_EVENTS') . ': <small><small>[ ' . $text . ' ]</small></small>');
     JToolbarHelper::apply('event.apply');
     JToolbarHelper::save('event.save');
     if ($isNew) {
         JToolbarHelper::cancel('event.cancel');
     } else {
         JToolbarHelper::save2copy('event.save2copy');
         JToolbarHelper::cancel('event.cancel', JText::_('JTOOLBAR_CLOSE'));
         if ($this->folder->getFolderType()->getName() == 'local') {
             JToolbarHelper::spacer(100);
             $bar->appendButton('Link', 'folder', 'COM_EVENTGALLERY_BUTTON_FILES_DESC', JRoute::_('index.php?option=com_eventgallery&view=files&folderid=' . $this->item->id), false);
             $bar->appendButton('Link', 'upload', 'COM_EVENTGALLERY_BUTTON_UPLOAD_DESC', JRoute::_('index.php?option=com_eventgallery&task=upload.upload&folderid=' . $this->item->id), false);
         }
     }
 }
Exemplo n.º 11
0
 protected function setToolBarDefault()
 {
     $bar = JToolBar::getInstance('toolbar');
     JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'config');
     JToolbarHelper::spacer();
     JToolBarHelper::apply();
     JToolBarHelper::save('save');
     JToolBarHelper::divider();
     if (version_compare(JVERSION, '3.0', '>')) {
         JHtml::_('bootstrap.modal', 'settingModal');
         $title = JText::_('COM_KUNENA_RESET_CONFIG');
         $dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">\r\n\t\t\t\t\t\t<i class=\"icon-checkbox-partial\" title=\"{$title}\"></i>\r\n\t\t\t\t\t\t{$title}</button>";
         $bar->appendButton('Custom', $dhtml, 'restore');
     } else {
         JHtml::_('moobootstrap.modal', 'settingModal');
         $title = JText::_('COM_KUNENA_RESET_CONFIG');
         $dhtml = "<a data-toggle=\"modal\" data-target=\"#settingModal\" class=\"toolbar\">\r\n\t\t\t\t\t\t<span class=\"icon-32-restore\" title=\"{$title}\"></span>\r\n\t\t\t\t\t\t\t{$title}</a>";
         $bar->appendButton('Custom', $dhtml, 'restore');
     }
     JToolbarHelper::spacer();
     //$bar->appendButton('Popup', 'restore', 'COM_KUNENA_RESET_CONFIG', 'index.php?option=com_kunena&amp;view=config&amp;layout=modal&amp;tmpl=component', 450, 200);
 }
Exemplo n.º 12
0
 protected function addToolbar()
 {
     $text = $this->item->folder;
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_EVENTS') . ': <small><small>[ ' . $text . ' ]</small></small>');
     JToolbarHelper::cancel('files.cancel', 'Close');
     JToolbarHelper::custom('files.publish', 'eg-published');
     JToolbarHelper::custom('files.unpublish', 'eg-published-inactive');
     JToolbarHelper::custom('files.allowcomments', 'eg-comments');
     JToolbarHelper::custom('files.disallowcomments', 'eg-comments-inactive');
     JToolbarHelper::custom('files.ismainimage', 'eg-mainimage');
     JToolbarHelper::custom('files.isnotmainimage', 'eg-mainimage-inactive');
     JToolbarHelper::custom('files.isnotmainimageonly', 'eg-mainimageonly');
     JToolbarHelper::custom('files.ismainimageonly', 'eg-mainimageonly-inactive');
     JToolbarHelper::spacer(50);
     JToolbarHelper::deleteList(JText::_('COM_EVENTGALLERY_EVENT_IMAGE_ACTION_DELETE_ALERT'), 'files.delete');
     $bar = JToolbar::getInstance('toolbar');
     $bar->appendButton('Confirm', 'COM_EVENTGALLERY_EVENT_CLEAR_ORDERING_ALERT', 'trash', 'COM_EVENTGALLERY_EVENT_CLEAR_ORDERING', 'files.clearOrdering', false);
     if ($this->folder->getFolderType()->getName() == 'local') {
         JToolbarHelper::spacer(100);
         $bar->appendButton('Link', 'edit', 'COM_EVENTGALLERY_BUTTON_EDIT_DESC', JRoute::_('index.php?option=com_eventgallery&task=event.edit&id=' . $this->item->id), false);
         $bar->appendButton('Link', 'upload', 'COM_EVENTGALLERY_BUTTON_UPLOAD_DESC', JRoute::_('index.php?option=com_eventgallery&task=upload.upload&folderid=' . $this->item->id), false);
     }
 }
Exemplo n.º 13
0
	protected function setToolBarDefault()
	{
		$bar = JToolBar::getInstance('toolbar');

		JToolbarHelper::spacer();
		JToolBarHelper::apply();
		JToolBarHelper::save('save');
		JToolBarHelper::divider();

		if (version_compare(JVERSION, '3.0', '>'))
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'wrench');

			JHtml::_('bootstrap.modal', 'settingModal');
			$title = JText::_('COM_KUNENA_RESET_CONFIG');
			$dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">
						<i class=\"icon-checkbox-partial\" title=\"$title\"></i>
						$title</button>";
			$bar->appendButton('Custom', $dhtml, 'restore');
		}
		else
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'config');

			JHtml::_('moobootstrap.modal', 'settingModal');
			$title = JText::_('COM_KUNENA_RESET_CONFIG');
			$dhtml = "<a data-toggle=\"modal\" data-target=\"#settingModal\" class=\"toolbar\">
						<span class=\"icon-32-restore\" title=\"$title\"></span>
							$title</a>";
			$bar->appendButton('Custom', $dhtml, 'restore');
		}

		JToolbarHelper::spacer();
		$help_url  = 'https://www.kunena.org/docs/Configuration';
		JToolBarHelper::help( 'COM_KUNENA', false, $help_url );
	}
Exemplo n.º 14
0
 /**
  *
  */
 protected function setToolBarEdit()
 {
     JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CATEGORY_MANAGER'), 'list-view');
     JToolbarHelper::spacer();
     JToolBarHelper::apply('apply');
     JToolBarHelper::save('save');
     JToolBarHelper::save2new('save2new');
     // If an existing item, can save to a copy.
     if ($this->category->exists()) {
         JToolBarHelper::save2copy('save2copy');
     }
     JToolBarHelper::cancel();
     JToolbarHelper::spacer();
     $help_url = 'http://www.kunena.org/docs/Sections,_Categories,_sub-Categories_(Part_1)';
     JToolBarHelper::help('COM_KUNENA', false, $help_url);
 }
Exemplo n.º 15
0
	protected function setToolBarEdit()
	{
		// Set the titlebar text

		if (version_compare(JVERSION, '3', '>'))
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CATEGORY_MANAGER'), 'list-view');
		}
		else
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CATEGORY_MANAGER'), 'categories');
		}

		JToolbarHelper::spacer();
		JToolBarHelper::apply('apply');
		JToolBarHelper::save('save');
		JToolBarHelper::save2new('save2new');

		// If an existing item, can save to a copy.
		if ($this->category->exists())
		{
			JToolBarHelper::save2copy('save2copy');
		}

		JToolBarHelper::cancel();
		JToolbarHelper::spacer();
		$help_url  = 'https://www.kunena.org/docs/en/setup/sections-categories';
		JToolBarHelper::help( 'COM_KUNENA', false, $help_url );
	}
 function HELP_MENU()
 {
     global $submenu_anders;
     //JToolbarHelper::startTable();
     JToolBarHelper::title(JText::_('JGA_HELP_MANAGER'), 'systeminfo');
     JToolbarHelper::custom('cpanel', 'config.png', 'config.png', 'JGA_TOOLBAR_CPANEL', false);
     JToolbarHelper::spacer();
     //JToolbarHelper::endTable();
     if ($submenu_anders != 1) {
         return;
     }
     JSubMenuHelper::addEntry(JText::_('JGA_CATEGORY_MANAGER'), 'index.php?option=com_joomgallery&amp;act=categories');
     JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_MANAGER'), 'index.php?option=com_joomgallery&amp;act=pictures');
     JSubMenuHelper::addEntry(JText::_('JGA_COMMENTS_MANAGER'), 'index.php?option=com_joomgallery&amp;act=comments');
     JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
     JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
     JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
     JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
     JSubMenuHelper::addEntry(JText::_('JGA_CONFIGURATION_MANAGER'), 'index.php?option=com_joomgallery&amp;act=configuration');
 }
 /**
  * Default toolbar when editing the advertisment
  *
  */
 function AdDefault()
 {
     JToolbarHelper::save();
     JToolbarHelper::spacer();
     JToolbarHelper::cancel();
 }
Exemplo n.º 18
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since 2.0
  */
 public function addToolbar()
 {
     // Get the results for each action
     $canDo = JoomHelper::getActions('category', $this->item->cid);
     $title = JText::_('COM_JOOMGALLERY_CATMAN_CATEGORY_MANAGER') . ' :: ';
     if ($this->isNew) {
         $title .= JText::_('COM_JOOMGALLERY_CATMAN_ADD_CATEGORY');
     } else {
         $title .= JText::_('COM_JOOMGALLERY_CATMAN_EDIT_CATEGORY');
     }
     $title .= ' ' . JText::_('COM_JOOMGALLERY_COMMON_CATEGORY');
     JToolBarHelper::title($title, 'folder');
     // For new categories check the create permission
     if ($this->isNew && ($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('core.create') || count(JoomHelper::getAuthorisedCategories('core.create')))) {
         JToolBarHelper::apply('apply', 'JTOOLBAR_APPLY');
         JToolBarHelper::save('save', 'JTOOLBAR_SAVE');
         JToolBarHelper::custom('save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
     } else {
         if ($canDo->get('core.edit') || $canDo->get('core.edit.own') && $this->item->owner == $this->_user->get('id')) {
             JToolBarHelper::apply('apply', 'JTOOLBAR_APPLY');
             JToolBarHelper::save('save', 'JTOOLBAR_SAVE');
             if ($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('core.create') || count(JoomHelper::getAuthorisedCategories('core.create'))) {
                 JToolBarHelper::save2new();
             }
         }
     }
     // If it's an already existing category a copy may be saved (only if creating categories is allowed)
     if (!$this->isNew && ($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('core.create') || count(JoomHelper::getAuthorisedCategories('core.create')))) {
         JToolBarHelper::save2copy();
     }
     if ($this->isNew) {
         JToolBarHelper::cancel('cancel', 'JTOOLBAR_CANCEL');
     } else {
         JToolBarHelper::cancel('cancel', 'JTOOLBAR_CLOSE');
     }
     JToolbarHelper::spacer();
 }
Exemplo n.º 19
-1
 /**
  * Display the view.
  *
  * @param	string	$tpl	The subtemplate to display.
  *
  * @return	void
  */
 function display($tpl = null)
 {
     JToolbarHelper::title(JText::_('jUpgradePro'), 'jupgrade');
     JToolbarHelper::custom('cpanel', 'back.png', 'back_f2.png', 'Back', false, false);
     JToolbarHelper::preferences('com_jupgradepro', '500');
     JToolbarHelper::spacer();
     JToolbarHelper::custom('help', 'help.png', 'help_f2.png', 'Help', false, false);
     JToolbarHelper::spacer();
     // get params
     $params = JComponentHelper::getParams('com_jupgradepro');
     //
     // Joomla bug: JInstaller not save the defaults params reading config.xml
     //
     $db = JFactory::getDBO();
     if (!$params->get('method')) {
         $default_params = '{"method":"rest","rest_hostname":"http:\\/\\/www.example.org\\/","rest_username":"","rest_password":"","rest_key":"","path":"","driver":"mysql","hostname":"localhost","username":"","password":"","database":"","prefix":"jos_","skip_checks":"0","skip_files":"1","skip_templates":"1","skip_extensions":"1","skip_core_users":"0","skip_core_categories":"0","skip_core_sections":"0","skip_core_contents":"0","skip_core_contents_frontpage":"0","skip_core_menus":"0","skip_core_menus_types":"0","skip_core_modules":"0","skip_core_modules_menu":"0","skip_core_banners":"0","skip_core_banners_clients":"0","skip_core_banners_tracks":"0","skip_core_contacts":"0","skip_core_newsfeeds":"0","skip_core_weblinks":"0","positions":"0","debug":"0"}';
         $query = "UPDATE #__extensions SET `params` = '{$default_params}' WHERE `element` = 'com_jupgradepro'";
         $db->setQuery($query);
         $db->query();
         // get params.. again
         $params = JComponentHelper::getParams('com_jupgradepro');
     }
     // Load mooTools
     //JHTML::_('behavior.mootools'); // 2.5
     JHtml::_('behavior.framework', true);
     $xmlfile = JPATH_COMPONENT_ADMINISTRATOR . '/jupgradepro.xml';
     $xml = JFactory::getXML($xmlfile);
     $this->params = $params;
     $this->version = $xml->version[0];
     parent::display($tpl);
 }