Файл: RootPanel 1.7.0 FreeCode/RootPanel 1.7.0 FreeCode/_rootbill/_faq.inc.php
Строк: 30
<?
_head('utf-8',$_lang[FaqTitle]);
print "<div align='left'>";
if ($group == '0') { $group="0"; } else { $group=@intval($group); }
$groups = GetFaqGroups();
if (@mysql_num_rows($groups) > 0) {
print "<ul>";
while ($grp = @mysql_fetch_object($groups)) {
$faqs=GetFaqs($grp->id);
if (@mysql_num_rows($faqs) > 0) {
print "<li class=faqgroup>$grp->name</b>";
print "<ul>";
while ($faq = @mysql_fetch_object($faqs)) {
print "<li class=faqitem><a href=?do=$do&group=$grp->id#item$faq->id class=faqitemlink>$faq->name</a>";
}
print "</ul><BR>";
}
}
print "</ul>";
} else {
$nogroups = 1;
}
$faqs=GetFaqs('0');
if (@mysql_num_rows($faqs) > 0) {
print "<ul>";
while ($faq = @mysql_fetch_object($faqs)) {
print "<li class=faqitem><a href=?do=$do&group=0#item$faq->id class=faqitemlink>$faq->name</a>";
}
print "</ul>";
}
print "<BR>";
if ($group != "" or $nogroups) {
$faqs=GetFaqs("$group");
if (@mysql_num_rows($faqs) > 0) {
while ($faq = @mysql_fetch_object($faqs)) {
print "<a name="item$faq->id"></a><B class="faqtitle">".$faq->name."</B><BR><BR>".htmlDecode($faq->message)."<BR><BR>";
}
}
}
print "</div>";
_foot('utf-8');
?>