24 $sViewName = getViewName(
"oxgroups", $this->_iEditLang );
26 $oGroups =
oxNew(
"oxlist" );
27 $oGroups->init(
'oxgroups' );
28 $oGroups->selectString(
"select * from {$sViewName}" );
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(
"oxdelivery" );
47 $oDelivery->load( $soxId);
50 if ($oDelivery->isDerived())
51 $this->_aViewData[
'readonly'] =
true;
54 $this->_aViewData[
"allgroups2"] = $oGroups;
58 $oDeliveryUsersAjax =
oxNew(
'delivery_users_ajax' );
59 $this->_aViewData[
'oxajax'] = $oDeliveryUsersAjax->getColumns();
61 return "popups/delivery_users.tpl";
62 } elseif ( $iAoc == 2 ) {
63 $oDeliveryGroupsAjax =
oxNew(
'delivery_groups_ajax' );
64 $this->_aViewData[
'oxajax'] = $oDeliveryGroupsAjax->getColumns();
66 return "popups/delivery_groups.tpl";
69 return "delivery_users.tpl";