00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Mage_Adminhtml_Block_Promo_Catalog_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
00036 {
00037
00038 public function __construct()
00039 {
00040 parent::__construct();
00041 $this->setId('promo_catalog_edit_tabs');
00042 $this->setDestElementId('edit_form');
00043 $this->setTitle(Mage::helper('catalogrule')->__('Catalog Price Rule'));
00044 }
00045
00046 protected function _beforeToHtml()
00047 {
00048 $this->addTab('main_section', array(
00049 'label' => Mage::helper('catalogrule')->__('Rule Information'),
00050 'title' => Mage::helper('catalogrule')->__('Rule Information'),
00051 'content' => $this->getLayout()->createBlock('adminhtml/promo_catalog_edit_tab_main')->toHtml(),
00052 'active' => true
00053 ));
00054
00055 $this->addTab('conditions_section', array(
00056 'label' => Mage::helper('catalogrule')->__('Conditions'),
00057 'title' => Mage::helper('catalogrule')->__('Conditions'),
00058 'content' => $this->getLayout()->createBlock('adminhtml/promo_catalog_edit_tab_conditions')->toHtml(),
00059 ));
00060
00061 $this->addTab('actions_section', array(
00062 'label' => Mage::helper('catalogrule')->__('Actions'),
00063 'title' => Mage::helper('catalogrule')->__('Actions'),
00064 'content' => $this->getLayout()->createBlock('adminhtml/promo_catalog_edit_tab_actions')->toHtml(),
00065 ));
00066
00067 return parent::_beforeToHtml();
00068 }
00069
00070 }