24 if ($soxId !=
"-1" && isset($soxId)) {
26 $odeliveryset =
oxNew(
"oxdeliveryset");
27 $odeliveryset->loadInLang($this->_iEditLang, $soxId);
29 $oOtherLang = $odeliveryset->getAvailableInLangs();
31 if (!isset($oOtherLang[$this->_iEditLang])) {
33 $odeliveryset->loadInLang(key($oOtherLang), $soxId);
36 $this->_aViewData[
"edit"] = $odeliveryset;
42 $this->_aViewData[
"posslang"] =
$aLang;
45 foreach ($oOtherLang as $id => $language) {
46 $oLang =
new stdClass();
47 $oLang->sLangDesc = $language;
49 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
54 $oDeliverysetMainAjax =
oxNew(
'deliveryset_main_ajax');
55 $this->_aViewData[
'oxajax'] = $oDeliverysetMainAjax->getColumns();
57 return "popups/deliveryset_main.tpl";
60 return "deliveryset_main.tpl";
77 $aParams[
'oxdeliveryset__oxshopid'] = $sShopID;
78 $oDelSet =
oxNew(
"oxdeliveryset");
81 $oDelSet->loadInLang($this->_iEditLang, $soxId);
83 $aParams[
'oxdeliveryset__oxid'] = null;
87 if (!isset($aParams[
'oxdeliveryset__oxactive'])) {
88 $aParams[
'oxdeliveryset__oxactive'] = 0;
93 $oDelSet->setLanguage(0);
94 $oDelSet->assign($aParams);
95 $oDelSet->setLanguage($this->_iEditLang);
113 if (!isset($aParams[
'oxdeliveryset__oxactive'])) {
114 $aParams[
'oxdeliveryset__oxactive'] = 0;
119 $aParams[
'oxdeliveryset__oxshopid'] = $sShopID;
120 $oDelSet =
oxNew(
"oxdeliveryset");
122 if ($soxId !=
"-1") {
123 $oDelSet->loadInLang($this->_iEditLang, $soxId);
125 $aParams[
'oxdeliveryset__oxid'] = null;
129 $oDelSet->setLanguage(0);
130 $oDelSet->assign($aParams);