25 $oGroups =
oxNew(
'oxlist' );
26 $oGroups->init(
'oxgroups' );
27 $oGroups->selectString(
"select * from ".getViewName(
"oxgroups", $this->_iEditLang ) );
29 $oRoot =
new stdClass();
30 $oRoot->oxgroups__oxid =
new oxField(
"");
31 $oRoot->oxgroups__oxtitle =
new oxField(
"-- ");
36 foreach ( $oGroups as $val ) {
37 $aNewList[$val->oxgroups__oxid->value] =
new stdClass();
38 $aNewList[$val->oxgroups__oxid->value]->oxgroups__oxid =
new oxField($val->oxgroups__oxid->value);
39 $aNewList[$val->oxgroups__oxid->value]->oxgroups__oxtitle =
new oxField($val->oxgroups__oxtitle->value);
42 $this->_aViewData[
"allgroups2"] = $aNewList;
44 if ( isset($soxId) && $soxId !=
"-") {
45 $oDiscount =
oxNew(
"oxdiscount" );
46 $oDiscount->load( $soxId);
48 if ($oDiscount->isDerived())
49 $this->_aViewData[
"readonly"] =
true;
54 $oDiscountGroupsAjax =
oxNew(
'discount_groups_ajax' );
55 $this->_aViewData[
'oxajax'] = $oDiscountGroupsAjax->getColumns();
57 return "popups/discount_groups.tpl";
58 } elseif ( $iAoc == 2 ) {
59 $oDiscountUsersAjax =
oxNew(
'discount_users_ajax' );
60 $this->_aViewData[
'oxajax'] = $oDiscountUsersAjax->getColumns();
62 return "popups/discount_users.tpl";
65 return "discount_users.tpl";