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         // check if we right now saved a new entry
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             // for reloading upper frame
00029             $this->_aViewData["updatelist"] =  "1";
00030         }
00031 
00032         if ( $soxId != "-1" && isset( $soxId)) {
00033             // load object
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                 // echo "language entry doesn't exist! using: ".key($oOtherLang);
00042                 $odeliveryset->setLanguage(key($oOtherLang));
00043                 $odeliveryset->load( $soxId );
00044             }
00045 
00046             $this->_aViewData["edit"] =  $odeliveryset;
00047 
00048             //Disable editing for derived articles
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 }

Generated on Wed May 13 13:25:50 2009 for OXID eShop CE by  doxygen 1.5.5