23 if ( $soxId !=
"-1" && isset( $soxId)) {
25 $oAction =
oxNew(
"oxactions" );
26 $oAction->loadInLang( $this->_iEditLang, $soxId);
28 $oOtherLang = $oAction->getAvailableInLangs();
29 if (!isset($oOtherLang[$this->_iEditLang])) {
31 $oAction->loadInLang( key($oOtherLang), $soxId );
34 $this->_aViewData[
"edit"] = $oAction;
40 $this->_aViewData[
"posslang"] =
$aLang;
42 foreach ( $oOtherLang as $id => $language) {
43 $oLang=
new stdClass();
44 $oLang->sLangDesc = $language;
46 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
54 $oActionsMainAjax =
oxNew(
'actions_main_ajax' );
55 $this->_aViewData[
'oxajax'] = $oActionsMainAjax->getColumns();
57 return "popups/actions_main.tpl";
62 if ( ($oPromotion->oxactions__oxtype->value == 2) || ($oPromotion->oxactions__oxtype->value == 3) ) {
70 if ($oArticle = $oPromotion->getBannerArticle()) {
71 $this->_aViewData[
'actionarticle_artnum'] = $oArticle->oxarticles__oxartnum->value;
72 $this->_aViewData[
'actionarticle_title'] = $oArticle->oxarticles__oxtitle->value;
75 $sPopup =
'actions_article';
78 $sPopup =
'actions_groups';
84 $oActionsArticleAjax =
oxNew( $sPopup.
'_ajax' );
85 $this->_aViewData[
'oxajax'] = $oActionsArticleAjax->getColumns();
86 return "popups/{$sPopup}.tpl";
89 if ( $oPromotion->oxactions__oxtype->value == 2) {
90 $this->_aViewData[
"editor"] = $this->
_generateTextEditor(
"100%", 300, $oPromotion,
"oxactions__oxlongdesc",
"details.tpl.css" );
96 return "actions_main.tpl";
115 $oPromotion =
oxNew(
"oxactions" );
116 if ( $soxId !=
"-1" ) {
117 $oPromotion->load( $soxId );
119 $aParams[
'oxactions__oxid'] = null;
122 if ( !$aParams[
'oxactions__oxactive'] ) {
123 $aParams[
'oxactions__oxactive'] = 0;
126 $oPromotion->setLanguage( 0 );
127 $oPromotion->assign( $aParams );
128 $oPromotion->setLanguage( $this->_iEditLang );
129 $oPromotion =
oxRegistry::get(
"oxUtilsFile")->processFiles( $oPromotion );