⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 support_faq.php

📁 一个全功能的国外博客商业程序
💻 PHP
字号:
<?
$page = "support_faq.php";
include "header.php";
echo $head;


$isfaqon = mysql_fetch_assoc(mysql_query("SELECT faq_on FROM bhost_admin"));
if($isfaqon[faq_on] == "no") {
echo "
<h2>$support_faq1</h2><br>
$support_faq2
";
echo $foot;
exit();
}


if(isset($_GET['q_id'])) { $q_id = $_GET['q_id']; }



if($q_id != "") {
$question_query = mysql_query("SELECT * FROM bhost_faq WHERE q_id='$q_id'");
$question = mysql_fetch_assoc($question_query);
if(mysql_num_rows($question_query) == 0) {
echo "<h2>$support_faq1</h2><br>
$support_faq3
";
}

echo "
<h2>$question[question]</h2>
<table cellpadding='0' cellspacing='0' style='margin-top: 3px;'>
<tr>
<td class='entry' style='line-height: 17px;'>
$question[answer]
</td>
</tr>
</table>

<br>

<table cellpadding='0' cellspacing='0'>
<form action='support_faq.php' method='POST'>
<tr>
<td><input type='submit' class='button' value='$support_faq4'>&nbsp;</td>
</form>
<form action='support.php' method='POST'>
<td><input type='submit' class='button' value='$support_faq5'></td>
</tr>
</form>
</table>
";




} else {





echo "

<h2>$support_faq6</h2>
";

$faq_questions = mysql_query("SELECT * FROM bhost_faq");
$numofquestions = mysql_num_rows($faq_questions);

if($numofquestions > 0) {
echo "
$support_faq7

<br>
";
} else {
echo "
$support_faq8
<br><br>
<table cellpadding='0' cellspacing='0'>
<tr>
<form action='support.php' method='POST'><td><input class='button' type='submit' value='$support_faq9'></td></form>
</tr>
</table>
</td>
</tr>
</table>
";

echo $foot;
exit();
}

$counter = 0;
$faqcat = mysql_query("SELECT * FROM bhost_faqcat ORDER BY c_order");
$num_of_kitties = mysql_num_rows($faqcat);
while($faqcat_info = mysql_fetch_assoc($faqcat)) {
$counter++;
echo "
<br><table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='entry' style='line-height: 17px;'>
<b>$faqcat_info[category]</b><br>
";
$count = 0;
$questions1 = mysql_query("SELECT q_id, c_id, question FROM bhost_faq WHERE c_id='$faqcat_info[c_id]' ORDER BY q_order");
while($question = mysql_fetch_assoc($questions1)) {
$count++;
echo "$count. <a href='support_faq.php?q_id=$question[q_id]'>$question[question]</a><br>";
}
echo "
</td></tr></table>
";
}

echo "
<br>
<form action='support.php' method='POST'>
<input type='submit' class='button' value='$support_faq9'>
</form>
";

}





echo $foot;
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -