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_Customer_Online_Filter extends Mage_Adminhtml_Block_Widget_Form
00036 {
00037 public function __construct()
00038 {
00039 parent::__construct();
00040 }
00041
00042 protected function _prepareForm()
00043 {
00044 $form = new Varien_Data_Form();
00045
00046 $form->addField('filter_value', 'select',
00047 array(
00048 'name' => 'filter_value',
00049 'onchange' => 'this.form.submit()',
00050 'values' => array(
00051 array(
00052 'label' => Mage::helper('customer')->__('All'),
00053 'value' => '',
00054 ),
00055
00056 array(
00057 'label' => Mage::helper('customer')->__('Customers Only'),
00058 'value' => 'filterCustomers',
00059 ),
00060
00061 array(
00062 'label' => Mage::helper('customer')->__('Visitors Only'),
00063 'value' => 'filterGuests',
00064 )
00065 ),
00066 'no_span' => true
00067 )
00068 );
00069
00070 $form->setUseContainer(true);
00071 $form->setId('filter_form');
00072 $form->setMethod('post');
00073
00074 $this->setForm($form);
00075 return parent::_prepareForm();
00076 }
00077 }