Exemplo n.º 1
0
        $answer = filter($row['answer']);
        echo "<tr><td><a name=\"{$id}\"></a>" . "<strong><big>&middot;</big></strong>&nbsp;&nbsp;<b>{$question}</b>" . "<p align=\"justify\">{$answer}</p>" . "[ <a href=\"#top\">" . _BACKTOTOP . "</a> ]" . "<br><br>" . "</td></tr>";
    }
    echo "</table><br><br>" . "<div align=\"center\"><b>[ <a href=\"modules.php?name={$module_name}\">" . _BACKTOFAQINDEX . "</a> ]</b></div>";
}
if (!isset($myfaq)) {
    global $currentlang, $multilingual;
    if ($multilingual == 1) {
        $querylang = "WHERE flanguage='{$currentlang}'";
    } else {
        $querylang = "";
    }
    include "header.php";
    OpenTable();
    echo "<center><font class=\"option\">" . _FAQ2 . "</font></center><br><br>" . "<table width=\"100%\" cellpadding=\"4\" cellspacing=\"0\" border=\"0\">" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"option\"><b>" . _CATEGORIES . "</b></font></td></tr><tr><td>";
    $result2 = $db->sql_query("SELECT id_cat, categories FROM " . $prefix . "_faqcategories {$querylang}");
    while ($row2 = $db->sql_fetchrow($result2)) {
        $id_cat = intval($row2['id_cat']);
        $categories = filter($row2['categories'], "nohtml");
        echo "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name={$module_name}&amp;myfaq=yes&amp;id_cat={$id_cat}&amp;categories={$catname}\">{$categories}</a><br>";
    }
    echo "</td></tr></table>";
    CloseTable();
    include "footer.php";
} else {
    include "header.php";
    ShowFaq($id_cat, $categories);
    ShowFaqAll($id_cat);
    CloseTable();
    include "footer.php";
}
Exemplo n.º 2
0
       <a href="#" class="list-group-item disabled">
       <h3>' . translate("Categories") . '<span class="label label-default label-pill pull-xs-right">' . sql_num_rows($result) . '</span></h3></a>';
        while (list($id_cat, $categories) = sql_fetch_row($result)) {
            $catname = urlencode(aff_langue($categories));
            echo '<a class="list-group-item" href="faq.php?id_cat=' . $id_cat . '&amp;myfaq=yes&amp;categories=' . $catname . '"><h4 class="list-group-item-heading">' . aff_langue($categories) . '</h4></a>';
        }
        echo '</div>';
    }
    if ($SuperCache) {
        $cache_obj->endCachingPage();
    }
    include "footer.php";
} else {
    $title = "FAQ : " . removeHack(StripSlashes($categories));
    include "header.php";
    // Include cache manager
    if ($SuperCache) {
        $cache_obj = new cacheManager();
        $cache_obj->startCachingPage();
    } else {
        $cache_obj = new SuperCacheEmpty();
    }
    if ($cache_obj->genereting_output == 1 or $cache_obj->genereting_output == -1 or !$SuperCache) {
        ShowFaq($id_cat, removeHack($categories));
        ShowFaqAll($id_cat);
    }
    if ($SuperCache) {
        $cache_obj->endCachingPage();
    }
    include "footer.php";
}