25 $sViewName = getViewName(
"oxgroups", $this->_iEditLang);
27 $oGroups =
oxNew(
"oxlist");
28 $oGroups->init(
'oxgroups');
29 $oGroups->selectString(
"select * from {$sViewName}");
32 $oRoot->oxgroups__oxid =
new oxField(
"");
33 $oRoot->oxgroups__oxtitle =
new oxField(
"-- ");
38 foreach ($oGroups as $val) {
39 $aNewList[$val->oxgroups__oxid->value] =
new oxGroups();
40 $aNewList[$val->oxgroups__oxid->value]->oxgroups__oxid =
new oxField($val->oxgroups__oxid->value);
41 $aNewList[$val->oxgroups__oxid->value]->oxgroups__oxtitle =
new oxField($val->oxgroups__oxtitle->value);
46 if (isset($soxId) && $soxId !=
"-") {
47 $oDelivery =
oxNew(
"oxdelivery");
48 $oDelivery->load($soxId);
51 if ($oDelivery->isDerived()) {
52 $this->_aViewData[
'readonly'] =
true;
56 $this->_aViewData[
"allgroups2"] = $oGroups;
60 $oDeliveryUsersAjax =
oxNew(
'delivery_users_ajax');
61 $this->_aViewData[
'oxajax'] = $oDeliveryUsersAjax->getColumns();
63 return "popups/delivery_users.tpl";
64 } elseif ($iAoc == 2) {
65 $oDeliveryGroupsAjax =
oxNew(
'delivery_groups_ajax');
66 $this->_aViewData[
'oxajax'] = $oDeliveryGroupsAjax->getColumns();
68 return "popups/delivery_groups.tpl";
71 return "delivery_users.tpl";