コード例 #1
0
ファイル: que_details.php プロジェクト: vpsguan/guantest
/*
 * 显示问题页面
 */
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/answer.class.php';
require ROOT_PATH . 'mode/user.class.php';
$question = new questionmode();
$answer = new answermode();
$que_id = $_GET['type'];
$resultq = $question->piece_que($que_id);
$resulta = $answer->answerall($que_id);
$answer->addviews($que_id);
$usermode = new usermode();
$userinfo = $usermode->getuserinfo($resultq['authorid']);
$answerstar = $usermode->answerstar();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>lzuask回答</title>
<link rel="stylesheet" type="text/css" href="css/header.css" />
<link rel="stylesheet" type="text/css" href="css/details/que_detail.css" />
<link rel="stylesheet" type="text/css" href="requires/fault/ask_right.css" />
<script charset="utf-8" src="kindeditor/kindeditor.js"></script>