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