<?php

require_once "../configure.php";
require_once DIR_WS_DB . "mysql_db.php";
require_once DIR_WS_SERVICES . "article_services.php";
$db = new MysqlDB();
$articles_service = new ArticleService();
$per_page = PAGESIZE;
$aid = empty($_GET) ? "a1" : $_GET["article_uid"];
$article_detail = $articles_service->getArticleDetail($aid);
$more = $_GET["more"];
if (empty($more)) {
    $more = "show";
}
?>

<?php 
if ($more === "show") {
    ?>

	<div class="row-fluid" id="<?php 
    echo $aid;
    ?>
">
	   <div class="hero-unit">
           <h3 ><?php 
    echo $article_detail[0]['article_name'];
    ?>
</h3>
           <p style="font-size:50%"><?php 
    echo $article_detail[0]['article_moddate'] . "</br>";
Beispiel #2
0
<?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)';