/[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.9 - (show annotations)
Tue Apr 15 11:22:54 2025 UTC (11 months ago) by sysadm
Branch: MAIN
Changes since 1.8: +1 -1 lines
Update page layout for picture attachment

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/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 <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">
273 </script>
274 </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="1050">
280 <tr>
281 <td width="50%">
282 <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 <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="25">
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 $user_viewable = (isset($result_set["data"]["author_list"][$article["uid"]]));
341
342 if ($article["tid"] != 0)
343 {
344 ?>
345 <a name="<? echo $article["aid"]; ?>"></a>
346 <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="0" width="1050">
347 <tr height="1" bgcolor="#202020">
348 <td colspan="3">
349 </td>
350 </tr>
351 </table>
352 <?
353 }
354 ?>
355 <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="10" width="1050">
356 <tr>
357 <td width="20%">
358 </td>
359 <td width="75%">
360 <?
361 if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])
362 {
363 ?>
364 <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>
365 <?
366 }
367 if ($article["visible"])
368 {
369 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && $_SESSION["BBS_uid"] == $article["uid"] && (!$article["excerption"]))
370 {
371 ?>
372 <a class="s4" href="post.php?id=<? echo $article["aid"]; ?>" title="修改该文章">修改</a>
373 <?
374 }
375 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
376 ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]) && (!$article["excerption"]))
377 {
378 ?>
379 <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>
380 <?
381 }
382 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST))
383 {
384 ?>
385 <img src="images/edit.gif" width="16" height="16"><a class="s4" href="post.php?reply_id=<? echo $article["aid"]; ?>" title="引用回复该文章">回复</a>
386 <?
387 }
388 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
389 {
390 ?>
391 <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>
392 <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>
393 <?
394 }
395 if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
396 {
397 ?>
398 <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>
399 <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>
400 <?
401 }
402 if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
403 ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]))
404 {
405 ?>
406 <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>
407 <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>
408 <?
409 }
410 if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$article["transship"]) && (!$article["excerption"]))
411 {
412 ?>
413 <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>
414 <a class="s4" id="unset_transship_<? echo $article["aid"]; ?>" style="display: none" href=""></a>
415 <?
416 }
417 }
418 else
419 {
420 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && $article["m_del"])
421 {
422 ?>
423 <a class="s4" id="set_restore_<? echo $article["aid"]; ?>" href="" onclick="return article_op('restore', <? echo $article["aid"]; ?>, 1, true);" title="恢复删除">恢复</a>
424 <?
425 }
426 }
427 ?>
428 <span id="err_msg_ctrl_<? echo $article["aid"]; ?>" name="err_msg" style="color: red;"></span>
429 </td>
430 <td width="5%">
431 </td>
432 </tr>
433 <tr>
434 <td width="20%" align="center">
435 作者:&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>
436 </td>
437 <td width="75%" class="body">
438 <span style="color:#606060;">标题:</span>
439 <img src="images/expression/<? echo $article["icon"]; ?>.gif">
440 <span id="title_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "title_normal" : "title_deleted"); ?>">
441 <? echo split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); ?>
442 </span>
443 <? if ($article["transship"]) { ?><font color="red">[转载]</font><? } ?>
444 </td>
445 <td width="5%">
446 </td>
447 </tr>
448 <tr>
449 <td align="center">
450 昵称:&nbsp;<span style="color:#909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>
451 </td>
452 <td class="body">
453 <span style="color:#606060;">来自:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_ip"]; ?></span>
454 </td>
455 <td>
456 </td>
457 </tr>
458 <tr>
459 <td align="center">
460 经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>
461 </td>
462 <td class="body">
463 <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>
464 </td>
465 <td>
466 </td>
467 </tr>
468 <tr>
469 <td align="center">
470 等级:&nbsp;<span style="color:#909090;"><? echo user_level($article["exp"]); ?></span>
471 </td>
472 <td class="body">
473 <span style="color:#606060;">长度:</span>&nbsp;<span style="color:#909090; "><? echo $article["length"]; ?>字</span>
474 </td>
475 <td>
476 </td>
477 </tr>
478 <tr height="2">
479 <td>
480 </td>
481 <td style="background-color:#909090;">
482 </td>
483 <td>
484 </td>
485 </tr>
486 <tr>
487 <td align="center" valign="top">
488 <img src="<? echo $article["photo_path"]; ?>" border="0">
489 </td>
490 <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">
491 <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80); ?>
492 </td>
493 <td>
494 </td>
495 </tr>
496 <tr>
497 <td>
498 </td>
499 <td style="color:#000000; ">
500 ========== * * * * * ==========
501 <br />
502 <?
503 foreach ($article["attachments"] as $attachment)
504 {
505 $filename = $attachment["filename"];
506 $ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0)));
507 ?>
508 <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"]; ?>字节)
509 <?
510 if ($attachment["check"] == 0)
511 {
512 ?><font color="red">未审核</font><?
513 }
514 else
515 {
516 switch ($ext)
517 {
518 case "bmp":
519 case "gif":
520 case "jpg":
521 case "jpeg":
522 case "png":
523 case "tif":
524 case "tiff":
525 ?>
526 <br /><img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">
527 <?
528 break;
529 }
530 }
531
532 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
533 ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]) && (!$article["excerption"]))
534 {
535 ?>
536 <a class="s2" href="#" onclick="return upload_del(<? echo $attachment["aid"]; ?>);">删除</a>
537 <span id="err_msg_attachment_<? echo $attachment["aid"]; ?>" name="err_msg" style="color: red;"></span>
538 <?
539 }
540 ?>
541 <br /></span>
542 <?
543 }
544 ?>
545 </td>
546 <td>
547 </td>
548 </tr>
549 </table>
550 <?
551 }
552 ?>
553 <table cols="3" border="0" cellpadding="5" cellspacing="0" width="1050">
554 <tr bgcolor="#d0d3F0" height="10">
555 <td colspan="3">
556 </td>
557 </tr>
558 <tr>
559 <td width="40%" style="color:#909090">
560 <form action="view_article.php" method="get" id="change_page" name="change_page">
561 <input type="hidden" id="id" name="id" value="<? echo $result_set["data"]["id"]; ?>">
562 <input type="hidden" id="ex" name="ex" value="<? echo $result_set["data"]["ex"]; ?>">
563 <input type="hidden" id="trash" name="trash" value="<? echo $result_set["data"]["trash"]; ?>">
564 每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">
565 <?
566 foreach ($BBS_view_rpp_options as $v)
567 {
568 echo ("<option value=\"$v\"" . ($v == $result_set["data"]["rpp"] ? " selected" : "") . ">$v</option>");
569 }
570 ?>
571 </select>条
572 <?
573 if ($result_set["data"]["page"] > 1)
574 {
575 ?>
576 <a class="s8" title="首页" href="" onclick="return ch_page(1);">|◀</a>
577 <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);">◀</a>
578 <?
579 }
580 else
581 {
582 ?>
583 |◀ ◀
584 <?
585 }
586 ?>
587 第<input id="page" name="page" value="<? echo ($result_set["data"]["page"]) ; ?>" style="width: 30px;">/<? echo $result_set["data"]["page_total"]; ?>页
588 <?
589 if ($result_set["data"]["page"] < $result_set["data"]["page_total"])
590 {
591 ?>
592 <a class="s8" title="下一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] + 1); ?>);">▶</a>
593 <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);">▶|</a>
594 <?
595 }
596 else
597 {
598 ?>
599 ▶ ▶|
600 <?
601 }
602 ?>
603 </form>
604 </td>
605 <td width="35%" align="center">
606 <?
607 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$result_set["data"]["excerption"]))
608 {
609 ?>
610 <form method="post" id="move_article" name="move_article" action="#">
611 <select id="sid" name="sid" size="1">
612 <?
613 echo $result_set["data"]["section_list_options"];
614 ?>
615 </select>
616 <input type="submit" value="移动">
617 <span id="err_msg_move" name="err_msg" style="color: red;"></span>
618 </form>
619 <?
620 }
621 ?> </td>
622 <td width="25%" align="right">
623 <a class="s2" href="#top" title="返回页首"><img src="images/gotop.gif" border="0">Top<img src="images/gotop.gif" border="0"></a>
624 </td>
625 </tr>
626 </table>
627 </center>
628 <?
629 include "./foot.inc.php";
630 ?>
631 </body>
632 </html>

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