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 = $this->getEditObjectId();
00025 $sChosenArtCat2 = oxConfig::getParameter( "artcat2");
00026
00027 if ( $soxId != "-1" && isset( $soxId)) {
00028 $sChosenArtCat2 = $this->_getCategoryTree( "artcattree", $sChosenArtCat2);
00029
00030
00031 $oDelivery = oxNew( "oxdelivery" );
00032 $oDelivery->load( $soxId);
00033 $this->_aViewData["edit"] = $oDelivery;
00034
00035
00036 if ($oDelivery->isDerived())
00037 $this->_aViewData['readonly'] = true;
00038 }
00039
00040 $iAoc = oxConfig::getParameter("aoc");
00041 if ( $iAoc == 1 ) {
00042 $oDeliveryArticlesAjax = oxNew( 'delivery_articles_ajax' );
00043 $this->_aViewData['oxajax'] = $oDeliveryArticlesAjax->getColumns();
00044
00045 return "popups/delivery_articles.tpl";
00046 } elseif ( $iAoc == 2 ) {
00047 $oDeliveryCategoriesAjax = oxNew( 'delivery_categories_ajax' );
00048 $this->_aViewData['oxajax'] = $oDeliveryCategoriesAjax->getColumns();
00049
00050 return "popups/delivery_categories.tpl";
00051 }
00052
00053 return "delivery_articles.tpl";
00054 }
00055 }