-
Notifications
You must be signed in to change notification settings - Fork 1
/
article_article.php
80 lines (77 loc) · 3.47 KB
/
article_article.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php require_once(dirname(__FILE__).'/config.php');?>
<!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">
<?php echo GetHeader($cid); ?>
<script src="php/loadtrace.php" async="" type="text/javascript"></script>
<script src="js/b.js" async="" charset="utf-8" type="text/javascript"></script>
<script src="js/b.js" async="" charset="utf-8" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/minify.js"></script>
<script src="js/logger.js"></script>
<link type="text/css" rel="stylesheet" href="css/bdsstyle.css">
<link href="css/m-front-icon.css" type="text/css" rel="stylesheet">
<script charset="UTF-8" src="js/Enter.js" id="BDBridgeSendData" language="javascript" type="text/javascript"></script>
<link href="css/m-front-mess.css" type="text/css" rel="stylesheet">
<link href="css/m-front-invite.css" type="text/css" rel="stylesheet">
<script charset="UTF-8" src="js/Refresh.js" id="BDBridgeReport" language="javascript" type="text/javascript"></script>
</head>
<body>
<link type="text/css" rel="stylesheet" href="css/jiathis_share.css">
<?php include('head.php');?>
<div class="ad"> <a href="single_article.php?cid=34" class="pr fl service_tel"></a>
<div class="pr fr service_cont"> <a class="pr fl service_bnt s_bnt1" rel="nofollow" href="message.php"></a> <a class="pr fl service_bnt s_bnt2" rel="nofollow" href="message.php"></a> <a class="pr fl service_bnt s_bnt3" rel="nofollow" href="message.php"></a> <a class="pr fl service_bnt s_bnt4" rel="nofollow" href="message.php"></a>
<div class="pr fl service_links"> <a class="pa service_wb" style="height:120px;" rel="nofollow" target="_blank" href="#"></a> <a class="pa service_email" style="height:120px;" rel="nofollow" href="#"></a> </div>
</div>
</div>
<div class="Column Leader"> <em>当前位置</em> <a href="index.php">首页</a> - <a><?php echo GetCateInfo($cid);?></a> </div>
<div class="Column" style="width:960px;">
<div class="Column-R">
<div class="main_r_nav">
<p><?php echo GetCateInfo($cid);?></p>
</div>
<?php
//检测文档正确性
$r = $dosql->GetOne("SELECT * FROM `#@__infolist` WHERE id=$id AND mainid='$lang'");
if(@$r)
{
//增加一次点击量
$dosql->ExecNoneQuery("UPDATE `#@__infolist` SET hits=hits+1 WHERE id=$id");
$row = $dosql->GetOne("SELECT * FROM `#@__infolist` WHERE id=$id");
?>
<div class="main_r_con">
<dd>
<h3><?php echo $row['title']; ?></h3>
<div class="info"><small><?php echo t('更新时间:',$lang);?></small><?php echo GetDateTime($row['posttime']); ?><small><?php echo t('点击次数:',$lang);?></small><?php echo $row['hits']; ?></div>
<div id="article_content">
<?php
if($row['content'] != '')
{
echo GetContPage($row['content']);
}
else
{
echo '网站资料更新中...';
}
?>
</div>
<div class="preAndNext">
<ul>
<?php echo pn();?>
</ul>
</div>
<?php
}
?>
</dd>
</div>
</div>
<?php include('sidebar.php');?>
</div>
<script type="text/javascript" language="javascript" src="js/jcarousellite.js"></script>
<script type="text/javascript" language="javascript" src="js/index.js"></script>
<?php include('footer.php');?>
<!--底部结束-->
</body>
</html>