本文整理汇总了PHP中JToolBarHelper::editListX方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::editListX方法的具体用法?PHP JToolBarHelper::editListX怎么用?PHP JToolBarHelper::editListX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JToolBarHelper
的用法示例。
在下文中一共展示了JToolBarHelper::editListX方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setVereineToolbar
function setVereineToolbar()
{
// Menubilder laden
require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
JToolBarHelper::title(JText::_('TITLE_VEREIN'), 'clm_headmenu_vereine.png');
if (CLM_usertype === 'admin') {
JToolBarHelper::custom('copy_saison', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY_LAST_YEAR', false);
}
//if (CLM_sl_count !== '0' OR CLM_usertype === 'admin') {
if (CLM_usertype === 'admin' || CLM_usertype === 'sl') {
JToolBarHelper::custom('gruppen', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_GROUP_EDIT', false);
JToolBarHelper::custom('rangliste', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_RANG_EDIT', false);
}
if (CLM_usertype === 'admin' or CLM_usertype === 'dv' or CLM_usertype === 'dwz') {
JToolBarHelper::custom('dwz', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_MEMBER_EDIT', false);
}
if (CLM_usertype === 'admin' || CLM_usertype === 'dv' || CLM_usertype === 'sl') {
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
}
if (CLM_usertype === 'admin') {
JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY');
JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', 'VEREIN_BUTTON_DEL', false);
}
JToolBarHelper::editListX();
if (CLM_usertype === 'admin') {
JToolBarHelper::custom('add', 'new.png', 'new_f2.png', 'VEREIN_BUTTON_NEW', false);
}
JToolBarHelper::help('screen.clm.verein');
}
示例2: display
function display($tpl = null)
{
$document =& JFactory::getDocument();
$document->addStyleSheet('components/com_acepolls/assets/css/acepolls.css');
JToolBarHelper::title(JText::_('COM_ACEPOLLS_POLLS'), 'acepolls');
JToolBarHelper::addNewX();
JToolBarHelper::editListX();
JToolBarHelper::deleteList();
JToolBarHelper::divider();
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
JToolBarHelper::divider();
JToolBarHelper::custom('resetVotes', 'cancel.png', 'cancel.png', JText::_('COM_ACEPOLLS_RESET_VOTES'), true, false);
JToolBarHelper::preferences('com_acepolls');
$this->mainframe = JFactory::getApplication();
$this->option = JRequest::getWord('option');
$filter_order = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_order', 'filter_order', 'm.title', 'string');
$filter_order_Dir = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_order_Dir', 'filter_order_Dir', '', 'word');
$filter_state = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_state', 'filter_state', '', 'word');
$search = $this->mainframe->getUserStateFromRequest($this->option . '.polls.search', 'search', '', 'string');
JHTML::_('behavior.tooltip');
// state filter
$lists['state'] = JHTML::_('grid.state', $filter_state);
// table ordering
$lists['order_Dir'] = $filter_order_Dir;
$lists['order'] = $filter_order;
// search filter
$lists['search'] = $search;
$this->assignRef('user', JFactory::getUser());
$this->assignRef('lists', $lists);
$this->assignRef('items', $this->get('Data'));
$this->assignRef('pagination', $this->get('Pagination'));
parent::display($tpl);
}
示例3: display
public function display()
{
jimport('joomla.html.pagination');
// get database
$this->db = JFactory::getDBO();
// set toolbar items
$this->joomla->set('JComponentTitle', $this->application->getToolbarTitle(JText::_('Items')));
JToolBarHelper::custom('docopy', 'copy.png', 'copy_f2.png', 'Copy');
JToolBarHelper::deleteList();
JToolBarHelper::editListX();
JToolBarHelper::addNewX();
ZooHelper::toolbarHelp();
JHTML::_('behavior.tooltip');
$state_prefix = $this->option . '_' . $this->application->id . '.submission';
$filter_order = $this->joomla->getUserStateFromRequest($state_prefix . 'filter_order', 'filter_order', 'name', 'cmd');
$filter_order_Dir = $this->joomla->getUserStateFromRequest($state_prefix . 'filter_order_Dir', 'filter_order_Dir', 'desc', 'word');
$table = YTable::getInstance('submission');
$this->groups = ZooHelper::getGroups();
// get data from the table
$where = array();
// application filter
$where[] = 'application_id = ' . (int) $this->application->id;
$options = array('conditions' => array(implode(' AND ', $where)), 'order' => $filter_order . ' ' . $filter_order_Dir);
$this->submissions = $table->all($options);
$this->submissions = array_merge($this->submissions);
// table ordering and search filter
$this->lists['order_Dir'] = $filter_order_Dir;
$this->lists['order'] = $filter_order;
// display view
$this->getView()->display();
}
示例4: addToolBar
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_webtv_MANAGER_excercises'), 'webtv');
JToolBarHelper::deleteListX('', 'excercises.delete');
JToolBarHelper::editListX('exercise.edit');
JToolBarHelper::addNewX('exercise.add');
}
示例5: display
/**
* Easybook view display method
* @return void
**/
function display($tpl = null)
{
global $mainframe;
JToolBarHelper::title(JText::_('Easybook'), 'easybook');
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
JToolBarHelper::deleteList();
JToolBarHelper::editListX();
JToolBarHelper::addNewX();
JToolBarHelper::preferences('com_easybook', '500');
JHTML::_('stylesheet', 'easybook.css', 'administrator/components/com_easybook/css/');
// Get data from the model
$items =& $this->get('Data');
$pagination = $this->get('Pagination');
$version =& $this->get('Version');
switch ($version->checkVersion(_EASYBOOK_VERSION)) {
case 1:
$this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/shield.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #e2ad43;'><b>" . JTEXT::_('no updates available') . "</b></span></a></div>");
break;
case -1:
$this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/box.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #ce763a;'><b>" . JTEXT::_('updates available') . "</b> EasyBook " . $version->_current . "</span></a></div>");
break;
case -2:
$this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/fail.gif' border='0' style='vertical-align: middle; padding-right: 5px;'/><span style='color: #e34639;'><b>" . JTEXT::_('connection failed') . "</b></span></a></div>");
break;
}
$this->assignRef('pagination', $pagination);
$this->assignRef('items', $items);
parent::display($tpl);
}
示例6: display
/**
* Playlists view display method
* @return void
**/
function display($tpl = null)
{
AvrGenericHelper::addCSS('.icon-48-avreloaded {background-image:url(' . JURI::root() . '/administrator/components/com_avreloaded/assets/avreloaded-48x48.png);}');
JToolBarHelper::title(JText::_('AVR_TITLE_MANAGE_PLAYLISTS') . ' - AllVideos Reloaded', 'avreloaded');
$vdir = AvrGenericHelper::getVdir();
$app =& JFactory::getApplication();
$folder = $app->getUserStateFromRequest('com_avreloaded.playlists_folder', 'folder', $vdir);
// Get data from the model
$fselect = $this->_getFolderSelect($vdir, $folder);
$lists =& $this->_getViewLists($app, $folder);
$model =& $this->getModel();
$items =& $model->getData();
if (count($items)) {
JToolBarHelper::deleteList();
JToolBarHelper::editListX();
}
JToolBarHelper::addNewX();
JToolBarHelper::help('playlists', true);
$files = '';
foreach ($items as $i => $item) {
if ($i > 0) {
$files .= ',';
}
$files .= "'" . basename($item->filename) . "'";
}
$this->assignRef('items', $items);
$this->assignRef('lists', $lists);
$this->assignRef('fselect', $fselect);
$this->assignRef('files', $files);
parent::display($tpl);
}
示例7: display
function display($tpl = null)
{
JToolBarHelper::title(JText::_('Счета'), 'Bill');
JToolBarHelper::deleteList();
JToolBarHelper::editListX();
JToolBarHelper::addNewX();
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
$act = array();
$items =& $this->get('Data');
$users =& $this->get('users');
foreach ($users as $u) {
$act[$u->id] = $u->name;
}
$users = $act;
$profiles =& $this->get('profiles');
foreach ($profiles as $p) {
$act[$p->id] = $p->name;
}
$profiles = $act;
$this->assignRef('items', $items);
$this->assignRef('users', $users);
$this->assignRef('profiles', $profiles);
$pagination =& $this->get('Pagination');
$this->assignRef('pagination', $pagination);
global $option;
$apl = JFactory::getApplication();
$filter_order = $apl->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'published');
$filter_order_Dir = JString::strtoupper($apl->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'ASC'));
$lists = array();
$lists['order_Dir'] = $filter_order_Dir;
$lists['order'] = $filter_order;
$this->assignRef('lists', $lists);
parent::display($tpl);
}
示例8: display
/**
* Channels view display method
* @return void
**/
function display($tpl = null)
{
// Require specific controller if requested
$path = JPATH_COMPONENT . DS . 'controllers' . DS . 'orbitscriptsapi.php';
if (file_exists($path)) {
require_once $path;
}
// Create the controller
$orbitscriptsapi = new OrbitscriptsControllerOrbitscriptsApi();
JToolBarHelper::title(JText::_('<%SITE_NAME%> Ads Manager'), 'orbitscriptsads64.png');
if (file_exists(JPATH_ROOT . '/modules/mod_orbitscripts_ads/mod_orbitscripts_ads.php')) {
$msg = $orbitscriptsapi->testconnect();
if ($msg['code'] == 0) {
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
JToolBarHelper::addNewX('add', 'Create New Channel');
JToolBarHelper::editListX('edit', 'Edit Related Module');
JToolBarHelper::deleteList();
} else {
JError::raiseWarning(100, 'Warning: API return error. Code: <b>' . $msg['code'] . ' - ' . $msg['msg'] . '</b>. You cannot add new channels. Please check "Preferences".');
}
} else {
JError::raiseWarning(100, 'Warning: mod_orbitscripts_ads not found. You cannot add new channels. Please install this module.');
}
JToolBarHelper::Preferences('com_orbitscriptsads', '300', '570');
// Get data from the model
$items =& $this->get('Data');
$this->assignRef('items', $items);
parent::display($tpl);
}
示例9: addToolBar
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_COCOATEREALESTATE_MANAGER_OBJECTS'));
JToolBarHelper::deleteListX('', 'objects.delete');
JToolBarHelper::editListX('object.edit');
JToolBarHelper::addNewX('object.add');
}
示例10: display
/**
* List view display method
*
* Displays a list of all workflows available in the database
*
* @return void
**/
function display()
{
$app =& JFactory::getApplication();
JHTML::_('stylesheet', 'list.css', 'media/com_jwf/css/');
//Toolbar
JToolBarHelper::title(JText::_('JWF'), 'jwf-logo');
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
JToolBarHelper::deleteList(JText::_('Are you sure?'), 'delete', 'Delete');
JToolBarHelper::editListX();
JToolBarHelper::addNew();
//Get the model
$model =& $this->getModel();
$context = 'com_jwf.pending_items';
$limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'int');
$limitStart = $app->getUserStateFromRequest($context . 'limitstart', 'limitstart', 0, 'int');
$response = $model->search($limitStart, $limit, '', false);
// Create the pagination object
jimport('joomla.html.pagination');
$pagination = new JPagination($response['requestTotal'], $limitStart, $limit);
//Send data to the view
$this->assignRef('workflows', $response['workflows']);
$this->assignRef('pagination', $pagination);
//Display the template
parent::display();
}
示例11: addToolBar
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'));
JToolBarHelper::deleteListX('', 'helloworlds.delete');
JToolBarHelper::editListX('helloworld.edit');
JToolBarHelper::addNewX('helloworld.add');
}
示例12: display
public function display($tpl = null)
{
// Set toolbar items for the page
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
JToolBarHelper::deleteList();
JToolBarHelper::editListX();
JToolBarHelper::addNewX();
JToolBarHelper::preferences('com_simplelists', '480');
JHTML::_('behavior.tooltip');
// Automatically fetch items, total and pagination - and assign them to the template
$this->fetchItems();
// Re-order the items by parent
$listview = $this->getFilter('listview');
if ($listview == 'tree') {
$tree = new SimplelistsCategoryTree();
$tree->setItems($this->items);
$this->items = $tree->getList();
} else {
$listview = 'flat';
}
// Listview box
$options[] = array('id' => 'tree', 'title' => 'Tree');
$options[] = array('id' => 'flat', 'title' => 'Flat list');
$extra = 'onchange="document.adminForm.submit();"';
$this->lists['listview'] = JHTML::_('select.genericlist', $options, 'filter_listview', $extra, 'id', 'title', $listview);
parent::display($tpl);
}
示例13: _setToolBar
function _setToolBar()
{
JToolBarHelper::title(JText::_('MAPPING GROUPS'), 'mapping');
JToolBarHelper::addNewX();
JToolBarHelper::editListX();
JToolBarHelper::deleteListX();
}
示例14: _setToolBar
/**
* Установки тулбара
*/
protected function _setToolBar()
{
require_once JPATH_COMPONENT . '/helpers/smfaq.php';
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
SmFaqHelper::addSubmenu($this->_name);
$canDo = SmFaqHelper::getActions($this->state->get('filter.category_id'));
// Выводим нужные кнопки и заголовок
JToolBarHelper::title(JText::_('COM_SMFAQ_MANAGER_QUESTIONS'), 'smfaq');
if ($canDo->get('core.create')) {
JToolBarHelper::addNewX('smfaq.add', 'JTOOLBAR_NEW');
}
if ($canDo->get('core.edit')) {
JToolBarHelper::editListX('smfaq.edit', 'JTOOLBAR_EDIT');
}
JToolBarHelper::divider();
JToolBarHelper::custom('smfaqlist.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true);
JToolBarHelper::custom('smfaqlist.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
JToolBarHelper::divider();
JToolBarHelper::checkin('smfaqlist.checkin');
// Замена тулбара карзины на удаление
if ($this->state->get('filter.published') == -2) {
JToolBarHelper::deleteList('COM_SMFAQ_YOU_WANT_DELETE_THIS', 'smfaqlist.delete', 'JTOOLBAR_EMPTY_TRASH');
} else {
JToolBarHelper::trash('smfaqlist.trash', 'JTOOLBAR_TRASH');
}
JToolBarHelper::divider();
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_smfaq');
}
}
示例15: display
function display($tpl = null)
{
$mainframe = JFactory::getApplication();
$option = JRequest::getVar('option');
$user =& JFactory::getUser();
$document =& JFactory::getDocument();
$params = JComponentHelper::getParams('com_redform');
$rows = $this->get('Data');
$pagination = $this->get('Pagination');
$lists = array();
/* Set variabels */
$this->assignRef('rows', $rows);
$this->assignRef('pagination', $pagination);
$this->assignRef('lists', $lists);
$this->assignRef('params', $params);
$this->assignRef('key', JRequest::getVar('submit_key'));
JToolBarHelper::title(JText::_('COM_REDFORM_PAYMENTS_HISTORY'), 'redform_submitters');
JToolBarHelper::addNew();
JToolBarHelper::editListX();
JToolBarHelper::deleteListX();
JToolBarHelper::custom('back', 'back', 'back', 'back', false);
// set the menu
RedformHelper::setMenu();
/* Display the page */
parent::display($tpl);
}