26 $oGroups =
oxNew(
'oxlist');
27 $oGroups->init(
'oxgroups');
28 $oGroups->selectString(
"select * from " . getViewName(
"oxgroups", $this->_iEditLang));
30 $oRoot =
new oxgroups();
31 $oRoot->oxgroups__oxid =
new oxField(
"");
32 $oRoot->oxgroups__oxtitle =
new oxField(
"-- ");
37 foreach ($oGroups as $val) {
38 $aNewList[$val->oxgroups__oxid->value] =
new oxGroups();
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);
45 if (isset($soxId) && $soxId !=
"-") {
46 $oDelivery =
oxNew(
"oxdeliveryset");
47 $oDelivery->load($soxId);
50 if ($oDelivery->isDerived()) {
51 $this->_aViewData[
'readonly'] =
true;
55 $this->_aViewData[
"allgroups2"] = $oGroups;
59 $oDeliverysetGroupsAjax =
oxNew(
'deliveryset_groups_ajax');
60 $this->_aViewData[
'oxajax'] = $oDeliverysetGroupsAjax->getColumns();
62 return "popups/deliveryset_groups.tpl";
63 } elseif ($iAoc == 2) {
64 $oDeliverysetUsersAjax =
oxNew(
'deliveryset_users_ajax');
65 $this->_aViewData[
'oxajax'] = $oDeliverysetUsersAjax->getColumns();
67 return "popups/deliveryset_users.tpl";
70 return "deliveryset_users.tpl";