00001 <?php
00002
00009 class Shop_System extends Shop_Config
00010 {
00015 protected $_sThisTemplate = 'shop_system.tpl';
00016
00023 public function render()
00024 {
00025 $myConfig = $this->getConfig();
00026 parent::render();
00027
00028 $aConfArrs = array();
00029
00030 $iLang = oxLang::getInstance()->getTplLanguage();
00031
00032 $aLanguages = oxLang::getInstance()->getLanguageArray();
00033 $sLangAbbr = $aLanguages[$iLang]->abbr;
00034
00035
00036 require "shop_countries.php";
00037
00038 $soxId = oxConfig::getParameter( "oxid");
00039 if ( !$soxId)
00040 $soxId = $myConfig->getShopId();
00041
00042 $sShopCountry = oxDb::getDb()->getOne("select DECODE( oxvarvalue, '".$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 }