2011-06-02 00:48:29 +02:00
|
|
|
<?php
|
|
|
|
function guest_faq() {
|
|
|
|
$html = "";
|
|
|
|
$faqs = sql_select("SELECT * FROM `FAQ`");
|
2011-06-03 01:03:39 +02:00
|
|
|
foreach ($faqs as $faq) {
|
|
|
|
$html .= "<dl>";
|
|
|
|
if ($_SESSION['Sprache'] == "DE") {
|
2011-06-03 11:34:54 +02:00
|
|
|
$html .= sprintf(
|
|
|
|
'<dt>%s</dt> <dd>%s</dd>',
|
|
|
|
$faq['frage_de'],
|
|
|
|
$faq['antwort_de']
|
|
|
|
);
|
2011-06-03 01:03:39 +02:00
|
|
|
} else {
|
2011-06-03 11:34:54 +02:00
|
|
|
$html .= sprintf(
|
|
|
|
'<dt>%s</dt> <dd>%s</dd>',
|
|
|
|
$faq['frage_en'],
|
|
|
|
$faq['antwort_en']
|
|
|
|
);
|
2011-06-02 00:48:29 +02:00
|
|
|
}
|
2011-06-03 01:03:39 +02:00
|
|
|
$html .= "</dl>";
|
|
|
|
}
|
2011-06-02 00:48:29 +02:00
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
?>
|