2011-06-02 00:48:29 +02:00
|
|
|
<?php
|
2013-11-25 21:04:58 +01:00
|
|
|
function faq_title() {
|
|
|
|
return _("FAQ");
|
|
|
|
}
|
|
|
|
|
2011-06-02 00:48:29 +02:00
|
|
|
function guest_faq() {
|
|
|
|
$html = "";
|
2012-11-06 00:28:27 +01:00
|
|
|
$faqs = sql_select("SELECT * FROM `FAQ`");
|
2011-06-03 01:03:39 +02:00
|
|
|
foreach ($faqs as $faq) {
|
|
|
|
$html .= "<dl>";
|
2013-11-25 21:04:58 +01:00
|
|
|
if ($_SESSION['locale'] == "de_DE.UTF-8") {
|
2012-11-06 00:28:27 +01:00
|
|
|
$html .= sprintf(
|
|
|
|
'<dt>%s</dt> <dd>%s</dd>',
|
|
|
|
$faq['Frage_de'],
|
|
|
|
$faq['Antwort_de']
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
$html .= sprintf(
|
|
|
|
'<dt>%s</dt> <dd>%s</dd>',
|
|
|
|
$faq['Frage_en'],
|
|
|
|
$faq['Antwort_en']
|
|
|
|
);
|
|
|
|
}
|
2011-06-03 01:03:39 +02:00
|
|
|
$html .= "</dl>";
|
|
|
|
}
|
2011-06-02 00:48:29 +02:00
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
?>
|