delivery_articles.php

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