Go to the documentation of this file.00001 <?php
00002
00009 class Article_Crossselling extends oxAdminDetails
00010 {
00018 public function render()
00019 {
00020 parent::render();
00021
00022 $this->_aViewData['edit'] = $oArticle = oxNew( 'oxarticle' );
00023
00024
00025 $this->_createCategoryTree( "artcattree");
00026
00027
00028 $this->_createCategoryTree( "artcattree2");
00029
00030 $soxId = $this->getEditObjectId();
00031 if ( $soxId != "-1" && isset( $soxId ) ) {
00032
00033 $oArticle->load( $soxId);
00034
00035 if ($oArticle->isDerived())
00036 $this->_aViewData['readonly'] = true;
00037 }
00038
00039 $iAoc = oxConfig::getParameter("aoc");
00040 if ( $iAoc == 1 ) {
00041 $oArticleCrossellingAjax = oxNew( 'article_crossselling_ajax' );
00042 $this->_aViewData['oxajax'] = $oArticleCrossellingAjax->getColumns();
00043
00044 return "popups/article_crossselling.tpl";
00045 } elseif ( $iAoc == 2 ) {
00046 $oArticleAccessoriesAjax = oxNew( 'article_accessories_ajax' );
00047 $this->_aViewData['oxajax'] = $oArticleAccessoriesAjax->getColumns();
00048
00049 return "popups/article_accessories.tpl";
00050 }
00051 return "article_crossselling.tpl";
00052 }
00053 }