예제 #1
0
 public function edit()
 {
     parent::edit();
     $sidebar = new SidebarController($this->view);
     $sidebarlist = array();
     $sidebarlist['action'] = array('tag' => 'View All Report Parts', 'link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'index'));
     $sidebar->addList('Actions', $sidebarlist);
     $this->view->register('sidebar', $sidebar);
     $this->view->set('sidebar', $sidebar);
 }
 public function edit()
 {
     parent::edit();
     $sidebar = new SidebarController($this->view);
     $sidebarlist = array();
     $sidebarlist['action'] = array('tag' => 'View All Report Definitions', 'link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'index'));
     $sidebarlist['new'] = array('tag' => 'New Report Definition', 'link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'new'));
     $sidebarlist['copy'] = array('tag' => 'Copy Report Definition', 'link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'copy', 'id' => $this->_data['id']));
     $sidebar->addList('Actions', $sidebarlist);
     $sidebarlist = array();
     $sidebarlist['report'] = array('tag' => 'Print Test Report', 'link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'printDialog', 'printaction' => 'testReport', 'id' => $this->_data['id']));
     $sidebar->addList('Reports', $sidebarlist);
     $this->view->register('sidebar', $sidebar);
     $this->view->set('sidebar', $sidebar);
 }