Go to the documentation of this file.00001 <?php
00002
00008 class Shop_System extends Shop_Config
00009 {
00014 protected $_sThisTemplate = 'shop_system.tpl';
00015
00022 public function render()
00023 {
00024 $myConfig = $this->getConfig();
00025 parent::render();
00026
00027 $aConfArrs = array();
00028
00029 $oLang = oxLang::getInstance();
00030
00031 $aLanguages = $oLang->getLanguageArray();
00032 $sLangAbbr = $aLanguages[$oLang->getObjectTplLanguage()]->abbr;
00033
00034
00035 include "shop_countries.php";
00036
00037 $soxId = oxConfig::getParameter( "oxid");
00038 if ( !$soxId)
00039 $soxId = $myConfig->getShopId();
00040
00041 $oDb = oxDb::getDb();
00042 $sShopCountry = $oDb->getOne("select DECODE( oxvarvalue, ".$oDb->quote( $myConfig->getConfigParam( 'sConfigKey' ) ).") as oxvarvalue from oxconfig where oxshopid = '$soxId' and oxvarname = 'sShopCountry'");
00043
00044 $this->_aViewData["shop_countries"] = $aCountries[$sLangAbbr];
00045 $this->_aViewData["confstrs"]["sShopCountry"] = $sShopCountry;
00046
00047 return $this->_sThisTemplate;
00048 }
00049 }