本文整理汇总了PHP中JToolBarHelper::spacer方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::spacer方法的具体用法?PHP JToolBarHelper::spacer怎么用?PHP JToolBarHelper::spacer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JToolBarHelper
的用法示例。
在下文中一共展示了JToolBarHelper::spacer方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
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);
}
示例2: toolbar
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;
}
}
示例3: addToolBar
/**
* 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);
}
示例4: display
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);
}
示例5: setToolBarDefault
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();
}
示例6: display
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();
}
示例7: setToolBarEdit
protected function setToolBarEdit() {
JToolBarHelper::title ( ' ', 'kunena.png' );
JToolBarHelper::spacer();
JToolBarHelper::save('save');
JToolBarHelper::spacer();
JToolBarHelper::cancel('ranks');
}
示例8: overview
/**
* 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');
}
示例9: display
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);
}
示例10: display
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);
}
示例11: display
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'));
}
示例12: display
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);
}
示例13: setToolbar
/**
*
*/
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);
}
示例14: display
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();
}
示例15: setToolbar
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 );
}