/[LeafOK_CVS]/fenglin/bbs/themes/portal/view_article.view.php
ViewVC logotype

Annotation of /fenglin/bbs/themes/portal/view_article.view.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sun Apr 13 03:28:34 2025 UTC (11 months ago) by sysadm
Branch: MAIN
Add files for theme portal

1 sysadm 1.1 <?
2     // Prevent load standalone
3     if (!isset($result_set))
4     {
5     exit();
6     }
7    
8     require_once "../lib/lml.inc.php";
9     require_once "../lib/str_process.inc.php";
10     require_once "./user_level.inc.php";
11    
12     $article = $result_set["data"]["articles"][0];
13     ?>
14     <html>
15     <head>
16     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
17     <title><? echo $BBS_name; ?> - <? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?> </title>
18     <link rel="stylesheet" href="<? echo get_theme_file('css/default'); ?>" type="text/css">
19     <style type="text/css">
20     TD.content
21     {
22     font-size: 16px;
23     line-height: 26px;
24     }
25     </style>
26     <script type="text/javascript" src="../js/img_adjust.js"></script>
27     </head>
28     <body>
29     <center>
30     <?
31     include "../www/head.inc.php";
32     ?>
33     <table width="760" border="0" cellpadding="0" cellspacing="0">
34     <tr height=20 bgcolor=#F3F9FC>
35     <td width="20">&nbsp;</td>
36     <td><? echo $BBS_name; ?> &gt;&gt; <? echo split_line(htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'), "", 65, 2); ?></td>
37     <td width="200" align="right">本文已被浏览<font color=red><? echo $result_set["data"]["view_count"]; ?></font>次</td>
38     <td width="20">&nbsp;</td>
39     </tr>
40     <tr>
41     <td colspan=4 height=1 bgcolor=gray></td>
42     </tr>
43     <tr height=5>
44     <td>&nbsp;</td>
45     </tr>
46     </table>
47     <table width="760" border="0" cellpadding="0" cellspacing="0">
48     <tr height="20">
49     <td width="5%"></td>
50     <td width="90%"></td>
51     <td width="5%"></td>
52     </tr>
53     <tr>
54     <td></td>
55     <td>
56     <table width="100%" border="0" cellpadding="0" cellspacing="0">
57     <tr height="30">
58     <td align="center"><font size=4><b><? echo split_line(htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'), "", 70, 2); ?></b></font> <font color=gray>[<? echo ($article["transship"]?"转载":"原创"); ?>]</font></td>
59     </tr>
60     <tr height="20">
61     <td align="center">(<? echo $article["sub_dt"]->format("Y-m-d H:i:s"); ?>) <? echo ($article["transship"]?"转载":"作者"); ?>:<? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></td>
62     </tr>
63     <tr height="10">
64     <td></td>
65     </tr>
66     <tr height="1">
67     <td align="center" bgcolor=gray></td>
68     </tr>
69     <tr height="20">
70     <td></td>
71     </tr>
72     <tr>
73     <td class="content"><? echo LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80); ?></td>
74     </tr>
75     <tr>
76     <td>
77     <br />
78     <?
79     foreach ($article["attachments"] as $attachment)
80     {
81     $filename = $attachment["filename"];
82     $ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0)));
83     ?>
84     <img src="../www/images/dl.gif"><a class="s2" href="../bbs/dl_file.php?aid=<? echo $attachment["aid"]; ?>" target="_target"><? echo $filename; ?></a> (<? echo $attachment["size"]; ?>字节)
85     <?
86     if ($attachment["check"] == 0)
87     {
88     ?><font color="red">未审核</font><?
89     }
90     else
91     {
92     switch ($ext)
93     {
94     case "bmp":
95     case "gif":
96     case "jpg":
97     case "jpeg":
98     case "png":
99     case "tif":
100     case "tiff":
101     ?>
102     <img onmousewheel="return bbs_img_zoom(event, this)" src="../bbs/dl_file.php?aid=<? echo $attachment["aid"]; ?>">
103     <?
104     break;
105     }
106     }
107     ?>
108     <br />
109     <?
110     }
111     ?>
112     </td>
113     </tr>
114     <tr height="20">
115     <td>
116     </td>
117     </tr>
118     <tr height="20">
119     <td align="right">
120     已有<font color=red><? echo $result_set["data"]["reply_count"]; ?></font>人发表评论
121     </td>
122     </tr>
123     <tr height="10">
124     <td>
125     </td>
126     </tr>
127     <tr>
128     <td align="right">
129     【<a href="/bbs/view_article.php?id=<? echo $aid; ?>" >相关评论</a>】
130     </td>
131     </tr>
132     </table>
133     </td>
134     <td>
135     </td>
136     </tr>
137     <tr height="20">
138     <td></td>
139     </tr>
140     </table>
141     <?
142     include "../www/foot.inc.php";
143     ?>
144     </center>
145     </body>
146     </html>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1