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>',
|
2011-06-03 15:08:05 +02:00
|
|
|
$faq['Frage_de'],
|
|
|
|
$faq['Antwort_de']
|
2011-06-03 11:34:54 +02:00
|
|
|
);
|
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>',
|
2011-06-03 15:08:05 +02:00
|
|
|
$faq['Frage_en'],
|
|
|
|
$faq['Antwort_en']
|
2011-06-03 11:34:54 +02:00
|
|
|
);
|
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;
|
|
|
|
}
|
|
|
|
?>
|