delivery_articles.php

Go to the documentation of this file.
00001 <?php
00002 
00003 
00004 
00005 
00013 class Delivery_Articles extends oxAdminDetails
00014 {
00021     public function render()
00022     {
00023         parent::render();
00024 
00025         $soxId = oxConfig::getParameter( "oxid");
00026         $sChosenArtCat2 = oxConfig::getParameter( "artcat2");
00027 
00028         if ( $soxId != "-1" && isset( $soxId)) {
00029             $sChosenArtCat2 = $this->_getCategoryTree( "artcattree", $sChosenArtCat2);
00030 
00031             // load object
00032             $oDelivery = oxNew( "oxdelivery" );
00033             $oDelivery->load( $soxId);
00034             $this->_aViewData["edit"] =  $oDelivery;
00035 
00036             //Disable editing for derived articles
00037             if ($oDelivery->isDerived())
00038                $this->_aViewData['readonly'] = true;
00039         }
00040 
00041         $aColumns = array();
00042         $iAoc = oxConfig::getParameter("aoc");
00043         if ( $iAoc == 1 ) {
00044 
00045             include_once 'inc/delivery_articles.inc.php';
00046             $this->_aViewData['oxajax'] = $aColumns;
00047 
00048             return "popups/delivery_articles.tpl";
00049         } elseif ( $iAoc == 2 ) {
00050 
00051             include_once 'inc/delivery_categories.inc.php';
00052             $this->_aViewData['oxajax'] = $aColumns;
00053 
00054             return "popups/delivery_categories.tpl";
00055         }
00056 
00057         return "delivery_articles.tpl";
00058     }
00059 }

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