23 if ( $soxId !=
"-1" && isset( $soxId)) {
25 $oLinks =
oxNew(
"oxlinks", getViewName(
'oxlinks'));
26 $oLinks->loadInLang( $this->_iEditLang, $soxId );
28 $oOtherLang = $oLinks->getAvailableInLangs();
29 if (!isset($oOtherLang[$this->_iEditLang])) {
31 $oLinks->loadInLang( key($oOtherLang), $soxId );
33 $this->_aViewData[
"edit"] = $oLinks;
36 $this->_aViewData[
"posslang"] = array_diff (
oxRegistry::getLang()->getLanguageNames(), $oOtherLang);
38 foreach ( $oOtherLang as $id => $language) {
39 $oLang=
new stdClass();
40 $oLang->sLangDesc = $language;
42 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
47 $this->_aViewData[
"editor"] = $this->
_generateTextEditor(
"100%", 255, $oLinks,
"oxlinks__oxurldesc",
"links.tpl.css");
49 return "adminlinks_main.tpl";
62 if ( !isset( $aParams[
'oxlinks__oxactive']))
63 $aParams[
'oxlinks__oxactive'] = 0;
67 if (isset($aParams[
'oxlinks__oxurldesc']) && strlen($aParams[
'oxlinks__oxurldesc']) == 0)
68 $aParams[
'oxlinks__oxurldesc'] .=
" ";
70 if ( !$aParams[
'oxlinks__oxinsert']) {
74 if ($sDate ==
"simpleDateFormat")
75 $aParams[
'oxlinks__oxinsert'] = date(
"Y-m-d");
77 $aParams[
'oxlinks__oxinsert'] = $sDate;
81 $oLinks =
oxNew(
"oxlinks", getViewName(
'oxlinks'));
83 if ( $soxId !=
"-1") {
85 $oLinks->loadInLang( $iEditLanguage, $soxId );
88 $aParams[
'oxlinks__oxid'] = null;
93 $oLinks->setLanguage(0);
94 $oLinks->assign( $aParams);
95 $oLinks->setLanguage( $iEditLanguage );
114 if ( !isset( $aParams[
'oxlinks__oxactive']))
115 $aParams[
'oxlinks__oxactive'] = 0;
119 $aParams[
'oxlinks__oxshopid'] = $sShopID;
120 $oLinks =
oxNew(
"oxlinks", getViewName(
'oxlinks'));
124 $oLinks->loadInLang( $iEditLanguage, $soxId );
126 $aParams[
'oxlinks__oxid'] = null;
131 $oLinks->setLanguage(0);
132 $oLinks->assign( $aParams);