当前位置: 首页>>代码示例>>PHP>>正文


PHP JToolBarHelper::Cancel方法代码示例

本文整理汇总了PHP中JToolBarHelper::Cancel方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::Cancel方法的具体用法?PHP JToolBarHelper::Cancel怎么用?PHP JToolBarHelper::Cancel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JToolBarHelper的用法示例。


在下文中一共展示了JToolBarHelper::Cancel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $addnew = $app->input->get('addnew', 0);
     if ($addnew) {
         $this->prepereNewOrder();
     }
     $this->state = $this->get('State');
     $this->item = $this->get('Item');
     $this->form = $this->get('Form');
     $this->configs = $this->get('configs');
     JToolBarHelper::title(JText::_('COM_DIGICOM_ORDER_DETAILS_TOOLBAR_TITLE'), 'generic.png');
     $bar = JToolBar::getInstance('toolbar');
     // Instantiate a new JLayoutFile instance and render the layout
     $layout = new JLayoutFile('toolbar.title');
     $title = array('title' => JText::_('COM_DIGICOM_ORDER_DETAILS_TOOLBAR_TITLE'), 'class' => 'title');
     $bar->appendButton('Custom', $layout->render($title), 'title');
     $layout = new JLayoutFile('toolbar.settings');
     $bar->appendButton('Custom', $layout->render(array()), 'settings');
     JToolBarHelper::apply('order.apply');
     JToolBarHelper::save('order.save');
     JToolBarHelper::Cancel('order.cancel');
     DigiComHelperDigiCom::addSubmenu('orders');
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
开发者ID:Shtier,项目名称:digicom,代码行数:26,代码来源:view.html.php

示例2: _DEFAULT

 /**
  * 
  */
 function _DEFAULT()
 {
     JToolBarHelper::title(JText::_('RSS Generator'), 'generic.png');
     //JToolBarHelper::preferences('com_pdf2email', '340');
     JToolBarHelper::save();
     JToolBarHelper::Apply();
     JToolBarHelper::Cancel();
 }
开发者ID:beingsane,项目名称:RssGenerator,代码行数:11,代码来源:toolbar.rssgenerator.html.php

示例3: display

 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('AD_ABOUTTITLE'), 'generic.png');
     JToolBarHelper::Cancel();
     $component = array();
     $component['installed'] = 0;
     $component['name'] = '.Guru';
     $component['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "administrator" . DIRECTORY_SEPARATOR . "components" . DIRECTORY_SEPARATOR . "com_guru" . DIRECTORY_SEPARATOR . "install.xml";
     if (file_exists($component['file'])) {
         $component['installed'] = 1;
         $data = implode("", file($component['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $component['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     $this->assignRef('component', $component);
     $module_cart = array();
     $module_cart['installed'] = 0;
     $module_cart['name'] = 'Guru Cart';
     $module_cart['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_guru_cart" . DIRECTORY_SEPARATOR . "mod_guru_cart.xml";
     if (file_exists($module_cart['file'])) {
         $module_cart['installed'] = 1;
         $data = implode("", file($module_cart['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $module_cart['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     $this->assignRef('module_cart', $module_cart);
     $db = JFactory::getDBO();
     $sql = "select element, folder from #__extensions where folder like '%guru%'";
     $db->setQuery($sql);
     $db->query();
     $all_plugins = $db->loadAssocList();
     $plugins = array();
     if (isset($all_plugins) && count($all_plugins) > 0) {
         foreach ($all_plugins as $key => $value) {
             $plugins[$key]['installed'] = 0;
             $plugins[$key]['name'] = $value["element"];
             $file = JPATH_SITE . DIRECTORY_SEPARATOR . "plugins" . DIRECTORY_SEPARATOR . $value["folder"] . DIRECTORY_SEPARATOR . 'paypaypal' . DIRECTORY_SEPARATOR . "paypaypal.xml";
             if (file_exists($file)) {
                 $plugins[$key]['installed'] = 1;
                 $data = implode("", file($file));
                 $pos1 = strpos($data, "<version>");
                 $pos2 = strpos($data, "</version>");
                 $plugins[$key]['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
             }
         }
     }
     $this->assignRef('plugins', $plugins);
     parent::display($tpl);
 }
开发者ID:JozefAB,项目名称:neoacu,代码行数:51,代码来源:view.html.php

示例4: display

 function display($tpl = null)
 {
     //JToolBarHelper::title(JText::_('AD_ABOUTTITLE'), 'generic.png');
     JToolBarHelper::Cancel();
     $component = array();
     $modulezone = array();
     $modulemenu = array();
     $component['installed'] = $modulezone['installed'] = $modulemenu['installed'] = 0;
     $component['name'] = 'iJoomla Ad Agency';
     $component['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "administrator" . DIRECTORY_SEPARATOR . "components" . DIRECTORY_SEPARATOR . "com_adagency" . DIRECTORY_SEPARATOR . "adagency.xml";
     $modulezone['name'] = 'Ad Agency Zone';
     $modulezone['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_zone" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_zone.xml";
     $modulezone['php'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_zone" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_zone.php";
     $modulemenu['name'] = 'Ad Agency Menu';
     $modulemenu['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_menu" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_menu.xml";
     $modulemenu['php'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_menu" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_menu.php";
     $modulecpanel['name'] = 'Ad Agency cPanel';
     $modulecpanel['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_cpanel" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_cpanel.xml";
     $modulecpanel['php'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_cpanel" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_cpanel.php";
     $modulegeo['name'] = 'Ad Agency Geo';
     $modulegeo['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_geo" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_geo.xml";
     $modulegeo['php'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_geo" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_geo.php";
     $moduleremote['name'] = 'Ad Agency Remote';
     $moduleremote['file'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_remote" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_remote.xml";
     $moduleremote['php'] = JPATH_SITE . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_remote" . DIRECTORY_SEPARATOR . "mod_ijoomla_adagency_remote.php";
     if (file_exists($component['file'])) {
         $component['installed'] = 1;
         $data = implode("", file($component['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $component['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     if (file_exists($modulezone['file']) && file_exists($modulezone['php'])) {
         $modulezone['installed'] = 1;
         $data = implode("", file($modulezone['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $modulezone['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     if (file_exists($modulemenu['file']) && file_exists($modulemenu['php'])) {
         $modulemenu['installed'] = 1;
         $data = implode("", file($modulemenu['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $modulemenu['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     if (file_exists($modulecpanel['file']) && file_exists($modulecpanel['php'])) {
         $modulecpanel['installed'] = 1;
         $data = implode("", file($modulecpanel['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $modulecpanel['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     if (file_exists($modulegeo['file']) && file_exists($modulegeo['php'])) {
         $modulegeo['installed'] = 1;
         $data = implode("", file($modulegeo['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $modulegeo['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     if (file_exists($moduleremote['file']) && file_exists($moduleremote['php'])) {
         $moduleremote['installed'] = 1;
         $data = implode("", file($moduleremote['file']));
         $pos1 = strpos($data, "<version>");
         $pos2 = strpos($data, "</version>");
         $moduleremote['version'] = 'version ' . substr($data, $pos1 + strlen("<version>"), $pos2 - $pos1 - strlen("<version>"));
     }
     $this->assignRef('component', $component);
     $this->assignRef('modulezone', $modulezone);
     $this->assignRef('modulemenu', $modulemenu);
     $this->assignRef('modulecpanel', $modulecpanel);
     $this->assignRef('modulegeo', $modulegeo);
     $this->assignRef('moduleremote', $moduleremote);
     parent::display($tpl);
 }
开发者ID:politik86,项目名称:test2,代码行数:75,代码来源:view.html.php


注:本文中的JToolBarHelper::Cancel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。