protected function _beforeToHtml() { $this->addTab('form_configuration', array('label' => $this->__('Configuration'), 'title' => $this->__('Configuration'), 'content' => $this->getLayout()->createBlock('datafeedmanager/adminhtml_datafeedmanager_edit_tab_configuration')->toHtml())); $this->addTab('form_filter', array('label' => $this->__('Filters'), 'title' => $this->__('Filters'), 'content' => $this->getLayout()->createBlock('datafeedmanager/adminhtml_datafeedmanager_edit_tab_filters')->toHtml())); $this->addTab('form_cron', array('label' => $this->__('Scheduled task'), 'title' => $this->__('Scheduled task'), 'content' => $this->getLayout()->createBlock('datafeedmanager/adminhtml_datafeedmanager_edit_tab_cron')->toHtml())); return parent::_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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
/** * 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; }
protected function _beforeToHtml() { $this->addTab('main_section', array('label' => Mage::helper('salesrule')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('rewards/manage_special_edit_tab_main')->toHtml(), 'active' => true)); $this->addTab('conditions_section', array('label' => Mage::helper('salesrule')->__('Triggers & Conditions'), 'content' => $this->getLayout()->createBlock('rewards/manage_special_edit_tab_conditions')->toHtml())); $this->addTab('actions_section', array('label' => Mage::helper('salesrule')->__('Actions'), 'content' => $this->getLayout()->createBlock('rewards/manage_special_edit_tab_actions')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $tabTitle = 'Main'; $this->addTab('main_section', array('label' => $this->__($tabTitle), 'title' => $this->__($tabTitle), 'content' => $this->getLayout()->createBlock('sarp/adminhtml_subscriptions_edit_tab_main')->setSubscription($this->getSubscription())->toHtml())); $this->addTab('payments_section', array('label' => $this->__('Payments'), 'title' => $this->__('Payments'), 'content' => $this->getLayout()->createBlock('sarp/adminhtml_subscriptions_edit_tab_payments')->setSubscription($this->getSubscription())->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $model = Mage::registry('entity_attribute'); $this->addTab('main', array('label' => Mage::helper('catalog')->__('Properties'), 'title' => Mage::helper('catalog')->__('Properties'), 'content' => $this->getLayout()->createBlock('customerattribute/adminhtml_edit_tab_main')->toHtml(), 'active' => true)); $this->addTab('labels', array('label' => Mage::helper('catalog')->__('Manage Label / Options'), 'title' => Mage::helper('catalog')->__('Manage Label / Options'), 'content' => $this->getLayout()->createBlock('customerattribute/adminhtml_edit_tab_options')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('form_section', array('label' => Mage::helper('smecartrule')->__('Rule Information'), 'title' => Mage::helper('smecartrule')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('smecartrule/adminhtml_smecartrule_edit_tab_form')->toHtml())); $this->addTab('categories', array('label' => Mage::helper('catalog')->__('Categories'), 'url' => $this->getUrl('*/*/categories', array('_current' => true)), 'class' => 'ajax', 'active' => true)); $this->addTab('cities', array('label' => Mage::helper('smecartrule')->__('Cities'), 'title' => Mage::helper('smecartrule')->__('Cities'), 'content' => $this->getLayout()->createBlock('smecartrule/adminhtml_smecartrule_edit_tab_cities')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('settings_section', array('label' => Mage::helper('sharkslideshow')->__('Slide Settings'), 'title' => Mage::helper('sharkslideshow')->__('Slide Settings'), 'content' => $this->getLayout()->createBlock('sharkslideshow/adminhtml_sharkrevslider_edit_tab_settings')->toHtml())); $this->addTab('image_section', array('label' => Mage::helper('sharkslideshow')->__('Main Image Settings'), 'title' => Mage::helper('sharkslideshow')->__('Main Image Settings'), 'content' => $this->getLayout()->createBlock('sharkslideshow/adminhtml_sharkrevslider_edit_tab_image')->toHtml())); $this->addTab('content_section', array('label' => Mage::helper('sharkslideshow')->__('Content And Captions'), 'title' => Mage::helper('sharkslideshow')->__('Content And Captions'), 'content' => $this->getLayout()->createBlock('sharkslideshow/adminhtml_sharkrevslider_edit_tab_content')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { Magento_Profiler::start('customer/tabs'); /* if (Mage::registry('current_customer')->getId()) { $this->addTab('view', array( 'label' => Mage::helper('Mage_Customer_Helper_Data')->__('Customer View'), 'content' => $this->getLayout()->createBlock('Mage_Adminhtml_Block_Customer_Edit_Tab_View')->toHtml(), 'active' => true )); } */ $this->addTab('account', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Account Information'), 'content' => $this->getLayout()->createBlock('Mage_Adminhtml_Block_Customer_Edit_Tab_Account')->initForm()->toHtml(), 'active' => Mage::registry('current_customer')->getId() ? false : true)); $this->addTab('addresses', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Addresses'), 'content' => $this->getLayout()->createBlock('Mage_Adminhtml_Block_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('Mage_Core_Model_Authorization')->isAllowed('Mage_Sales::actions_view')) { $this->addTab('orders', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Orders'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/orders', array('_current' => true)))); } $this->addTab('cart', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Shopping Cart'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/carts', array('_current' => true)))); $this->addTab('wishlist', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Wishlist'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/wishlist', array('_current' => true)))); if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Newsletter::subscriber')) { $this->addTab('newsletter', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Newsletter'), 'content' => $this->getLayout()->createBlock('Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter')->initForm()->toHtml())); } if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Review::reviews_ratings')) { $this->addTab('reviews', array('label' => Mage::helper('Mage_Customer_Helper_Data')->__('Product Reviews'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/productReviews', array('_current' => true)))); } } $this->_updateActiveTab(); Magento_Profiler::stop('customer/tabs'); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('general', array('label' => Mage::helper('popup')->__('General'), 'title' => Mage::helper('popup')->__('General'), 'content' => $this->getLayout()->createBlock('popup/adminhtml_popup_edit_tab_general')->toHtml())); $this->addTab('content', array('label' => Mage::helper('popup')->__('Content'), 'title' => Mage::helper('popup')->__('Content'), 'content' => $this->getLayout()->createBlock('popup/adminhtml_popup_edit_tab_content')->toHtml())); $this->addTab('mss', array('label' => Mage::helper('popup')->__('Market Segmentation Suite'), 'title' => Mage::helper('popup')->__('Market Segmentation Suite'), 'content' => $this->getLayout()->createBlock('popup/adminhtml_popup_edit_tab_mss')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { // --------------------------------------- if ($this->isTabAllowed('general')) { $block = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_edit_tabs_general', '', array('policy_localization' => $this->getData('policy_localization'))); $this->addTab('general', array('label' => Mage::helper('M2ePro')->__('Payment and Shipping'), 'title' => Mage::helper('M2ePro')->__('Payment and Shipping'), 'content' => $block->toHtml())); } // --------------------------------------- // --------------------------------------- if ($this->isTabAllowed('selling')) { $block = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_edit_tabs_selling'); $this->addTab('selling', array('label' => Mage::helper('M2ePro')->__('Selling'), 'title' => Mage::helper('M2ePro')->__('Selling'), 'content' => $block->toHtml())); } // --------------------------------------- // --------------------------------------- if ($this->isTabAllowed('synchronization') && Mage::helper('M2ePro/View_Ebay')->isAdvancedMode()) { $block = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_edit_tabs_synchronization'); $this->addTab('synchronization', array('label' => Mage::helper('M2ePro')->__('Synchronization'), 'title' => Mage::helper('M2ePro')->__('Synchronization'), 'content' => $block->toHtml())); } // --------------------------------------- // --------------------------------------- $this->setActiveTab($this->getRequest()->getParam('tab', 'general')); // --------------------------------------- return parent::_beforeToHtml(); }
/** * Set tabs * * @return Mage_Connect_Block_Adminhtml_Extension_Custom_Edit_Tabs */ protected function _beforeToHtml() { // $this->addTab('package', array( // 'label' => Mage::helper('connect')->__('Package Info'), // 'content' => $this->_getTabHtml('package'), // 'active' => true, // )); // // $this->addTab('release', array( // 'label' => Mage::helper('connect')->__('Release Info'), // 'content' => $this->_getTabHtml('release'), // )); // // $this->addTab('maintainers', array( // 'label' => Mage::helper('connect')->__('Authors'), // 'content' => $this->_getTabHtml('authors'), // )); // // $this->addTab('depends', array( // 'label' => Mage::helper('connect')->__('Dependencies'), // 'content' => $this->_getTabHtml('depends'), // )); // // $this->addTab('contents', array( // 'label' => Mage::helper('connect')->__('Contents'), // 'content' => $this->_getTabHtml('contents'), // )); // // $this->addTab('load', array( // 'label' => Mage::helper('connect')->__('Load local Package'), // 'class' => 'ajax', // 'url' => $this->getUrl('*/*/loadtab', array('_current' => true)), // )); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('package', array('label' => Mage::helper('adminhtml')->__('Package Info'), 'content' => $this->_getTabHtml('package'), 'active' => true)); $this->addTab('contents', array('label' => Mage::helper('adminhtml')->__('Contents'), 'content' => $this->_getTabHtml('contents'))); $this->addTab('depends', array('label' => Mage::helper('adminhtml')->__('Dependencies'), 'content' => $this->_getTabHtml('depends'))); $this->addTab('changelog', array('label' => Mage::helper('adminhtml')->__('Changelog'), 'content' => $this->_getTabHtml('changelog'))); $this->addTab('actions', array('label' => Mage::helper('adminhtml')->__('Actions'), 'content' => $this->_getTabHtml('actions'))); /* $this->addTab('release', array( 'label' => Mage::helper('adminhtml')->__('Release Info'), 'content' => $this->_getTabHtml('release'), )); $this->addTab('maintainers', array( 'label' => Mage::helper('adminhtml')->__('Maintainers'), 'content' => $this->_getTabHtml('maintainers'), )); $this->addTab('depends', array( 'label' => Mage::helper('adminhtml')->__('Dependencies'), 'content' => $this->_getTabHtml('depends'), )); */ return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('form_information', array('label' => Mage::helper('webforms')->__('Information'), 'title' => Mage::helper('webforms')->__('Information'), 'content' => $this->getLayout()->createBlock('webforms/adminhtml_fields_edit_tab_information')->toHtml())); $this->addTab('form_design', array('label' => Mage::helper('webforms')->__('Design'), 'title' => Mage::helper('webforms')->__('Design'), 'content' => $this->getLayout()->createBlock('webforms/adminhtml_fields_edit_tab_design')->toHtml())); Mage::dispatchEvent('webforms_adminhtml_fields_edit_tabs_before_to_html', array('tabs' => $this)); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('main_section', array('label' => Mage::helper('rewardpoints')->__('Rule Information'), 'title' => Mage::helper('rewardpoints')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('rewardpoints/adminhtml_pointrules_edit_tab_main')->toHtml(), 'active' => true)); $this->addTab('conditions_section', array('label' => Mage::helper('rewardpoints')->__('Conditions'), 'title' => Mage::helper('rewardpoints')->__('Conditions'), 'content' => $this->getLayout()->createBlock('rewardpoints/adminhtml_pointrules_edit_tab_conditions')->toHtml())); $this->addTab('actions_section', array('label' => Mage::helper('rewardpoints')->__('Actions'), 'title' => Mage::helper('rewardpoints')->__('Actions'), 'content' => $this->getLayout()->createBlock('rewardpoints/adminhtml_pointrules_edit_tab_actions')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('selling', array('label' => Mage::helper('M2ePro')->__('Selling Settings'), 'title' => Mage::helper('M2ePro')->__('Selling Settings'), 'content' => $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_add_tabs_selling')->toHtml())); $this->addTab('search', array('label' => Mage::helper('M2ePro')->__('Search Settings'), 'title' => Mage::helper('M2ePro')->__('Search Settings'), 'content' => $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_add_tabs_search')->toHtml())); $this->setActiveTab($this->getRequest()->getParam('tab', 'selling')); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('form_section', array('label' => Mage::helper('forum/topic')->__('Forum Details'), 'title' => Mage::helper('forum/topic')->__('Forum Details'), 'content' => $this->getLayout()->createBlock('forum/adminhtml_forum_edit_tab_form')->toHtml())); $this->addTab('form_section_meta', array('label' => Mage::helper('forum/topic')->__('Forum Meta Data'), 'title' => Mage::helper('forum/topic')->__('Forum Meta DataDetails'), 'content' => $this->getLayout()->createBlock('forum/adminhtml_forum_edit_tab_formmeta')->toHtml())); $this->addTab('form_section_icons', array('label' => Mage::helper('forum/topic')->__('Forum Icons'), 'title' => Mage::helper('forum/topic')->__('Forum Icons'), 'content' => $this->getLayout()->createBlock('forum/adminhtml_forum_edit_tab_icons')->toHtml())); return parent::_beforeToHtml(); }