/[LeafOK_CVS]/fenglin/www/journal.php
ViewVC logotype

Annotation of /fenglin/www/journal.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations)
Fri Mar 28 05:50:18 2025 UTC (11 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.11: +5 -4 lines
Refine

1 sysadm 1.1 <?
2 sysadm 1.12 require_once "../lib/db_open.inc.php";
3     require_once "../lib/common.inc.php";
4     ?>
5     <?
6 sysadm 1.1 if (isset($_GET["jid"]))
7     $jid=intval($_GET["jid"]);
8     else
9     $jid=0;
10     if (isset($_GET["uid"]))
11     $uid=intval($_GET["uid"]);
12     else
13     $uid=0;
14     if (isset($_GET["as_email"]))
15 sysadm 1.12 $base_url="https://" . $BBS_host_name;
16 sysadm 1.1 else
17     $base_url="";
18    
19     $rs=mysql_query("select * from journal_index where JID=$jid and enable")
20     or die("Query journal_index error!");
21     if ($row=mysql_fetch_array($rs))
22     {
23     $dt=$row["dt"];
24     }
25     else
26     {
27     echo ("Journal ID not exists!");
28     exit();
29     }
30     mysql_free_result($rs);
31    
32     $f_section_list="-1,";
33     if ($uid==0)
34     {
35     $rs=mysql_query("select SID from section_config where enable")
36     or die("Query section_config error!");
37     }
38     else
39     {
40     $rs=mysql_query("select SID,UID from section_favorite where UID=$uid")
41     or die("Query section_favorite error!");
42     if (mysql_num_rows($rs)==0)
43     {
44     mysql_free_result($rs);
45     $rs=mysql_query("select SID from section_config where enable")
46     or die("Query section_config error!");
47     }
48     }
49     while($row=mysql_fetch_array($rs))
50     {
51     $f_section_list=$f_section_list.$row["SID"].",";
52     }
53     mysql_free_result($rs);
54     $f_section_list=substr($f_section_list,0,strlen($f_section_list)-1);
55    
56     $section_list="-1,";
57     $rs=mysql_query("select SID from journal_data inner join bbs on journal_data.AID=bbs.AID".
58     " where journal_data.JID=$jid and bbs.SID in ($f_section_list)")
59     or die("Query journal_data error!");
60     while($row=mysql_fetch_array($rs))
61     {
62     $section_list=$section_list.$row["SID"].",";
63     }
64     mysql_free_result($rs);
65     $section_list=substr($section_list,0,strlen($section_list)-1);
66    
67     $class_list="-1,";
68     $rs=mysql_query("select CID from section_config where SID in ($section_list) and enable")
69     or die("Query section_config error!");
70     while($row=mysql_fetch_array($rs))
71     {
72     $class_list=$class_list.$row["CID"].",";
73     }
74     mysql_free_result($rs);
75     $class_list=substr($class_list,0,strlen($class_list)-1);
76     ?>
77     <html>
78     <head>
79 sysadm 1.7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
80     <title>枫林在线 -- 精品导读</title>
81 sysadm 1.1 </head>
82     <body marginheight="15" marginwidth="15" leftmargin="15" topmargin="15" link="#000066" bgcolor="#FFFFFF" alink="#990000" vlink="#444464">
83     <center>
84     <a name="top"></a>
85     <table cellpadding="0" cellspacing="0" border="0" width="600">
86     <tr>
87     <td width="600" colspan="3" align="center">
88     <?
89     if (isset($_GET["as_email"]))
90     {
91     ?>
92 sysadm 1.7 <font color="#CCCCCC" size="-2">如果您无法阅读本邮件,请访问<a href="<? echo $base_url; ?>/www/journal.php?jid=<? echo $jid; ?>&uid=<? echo $uid; ?>" target="_blank"><? echo $base_url; ?>/www/journal.php?jid=<? echo $jid; ?>&uid=<? echo $uid; ?></a></font><br>&nbsp;</td>
93 sysadm 1.1 <?
94     }
95     ?>
96     </tr>
97     <tr>
98     <td width="1" colspan="3" bgcolor="#999999"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
99     </tr>
100     <tr>
101     <td width="1" bgcolor="#999999"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
102     <td width="598">
103     <table width="598" border="0" cellspacing="0" cellpadding="0">
104     <tr>
105     <td background="<? echo $base_url; ?>/www/images/spacer_bkgd.gif" height="55" colspan="6">
106     <table cellpadding="0" cellspacing="0" border="0">
107     <tr>
108     <td>
109     <img src="<? echo $base_url; ?>/www/images/spacer.gif" width="198" height="1" border="0" alt=""><br>
110     <font face="Times New Roman,Times,Serif" size="-1" color="#333333">&nbsp;&nbsp;<? echo date ("l, F d, Y",strtotime($dt)); ?><br>
111     </font></td>
112     <td align="center"><img src="<? echo $base_url; ?>/images/logo/fenglinonline.gif" alt="" width="130" height="50" border="0"></td>
113     <td><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="198" height="1" border="0" alt=""></td>
114     </tr>
115     </table>
116     </td>
117     </tr>
118     <tr>
119     <td colspan="6"><img src="<? echo $base_url; ?>/www/images/line.gif" alt="" width="598" height="4" border="0"></td>
120     </tr>
121     <tr>
122     <td width="5" bgcolor="#ffffff"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="5" height="1" border="0" alt=""></td>
123     <td width="393" valign="top">
124     <table width="393" border="0" cellpadding="0" cellspacing="0">
125     <tr>
126     <td width="393">
127     <table border="0" width="393" cellpadding="0" cellspacing="0">
128     <tr>
129 sysadm 1.7 <td width="131" colspan="2"><font face="Times New Roman,Times,Serif" size="-1"><strong>本期推荐:</strong></font></td>
130 sysadm 1.1 </tr>
131     <tr>
132     <td width="393" colspan="2"><br></td>
133     </tr>
134     <tr>
135     <td width="393" colspan="2" valign="top" align="left">
136     <font face="Times New Roman,Times,Serif" size="-1">
137     <?
138     $cl_index=0;
139     $rs=mysql_query("select * from section_class where CID in ($class_list)".
140     " and enable order by sort_order")
141     or die("Query section_class error!");
142     while($row=mysql_fetch_array($rs))
143     {
144     ?>
145     <a href="#<? echo $row["cname"]; ?>"><? echo $row["title"]; ?></a>&nbsp;|&nbsp;
146     <?
147     $cl_index++;
148     if ($cl_index>=5)
149     {
150     echo ("<br>");
151     $cl_index=0;
152     }
153     }
154     mysql_free_result($rs);
155     ?>
156     </font><br><br>
157 sysadm 1.7 <font face="Times New Roman,Times,Serif" size="-1" color="#333333"><a href="<? echo $base_url; ?>/bbs/s_favor.php" target="_blank">设定我喜欢的栏目</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<? echo $base_url; ?>/bbs/search_form.php" target="_blank">查找</a><br><br></font>
158 sysadm 1.1 </td>
159     </tr>
160     </table>
161     </td>
162     </tr>
163     <?
164     $rs=mysql_query("select * from section_class where CID in ($class_list)".
165     " and enable order by sort_order")
166     or die("Query section_class error!");
167     while($row=mysql_fetch_array($rs))
168     {
169     ?>
170     <tr>
171     <td width="393">
172     <table border="0" width="393" cellpadding="0" cellspacing="0">
173     <tr>
174     <td width="393" bgcolor="#e4e4e4" height="24" valign="center" colspan="2">
175     <a name="<? echo $row["cname"]; ?>"></a>
176     <img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0">&nbsp;<font face="times, times new roman, sans serif" size="-1"><strong><? echo $row["title"]; ?></strong></font> </td>
177     </tr>
178     <tr>
179     <td width="393" colspan="2"> <br> <font size="-1">
180     <?
181     $rs_article=mysql_query("select journal_data.abstract,bbs.*,section_config.title as s_title".
182     " from journal_data inner join bbs on journal_data.AID=bbs.AID".
183     " inner join section_config on bbs.SID=section_config.SID inner join section_class".
184     " on section_config.CID=section_class.CID".
185     " where journal_data.JID=$jid and section_class.CID=".$row["CID"].
186     " and bbs.SID in ($section_list) order by section_config.sort_order,bbs.sub_dt")
187     or die("Query journal_data error!");
188     while($row_article=mysql_fetch_array($rs_article))
189     {
190     ?>
191     <font size="3"><strong><a href="<? echo $base_url; ?>/www/show_article.php?aid=<? echo $row_article["AID"]; ?>" target="_blank"><? echo $row_article["title"]; ?></a></strong></font><br>
192     <font color="#666666" size="-1"><? echo $row_article["s_title"]; ?>&nbsp;&nbsp;
193     By <? echo $row_article["nickname"]; ?></font><br>
194 sysadm 1.11 <? echo str_replace(" ", "&nbsp;", str_replace("\n", "<br>", htmlspecialchars($row_article["abstract"], ENT_HTML401, 'UTF-8'))); ?><br>
195 sysadm 1.1 <br>
196     <?
197     }
198     mysql_free_result($rs_article);
199     ?>
200 sysadm 1.10 </font>
201     </td>
202 sysadm 1.1 </tr>
203     <tr>
204 sysadm 1.10 <td width="393" align="left"><br></td>
205     <td width="100" align="right"><br></td>
206 sysadm 1.1 </tr>
207     </table>
208     </td>
209     </tr>
210     <?
211     }
212     mysql_free_result($rs);
213     ?>
214     </table>
215     </td>
216     <td width="5" bgcolor="#ffffff"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
217     <td width="1" bgcolor="#eeeeee"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
218     <td width="5" bgcolor="#ffffff"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
219     <td width="184" valign="top" align="center"><br clear="all">
220     <br clear="all">
221     <br>
222     </td>
223     </tr>
224     </table>
225     <table border="0" width="598" cellspacing="0" cellpadding="0">
226     <tr>
227     <td width="598" colspan="3" bgcolor="#999999"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
228     </tr>
229     <tr>
230     <td width="5"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
231     <td width="588"> <p>&nbsp;</p>
232 sysadm 1.7 <p><font face="Times New Roman,Times,Serif" size="-1"><strong>枫林在线论坛精华区</strong><br>
233 sysadm 1.1 <br>
234 sysadm 1.10 枫林在线除了向您推荐近期的优秀文章外,还提供以往的精彩文章的<a href="<? echo $base_url; ?>/gen_ex/">在线浏览</a>服务。</font>
235 sysadm 1.1 </p>
236     <hr width="588" size="1">
237 sysadm 1.7 <p> <font face="Times New Roman,Times,Serif" size="-1"> <strong>关于本邮件</strong><br>
238 sysadm 1.1 <br>
239 sysadm 1.7 感谢您订阅枫林在线的《精品导读》,您可以从我们提供的<a href="<? echo $base_url; ?>/bbs/preference.php">个人设定</a>功能中订阅/取消订阅本刊物。<br>
240 sysadm 1.1 <br>
241 sysadm 1.7 如果您对我们的工作有什么意见或建议,请<a href="<? echo $base_url; ?>/www/contact_us.php">与我们联系</a>。</font></p>
242 sysadm 1.1 <p><br>
243     </p></td>
244     <td width="5"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
245     </tr>
246     <tr>
247     <td width="598" colspan="3" bgcolor="#999999"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
248     </tr>
249     <tr>
250     <td width="598" colspan="3" bgcolor="#e4e4e4" height="25"> <img src="<? echo $base_url; ?>/www/images/spacer.gif" width="5" height="1" border="0">
251     <font face="Times New Roman,Times,Serif" size="-1"> Copyright &copy;
252 sysadm 1.8 2003-2025 <a href="<? echo $base_url; ?>/" target="_blank">枫林在线</a> | <a href="<? echo $base_url; ?>/www/privacy.php">隐私保护</a> </font> </td>
253 sysadm 1.1 </tr>
254     </table>
255     </td>
256     <td width="1" bgcolor="#999999"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
257     </tr>
258     <tr>
259     <td width="1" colspan="3" bgcolor="#999999"><img src="<? echo $base_url; ?>/www/images/spacer.gif" width="1" height="1" border="0"></td>
260     </tr>
261     </table>
262     </center>
263     </body>
264     </html>

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