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_Dashboard_Grids extends Mage_Adminhtml_Block_Widget_Tabs
00036 {
00037 public function __construct()
00038 {
00039 parent::__construct();
00040 $this->setId('grid_tab');
00041 $this->setDestElementId('grid_tab_content');
00042 $this->setTemplate('widget/tabshoriz.phtml');
00043 }
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 protected function _prepareLayout()
00060 {
00061
00062 $this->addTab('reviewed_products', array(
00063 'label' => $this->__('Bestsellers'),
00064 'content' => $this->getLayout()->createBlock('adminhtml/dashboard_tab_products_ordered')->toHtml(),
00065 'active' => true
00066 ));
00067
00068
00069 $this->addTab('ordered_products', array(
00070 'label' => $this->__('Most Viewed Products'),
00071 'url' => $this->getUrl('*/*/productsViewed', array('_current'=>true)),
00072 'class' => 'ajax'
00073 ));
00074
00075 $this->addTab('new_customers', array(
00076 'label' => $this->__('New Customers'),
00077 'url' => $this->getUrl('*/*/customersNewest', array('_current'=>true)),
00078 'class' => 'ajax'
00079 ));
00080
00081 $this->addTab('customers', array(
00082 'label' => $this->__('Customers'),
00083 'url' => $this->getUrl('*/*/customersMost', array('_current'=>true)),
00084 'class' => 'ajax'
00085 ));
00086
00087 return parent::_prepareLayout();
00088 }
00089 }