00021 {
00022 $data =&
getDataInstance();
00023
$db =&
getDbReaderInstance();
00024 $func =
new JuelichFunction();
00025 $tplStart = '<table border=
"1" cellspacing=
"0" cellpadding=
"1">';
00026 $tplEnd = '</table>';
00027 $modus = $data->getAppData('group1');
00028 $l10n = $data->getAppData('l10n');
00029 $hId = 0;
00030
00031
if ($modus == 'meade' ) {
00032 $hId = 9;
00033 }
00034 elseif ($modus == 'vixen') {
00035 $hId = 3;
00036 }
00037
00038 $zubKat =
$db->getTemplateContent('teleskop-zubehoer-kat', 0);
00039 $zub =
$db->getTemplateContent('teleskop-zubehoer', 0);
00040
00041 $content = $tplStart;
00042 $catData = array();
00043 $accData = array();
00044
$db->getTelAccessCats($hId, $catData);
00045 foreach ($catData as $cat) {
00046 $content .= sprintf($zubKat,
00047 $cat['name']
00048 );
00049
$db->getTelAccess($cat['
id'], $accData);
00050 foreach ($accData as $acc) {
00051 $content .= sprintf($zub,
00052 $acc['name'],
00053 $func->getValue(F_FP, $acc['price'])
00054 );
00055 }
00056 }
00057 $content .= $tplEnd;
00058
return $content;
00059 }