本文整理汇总了PHP中JToolBarHelper::deleteList方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::deleteList方法的具体用法?PHP JToolBarHelper::deleteList怎么用?PHP JToolBarHelper::deleteList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JToolBarHelper
的用法示例。
在下文中一共展示了JToolBarHelper::deleteList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$state = $this->get('State');
$canDo = MessagesHelper::getActions();
JToolBarHelper::title(JText::_('COM_MESSAGES_MANAGER_MESSAGES'), 'inbox.png');
if ($canDo->get('core.create')) {
JToolBarHelper::addNew('message.add');
}
if ($canDo->get('core.edit.state')) {
JToolBarHelper::divider();
JToolBarHelper::publish('messages.publish', 'COM_MESSAGES_TOOLBAR_MARK_AS_READ');
JToolBarHelper::unpublish('messages.unpublish', 'COM_MESSAGES_TOOLBAR_MARK_AS_UNREAD');
}
if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
JToolBarHelper::divider();
JToolBarHelper::deleteList('', 'messages.delete', 'JTOOLBAR_EMPTY_TRASH');
} else {
if ($canDo->get('core.edit.state')) {
JToolBarHelper::divider();
JToolBarHelper::trash('messages.trash');
}
}
//JToolBarHelper::addNew('module.add');
JToolBarHelper::divider();
$bar = JToolBar::getInstance('toolbar');
$bar->appendButton('Popup', 'options', 'COM_MESSAGES_TOOLBAR_MY_SETTINGS', 'index.php?option=com_messages&view=config&tmpl=component', 850, 400);
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_messages');
}
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_COMPONENTS_MESSAGING_INBOX');
}
示例2: _setToolbar
/**
* Setup the Toolbar.
*/
protected function _setToolbar()
{
$state = $this->get('State');
$canDo = TemplatesHelper::getActions();
$isSite = $state->get('filter.client_id') == 0;
if ($canDo->get('core.edit')) {
JToolBarHelper::editList('style.edit');
}
if ($canDo->get('core.edit.state')) {
JToolBarHelper::custom('styles.sethome', 'default.png', 'default_f2.png', 'Templates_Toolbar_Set_Home', true);
}
JToolBarHelper::title(JText::_('Templates_Manager_Styles'), 'thememanager');
if ($canDo->get('core.create') && $isSite) {
JToolBarHelper::addNew('styles.duplicate', 'Templates_Toolbar_Save_Copy');
}
if ($canDo->get('core.delete') && $isSite) {
JToolBarHelper::deleteList('', 'styles.delete');
}
if ($canDo->get('core.admin')) {
JToolBarHelper::divider();
JToolBarHelper::preferences('com_templates');
}
JToolBarHelper::divider();
JToolBarHelper::help('screen.templates');
}
示例3: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = UsersHelper::getActions();
JToolBarHelper::title(JText::_('COM_USERS_VIEW_USERS_TITLE'), 'user');
if ($canDo->get('core.create')) {
JToolBarHelper::addNew('user.add');
}
if ($canDo->get('core.edit')) {
JToolBarHelper::editList('user.edit');
}
if ($canDo->get('core.edit.state')) {
JToolBarHelper::divider();
JToolBarHelper::publish('users.activate', 'COM_USERS_TOOLBAR_ACTIVATE', true);
JToolBarHelper::unpublish('users.block', 'COM_USERS_TOOLBAR_BLOCK', true);
JToolBarHelper::custom('users.unblock', 'unblock.png', 'unblock_f2.png', 'COM_USERS_TOOLBAR_UNBLOCK', true);
JToolBarHelper::divider();
}
if ($canDo->get('core.delete')) {
JToolBarHelper::deleteList('', 'users.delete');
JToolBarHelper::divider();
}
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_users');
JToolBarHelper::divider();
}
JToolBarHelper::help('JHELP_USERS_USER_MANAGER');
}
示例4: addToolBar
/**
* Setting the toolbar
*/
protected function addToolBar()
{
JToolBarHelper::addNew('portfolio.add');
JToolBarHelper::editList('portfolio.edit');
JToolBarHelper::custom('portfolios.rebuild', 'refresh.png', 'refresh_f2.png', 'COM_BT_PORTFOLIO_PORTFOLIOS_REBUILD_IMAGES', false);
JToolBarHelper::divider();
JToolBarHelper::title(JText::_('COM_BT_PORTFOLIO_PORTFOLIOS_MANAGER'), 'portfolio.png');
JToolBarHelper::publish('portfolios.publish', 'JTOOLBAR_PUBLISH', true);
JToolBarHelper::unpublish('portfolios.unpublish', 'JTOOLBAR_UNPUBLISH', true);
JToolBarHelper::custom('portfolios.featured', 'featured.png', 'featured_f2.png', 'JFEATURED', true);
JToolBarHelper::divider();
JToolBarHelper::checkin('portfolios.checkin');
JToolBarHelper::deleteList('', 'portfolios.delete');
JToolBarHelper::preferences('com_bt_portfolio');
$this->sidebar = '';
Bt_portfolioHelper::addSubmenu(JRequest::getCmd('view', 'cpanel'));
//added since 2.0 for j3.0
if (!$this->legacy) {
JHtmlSidebar::setAction('index.php?option=com_bt_portfolio&view=portfolios');
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', Bt_portfolioHelper::getPublishedOptions(), 'value', 'text', $this->state->get('filter.published'), true));
JHtmlSidebar::addFilter(JText::_('COM_BT_PORTFOLIO_SELECT_FEATURED'), 'filter_featured', JHtml::_('select.options', Bt_portfolioHelper::getFeaturedOptions(), 'value', 'text', $this->state->get('filter.featured'), true));
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_catid', JHtml::_('select.options', Bt_portfolioHelper::getCategoryOptions(), 'value', 'text', $this->state->get('filter.catid')));
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_LANGUAGE'), 'filter_language', JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language')));
$this->sidebar = JHtmlSidebar::render();
}
}
示例5: displayList
function displayList($tpl = null)
{
JToolBarHelper::title(_JSHOP_LIST_ATTRIBUTES, 'generic.png');
JToolBarHelper::addNew();
JToolBarHelper::deleteList();
parent::display($tpl);
}
示例6: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$state = $this->get('State');
$canDo = TemplatesHelper::getActions();
$isSite = $state->get('filter.client_id') == 0;
JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_STYLES'), 'thememanager');
if ($canDo->get('core.edit.state')) {
JToolBarHelper::makeDefault('styles.setDefault', 'COM_TEMPLATES_TOOLBAR_SET_HOME');
JToolBarHelper::divider();
}
if ($canDo->get('core.edit')) {
JToolBarHelper::editList('style.edit');
}
if ($canDo->get('core.create')) {
JToolBarHelper::custom('styles.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true);
JToolBarHelper::divider();
}
if ($canDo->get('core.delete')) {
JToolBarHelper::deleteList('', 'styles.delete');
JToolBarHelper::divider();
}
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_templates');
JToolBarHelper::divider();
}
JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES');
}
示例7: addToolbar
protected function addToolbar()
{
JToolBarHelper::title(JText::_('COM_JDEVELOPER_OVERRIDES'));
JToolBarHelper::editList('template.edit', 'JTOOLBAR_EDIT');
JToolBarHelper::deleteList('', 'overrides.delete', 'JTOOLBAR_DELETE');
JToolBarHelper::preferences('com_jdeveloper');
}
示例8: display
function display($tpl = null)
{
$mainframe = JFactory::getApplication();
$user = JFactory::getUser();
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
$limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
$limitstart = $mainframe->getUserStateFromRequest($option . $view . '.limitstart', 'limitstart', 0, 'int');
$filter_order = $mainframe->getUserStateFromRequest($option . $view . 'filter_order', 'filter_order', '', 'cmd');
$filter_order_Dir = $mainframe->getUserStateFromRequest($option . $view . 'filter_order_Dir', 'filter_order_Dir', '', 'word');
$model = $this->getModel();
$total = $model->getTotalGroups();
if ($limitstart > $total - $limit) {
$limitstart = max(0, (int) (ceil($total / $limit) - 1) * $limit);
JRequest::setVar('limitstart', $limitstart);
}
$extraFieldGroups = $model->getGroups();
$this->assignRef('rows', $extraFieldGroups);
jimport('joomla.html.pagination');
$pageNav = new JPagination($total, $limitstart, $limit);
$this->assignRef('page', $pageNav);
JToolBarHelper::title(JText::_('K2_EXTRA_FIELD_GROUPS'), 'k2.png');
JToolBarHelper::deleteList('', 'remove', 'K2_DELETE');
JToolBarHelper::editList();
JToolBarHelper::addNew();
if (K2_JVERSION != '15') {
JToolBarHelper::preferences('com_k2', 550, 875, 'K2_PARAMETERS');
} else {
$toolbar = JToolBar::getInstance('toolbar');
$toolbar->appendButton('Popup', 'config', 'Parameters', 'index.php?option=com_k2&view=settings');
}
$this->loadHelper('html');
K2HelperHTML::subMenu();
parent::display($tpl);
}
示例9: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
require_once JPATH_COMPONENT . '/helpers/faqs.php';
$state = $this->get('State');
$canDo = FaqsHelper::getActions($state->get('filter.category_id'));
$user = JFactory::getUser();
JToolBarHelper::title(JText::_('COM_FAQS_MANAGER_FAQS'), 'faqs.png');
if (count($user->getAuthorisedCategories('com_faqs', 'core.create')) > 0) {
JToolBarHelper::addNew('faq.add');
}
if ($canDo->get('core.edit')) {
JToolBarHelper::editList('faq.edit');
}
if ($canDo->get('core.edit.state')) {
JToolBarHelper::divider();
JToolBarHelper::publish('faqs.publish', 'JTOOLBAR_PUBLISH', true);
JToolBarHelper::unpublish('faqs.unpublish', 'JTOOLBAR_UNPUBLISH', true);
JToolBarHelper::divider();
JToolBarHelper::archiveList('faqs.archive');
JToolBarHelper::checkin('faqs.checkin');
}
if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
JToolBarHelper::deleteList('', 'faqs.delete', 'JTOOLBAR_EMPTY_TRASH');
JToolBarHelper::divider();
} elseif ($canDo->get('core.edit.state')) {
JToolBarHelper::trash('faqs.trash');
JToolBarHelper::divider();
}
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_faqs');
JToolBarHelper::divider();
}
JToolBarHelper::help('JHELP_COMPONENTS_FAQS_LINKS');
}
示例10: addToolbar
/**
* Adds the page title and toolbar.
*
*/
protected function addToolbar()
{
$user = JFactory::getUser();
$asset = 'com_pfdesigns';
JToolBarHelper::title(JText::_('COM_PROJECTFORK_DESIGNS_ALBUMS_TITLE'), 'article.png');
if ($user->authorise('core.create', $asset)) {
JToolBarHelper::addNew('album.add');
}
if ($user->authorise('core.edit', $asset) || $user->authorise('core.edit.own', $asset)) {
JToolBarHelper::editList('album.edit');
}
if ($user->authorise('core.edit.state', $asset)) {
JToolBarHelper::divider();
JToolBarHelper::publish('albums.publish', 'JTOOLBAR_PUBLISH', true);
JToolBarHelper::unpublish('albums.unpublish', 'JTOOLBAR_UNPUBLISH', true);
JToolBarHelper::divider();
JToolBarHelper::archiveList('albums.archive');
JToolBarHelper::checkin('albums.checkin');
}
if ($this->state->get('filter.published') == -2 && $user->authorise('core.delete', $asset)) {
JToolBarHelper::deleteList('', 'albums.delete', 'JTOOLBAR_EMPTY_TRASH');
JToolBarHelper::divider();
} elseif ($user->authorise('core.edit.state', $asset)) {
JToolBarHelper::trash('albums.trash');
JToolBarHelper::divider();
}
if (version_compare(JVERSION, '3', 'ge')) {
JHtmlSidebar::setAction('index.php?option=com_pfdesigns&view=albums');
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_AUTHOR'), 'filter_author_id', JHtml::_('select.options', $this->authors, 'value', 'text', $this->state->get('filter.author_id')));
}
}
示例11: addToolbar
protected function addToolbar()
{
JToolBarHelper::addNew('player_add');
JToolBarHelper::editList('player_edit');
JToolBarHelper::title(JText::_('BLBE_PLAYER_LIST'), 'player.png');
JToolBarHelper::deleteList('', 'player_del', JText::_('BLBE_DELETE'));
}
示例12: display
function display($tpl = null)
{
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_mijopolls/assets/css/mijopolls.css');
$title = $this->get('Title');
$t_title = $title ? JText::_('COM_MIJOPOLLS_VOTES_FOR') . ': ' . $title : JText::_('COM_MIJOPOLLS_SELECT_POLL');
JToolBarHelper::title($t_title, 'mijopolls');
JToolBarHelper::deleteList(JText::_('COM_MIJOPOLLS_DELETE_CONFIRM'), "deleteVotes", JText::_('COM_MIJOPOLLS_DELETE'), true);
JToolBarHelper::divider();
JToolBarHelper::preferences('com_mijopolls', 500);
$this->mainframe = JFactory::getApplication();
$this->option = JRequest::getWord('option');
$filter_order = $this->mainframe->getUserStateFromRequest($this->option . '.votes.filter_order', 'filter_order', 'v.date', 'cmd');
$filter_order_Dir = $this->mainframe->getUserStateFromRequest($this->option . '.votes.filter_order_Dir', 'filter_order_Dir', '', 'word');
$search = $this->mainframe->getUserStateFromRequest($this->option . '.votes.search', 'search', '', 'string');
// Get data from the model
$lists = $this->get('List');
// table ordering
$lists['order_Dir'] = $filter_order_Dir;
$lists['order'] = $filter_order;
// search filter
$lists['search'] = $search;
$this->title = $title;
$this->lists = $lists;
$this->votes = $this->get('Data');
$this->pagination = $this->get('Pagination');
$this->poll_id = JRequest::getInt('id', 0);
parent::display($tpl);
}
示例13: __construct
function __construct($default = array())
{
parent::__construct($default);
$task = JRequest::getWord('task', '');
switch ($task) {
case 'add':
case 'save':
case 'apply':
case 'edit':
JToolBarHelper::apply();
JToolBarHelper::save();
JToolBarHelper::cancel();
break;
default:
JToolBarHelper::addNew();
JToolBarHelper::deleteList();
JToolBarHelper::makeDefault('publish');
break;
}
// Register Extra tasks
JRequest::setVar('view', 'services');
$this->registerTask('add', 'edit');
$this->registerTask('apply', 'save');
$this->registerTask('publish', 'setDefault');
}
示例14: display
function display($tpl = null)
{
JToolBarHelper::title(JText::_('GURU_ORDER_MANAGER_TITLE'), 'generic.png');
JToolBarHelper::custom('approve_order', 'publish', 'publish', JText::_('GURU_APROVE'), false);
JToolBarHelper::custom('make_pending', 'forward.png', 'forward_f2.png', JText::_('GURU_MAKE_PENDING'), false);
JToolBarHelper::addNew();
JToolBarHelper::deleteList(JText::_('GURU_CONFIRM_DEL'));
$orders = $this->get('Items');
$pagination = $this->get('Pagination');
$this->assignRef('orders', $orders);
$this->assignRef('pagination', $pagination);
@($configs->time_format = "Y-m-d");
$now = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
$tomorrow = $now + 3600 * 24;
$start_month = mktime(0, 0, 0, date("m"), 1, date("Y"));
$end_month = mktime(0, 0, 0, date("m") + 1, 1, date("Y")) - 3600 * 24;
$start_month1 = mktime(0, 0, 0, date("m") - 1, 1, date("Y"));
$end_month1 = mktime(0, 0, 0, date("m"), 1, date("Y")) - 3600 * 24;
$dates['start_date']['today'] = date($configs->time_format);
$dates['end_date']['today'] = date($configs->time_format);
$dates['start_date']['yesterday'] = date($configs->time_format, $now - 3600 * 24);
$dates['end_date']['yesterday'] = date($configs->time_format, $now - 3600 * 24);
$dates['start_date']['lastweek'] = date($configs->time_format, $now - 3600 * 24 * 7);
$dates['end_date']['lastweek'] = date($configs->time_format, $now);
$dates['start_date']['thismonth'] = date($configs->time_format, $start_month);
$dates['end_date']['thismonth'] = date($configs->time_format, $end_month);
$dates['start_date']['lastmonth'] = date($configs->time_format, $start_month1);
$dates['end_date']['lastmonth'] = date($configs->time_format, $end_month1);
$this->assign("dates", $dates);
$datetype = $this->get('DateType');
$this->assignRef('datetype', $datetype);
parent::display($tpl);
}
示例15: addButton
public static function addButton()
{
$task = JRequest::getVar('task');
$controller = JRequest::getVar('controller');
switch (strtoupper($controller)) {
case 'LOAINHA':
$title = 'Loại nhà';
break;
case 'CAPCONGTRINH':
$title = 'Cấp công trình';
break;
case 'TAISAN':
$title = 'Tài sản';
break;
default:
$title = '';
break;
}
switch ($task) {
case 'add':
case 'edit':
JToolBarHelper::save('save', 'Lưu và đóng');
JToolBarHelper::cancel('cancel', 'Huỷ bỏ');
break;
default:
JToolBarHelper::title(JText::_('Danh mục ' . $title . ': [Danh sách]'), 'generic.png');
JToolBarHelper::addNew('add', 'Thêm mới');
JToolBarHelper::deleteList(null, 'remove', 'Xóa');
JToolBarHelper::publish('publish', 'Bật trạng thái');
JToolBarHelper::unpublish('unpublish', 'Tắt trạng thái');
break;
}
}