00052 {
00053 $data =&
getDataInstance();
00054
$db =&
getDbReaderInstance();
00055 $cont =& $data->getAppDataContainer();
00056
00057 $this->dataProduct->getModel($
id, $row);
00058 $name = '';
00059 $pos = strpos($row['m_name'],
'_', 0);
00060
if ($pos > 0) {
00061 $name = substr($row['m_name'], 0, $pos);
00062 }
00063
else {
00064 $name = $row['m_name'];
00065 }
00066 $cont['modelName'] = $name;
00067 $cont['modelSort'] = $row['m_sort'];
00068
00069 $search = $row['m_forumSearch'];
00070
if ($search == '') {
00071 $search = $name;
00072 }
00073 $mod = $data->getAppData('module');
00074
if ($mod->gruppe_id ==
G_LUPE ||
00075 $mod->gruppe_id ==
G_MIKTISCH
00076 ) {
00077 $search = '';
00078 }
00079 $fLink = '';
00080
if ($search != 'noSearch' &&
00081 $data->getAppData('l10n') ==
L_DEUTSCH) {
00082 $type = 'ANY';
00083 $args = explode(
'_', $search );
00084
if (count( $args ) > 1) {
00085
if ($args[1] == 'UND') {
00086 $type = 'ALL';
00087 }
00088 $search = $args[0];
00089 }
00090 $fLink .= '<a href=
"/jForum/search.php?0,search='
00091
. $search
00092
. ',page=1,match_type='
00093
. $type
00094
. ',match_dates=0,match_forum=ALL,'
00095
. 'body=1,author=,subject=1">'
00096 . '<font color=
"#ee0000">'
00097 . '(Forumsbeiträge über diese Modell-Reihe)'
00098 . '</font></a>';
00099 }
00100 $mText = '';
00101 $tmp = '';
00102
if ($row['m_besch'] != '') {
00103 $tmp =
$db->getTemplateContent('product-modell-text-line', 0);
00104 $mText = sprintf($tmp,
00105 $row['m_besch']
00106 );
00107 }
00108 $tmp =
$db->getTemplateContent('product-modell-text', 0);
00109
return sprintf($tmp,
00110 $name,
00111 $fLink,
00112 $mText
00113 );
00114 }