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