Esempio n. 1
0
        $ordenSQL = "select id, pregunta, respuesta from faqs where publico = true order by orden";
        $result = $__BD->db_query($ordenSQL);
        $menu = '';
        $texto = '';
        while ($row = $__BD->db_fetch_array($result)) {
            $pregunta = $__LIB->traducir("faqs", "pregunta", $row["id"], $row["pregunta"]);
            $respuesta = $__LIB->traducir("faqs", "respuesta", $row["id"], $row["respuesta"]);
            $menu .= '<a href="general/faq.php#' . $row[0] . '">' . $pregunta . '</a><br/>';
            $texto .= '<a name="' . $row[0] . '"></a>';
            $texto .= '<h2>' . $pregunta . '</h2>';
            $texto .= nl2br($respuesta);
            $texto .= '<p><br/><a class="botLink" href="general/faq.php#home">' . _INICIO . '</a></p>';
        }
        echo $menu;
        echo $texto;
        echo '</div>';
    }
}
//// OFICIAL /////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
/** @main_class_definition oficial_faq */
class faq extends oficial_faq
{
}
$iface_faq = new faq();
$iface_faq->contenidos();
?>


<?php 
include "../includes/right_bottom.php";