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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations)
Sun Apr 13 06:01:26 2025 UTC (11 months ago) by sysadm
Branch: MAIN
Changes since 1.5: +2 -14 lines
Update

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     // Pre-defined color setting of article display
13     $color = array(
14     "#FAFBFC",
15     "#f0F3Fa"
16     );
17     $color_index = 0;
18     ?>
19     <html>
20     <head>
21     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
22     <title><? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?></title>
23 sysadm 1.2 <link rel="stylesheet" href="<? echo get_theme_file('css/default'); ?>" type="text/css">
24 sysadm 1.1 <style type="text/css">
25     SPAN.title_normal
26     {
27     color: #909090;
28     }
29     SPAN.title_deleted
30     {
31     color: red;
32     text-decoration: line-through;
33     }
34     TD.content_normal
35     {
36     font-size: 14px;
37     }
38     TD.content_deleted
39     {
40     font-size: 14px;
41     text-decoration: line-through;
42     }
43     </style>
44     <script type="text/javascript" src="/js/nw_open.js"></script>
45     <script type="text/javascript" src="../js/img_adjust.js"></script>
46     <script src="../js/polyfill.min.js"></script>
47     <script src="../js/axios.min.js"></script>
48     <script type="text/javascript">
49     function ch_page(page)
50     {
51     document.change_page.page.value = page;
52     document.change_page.submit();
53     return false;
54     }
55    
56     function ch_rpp()
57     {
58     document.change_page.page.value = Math.floor((document.change_page.page.value - 1) * <? echo $result_set["data"]["rpp"]; ?> / document.change_page.rpp.value) + 1;
59     document.change_page.submit();
60     return false;
61     }
62    
63     function refresh_err_msg(errorFieldMap)
64     {
65     document.getElementsByName("err_msg").forEach(element => {
66     element.innerHTML = (errorFieldMap.has(element.id) ? errorFieldMap.get(element.id) : "");
67     });
68     }
69    
70     function upload_del(id)
71     {
72     if (window.confirm('真的要删除吗?') == false)
73     {
74     return false;
75     }
76    
77     instance.post('upload_del.php', {
78     aid: id,
79     })
80     .then(function (response) {
81     var ret = response.data;
82     var errorFieldMap = new Map();
83     switch (ret.return.code)
84     {
85     case 0: // OK
86     case 1: // Already deleted
87     document.getElementById("attachment_" + id).style.display = "none";
88     refresh_err_msg(errorFieldMap);
89     break;
90     case -1: // Input validation failed
91     errorFieldMap.set("err_msg_attachment_" + id, ret.return.message);
92     refresh_err_msg(errorFieldMap);
93     break;
94     case -2: // Internal error
95     console.log(ret.return.message);
96     errorFieldMap.set("err_msg_attachment_" + id, "内部错误<br />");
97     refresh_err_msg(errorFieldMap);
98     break;
99     default:
100     console.log(ret.return.code);
101     break;
102     }
103     })
104     .catch(function (error) {
105     console.log(error);
106     });
107    
108     return false;
109     }
110    
111     function article_op(op_type, id, set, confirm = false)
112     {
113     var opService = new Map([
114     ["delete", "delete.php"],
115     ["restore", "restore.php"],
116     ["excerption", "set_excerption.php"],
117     ["ontop", "set_ontop.php"],
118     ["lock", "lock.php"],
119     ["transship", "set_transship.php"],
120     ]);
121    
122     var opNeedRefresh = new Set([
123     "delete",
124     "restore",
125     ]);
126    
127     if (confirm && window.confirm('真的要操作吗?') == false)
128     {
129     return false;
130     }
131    
132     instance.post(opService.get(op_type), {
133     id: id,
134     set: set,
135     })
136     .then(function (response) {
137     var ret = response.data;
138     var errorFieldMap = new Map();
139     switch (ret.return.code)
140     {
141     case 0: // OK
142     case 1: // Already set
143     if (opNeedRefresh.has(op_type))
144     {
145     // Refresh with additional parameters
146     document.location = "view_article.php?trash=1&rpp=<? echo $result_set["data"]["rpp"]; ?>&ts=" + Date.now() + "&id=" + id + "#" + id;
147     break;
148     }
149     document.getElementById("set_" + op_type + "_" + id).style.display = (set ? "none" : "inline");
150     document.getElementById("unset_" + op_type + "_" + id).style.display = (set ? "inline" : "none");
151     refresh_err_msg(errorFieldMap);
152     break;
153     case -1: // Input validation failed
154     errorFieldMap.set("err_msg_ctrl_" + id, ret.return.message);
155     refresh_err_msg(errorFieldMap);
156     break;
157     case -2: // Internal error
158     console.log(ret.return.message);
159     errorFieldMap.set("err_msg_ctrl_" + id, "内部错误");
160     refresh_err_msg(errorFieldMap);
161     break;
162     default:
163     console.log(ret.return.code);
164     break;
165     }
166     })
167     .catch(function (error) {
168     console.log(error);
169     });
170    
171     return false;
172     }
173    
174     function move_article(sid)
175     {
176     instance.post('move_article.php', {
177     id: <? echo $result_set["data"]["id"]; ?>,
178     sid: sid,
179     })
180     .then(function (response) {
181     var ret = response.data;
182     var errorFieldMap = new Map();
183     switch (ret.return.code)
184     {
185     case 0: // OK
186     refresh_err_msg(errorFieldMap);
187     document.location = "view_article.php?id=<? echo $result_set["data"]["id"]; ?>&trash=<? echo $result_set["data"]["trash"]; ?>&rpp=<? echo $result_set["data"]["rpp"]; ?>&ts=" + Date.now();
188     break;
189     case -1: // Input validation failed
190     errorFieldMap.set("err_msg_move", ret.return.message);
191     refresh_err_msg(errorFieldMap);
192     break;
193     case -2: // Internal error
194     console.log(ret.return.message);
195     errorFieldMap.set("err_msg_move", "内部错误");
196     refresh_err_msg(errorFieldMap);
197     break;
198     default:
199     console.log(ret.return.code);
200     break;
201     }
202     })
203     .catch(function (error) {
204     console.log(error);
205     });
206    
207     return false;
208     }
209    
210     function set_ex_dir(fid)
211     {
212     instance.post('set_ex_file_sub.php', {
213     id: <? echo $result_set["data"]["id"]; ?>,
214     fid: fid,
215     })
216     .then(function (response) {
217     var ret = response.data;
218     var errorFieldMap = new Map();
219     switch (ret.return.code)
220     {
221     case 0: // OK
222     refresh_err_msg(errorFieldMap);
223     document.location = "view_article.php?id=<? echo $result_set["data"]["id"]; ?>&trash=<? echo $result_set["data"]["trash"]; ?>&rpp=<? echo $result_set["data"]["rpp"]; ?>&ts=" + Date.now();
224     break;
225     case -1: // Input validation failed
226     errorFieldMap.set("err_msg_ex_dir", ret.return.message);
227     refresh_err_msg(errorFieldMap);
228     break;
229     case -2: // Internal error
230     console.log(ret.return.message);
231     errorFieldMap.set("err_msg_ex_dir", "内部错误");
232     refresh_err_msg(errorFieldMap);
233     break;
234     default:
235     console.log(ret.return.code);
236     break;
237     }
238     })
239     .catch(function (error) {
240     console.log(error);
241     });
242    
243     return false;
244     }
245    
246     const instance = axios.create({
247     withCredentials: true,
248     timeout: 3000,
249     baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',
250     });
251    
252     window.addEventListener("load", () => {
253     var s = document.getElementById("ex_dir");
254     if (s)
255     {
256     s.addEventListener("change", (e) => {
257     set_ex_dir(s.value);
258     });
259     }
260    
261     var f = document.getElementById("move_article");
262     if (f)
263     {
264     f.addEventListener("submit", (e) => {
265     e.preventDefault();
266     move_article(f.sid.value);
267     });
268     }
269     });
270    
271     </script>
272 sysadm 1.6 <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">
273     </script>
274 sysadm 1.1 </head>
275     <body>
276     <a name="top"></a>
277     <center>
278     <span id="err_msg_prompt" name="err_msg" style="color: red;"></span>
279     <table cols="2" border="0" cellpadding="0" cellspacing="0" width="770">
280     <tr>
281     <td width="50%">
282 sysadm 1.3 <a class="s2" href="main.php?sid=<? echo $result_set["data"]["sid"]; ?>"><? echo $BBS_name; ?></a>&gt;&gt;<a class="s2" href="list.php?sid=<? echo $result_set["data"]["sid"]; ?>"><? echo $result_set["data"]["section_title"]; ?></a>&gt;&gt;<a class="s2" href="list.php?sid=<? echo $result_set["data"]["sid"]; ?>&ex=<? echo ($result_set["data"]["ex"]); ?>"><? echo ($result_set["data"]["ex"] ? "文摘区" : "讨论区"); ?></a>
283 sysadm 1.1 <a class="s2" href="post.php?reply_id=<? echo $result_set["data"]["id"]; ?>&quote=0" title="直接回复该文章">[快速回复]</a>
284     <?
285     if ($previous_id > 0)
286     {
287     ?>
288     <a class="s2" href="view_article.php?id=<? echo $previous_id; ?>&ex=<? echo $result_set["data"]["ex"]; ?>&trash=<? echo $result_set["data"]["trash"]; ?>">[上一主题]</a>
289     <?
290     }
291     if ($next_id > 0)
292     {
293     ?>
294     <a class="s2" href="view_article.php?id=<? echo $next_id; ?>&ex=<? echo $result_set["data"]["ex"]; ?>&trash=<? echo $result_set["data"]["trash"]; ?>">[下一主题]</a>
295     <?
296     }
297     ?>
298     </td>
299     <td width="50%" align="right">
300     <?
301     // Only show set_ex_file at page 1
302     if ($result_set["data"]["excerption"] && $result_set["data"]["page"] == 1 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
303     {
304     ?>
305     <span id="err_msg_ex_dir" name="err_msg" style="color: red;"></span>
306     <select id="ex_dir" name="ex_dir" size="1">
307     <option value="-1" <? echo ($result_set["data"]["fid"] == -1 ? "selected" : ""); ?>>[不属于精华区]</option>
308     <option value="0" <? echo ($result_set["data"]["fid"] == 0 ? "selected" : ""); ?>>(根目录)</option>
309     <?
310     foreach ($result_set["data"]["section_ex_dirs"] as $section_ex_dir)
311     {
312     ?>
313     <option value="<? echo $section_ex_dir["fid"]; ?>" <? echo ($result_set["data"]["fid"] == $section_ex_dir["fid"] ? "selected" : ""); ?>><? echo $section_ex_dir["dir"]; ?>(<? echo $section_ex_dir["name"]; ?>)</option>
314     <?
315     }
316     ?>
317     </select>
318     <?
319     }
320     else if ($result_set["data"]["fid"] >= 0)
321     {
322     ?>
323     <a class="s2" href="/gen_ex/<? echo $result_set["data"]["sid"] . "/" . $result_set["data"]["ex_dir"]; ?>" target=_blank title="精华区目录"><? echo $result_set["data"]["ex_dir"] . "(" . $result_set["data"]["ex_name"] . ")"; ?></a>
324     <?
325     }
326     ?>
327     </td>
328     </tr>
329     <tr bgcolor="#d0d3F0" height="20">
330     <td colspan="2" align="center" class="title">
331     [<? echo $result_set["data"]["id"]; ?>]&nbsp;主题:&nbsp;<? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?>
332     </td>
333     </tr>
334     </table>
335     <?
336     foreach ($result_set["data"]["articles"] as $article)
337     {
338     $color_index = ($color_index + 1) % count($color);
339    
340     if ($article["tid"] != 0)
341     {
342     ?>
343     <a name="<? echo $article["aid"]; ?>"></a>
344     <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="0" width="770">
345     <tr height="1" bgcolor="#202020">
346     <td colspan="3">
347     </td>
348     </tr>
349     </table>
350     <?
351     }
352     ?>
353     <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="10" width="770">
354     <tr>
355     <td width="20%">
356     </td>
357     <td width="75%">
358     <?
359     if ($_SESSION["BBS_uid"] > 0 && $_SESSION["BBS_uid"] != $article["uid"])
360     {
361     ?>
362     <img src="images/profile.gif" width="16" height="16"><a class="s4" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看作者资料">资料</a>
363     <?
364     }
365     if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])
366     {
367     ?>
368     <img src="images/mail.gif" width="16" height="16"><a class="s4" href="" onclick="return NW_open('send_msg.php?uid=<? echo $article["uid"]; ?>', 'send_msg', 500, 300);" title="给作者发消息">消息</a>
369     <?
370     }
371     if ($article["visible"])
372     {
373     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && $_SESSION["BBS_uid"] == $article["uid"] && (!$article["excerption"]))
374     {
375     ?>
376     <a class="s4" href="post.php?id=<? echo $article["aid"]; ?>" title="修改该文章">修改</a>
377     <?
378     }
379     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
380     ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]) && (!$article["excerption"]))
381     {
382     ?>
383     <span id="set_delete_<? echo $article["aid"]; ?>"><img src="images/del.gif" width="16" height="16"><a class="s4" href="" onclick="return article_op('delete', <? echo $article["aid"]; ?>, 1, true);" title="删除该文章">删除</a></span>
384     <?
385     }
386     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST))
387     {
388     ?>
389     <img src="images/edit.gif" width="16" height="16"><a class="s4" href="post.php?reply_id=<? echo $article["aid"]; ?>" title="引用回复该文章">回复</a>
390     <?
391     }
392     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
393     {
394     ?>
395     <a class="s4" id="set_excerption_<? echo $article["aid"]; ?>" style="display: <? echo ($article["excerption"] ? "none" : "inline"); ?>" href="" onclick="return article_op('excerption', <? echo $article["aid"]; ?>, 1);" title="加入文摘区">收录</a>
396     <a class="s4" id="unset_excerption_<? echo $article["aid"]; ?>" style="display: <? echo ($article["excerption"] ? "inline" : "none"); ?>" href="" onclick="return article_op('excerption', <? echo $article["aid"]; ?>, 0, true);" title="移出文摘区">移出</a>
397     <?
398     }
399     if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
400     {
401     ?>
402     <a class="s4" id="set_ontop_<? echo $article["aid"]; ?>" style="display: <? echo ($article["ontop"] ? "none" : "inline"); ?>" href="" onclick="return article_op('ontop', <? echo $article["aid"]; ?>, 1, true);" title="置顶">置顶</a>
403     <a class="s4" id="unset_ontop_<? echo $article["aid"]; ?>" style="display: <? echo ($article["ontop"] ? "inline" : "none"); ?>" href="" onclick="return article_op('ontop', <? echo $article["aid"]; ?>, 0);" title="取消置顶">取消置顶</a>
404     <?
405     }
406     if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
407     ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]))
408     {
409     ?>
410     <a class="s4" id="set_lock_<? echo $article["aid"]; ?>" style="display: <? echo ($article["lock"] ? "none" : "inline"); ?>" href="" onclick="return article_op('lock', <? echo $article["aid"]; ?>, 1);" title="禁止回复">静默</a>
411     <a class="s4" id="unset_lock_<? echo $article["aid"]; ?>" style="display: <? echo ($article["lock"] ? "inline" : "none"); ?>" href="" onclick="return article_op('lock', <? echo $article["aid"]; ?>, 0);" title="取消禁止回复">取消静默</a>
412     <?
413     }
414     if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$article["transship"]) && (!$article["excerption"]))
415     {
416     ?>
417     <a class="s4" id="set_transship_<? echo $article["aid"]; ?>" style="display: <? echo ($article["transship"] ? "none" : "inline"); ?>" href="" onclick="return article_op('transship', <? echo $article["aid"]; ?>, 1, true);" title="设为转载">设为转载</a>
418     <a class="s4" id="unset_transship_<? echo $article["aid"]; ?>" style="display: none" href=""></a>
419     <?
420     }
421     }
422     else
423     {
424     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && $article["m_del"])
425     {
426     ?>
427     <a class="s4" id="set_restore_<? echo $article["aid"]; ?>" href="" onclick="return article_op('restore', <? echo $article["aid"]; ?>, 1, true);" title="恢复删除">恢复</a>
428     <?
429     }
430     }
431     ?>
432     <span id="err_msg_ctrl_<? echo $article["aid"]; ?>" name="err_msg" style="color: red;"></span>
433     </td>
434     <td width="5%">
435     </td>
436     </tr>
437     <tr>
438     <td width="20%" align="center">
439     作者:&nbsp;<a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看用户资料"><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></a>
440     </td>
441     <td width="75%" class="body">
442     <span style="color:#606060;">标题:</span>
443     <img src="images/expression/<? echo $article["icon"]; ?>.gif">
444     <span id="title_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "title_normal" : "title_deleted"); ?>">
445     <? echo split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); ?>
446     </span>
447     <? if ($article["transship"]) { ?><font color="red">[转载]</font><? } ?>
448     </td>
449     <td width="5%">
450     </td>
451     </tr>
452     <tr>
453     <td align="center">
454     昵称:&nbsp;<span style="color:#909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>
455     </td>
456     <td class="body">
457     <span style="color:#606060;">来自:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_ip"]; ?></span>
458     </td>
459     <td>
460     </td>
461     </tr>
462     <tr>
463     <td align="center">
464     经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>
465     </td>
466     <td class="body">
467     <span style="color:#606060;">发贴时间:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_dt"]->format("Y年m月d日 H:i:s (\U\T\C P)"); ?></span>
468     </td>
469     <td>
470     </td>
471     </tr>
472     <tr>
473     <td align="center">
474     等级:&nbsp;<span style="color:#909090;"><? echo user_level($article["exp"]); ?></span>
475     </td>
476     <td class="body">
477     <span style="color:#606060;">长度:</span>&nbsp;<span style="color:#909090; "><? echo $article["length"]; ?>字</span>
478     </td>
479     <td>
480     </td>
481     </tr>
482     <tr height="2">
483     <td>
484     </td>
485     <td style="background-color:#909090;">
486     </td>
487     <td>
488     </td>
489     </tr>
490     <tr>
491     <td align="center" valign="top">
492     <img src="<? echo $article["photo_path"]; ?>" border="0">
493     </td>
494     <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">
495     <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true); ?>
496     </td>
497     <td>
498     </td>
499     </tr>
500     <tr>
501     <td>
502     </td>
503     <td style="color:#000000; ">
504     ========== * * * * * ==========
505     <br />
506     <?
507     foreach ($article["attachments"] as $attachment)
508     {
509     $filename = $attachment["filename"];
510     $ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0)));
511     ?>
512     <span id="attachment_<? echo $attachment["aid"]; ?>"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid=<? echo $attachment["aid"]; ?>" target="_target"><? echo $filename; ?></a> (<? echo $attachment["size"]; ?>字节)
513     <?
514     if ($attachment["check"] == 0)
515     {
516     ?><font color="red">未审核</font><?
517     }
518     else
519     {
520     switch ($ext)
521     {
522     case "bmp":
523     case "gif":
524     case "jpg":
525     case "jpeg":
526     case "png":
527     case "tif":
528     case "tiff":
529     ?>
530     <img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">
531     <?
532     break;
533     }
534     }
535    
536     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
537     ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]) && (!$article["excerption"]))
538     {
539     ?>
540     <a class="s2" href="#" onclick="return upload_del(<? echo $attachment["aid"]; ?>);">删除</a>
541     <span id="err_msg_attachment_<? echo $attachment["aid"]; ?>" name="err_msg" style="color: red;"></span>
542     <?
543     }
544     ?>
545     <br /></span>
546     <?
547     }
548     ?>
549     </td>
550     <td>
551     </td>
552     </tr>
553     </table>
554     <?
555     }
556     ?>
557     <table cols="3" border="0" cellpadding="5" cellspacing="0" width="770">
558     <tr bgcolor="#d0d3F0" height="10">
559     <td colspan="3">
560     </td>
561     </tr>
562     <tr>
563     <td width="40%" style="color:#909090">
564     <form action="view_article.php" method="get" id="change_page" name="change_page">
565     <input type="hidden" id="id" name="id" value="<? echo $result_set["data"]["id"]; ?>">
566     <input type="hidden" id="ex" name="ex" value="<? echo $result_set["data"]["ex"]; ?>">
567     <input type="hidden" id="trash" name="trash" value="<? echo $result_set["data"]["trash"]; ?>">
568     每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">
569     <?
570     foreach ($BBS_view_rpp_options as $v)
571     {
572     echo ("<option value=\"$v\"" . ($v == $result_set["data"]["rpp"] ? " selected" : "") . ">$v</option>");
573     }
574     ?>
575     </select>条
576     <?
577     if ($result_set["data"]["page"] > 1)
578     {
579     ?>
580     <a class="s8" title="首页" href="" onclick="return ch_page(1);"><font face=webdings>9</font></a>
581     <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);"><font face=webdings>7</font></a>
582     <?
583     }
584     else
585     {
586     ?>
587     <font face=webdings>9 7</font>
588     <?
589     }
590     ?>
591     第<input id="page" name="page" value="<? echo ($result_set["data"]["page"]) ; ?>" style="width: 30px;">/<? echo $result_set["data"]["page_total"]; ?>页
592     <?
593     if ($result_set["data"]["page"] < $result_set["data"]["page_total"])
594     {
595     ?>
596     <a class="s8" title="下一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] + 1); ?>);"><font face=webdings>8</font></a>
597     <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);"><font face=webdings>:</font></a>
598     <?
599     }
600     else
601     {
602     ?>
603     <font face=webdings>8 :</font>
604     <?
605     }
606     ?>
607     </form>
608     </td>
609     <td width="35%" align="center">
610     <?
611     if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$result_set["data"]["excerption"]))
612     {
613     ?>
614     <form method="post" id="move_article" name="move_article" action="#">
615     <select id="sid" name="sid" size="1">
616     <?
617     echo $result_set["data"]["section_list_options"];
618     ?>
619     </select>
620     <input type="submit" value="移动">
621     <span id="err_msg_move" name="err_msg" style="color: red;"></span>
622     </form>
623     <?
624     }
625     ?> </td>
626     <td width="25%" align="right">
627     <a class="s2" href="#top" title="返回页首"><img src="images/gotop.gif" border="0">Top<img src="images/gotop.gif" border="0"></a>
628     </td>
629     </tr>
630     </table>
631     </center>
632     <?
633     include "./foot.inc.php";
634     ?>
635     </body>
636     </html>

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