<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/lavender/model/ArticleService.class.php'; if (isset($_GET['id'])) { $id = $_GET['id']; } else { echo "操作非法"; exit; } $articleService = new ArticleService(); $res_class = $articleService->getArticleDetail($id); $articleService->AddReadTime($id); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>文章详情</title> <link rel="stylesheet" type="text/css" href="./css/app.css"/> <link rel="stylesheet" type="text/css" href="./css/article.css" /> <script type="text/javascript" src="./js/jquery-2.1.4.min.js"></script> <script type="text/javascript" src="./js/jquery.rotate.js"></script> <script type="text/javascript" src="./js/login.js"></script> <script type="text/javascript"> var arr=new Array(); arr[0]='rgb(255,0,0)'; arr[1]='rgb(255,165,0)'; arr[2]='rgb(255,255,0)'; arr[3]='rgb(0,255,0)'; arr[4]='rgb(0,127,255)'; arr[5]='rgb(0,0,255)'; arr[6]='rgb(139,0,255)';