deliveryset_payment.php

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

Generated on Thu Dec 4 12:04:55 2008 for OXID eShop CE by  doxygen 1.5.5