deliveryset_payment.php
Go to the documentation of this file.00001 <?php
00002
00009 class DeliverySet_Payment extends oxAdminDetails
00010 {
00017 public function render()
00018 {
00019 parent::render();
00020
00021 $soxId = oxConfig::getParameter( "oxid");
00022
00023 $sSavedID = oxConfig::getParameter( "saved_oxid");
00024 if ( ($soxId == "-1" || !isset( $soxId)) && isset( $sSavedID) ) {
00025 $soxId = $sSavedID;
00026 oxSession::deleteVar( "saved_oxid");
00027 $this->_aViewData["oxid"] = $soxId;
00028
00029 $this->_aViewData["updatelist"] = "1";
00030 }
00031
00032 if ( $soxId != "-1" && isset( $soxId)) {
00033
00034 $odeliveryset = oxNew( "oxdeliveryset" );
00035 $odeliveryset->setLanguage($this->_iEditLang);
00036 $odeliveryset->load( $soxId);
00037
00038 $oOtherLang = $odeliveryset->getAvailableInLangs();
00039
00040 if (!isset($oOtherLang[$this->_iEditLang])) {
00041
00042 $odeliveryset->setLanguage(key($oOtherLang));
00043 $odeliveryset->load( $soxId );
00044 }
00045
00046 $this->_aViewData["edit"] = $odeliveryset;
00047
00048
00049 if ($odeliveryset->isDerived())
00050 $this->_aViewData['readonly'] = true;
00051 }
00052
00053 $aColumns = array();
00054 $iAoc = oxConfig::getParameter("aoc");
00055 if ( $iAoc == 1 ) {
00056
00057 include_once 'inc/deliveryset_payment.inc.php';
00058 $this->_aViewData['oxajax'] = $aColumns;
00059
00060 return "popups/deliveryset_payment.tpl";
00061 } elseif ( $iAoc == 2 ) {
00062
00063 include_once 'inc/deliveryset_country.inc.php';
00064 $this->_aViewData['oxajax'] = $aColumns;
00065
00066 return "popups/deliveryset_country.tpl";
00067 }
00068 return "deliveryset_payment.tpl";
00069 }
00070 }