dynscreen.php

Go to the documentation of this file.
00001 <?php
00002 
00010 class Dynscreen extends oxAdminList
00011 {
00012 
00018     protected $_sThisTemplate = 'dynscreen.tpl';
00019 
00025     protected function _setupNavigation($sNode)
00026     {
00027         $myAdminNavig = $this->getNavigation();
00028         $sNode = oxRegistry::getConfig()->getRequestParameter("menu");
00029 
00030         // active tab
00031         $iActTab = oxRegistry::getConfig()->getRequestParameter('actedit');
00032         $iActTab = $iActTab ? $iActTab : $this->_iDefEdit;
00033 
00034         $sActTab = $iActTab ? "&actedit=$iActTab" : '';
00035 
00036         // list url
00037         $this->_aViewData['listurl'] = $myAdminNavig->getListUrl($sNode) . $sActTab;
00038 
00039         // edit url
00040         $sEditUrl = $myAdminNavig->getEditUrl($sNode, $iActTab) . $sActTab;
00041         if (!getStr()->preg_match("/^http(s)?:\/\//", $sEditUrl)) {
00042             //internal link, adding path
00044             $oUtilsUrl = oxRegistry::get("oxUtilsUrl");
00045             $sSelfLinkParameter = $this->getViewConfig()->getViewConfigParam('selflink');
00046             $sEditUrl = $oUtilsUrl->appendParamSeparator($sSelfLinkParameter) . $sEditUrl;
00047         }
00048 
00049         $this->_aViewData['editurl'] = $sEditUrl;
00050 
00051         // tabs
00052         $this->_aViewData['editnavi'] = $myAdminNavig->getTabs($sNode, $iActTab);
00053 
00054         // active tab
00055         $this->_aViewData['actlocation'] = $myAdminNavig->getActiveTab($sNode, $iActTab);
00056 
00057         // default tab
00058         $this->_aViewData['default_edit'] = $myAdminNavig->getActiveTab($sNode, $this->_iDefEdit);
00059 
00060         // passign active tab number
00061         $this->_aViewData['actedit'] = $iActTab;
00062 
00063         // buttons
00064         $this->_aViewData['bottom_buttons'] = $myAdminNavig->getBtn($sNode);
00065     }
00066 
00072     public function getViewId()
00073     {
00074         return 'dyn_menu';
00075     }
00076 }