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