21 if ( $soxId !=
"-1" && isset( $soxId)) {
23 $oVendor =
oxNew(
"oxvendor" );
24 $oVendor->loadInLang( $this->_iEditLang, $soxId );
26 $oOtherLang = $oVendor->getAvailableInLangs();
27 if (!isset($oOtherLang[$this->_iEditLang])) {
29 $oVendor->loadInLang( key($oOtherLang), $soxId );
31 $this->_aViewData[
"edit"] = $oVendor;
37 if ($oVendor->isDerived())
38 $this->_aViewData[
'readonly'] =
true;
43 $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 $oVendorMainAjax =
oxNew(
'vendor_main_ajax' );
55 $this->_aViewData[
'oxajax'] = $oVendorMainAjax->getColumns();
57 return "popups/vendor_main.tpl";
59 return "vendor_main.tpl";
74 if ( !isset( $aParams[
'oxvendor__oxactive'] ) ) {
75 $aParams[
'oxvendor__oxactive'] = 0;
81 $oVendor =
oxNew(
"oxvendor" );
83 $oVendor->loadInLang( $this->_iEditLang, $soxId );
85 $aParams[
'oxvendor__oxid'] = null;
89 $oVendor->setLanguage(0);
90 $oVendor->assign( $aParams );
91 $oVendor->setLanguage( $this->_iEditLang );
109 if ( !isset( $aParams[
'oxvendor__oxactive'] ) ) {
110 $aParams[
'oxvendor__oxactive'] = 0;
116 $oVendor =
oxNew(
"oxvendor" );
119 $oVendor->loadInLang( $this->_iEditLang, $soxId );
121 $aParams[
'oxvendor__oxid'] = null;
125 $oVendor->setLanguage(0);
126 $oVendor->assign( $aParams );
127 $oVendor->setLanguage( $this->_iEditLang );