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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations)
Sun Apr 20 11:33:50 2025 UTC (10 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.11: +1 -1 lines
Use <pre> to format article content

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

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