// Template öffnen
$tpl = opentpl($design);
$tplzeile = opentpl($zeile);
// Inhalt Parsen
while ($r_eintr = mysql_fetch_array($rs_eintr)) {
$out_eintr.= $tplzeile;
$out_eintr = str_replace({Wert1}, $r_eintr['wert1'], $out_eintr);
... hier kommen noch 6 Werte
}
$out_gesamt = str_replace({inhalt}, $out_eintrag, $tpl);
// Rückgabe Gesamttemplate
return $out_gesamt;
|