00001 <?php
00002
00010 class Dynscreen extends oxAdminList
00011 {
00016 protected $_sThisTemplate = 'dynscreen.tpl';
00017
00023 protected function _setupNavigation( $sNode )
00024 {
00025 $myAdminNavig = $this->getNavigation();
00026 $sNode = oxConfig::getParameter( "menu" );
00027
00028
00029 $iActTab = oxConfig::getParameter( 'actedit' );
00030 $iActTab = $iActTab?$iActTab:$this->_iDefEdit;
00031
00032 $sActTab = $iActTab?"&actedit=$iActTab":'';
00033
00034
00035 $this->_aViewData['listurl'] = $myAdminNavig->getListUrl( $sNode ).$sActTab;
00036
00037
00038 $sEditUrl = $myAdminNavig->getEditUrl( $sNode, $iActTab ).$sActTab;
00039 if (!preg_match("/^http:\/\//", $sEditUrl)) {
00040
00041 $sEditUrl = $this->getViewConfig()->getViewConfigParam( 'selflink' ) . '?' . $sEditUrl;
00042 }
00043
00044 $this->_aViewData['editurl'] = $sEditUrl;
00045
00046
00047 $this->_aViewData['editnavi'] = $myAdminNavig->getTabs( $sNode, $iActTab );
00048
00049
00050 $this->_aViewData['actlocation'] = $myAdminNavig->getActiveTab( $sNode, $iActTab );
00051
00052
00053 $this->_aViewData['default_edit'] = $myAdminNavig->getActiveTab( $sNode, $this->_iDefEdit );
00054
00055
00056 $this->_aViewData['actedit'] = $iActTab;
00057
00058
00059 $this->_aViewData['bottom_buttons'] = $myAdminNavig->getBtn( $sNode );
00060 }
00061
00067 public function getViewId()
00068 {
00069 return 'dyn_menu';
00070 }
00071 }