public function eventgridAction() { $this->addTitleTab('eventgrid', $this->translate('Event Grid'), $this->translate('Show the Event Grid')); $form = new StatehistoryForm(); $form->setEnctype(Zend_Form::ENCTYPE_URLENCODED); $form->setMethod('get'); $form->setTokenDisabled(); $form->setUidDisabled(); $form->render(); $this->view->form = $form; $this->params->remove('view'); $orientation = $this->params->shift('vertical', 0) ? 'vertical' : 'horizontal'; /* $orientationBox = new SelectBox( 'orientation', array( '0' => mt('monitoring', 'Vertical'), '1' => mt('monitoring', 'Horizontal') ), mt('monitoring', 'Orientation'), 'horizontal' ); $orientationBox->applyRequest($this->getRequest()); */ $query = $this->backend->select()->from('eventgrid', array('day', $form->getValue('state'))); $this->params->remove(array('objecttype', 'from', 'to', 'state', 'btn_submit')); $this->view->filter = Filter::fromQuerystring((string) $this->params); $query->applyFilter($this->view->filter); $this->applyRestriction('monitoring/filter/objects', $query); $this->view->summary = $query; $this->view->column = $form->getValue('state'); // $this->view->orientationBox = $orientationBox; $this->view->orientation = $orientation; }