Ejemplo n.º 1
0
 * 显示所有问题页面
 */
session_start();
error_reporting(0);
header("Content-Type: text/html; charset=UTF-8");
//如有必要一定要设置成utf-8
require dirname(__FILE__) . '/includes/common.inc.php';
//转换成硬路径
require ROOT_PATH . 'mode/question.class.php';
require ROOT_PATH . 'mode/user.class.php';
/*
 *  处理传的参数
 */
$question = new questionmode();
if ($_GET['type'] == "views") {
    $views = $question->suprise();
} else {
    if ($_GET['type'] == "answers") {
        $views = $question->answersfin();
    } else {
        if ($_GET['type'] == "price") {
            $views = $question->price();
        } else {
            if ($_GET['type'] == "status") {
                $views = $question->statusfin();
            } else {
                $views = $question->statusall();
            }
        }
    }
}