24 if ($soxId !=
"-1" && isset($soxId)) {
26 $oAction =
oxNew(
"oxactions");
27 $oAction->loadInLang($this->_iEditLang, $soxId);
29 $oOtherLang = $oAction->getAvailableInLangs();
30 if (!isset($oOtherLang[$this->_iEditLang])) {
32 $oAction->loadInLang(key($oOtherLang), $soxId);
35 $this->_aViewData[
"edit"] = $oAction;
41 $this->_aViewData[
"posslang"] =
$aLang;
44 foreach ($oOtherLang as $id => $language) {
45 $oLang =
new stdClass();
46 $oLang->sLangDesc = $language;
48 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
56 $oActionsMainAjax =
oxNew(
'actions_main_ajax');
57 $this->_aViewData[
'oxajax'] = $oActionsMainAjax->getColumns();
59 return "popups/actions_main.tpl";
64 if (($oPromotion->oxactions__oxtype->value == 2) || ($oPromotion->oxactions__oxtype->value == 3)) {
72 if ($oArticle = $oPromotion->getBannerArticle()) {
73 $this->_aViewData[
'actionarticle_artnum'] = $oArticle->oxarticles__oxartnum->value;
74 $this->_aViewData[
'actionarticle_title'] = $oArticle->oxarticles__oxtitle->value;
77 $sPopup =
'actions_article';
80 $sPopup =
'actions_groups';
86 $oActionsArticleAjax =
oxNew($sPopup .
'_ajax');
87 $this->_aViewData[
'oxajax'] = $oActionsArticleAjax->getColumns();
89 return "popups/{$sPopup}.tpl";
92 if ($oPromotion->oxactions__oxtype->value == 2) {
97 "oxactions__oxlongdesc",
105 return "actions_main.tpl";
124 $oPromotion =
oxNew(
"oxactions");
125 if ($soxId !=
"-1") {
126 $oPromotion->load($soxId);
128 $aParams[
'oxactions__oxid'] = null;
131 if (!$aParams[
'oxactions__oxactive']) {
132 $aParams[
'oxactions__oxactive'] = 0;
135 $oPromotion->setLanguage(0);
136 $oPromotion->assign($aParams);
137 $oPromotion->setLanguage($this->_iEditLang);
138 $oPromotion =
oxRegistry::get(
"oxUtilsFile")->processFiles($oPromotion);