engelsystem/includes/pages/guest_faq.php

25 lines
434 B
PHP
Raw Normal View History

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") {
$html .= sprintf(
'<dt>%s</dt> <dd>%s</dd>',
$faq['frage_de'],
$faq['antwort_de']
);
2011-06-03 01:03:39 +02:00
} else {
$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;
}
?>