function display($tpl = null) { global $mainframe; JToolBarHelper::title('Batch Adding Videos Locally To Video List', 'jomtube-videos'); JToolBarHelper::save('uploadbatch'); JToolBarHelper::spacer(); JToolBarHelper::cancel(); $yesno[] = JHTML::_('select.option', 0, 'No'); $yesno[] = JHTML::_('select.option', 1, 'Yes'); $ispublished = JHTML::_('select.genericlist', $yesno, 'published', '', 'value', 'text', ''); $isdownloadable = JHTML::_('select.genericlist', $yesno, 'downloadable', '', 'value', 'text', ''); $isfeatured = JHTML::_('select.genericlist', $yesno, 'featured', '', 'value', 'text', ''); //get parent option $categories =& $this->get('ParentOption'); $parentOptions[] = JHTML::_('select.option', '', '-Select Parent-'); foreach ($categories as $category) { $category_name = str_repeat(' ', 4 * substr_count($category->family_id, "/")) . "+" . $category->category_name; $parentOptions[] = JHTML::_('select.option', $category->id, $category_name); } $parentSelect = JHTML::_('select.genericlist', $parentOptions, 'category_id', 'id="catid" class="inputbox" size="1" ', 'value', 'text', ''); //clean data JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'catdescription'); $this->assignRef('parentSelect', $parentSelect); $this->assignRef('pane', $pane); $this->assignRef('ispublished', $ispublished); $this->assignRef('isdownloadable', $isdownloadable); $this->assignRef('isfeatured', $isfeatured); $this->assignRef('my', $my =& JFactory::getUser()); parent::display($tpl); }
function toolbar() { switch (JRequest::getCmd('task')) { case 'edit': case 'apply': case 'add': switch (JRequest::getCmd('task')) { case 'add': JToolBarHelper::title(JText::_('COM_REDFORM_Add_Value'), 'redform_plus'); break; default: JToolBarHelper::title(JText::_('COM_REDFORM_Edit_Value'), 'redform_plus'); break; } JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::cancel(); break; default: JToolBarHelper::title(JText::_('COM_REDFORM_Values'), 'redform_values'); if ($this->get('Total', 'fields') > 0) { JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::spacer(); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNew(); } break; } }
/** * Add toolbar for this view */ protected function addToolBar() { JSNFactory::localimport('helpers.html.jsntoolbar'); JToolbarHelper::title(JText::_('JSN_RAW_LAYOUT_MANAGER_TITLE'), 'poweradmin-rawmode'); JSNToolBarHelper::switchmode('poweradmin-rawmode-help', JText::_('JSN_RAWMODE_HELP_CONTENT_TEXT', true), JText::_('JSN_RAWMODE_HELP_CONTENT_TITLE_SHOW', true), JText::_('JSN_RAWMODE_HELP_CONTENT_TITLE_HIDE', true)); JToolBarHelper::spacer(5); }
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); }
protected function setToolBarDefault() { // Set the titlebar text JToolBarHelper::title ( ' ', 'kunena.png' ); JToolBarHelper::spacer(); JToolBarHelper::custom('delete','restore.png','restore_f2.png', 'COM_KUNENA_GEN_DELETE'); JToolBarHelper::spacer(); }
function display($tpl = null) { global $mainframe; //Load pane behavior jimport('joomla.html.pane'); $pane =& JPane::getInstance('tabs'); //initialise variables $editor =& JFactory::getEditor(); $document =& JFactory::getDocument(); $user =& JFactory::getUser(); //get vars $cid = JRequest::getVar('cid'); //create the toolbar if ($cid) { JToolBarHelper::title(JText::_('EDIT VIDEO'), 'jomtube-videos'); } else { JToolBarHelper::title(JText::_('ADD VIDEO'), 'jomtube-videos'); } JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::save(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); $tmplpath = dirname(__FILE__) . DS . 'tmpl'; $this->assignRef('tmplpath', $tmplpath); $this->assignRef('my', $my =& JFactory::getUser()); $this->assignRef('pane', $pane); parent::display($tpl); }
function display($tpl = NULL) { // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung $model = $this->getModel(); clm_core::$load->load_css("icons_images"); if (JRequest::getVar('task') == 'edit') { $text = JText::_('EDIT'); } else { $text = JText::_('NEW'); } JToolBarHelper::title(JText::_('TITLE_TERMINE') . ": " . JText::_('TERMINE_TASK') . ': [ ' . $text . ' ]', 'clm_headmenu_termine.png'); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); // das MainMenu abschalten JRequest::setVar('hidemainmenu', 1); // Document/Seite $document = JFactory::getDocument(); // JS-Array jtext -> Fehlertexte $document->addScriptDeclaration("var jserror = new Array();"); $document->addScriptDeclaration("jserror['enter_name'] = '" . JText::_('TERMINE_ERROR_NAME') . "';"); $document->addScriptDeclaration("jserror['enter_startdate'] = '" . JText::_('TERMINE_ERROR_STARTDATE') . "';"); $document->addScriptDeclaration("jserror['dont_starttime'] = '" . JText::_('TERMINE_ERROR_STARTTIME') . "';"); $document->addScriptDeclaration("jserror['dont_endtime'] = '" . JText::_('TERMINE_ERROR_ENDTIME') . "';"); $document->addScriptDeclaration("jserror['dont_enddate'] = '" . JText::_('TERMINE_ERROR_ENDDATE') . "';"); $document->addScriptDeclaration("jserror['dont_allday'] = '" . JText::_('TERMINE_ERROR_ALLDAY') . "';"); $document->addScriptDeclaration("jserror['dont_noendtime'] = '" . JText::_('TERMINE_ERROR_NOENDTIME') . "';"); // Daten an Template übergeben $this->assignRef('user', $model->user); $this->assignRef('termine', $model->termine); $this->assignRef('form', $model->form); parent::display(); }
protected function setToolBarEdit() { JToolBarHelper::title ( ' ', 'kunena.png' ); JToolBarHelper::spacer(); JToolBarHelper::save('save'); JToolBarHelper::spacer(); JToolBarHelper::cancel('ranks'); }
/** * Control Panel display function * * @param template $tpl */ function overview($tpl = null) { $document =& JFactory::getDocument(); // this already includes administrator $livesite = JURI::base(); $document->addStyleSheet($livesite . 'components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css'); $document->setTitle(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('USERS'), 'jevents'); JToolBarHelper::addNew("user.edit"); JToolBarHelper::editList("user.edit"); //JToolBarHelper::publish("user.publish"); //JToolBarHelper::unpublish("user.unpublish"); JToolBarHelper::deleteList("ARE_YOU_SURE_YOU_WANT_TO_DELETE_THIS_USER", "user.remove"); //JToolBarHelper::preferences(JEV_COM_COMPONENT, '580', '750'); JToolBarHelper::spacer(); JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false); //JToolBarHelper::help( 'screen.user', true); $search = JFactory::getApplication()->getUserStateFromRequest("usersearch{" . JEV_COM_COMPONENT . "}", 'search', ''); $db = JFactory::getDbo(); $search = $db->getEscaped(trim(strtolower($search))); $option = JRequest::getCmd('option', JEV_COM_COMPONENT); $pagination =& $this->get('Pagination'); $users =& $this->get('users'); $this->assignRef('pagination', $pagination); $this->assignRef('users', $users); $this->assignRef('search', $search); JHTML::_('behavior.tooltip'); }
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); }
function display($tpl = null) { // Get data from the model $extension =& $this->get('extension'); $this->assignRef('extension', $extension); $this->langs = $this->get('languages'); $this->strings = $this->get('strings'); $this->translation = $this->get('translation'); $this->subdomains = $this->get('subdomains'); $this->menus = $this->get('menus'); $filters =& SEFTools::getExtFilters($extension->option, false); $this->assignRef('filters', $filters); $acceptVars =& SEFTools::getExtAcceptVars($extension->option, false); sort($acceptVars, SORT_STRING); $this->assignRef('acceptVars', $acceptVars); // Root domain for subdomains configuration $rootDomain = JFactory::getURI()->getHost(); if (substr($rootDomain, 0, 4) == 'www.') { $rootDomain = substr($rootDomain, 4); } $this->assign('rootDomain', $rootDomain); JToolBarHelper::title(JText::_('SEF Extension') . ' <small>' . JText::_('Edit') . ' [ ' . (strlen($extension->name) ? $extension->name : $extension->component->name) . ' ]</small>', 'plugin.png'); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); JHTML::_('behavior.tooltip'); $redir = JRequest::getVar('redirto', ''); $this->assignRef('redirto', $redir); parent::display($tpl); }
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 = null) { global $mainframe, $option; //initialise variables $user =& JFactory::getUser(); $db =& JFactory::getDBO(); $document =& JFactory::getDocument(); JHTML::_('behavior.tooltip'); //get vars $filter_order = $mainframe->getUserStateFromRequest($option . '.categories.filter_order', 'filter_order', 'c.ordering', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.categories.filter_order_Dir', 'filter_order_Dir', '', 'word'); $filter_state = $mainframe->getUserStateFromRequest($option . '.categories.filter_state', 'filter_state', '*', 'word'); $search = $mainframe->getUserStateFromRequest($option . '.categories.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', true); 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'); } //create the toolbar JToolBarHelper::title(JText::_('CATEGORIES'), 'elcategories'); JToolBarHelper::publishList(); JToolBarHelper::spacer(); JToolBarHelper::unpublishList(); JToolBarHelper::spacer(); JToolBarHelper::addNew(); JToolBarHelper::spacer(); JToolBarHelper::editList(); JToolBarHelper::spacer(); JToolBarHelper::deleteList(); JToolBarHelper::spacer(); JToolBarHelper::help('el.listcategories', true); //Get data from the model $rows =& $this->get('Data'); //$total = & $this->get( 'Total'); $pageNav =& $this->get('Pagination'); //publish unpublished filter $lists['state'] = JHTML::_('grid.state', $filter_state); // search filter $lists['search'] = $search; // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; $ordering = $lists['order'] == 'c.ordering'; //assign data to template $this->assignRef('lists', $lists); $this->assignRef('rows', $rows); $this->assignRef('pageNav', $pageNav); $this->assignRef('ordering', $ordering); $this->assignRef('user', $user); parent::display($tpl); }
/** * */ protected function setToolbar() { // Get the toolbar object instance $bar = JToolBar::getInstance('toolbar'); // Set the titlebar text JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_USER_MANAGER'), 'users'); JToolBarHelper::spacer(); JToolBarHelper::editList(); JToolBarHelper::custom('logout', 'cancel.png', 'cancel_f2.png', 'COM_KUNENA_LOGOUT'); JToolBarHelper::divider(); JToolBarHelper::custom('move', 'move.png', 'move_f2.png', 'COM_KUNENA_MOVE_USERMESSAGES'); JHtml::_('bootstrap.modal', 'moderateModal'); $title = JText::_('COM_KUNENA_VIEW_USERS_TOOLBAR_ASSIGN_MODERATORS'); $dhtml = "<button data-toggle=\"modal\" data-target=\"#moderateModal\" class=\"btn btn-small\">\n\t\t\t\t\t<i class=\"icon-checkbox-partial\" title=\"{$title}\"> </i>\n\t\t\t\t\t\t{$title}</button>"; $bar->appendButton('Custom', $dhtml, 'batch'); JToolBarHelper::divider(); JToolBarHelper::custom('trashusermessages', 'trash.png', 'icon-32-move.png', 'COM_KUNENA_TRASH_USERMESSAGES'); JToolBarHelper::deleteList(); JToolBarHelper::spacer(); JToolBarHelper::custom('removecatsubscriptions', 'delete.png', 'delete.png', 'COM_KUNENA_REMOVE_CATSUBSCRIPTIONS'); JToolBarHelper::spacer(); JToolBarHelper::custom('removetopicsubscriptions', 'delete.png', 'delete.png', 'COM_KUNENA_REMOVE_TOPICSUBSCRIPTIONS'); JToolBarHelper::spacer(); $help_url = 'http://www.kunena.org/docs/'; JToolBarHelper::help('COM_KUNENA', false, $help_url); }
function display() { // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung $model =& $this->getModel(); // Die Toolbar erstellen, die über der Seite angezeigt wird require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php'; JToolBarHelper::title($model->turnier->name . ": " . JText::_('ROUNDS'), 'clm_turnier.png'); JToolBarHelper::spacer(); if (CLM_usertype == 'admin' or CLM_usertype == 'tl') { // auslosen if ($model->turnier->roundToDraw != 0) { JToolBarHelper::spacer(); JToolBarHelper::custom('assignMatches', 'edit.png', 'edit_f2.png', JText::_('MATCHES_ASSIGN'), FALSE); } JToolBarHelper::spacer(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); } JToolBarHelper::spacer(); JToolBarHelper::cancel(); if (CLM_usertype == 'admin' or CLM_usertype == 'tl') { JToolBarHelper::divider(); JToolBarHelper::spacer(); JToolBarHelper::custom('turform', 'config.png', 'config_f2.png', JText::_('TOURNAMENT'), false); } // Daten an Template übergeben $this->assignRef('user', $model->user); $this->assignRef('turrounds', $model->turRounds); $this->assignRef('form', $model->form); $this->assignRef('param', $model->param); $this->assignRef('pagination', $model->pagination); // zusätzliche Funktionalitäten JHTML::_('behavior.tooltip'); parent::display(); }
protected function setToolbar() { $this->filterActive = $this->escape($this->state->get('filter.active')); $this->pagination = $this->get('Pagination'); if (version_compare(JVERSION, '3', '>')) { JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_EMOTICON_MANAGER'), 'thumbs-up'); } else { JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_EMOTICON_MANAGER'), 'smilies'); } JToolBarHelper::spacer(); JToolBarHelper::addNew('add', 'COM_KUNENA_NEW_SMILIE'); //TODO: Implement flag to hide options, personal preference option. //if($this->filterActive || $this->pagination->total > 0) { JToolBarHelper::editList(); JToolBarHelper::divider(); JToolBarHelper::deleteList(); //} JToolBarHelper::spacer(); $help_url = 'https://www.kunena.org/docs/Smiley_management'; JToolBarHelper::help( 'COM_KUNENA', false, $help_url ); }
function display($tpl = NULL) { // Die Toolbar erstellen, die über der Seite angezeigt wird if (JRequest::getVar('task') == 'edit') { $text = JText::_('CATEGORY_EDIT'); } else { $text = JText::_('CATEGORY_CREATE'); } JToolBarHelper::title($text); if (clm_core::$access->getType() == 'admin' or clm_core::$access->getType() == 'tl') { JToolBarHelper::save('save'); JToolBarHelper::apply('apply'); } JToolBarHelper::spacer(); JToolBarHelper::cancel('cancel'); // das MainMenu abschalten JRequest::setVar('hidemainmenu', 1); // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung $model = $this->getModel(); // Document/Seite $document = JFactory::getDocument(); // JS-Array jtext -> Fehlertexte $document->addScriptDeclaration("var jserror = new Array();"); $document->addScriptDeclaration("jserror['enter_name'] = '" . JText::_('PLEASE_ENTER') . " " . JText::_('CATEGORY_NAME') . "';"); // Script // $document->addScript(CLM_PATH_JAVASCRIPT.'catform.js'); // Daten an Template übergeben $this->assignRef('user', $model->user); $this->assignRef('category', $model->category); $this->assignRef('form', $model->form); parent::display(); }
function editForm($tpl = null) { $db = JFactory::getDBO(); $promo = $this->get('promo'); $isNew = $promo->id < 1; $text = $isNew ? JText::_('New') : JText::_('Edit'); JToolBarHelper::title(JText::_('Promo') . ":<small>[" . $text . "]</small>"); JToolBarHelper::save(); if ($isNew) { JToolBarHelper::spacer(); JToolBarHelper::divider(); JToolBarHelper::cancel(); } else { JToolBarHelper::spacer(); JToolBarHelper::apply(); JToolBarHelper::divider(); JToolBarHelper::cancel('cancel', 'Close'); } $this->assign("promo", $promo); $db = JFactory::getDBO(); $sql = "SELECT * FROM #__ad_agency_settings LIMIT 1"; $db->setQuery($sql); $configs = $db->loadObject(); $this->assign("configs", $configs); $lists = null; $this->assign("lists", $lists); parent::display($tpl); }
public function display($tpl = null) { $layout = JRequest::getVar('layout', 0, 'post', 'string'); $fields = $this->get('Data'); if ($layout != 'form' && !$fields) { $this->app->enqueueMessage(JText::_('JM_NO_CUSTOM_FIELDS'), 'notice'); } $this->assignRef('fields', $fields); $listName = JRequest::getVar('name', JRequest::getVar('listName', '')); $this->assignRef('listName', $listName); $title = $listName ? " ({$listName})" : ''; if ($layout == 'form') { JToolBarHelper::title(JText::_('JM_NEWSLETTER_NEW_CUSTOM_FIELD') . $title, $this->getPageTitleClass()); JToolBarHelper::save(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); $listId = JRequest::getVar('listid', ''); $this->assignRef('listId', $listId); $CBfields = $this->get('CBfields'); $this->assignRef('CBfields', $CBfields); $JSfields = $this->get('JSfields'); $this->assignRef('JSfields', $JSfields); $VMfields = $this->get('VMfields'); $this->assignRef('VMfields', $VMfields); } else { JToolBarHelper::title(JText::_('JM_NEWSLETTER_CUSTOM_FIELDS') . $title, $this->getPageTitleClass()); JToolBarHelper::custom('goToLists', 'lists', 'lists', 'JM_LISTS', false, false); JToolBarHelper::spacer(); JToolBarHelper::addNew(); JToolBarHelper::spacer(); JToolBarHelper::deleteList(); } parent::display($tpl); require_once JPATH_COMPONENT . '/helpers/jmFooter.php'; }
function view($tpl = null) { $toolbar = $this->get('ToolbarSelections'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_EXTENSIONS'), 'mijosef'); $this->toolbar->appendButton('Confirm', JText::_('COM_MIJOSEF_EXTENSIONS_VIEW_BTN_REMOVE_WARN'), 'uninstall', JText::_('Uninstall'), 'uninstall', true, false); JToolBarHelper::custom('save', 'save1.png', 'save1.png', JText::_('Save'), false); JToolBarHelper::divider(); JToolBarHelper::spacer(); $this->toolbar->appendButton('Custom', $toolbar->action); $this->toolbar->appendButton('Custom', $toolbar->selection); $this->toolbar->appendButton('Custom', $toolbar->button); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/extensions?tmpl=component', 650, 500); // Get behaviors JHTML::_('behavior.tooltip'); JHTML::_('behavior.modal', 'a.modal', array('onClose' => '\\function(){location.reload(true);}')); // Get data from the model $this->assignRef('lists', $this->get('Lists')); $this->assignRef('info', $this->get('Info')); $this->assignRef('params', $this->get('Params')); $this->assignRef('items', $this->get('Items')); $this->assignRef('pagination', $this->get('Pagination')); parent::display($tpl); }
function overview($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); $document =& JFactory::getDocument(); $document->setTitle(JText::_('CATEGORIES')); // Set toolbar items for the page JToolBarHelper::title(JText::_('CATEGORIES'), 'jevents'); JToolBarHelper::publishList('categories.publish'); JToolBarHelper::unpublishList('categories.unpublish'); JToolBarHelper::addNew('categories.add'); JToolBarHelper::editList('categories.edit'); JToolBarHelper::deleteList("delete category", 'categories.delete'); JToolBarHelper::spacer(); JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false); //JToolBarHelper::help( 'screen.categories', true); JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true); JHTML::_('behavior.tooltip'); // Preprocess the list of items to find ordering divisions. // RSH 9/28/10 Added check for empty list - if no items were created. if (count($this->items) > 0) { foreach ($this->items as &$item) { $this->ordering[$item->parent_id][] = $item->id; } } }
function display() { // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung $model =& $this->getModel(); // Die Toolbar erstellen, die über der Seite angezeigt wird require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php'; JToolBarHelper::title($model->turnierData->name . ", " . JText::_('ROUND') . ": " . $model->roundData->name, 'clm_turnier.png'); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); // das MainMenu abschalten JRequest::setVar('hidemainmenu', 1); // Document/Seite $document =& JFactory::getDocument(); // JS-Array jtext -> Fehlertexte $document->addScriptDeclaration("var jtext = new Array();"); $document->addScriptDeclaration("jtext['enter_name'] = '" . JText::_('PLEASE_ENTER') . " " . JText::_('ROUND_NAME') . "';"); $document->addScriptDeclaration("jtext['enter_nr'] = '" . JText::_('PLEASE_ENTER') . " " . JText::_('ROUND_NR') . "';"); $document->addScriptDeclaration("jtext['number_nr'] = '" . JText::_('PLEASE_NUMBER') . " " . JText::_('ROUND_NR') . "';"); $document->addScriptDeclaration("jtext['enter_date'] = '" . JText::_('PLEASE_ENTER') . " " . JText::_('DATE') . "';"); // Script $document->addScript(CLM_PATH_JAVASCRIPT . 'turroundform.js'); // Daten an Template übergeben $this->assignRef('user', $model->user); $this->assignRef('roundData', $model->roundData); $this->assignRef('form', $model->form); $this->assignRef('param', $model->param); $this->assignRef('pagination', $model->pagination); // zusätzliche Funktionalitäten JHTML::_('behavior.tooltip'); parent::display(); }
protected function setToolbar() { // Get the toolbar object instance $bar = JToolBar::getInstance('toolbar'); // Set the titlebar text JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_USER_MANAGER'), 'users'); JToolBarHelper::spacer(); JToolBarHelper::editList(); JToolBarHelper::custom('logout', 'cancel.png', 'cancel_f2.png', 'COM_KUNENA_LOGOUT'); JToolBarHelper::divider(); JToolBarHelper::custom('move', 'move.png', 'move_f2.png', 'COM_KUNENA_MOVE_USERMESSAGES'); if (version_compare(JVERSION, '3.0', '>')) { JHtml::_('bootstrap.modal', 'moderateModal'); $title = JText::_('COM_KUNENA_VIEW_USERS_TOOLBAR_ASSIGN_MODERATORS'); $dhtml = "<button data-toggle=\"modal\" data-target=\"#moderateModal\" class=\"btn btn-small\">\n\t\t\t\t\t\t<i class=\"icon-checkbox-partial\" title=\"{$title}\"> </i>\n\t\t\t\t\t\t\t{$title}</button>"; $bar->appendButton('Custom', $dhtml, 'batch'); } else { JHtml::_('moobootstrap.modal', 'moderateModal'); $title = JText::_('COM_KUNENA_VIEW_USERS_TOOLBAR_ASSIGN_MODERATORS'); $dhtml = "<a data-toggle=\"modal\" data-target=\"#moderateModal\" class=\"toolbar\" href=\"javascript:void(null);\">\n\t\t\t\t\t\t<span class=\"icon-32-apply\" title=\"{$title}\"></span>\n\t\t\t\t\t\t\t{$title}</a>"; $bar->appendButton('Custom', $dhtml, 'batch'); } JToolBarHelper::divider(); JToolBarHelper::custom('trashusermessages', 'trash.png', 'icon-32-move.png', 'COM_KUNENA_TRASH_USERMESSAGES'); JToolBarHelper::deleteList(); JToolBarHelper::spacer(); }
function display() { // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung $model =& $this->getModel(); // Die Toolbar erstellen, die über der Seite angezeigt wird $adminLink = new AdminLink(); $adminLink->view = "turform"; $adminLink->more = array('task' => 'edit', 'id' => $model->param['id']); $adminLink->makeURL(); require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php'; JToolBarHelper::title('<a href="' . $adminLink->url . '">' . $model->turnier->name . "</a>: " . JText::_('PLAYERS_ADD'), 'clm_turnier.png'); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::spacer(); JToolBarHelper::cancel(); // das MainMenu abschalten JRequest::setVar('hidemainmenu', 1); // Daten an Template übergeben $this->assignRef('user', $model->user); $this->assignRef('playerlist', $model->PlayersList); $this->assignRef('form', $model->form); $this->assignRef('param', $model->param); $this->assignRef('pagination', $model->pagination); // zusätzliche Funktionalitäten JHTML::_('behavior.tooltip'); parent::display(); }
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'; }
/** * 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. */ public function display($tpl = null) { $uri = JFactory::getURI(); $uri_string = $uri->toString(); $canDo = BwPostmanHelper::getActions(); //check for queue entries $this->queueEntries = BwPostmanHelper::checkQueueEntries(); // Get data from the model $this->archive = $this->get('Archivedata'); $this->general = $this->get('Generaldata'); $this->canDo = $canDo; $this->request_url = $uri_string; // Get document object, set document title and add css $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_BWPOSTMAN')); $document->addStyleSheet(JURI::root(true) . '/administrator/components/com_bwpostman/assets/css/bwpostman_backend.css'); // Set toolbar title JToolBarHelper::title(JText::_('COM_BWPOSTMAN'), 'envelope'); // Set toolbar items for the page if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_bwpostman', '500', '900'); JToolBarHelper::spacer(); JToolBarHelper::divider(); JToolBarHelper::spacer(); } JToolBarHelper::help(JText::_("COM_BWPOSTMAN_FORUM"), false, 'http://www.boldt-webservice.de/forum/bwpostman.html'); JToolBarHelper::spacer(); BwPostmanHelper::addSubmenu('bwpostman'); $this->sidebar = JHtmlSidebar::render(); parent::display($tpl); }
function overview($tpl = null) { // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css'); } else { JHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } $document =& JFactory::getDocument(); $document->setTitle(JText::_('ICAL_EVENTS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('ICAL_EVENTS'), 'jevents'); //JToolBarHelper::custom('icalevent.csvimport','upload.png','upload.png','JEV_ADMIN_CSVIMPORT',false); JToolBarHelper::publishList('icalevent.publish'); JToolBarHelper::unpublishList('icalevent.unpublish'); JToolBarHelper::addNew('icalevent.edit'); JToolBarHelper::editList('icalevent.edit'); JToolBarHelper::custom('icalevent.editcopy', 'copy.png', 'copy.png', 'JEV_ADMIN_COPYEDIT'); JToolBarHelper::deleteList('Delete Event and all repeats?', 'icalevent.delete'); JToolBarHelper::spacer(); JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false); //JToolBarHelper::help( 'screen.ical', true); JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->getValue("section",0); JHTML::_('behavior.tooltip'); }
/** * 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(); }
function display($tpl = null) { $prod =& $this->get('Data'); $isNew = $prod->id < 1; $text = $isNew ? JText::_("NEW") : JText::_("EDIT"); JToolBarHelper::title(JText::_("PRODUCT") . ': <small><small>[ ' . $text . ' ]</small></small>', 'fst_prods'); if (FST_Helper::Is16()) { JToolBarHelper::custom('translate', 'translate', 'translate', 'Translate', false); JToolBarHelper::spacer(); } JToolBarHelper::save(); if ($isNew) { JToolBarHelper::cancel(); } else { // for existing items the button is renamed `close` JToolBarHelper::cancel('cancel', 'Close'); } FSTAdminHelper::DoSubToolbar(); $this->assignRef('prod', $prod); $path = JPATH_SITE . DS . 'images' . DS . 'fst' . DS . 'products'; if (!file_exists($path)) { mkdir($path, 0777, true); } $files = JFolder::files($path, '(.png$|.jpg$|.jpeg$|.gif$)'); $sections[] = JHTML::_('select.option', '', JText::_("NO_IMAGE"), 'id', 'title'); foreach ($files as $file) { $sections[] = JHTML::_('select.option', $file, $file, 'id', 'title'); } $lists['images'] = JHTML::_('select.genericlist', $sections, 'image', 'class="inputbox" size="1" ', 'id', 'title', $prod->image); $this->assignRef('lists', $lists); parent::display($tpl); }
function display($tpl = NULL) { // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung $model = $this->getModel(); clm_core::$load->load_css("icons_images"); JToolBarHelper::title(JText::_('TITLE_TERMINE'), 'clm_headmenu_termine.png'); JToolBarHelper::custom('catmain', 'forward.png', 'forward_f2.png', JText::_('JCATEGORIES'), false); JToolBarHelper::addNew(); JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', JText::_('TERMINE_COPY')); JToolBarHelper::spacer(); JToolBarHelper::editList(); JToolBarHelper::spacer(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $clmAccess = clm_core::$access; if ($clmAccess->access('BE_event_delete') !== false) { JToolBarHelper::spacer(); JToolBarHelper::custom('delete', 'delete.png', 'delete_f2.png', JText::_('TERMINE_DELETE')); } // Daten an Template übergeben $this->assignRef('user', $model->user); $this->assignRef('termine', $model->termine); $this->assignRef('form', $model->form); $this->assignRef('param', $model->param); $this->assignRef('pagination', $model->pagination); // zusätzliche Funktionalitäten JHtml::_('behavior.tooltip'); parent::display(); }