Example #1
0
<?php

require_once "../lib/model/page.model.php";
require_once "../lib/model/article.model.php";
$articles = new Article();
$pages = new Page();
if (@$_GET['id']) {
    $page = $pages->getPage(@$_GET["id"]);
    //$article=$articles->getArticle(@$_GET["id"]);
    $recommentArticle = $articles->getRecomment(3);
} else {
    $page = 'wrong';
    $recommentArticle = array();
}
/*//echo "<script  type='text/javascript'>console.log($page)</script>";*/
//$recommentArticle = array();
?>
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>页面内容</title>

<link rel="stylesheet" media="all" type="text/css" href="../css/head.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/scroll.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/link.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/tail.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/style.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/content-style.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/menus.css" />