discount_articles.php

Go to the documentation of this file.
00001 <?php
00002 
00010 class Discount_Articles extends oxAdminDetails
00011 {
00018     public function render()
00019     {
00020         parent::render();
00021 
00022         $soxId = oxConfig::getParameter( 'oxid' );
00023         if ( $soxId != '-1' && isset( $soxId)) {
00024             // load object
00025             $oDiscount = oxNew( 'oxdiscount' );
00026             $oDiscount->load( $soxId );
00027             $this->_aViewData['edit'] = $oDiscount;
00028 
00029             //disabling derived items
00030             if ($oDiscount->isDerived())
00031                 $this->_aViewData['readonly'] =  true;
00032 
00033             // generating category tree for artikel choose select list
00034             $this->_getCategoryTree( "artcattree", null );
00035         }
00036 
00037         $aColumns = array();
00038         $iAoc = oxConfig::getParameter("aoc");
00039         if ( $iAoc == 1 ) {
00040 
00041             include_once 'inc/discount_articles.inc.php';
00042             $this->_aViewData['oxajax'] = $aColumns;
00043 
00044             return "popups/discount_articles.tpl";
00045         } elseif ( $iAoc == 2 ) {
00046 
00047             include_once 'inc/discount_categories.inc.php';
00048             $this->_aViewData['oxajax'] = $aColumns;
00049 
00050             return "popups/discount_categories.tpl";
00051         }
00052         return 'discount_articles.tpl';
00053     }
00054 }

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