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


PHP Mage_Adminhtml_Block_Widget_Tabs::_beforeToHtml方法代码示例

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


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

示例1: _beforeToHtml

 protected function _beforeToHtml()
 {
     /*
             if (Mage::registry('current_customer')->getId()) {
                 $this->addTab('view', array(
                     'label'     => Mage::helper('customer')->__('Customer View'),
                     'content'   => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_view')->toHtml(),
                     'active'    => true
                 ));
             }
     */
     $this->addTab('account', array('label' => Mage::helper('customer')->__('Account Information'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_account')->initForm()->toHtml(), 'active' => Mage::registry('current_customer')->getId() ? false : true));
     $this->addTab('addresses', array('label' => Mage::helper('customer')->__('Addresses'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_addresses')->initForm()->toHtml()));
     // load: Orders, Shopping Cart, Wishlist, Product Reviews, Product Tags - with ajax
     if (Mage::registry('current_customer')->getId()) {
         if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
             $this->addTab('orders', array('label' => Mage::helper('customer')->__('Orders'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/orders', array('_current' => true))));
         }
         $this->addTab('cart', array('label' => Mage::helper('customer')->__('Shopping Cart'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/carts', array('_current' => true))));
         $this->addTab('wishlist', array('label' => Mage::helper('customer')->__('Wishlist'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/wishlist', array('_current' => true))));
         if (Mage::getSingleton('admin/session')->isAllowed('newsletter/subscriber')) {
             $this->addTab('newsletter', array('label' => Mage::helper('customer')->__('Newsletter'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_newsletter')->initForm()->toHtml()));
         }
         if (Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
             $this->addTab('reviews', array('label' => Mage::helper('customer')->__('Product Reviews'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/productReviews', array('_current' => true))));
         }
         if (Mage::getSingleton('admin/session')->isAllowed('catalog/tag')) {
             $this->addTab('tags', array('label' => Mage::helper('customer')->__('Product Tags'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/productTags', array('_current' => true))));
         }
     }
     $this->_updateActiveTab();
     Varien_Profiler::stop('customer/tabs');
     return parent::_beforeToHtml();
 }
开发者ID:hunnybohara,项目名称:magento-chinese-localization,代码行数:34,代码来源:Tabs.php

示例2: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('tab1_BulkUpdateAllProductPrices', array('label' => Mage::helper('BulkUpdateAllProductPricesHelper1')->__('Bulk Update All Product Prices'), 'title' => Mage::helper('BulkUpdateAllProductPricesHelper1')->__('Bulk Update All Product Prices'), 'content' => $this->getLayout()->createBlock("BulkUpdateAllProductPricesBlock1/BlockForFormBulkUpdateAllProductPrices")->toHtml(), 'active' => true));
     $about = "<fieldset class='box' style='clear: both;'><table>\n\t\t<tr><td>\n\t\t<a title='SaveTheMage Magento Extensions' href='http://www.savethemage.com/'>\n\t\t<img alt='SaveTheMage Magento Extensions' src='http://www.savethemage.com/skin/frontend/default/magik_aura/images/savethemage-logo-icon.png'>\n\t\t</a>\n\t\t</td></tr>\n\t\t<tr><td><a href='mailto:support@savethemage.com'>Email Us</a></td></tr>\n\t\t</table></fieldset>";
     $this->addTab('tab2_about', array('label' => Mage::helper('BulkUpdateAllProductPricesHelper1')->__('About'), 'title' => Mage::helper('BulkUpdateAllProductPricesHelper1')->__('About'), 'content' => $about, 'active' => false));
     return parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:BumblebeeSite,代码行数:7,代码来源:ShowTabsAdminBlock.php

示例3: _beforeToHtml

 protected function _beforeToHtml()
 {
     $helper = $this->_getHelper();
     $this->addTab('options_tab', array('label' => $helper->__('Product Options'), 'title' => $helper->__('Product Options'), 'content' => $this->getLayout()->createBlock('mageworx/customoptions_options_edit_tab_options', 'admin.product.options')->toHtml(), 'active' => true));
     $this->addTab('product_tab', array('label' => $helper->__('Products'), 'title' => $helper->__('Products'), 'content' => $this->getLayout()->createBlock('mageworx/customoptions_options_edit_tab_product')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:parmanandsagar-mobikasa,项目名称:CO,代码行数:7,代码来源:Tabs.php

示例4: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('main_section', array('label' => Mage::helper('enterprise_targetrule')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('enterprise_targetrule/adminhtml_targetrule_edit_tab_main')->toHtml(), 'active' => true));
     $this->addTab('conditions_section', array('label' => Mage::helper('enterprise_targetrule')->__('Products to Match'), 'content' => $this->getLayout()->createBlock('enterprise_targetrule/adminhtml_targetrule_edit_tab_conditions')->toHtml()));
     $this->addTab('targeted_products', array('label' => Mage::helper('enterprise_targetrule')->__('Products to Display'), 'content' => $this->getLayout()->createBlock('enterprise_targetrule/adminhtml_targetrule_edit_tab_actions')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:7,代码来源:Tabs.php

示例5: _beforeToHtml

 protected function _beforeToHtml()
 {
     $script = "\n            <script>\n            function hide_feedattr(){\n                \n                var display = \$('base_attr').value ? '' : 'none';\n                \n                \$('transform').up('tr').setStyle({'display': display})\n            }\n            hide_feedattr();\n            \n            Event.observe(\$('base_attr'),'change', hide_feedattr)\n            </script>\n        ";
     $this->addTab('general', array('label' => Mage::helper('amfeed')->__('General'), 'content' => $this->getLayout()->createBlock('amfeed/adminhtml_field_edit_tab_general')->toHtml() . $script));
     $this->addTab('mapping', array('label' => Mage::helper('amfeed')->__('Mapping'), 'content' => $this->getLayout()->createBlock('amfeed/adminhtml_field_edit_tab_mapping')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:jokusafet,项目名称:MagentoSource,代码行数:7,代码来源:Tabs.php

示例6: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('form_section', array('label' => Mage::helper('affiliateplus')->__('Transaction Information'), 'title' => Mage::helper('affiliateplus')->__('Transaction Information'), 'content' => $this->getLayout()->createBlock('affiliateplus/adminhtml_transaction_edit_tab_form')->toHtml()));
     //event to add more tab
     Mage::dispatchEvent('affiliateplus_adminhtml_add_transaction_tab', array('form' => $this));
     return parent::_beforeToHtml();
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:7,代码来源:Tabs.php

示例7: _beforeToHtml

 protected function _beforeToHtml()
 {
     $product = $this->getProduct();
     $this->addTab('tab_info', array('label' => Mage::helper('purchase')->__('Summary'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_Summary')->toHtml()));
     if (Mage::helper('catalogInventory')->isQty($product->getTypeId())) {
         $this->addTab('tab_orders', array('label' => Mage::helper('purchase')->__('Purchase Orders'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_AssociatedOrdersGrid')->setProductId($product->getId())->toHtml()));
         $this->addTab('tab_suppliers', array('label' => Mage::helper('purchase')->__('Suppliers'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_AssociatedSuppliers')->setTemplate('Purchase/Product/Edit/Tab/AssociatedSuppliers.phtml')->setProductId($product->getId())->toHtml()));
     }
     $this->addTab('tab_manufacturers', array('label' => Mage::helper('purchase')->__('Manufacturers'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_AssociatedManufacturers')->setTemplate('Purchase/Product/Edit/Tab/AssociatedManufacturers.phtml')->setProductId($product->getId())->toHtml()));
     if (Mage::helper('catalogInventory')->isQty($product->getTypeId())) {
         $this->addTab('tab_stock_movements', array('label' => Mage::helper('purchase')->__('Stock Movements'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_StockMovementGrid')->setTemplate('Purchase/Product/Edit/Tab/StockMovement.phtml')->setProductId($product->getId())->toHtml()));
     }
     $this->addTab('pending_orders', array('label' => Mage::helper('purchase')->__('Pending Customer Orders'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_PendingCustomerOrders')->setTemplate('Purchase/Product/Edit/Tab/PendingCustomerOrders.phtml')->setProductId($product->getId())->toHtml()));
     if (Mage::helper('catalogInventory')->isQty($product->getTypeId())) {
         $this->addTab('stock_graph', array('label' => Mage::helper('purchase')->__('Graph'), 'content' => $this->getLayout()->createBlock('Purchase/Product_Edit_Tabs_Graph')->setTemplate('Purchase/Product/Edit/Tab/Graph.phtml')->setProductId($product->getId())->toHtml()));
     }
     $TaskCount = 0;
     $gridBlock = $this->getLayout()->createBlock('Organizer/Task_Grid')->setEntityType('product')->setEntityId($this->getProduct()->getId())->setShowTarget(false)->setShowEntity(false)->setTemplate('Organizer/Task/List.phtml');
     $content = $gridBlock->toHtml();
     $TaskCount = $gridBlock->getCollection()->getSize();
     $this->addTab('product_organizer', array('label' => Mage::helper('Organizer')->__('Organizer') . ' (' . $TaskCount . ')', 'title' => Mage::helper('Organizer')->__('Organizer') . ' (' . $TaskCount . ')', 'content' => $content));
     //set active tab
     $defaultTab = $this->getRequest()->getParam('tab');
     if ($defaultTab == null) {
         $defaultTab = 'tab_info';
     }
     $this->setActiveTab($defaultTab);
     return parent::_beforeToHtml();
 }
开发者ID:TrygveSkogsholm,项目名称:Magento-Patch,代码行数:29,代码来源:Tabs.php

示例8: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('main_section', array('label' => AO::helper('salesrule')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('adminhtml/promo_quote_edit_tab_main')->toHtml(), 'active' => true));
     $this->addTab('conditions_section', array('label' => AO::helper('salesrule')->__('Conditions'), 'content' => $this->getLayout()->createBlock('adminhtml/promo_quote_edit_tab_conditions')->toHtml()));
     $this->addTab('actions_section', array('label' => AO::helper('salesrule')->__('Actions'), 'content' => $this->getLayout()->createBlock('adminhtml/promo_quote_edit_tab_actions')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:7,代码来源:Promo_Quote_Edit_Tabs.php

示例9: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('main_section', array('label' => Mage::helper('advancednewsletter')->__('Rule Information'), 'title' => Mage::helper('advancednewsletter')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('advancednewsletter/adminhtml_automanagement_edit_tab_main')->toHtml(), 'active' => true));
     $this->addTab('conditions_section', array('label' => Mage::helper('advancednewsletter')->__('Conditions'), 'title' => Mage::helper('advancednewsletter')->__('Conditions'), 'content' => $this->getLayout()->createBlock('advancednewsletter/adminhtml_automanagement_edit_tab_conditions')->toHtml()));
     $this->addTab('actions_section', array('label' => Mage::helper('advancednewsletter')->__('Actions'), 'title' => Mage::helper('advancednewsletter')->__('Actions'), 'content' => $this->getLayout()->createBlock('advancednewsletter/adminhtml_automanagement_edit_tab_actions')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:CherylMuniz,项目名称:fashion,代码行数:7,代码来源:Tabs.php

示例10: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('form_section', array('label' => Mage::helper('ordercsv')->__('Item Information'), 'title' => Mage::helper('ordercsv')->__('Item Information'), 'content' => $this->getLayout()->createBlock('ordercsv/adminhtml_ordercsv_grids')->toHtml()));
     $this->addTab('form_section1', array('label' => Mage::helper('ordercsv')->__('Item Information'), 'title' => Mage::helper('ordercsv')->__('Item Information'), 'content' => $this->getLayout()->createBlock('ordercsv/adminhtml_ordercsv_edit_tab_form')->toHtml()));
     // 'content'   => $this->getLayout()->createBlock('ordercsv/adminhtml_ordercsv_edit_tab_form')->toHtml(),
     return parent::_beforeToHtml();
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:7,代码来源:Sareez_Ordercsv_Block_Adminhtml_Ordercsv_Edit_Tabs.php

示例11: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('form_section', array('label' => Mage::helper('prodfaqs')->__('Faq Information'), 'title' => Mage::helper('prodfaqs')->__('Faq Information'), 'content' => $this->getLayout()->createBlock('prodfaqs/adminhtml_prodfaqs_edit_tab_form')->toHtml(), 'active' => true));
     $this->addTab('products_section', array('label' => Mage::helper('prodfaqs')->__('Apply to Products'), 'title' => Mage::helper('prodfaqs')->__('Apply to Products'), 'url' => $this->getUrl('*/*/products', array('_current' => true)), 'class' => 'ajax'));
     $this->addTab('reply_section', array('label' => Mage::helper('prodfaqs')->__('View Replies'), 'title' => Mage::helper('prodfaqs')->__('View Replies'), 'url' => $this->getUrl('*/*/replies', array('_current' => true)), 'class' => 'ajax'));
     return parent::_beforeToHtml();
 }
开发者ID:ashfaqphplhr,项目名称:artificiallawnsforturf,代码行数:7,代码来源:Tabs.php

示例12: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('general_section', array('label' => __('Template Information'), 'title' => __('Template Information'), 'content' => $this->getLayout()->createBlock('feedexport/adminhtml_template_edit_tab_general')->toHtml()));
     $this->addTab('csv_section', array('label' => __('Content Settings'), 'title' => __('Content Settings'), 'content' => $this->getLayout()->createBlock('feedexport/adminhtml_template_edit_tab_content_csv')->toHtml()));
     $this->addTab('xml_section', array('label' => __('Content Settings'), 'title' => __('Content Settings'), 'content' => $this->getLayout()->createBlock('feedexport/adminhtml_template_edit_tab_content_xml')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:santhosh400,项目名称:ecart,代码行数:7,代码来源:Tabs.php

示例13: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('general', array('label' => Mage::helper('awautorelated')->__('General'), 'title' => Mage::helper('awautorelated')->__('General'), 'content' => $this->getLayout()->createBlock('awautorelated/adminhtml_blocks_product_edit_tab_general')->toHtml()));
     $this->addTab('viewed', array('label' => Mage::helper('awautorelated')->__('Currently Viewed Product'), 'title' => Mage::helper('awautorelated')->__('Currently Viewed Product'), 'content' => $this->getLayout()->createBlock('awautorelated/adminhtml_blocks_product_edit_tab_viewed')->toHtml()));
     $this->addTab('related', array('label' => Mage::helper('awautorelated')->__('Related Products'), 'title' => Mage::helper('awautorelated')->__('Related Products'), 'content' => $this->getLayout()->createBlock('awautorelated/adminhtml_blocks_product_edit_tab_related')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:vstorm83,项目名称:ausport,代码行数:7,代码来源:Tabs.php

示例14: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addTab('general', array('label' => Mage::helper('referralreward')->__('Points Add'), 'title' => Mage::helper('referralreward')->__('Points Add'), 'content' => $this->getLayout()->createBlock('referralreward/adminhtml_points_edit_tab_general')->toHtml()));
     $this->addTab('points_log', array('label' => Mage::helper('referralreward')->__('Log'), 'title' => Mage::helper('referralreward')->__('Log'), 'content' => $this->getLayout()->createBlock('referralreward/adminhtml_points_edit_tab_log', 'referralreward_edit_tab_log')->toHtml()));
     $this->addTab('info', array('label' => Mage::helper('referralreward')->__('Info'), 'title' => Mage::helper('referralreward')->__('Info'), 'content' => $this->getLayout()->createBlock('referralreward/adminhtml_points_edit_tab_info', 'referralreward_edit_tab_info')->toHtml()));
     return parent::_beforeToHtml();
 }
开发者ID:bigtailbear14,项目名称:rosstheme,代码行数:7,代码来源:Tabs.php

示例15: _beforeToHtml

 /**
  * This overwrites the parent function to add the 'Points & Rewards' 
  * tab in the edit menu for the customer.
  * 
  */
 protected function _beforeToHtml()
 {
     if (Mage::registry('current_customer')->getId()) {
         $this->addTab('view', array('label' => Mage::helper('customer')->__('Customer View'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_view')->toHtml(), 'active' => true));
     }
     $this->addTab('account', array('label' => Mage::helper('customer')->__('Account Information'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_account')->initForm()->toHtml(), 'active' => Mage::registry('current_customer')->getId() ? false : true));
     $this->addTab('addresses', array('label' => Mage::helper('customer')->__('Addresses'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_addresses')->initForm()->toHtml()));
     // load: Orders, Shopping Cart, Wishlist, Product Reviews, Product Tags - with ajax
     if (Mage::registry('current_customer')->getId()) {
         $this->addTab('orders', array('label' => Mage::helper('customer')->__('Orders'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/orders', array('_current' => true))));
         $this->addTab('cart', array('label' => Mage::helper('customer')->__('Shopping Cart'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/carts', array('_current' => true))));
         $this->addTab('wishlist', array('label' => Mage::helper('customer')->__('Wishlist'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/wishlist', array('_current' => true))));
         $this->addTab('newsletter', array('label' => Mage::helper('customer')->__('Newsletter'), 'content' => $this->getLayout()->createBlock('adminhtml/customer_edit_tab_newsletter')->initForm()->toHtml()));
         $this->addTab('reviews', array('label' => Mage::helper('customer')->__('Product Reviews'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/productReviews', array('_current' => true))));
         $this->addTab('tags', array('label' => Mage::helper('customer')->__('Product Tags'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/productTags', array('_current' => true))));
         $this->addTab('rewards', array('label' => Mage::helper('customer')->__('Points & Rewards'), 'content' => $this->getLayout()->createBlock('rewards/manage_customer_edit_tab_main')->toHtml()));
     }
     $this->_updateActiveTab();
     Varien_Profiler::stop('customer/tabs');
     return parent::_beforeToHtml();
     //    	$html = parent::_beforeToHtml();
     //        if (Mage::registry('current_customer')->getId()) {
     //        }
     //
     //        $this->_updateActiveTab();
     ////        Varien_Profiler::stop('customer/tabs');
     //        return $html;
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:33,代码来源:Tabs.php


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