discount_articles.php

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

Generated on Wed Apr 22 12:26:29 2009 for OXID eShop CE by  doxygen 1.5.5