/[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.5 - (show annotations)
Sun Apr 13 05:25:52 2025 UTC (11 months ago) by sysadm
Branch: MAIN
Changes since 1.4: +14 -1 lines
Remove legacy code

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: 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 </head>
273 <body>
274 <a name="top"></a>
275 <center>
276 <span id="err_msg_prompt" name="err_msg" style="color: red;"></span>
277 <table cols="2" border="0" cellpadding="0" cellspacing="0" width="770">
278 <tr>
279 <td width="50%">
280 <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>
281 <a class="s2" href="post.php?reply_id=<? echo $result_set["data"]["id"]; ?>&quote=0" title="直接回复该文章">[快速回复]</a>
282 <?
283 if ($previous_id > 0)
284 {
285 ?>
286 <a class="s2" href="view_article.php?id=<? echo $previous_id; ?>&ex=<? echo $result_set["data"]["ex"]; ?>&trash=<? echo $result_set["data"]["trash"]; ?>">[上一主题]</a>
287 <?
288 }
289 if ($next_id > 0)
290 {
291 ?>
292 <a class="s2" href="view_article.php?id=<? echo $next_id; ?>&ex=<? echo $result_set["data"]["ex"]; ?>&trash=<? echo $result_set["data"]["trash"]; ?>">[下一主题]</a>
293 <?
294 }
295 ?>
296 </td>
297 <td width="50%" align="right">
298 <?
299 // Only show set_ex_file at page 1
300 if ($result_set["data"]["excerption"] && $result_set["data"]["page"] == 1 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
301 {
302 ?>
303 <span id="err_msg_ex_dir" name="err_msg" style="color: red;"></span>
304 <select id="ex_dir" name="ex_dir" size="1">
305 <option value="-1" <? echo ($result_set["data"]["fid"] == -1 ? "selected" : ""); ?>>[不属于精华区]</option>
306 <option value="0" <? echo ($result_set["data"]["fid"] == 0 ? "selected" : ""); ?>>(根目录)</option>
307 <?
308 foreach ($result_set["data"]["section_ex_dirs"] as $section_ex_dir)
309 {
310 ?>
311 <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>
312 <?
313 }
314 ?>
315 </select>
316 <?
317 }
318 else if ($result_set["data"]["fid"] >= 0)
319 {
320 ?>
321 <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>
322 <?
323 }
324 ?>
325 </td>
326 </tr>
327 <tr bgcolor="#d0d3F0" height="20">
328 <td colspan="2" align="center" class="title">
329 [<? echo $result_set["data"]["id"]; ?>]&nbsp;主题:&nbsp;<? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?>
330 </td>
331 </tr>
332 </table>
333 <?
334 foreach ($result_set["data"]["articles"] as $article)
335 {
336 $color_index = ($color_index + 1) % count($color);
337
338 if ($article["tid"] != 0)
339 {
340 ?>
341 <a name="<? echo $article["aid"]; ?>"></a>
342 <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="0" width="770">
343 <tr height="1" bgcolor="#202020">
344 <td colspan="3">
345 </td>
346 </tr>
347 </table>
348 <?
349 }
350 ?>
351 <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="10" width="770">
352 <tr>
353 <td width="20%">
354 </td>
355 <td width="75%">
356 <?
357 if ($_SESSION["BBS_uid"] > 0 && $_SESSION["BBS_uid"] != $article["uid"])
358 {
359 ?>
360 <img src="images/profile.gif" width="16" height="16"><a class="s4" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看作者资料">资料</a>
361 <?
362 }
363 if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])
364 {
365 ?>
366 <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>
367 <?
368 }
369 if ($article["visible"])
370 {
371 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && $_SESSION["BBS_uid"] == $article["uid"] && (!$article["excerption"]))
372 {
373 ?>
374 <a class="s4" href="post.php?id=<? echo $article["aid"]; ?>" title="修改该文章">修改</a>
375 <?
376 }
377 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
378 ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]) && (!$article["excerption"]))
379 {
380 ?>
381 <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>
382 <?
383 }
384 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST))
385 {
386 ?>
387 <img src="images/edit.gif" width="16" height="16"><a class="s4" href="post.php?reply_id=<? echo $article["aid"]; ?>" title="引用回复该文章">回复</a>
388 <?
389 }
390 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
391 {
392 ?>
393 <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>
394 <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>
395 <?
396 }
397 if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
398 {
399 ?>
400 <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>
401 <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>
402 <?
403 }
404 if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
405 ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]))
406 {
407 ?>
408 <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>
409 <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>
410 <?
411 }
412 if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$article["transship"]) && (!$article["excerption"]))
413 {
414 ?>
415 <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>
416 <a class="s4" id="unset_transship_<? echo $article["aid"]; ?>" style="display: none" href=""></a>
417 <?
418 }
419 }
420 else
421 {
422 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && $article["m_del"])
423 {
424 ?>
425 <a class="s4" id="set_restore_<? echo $article["aid"]; ?>" href="" onclick="return article_op('restore', <? echo $article["aid"]; ?>, 1, true);" title="恢复删除">恢复</a>
426 <?
427 }
428 }
429 ?>
430 <span id="err_msg_ctrl_<? echo $article["aid"]; ?>" name="err_msg" style="color: red;"></span>
431 </td>
432 <td width="5%">
433 </td>
434 </tr>
435 <tr>
436 <td width="20%" align="center">
437 作者:&nbsp;<a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看用户资料"><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></a>
438 </td>
439 <td width="75%" class="body">
440 <span style="color:#606060;">标题:</span>
441 <img src="images/expression/<? echo $article["icon"]; ?>.gif">
442 <span id="title_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "title_normal" : "title_deleted"); ?>">
443 <? echo split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); ?>
444 </span>
445 <? if ($article["transship"]) { ?><font color="red">[转载]</font><? } ?>
446 </td>
447 <td width="5%">
448 </td>
449 </tr>
450 <tr>
451 <td align="center">
452 昵称:&nbsp;<span style="color:#909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>
453 </td>
454 <td class="body">
455 <span style="color:#606060;">来自:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_ip"]; ?></span>
456 </td>
457 <td>
458 </td>
459 </tr>
460 <tr>
461 <td align="center">
462 经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>
463 </td>
464 <td class="body">
465 <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>
466 </td>
467 <td>
468 </td>
469 </tr>
470 <tr>
471 <td align="center">
472 等级:&nbsp;<span style="color:#909090;"><? echo user_level($article["exp"]); ?></span>
473 </td>
474 <td class="body">
475 <span style="color:#606060;">长度:</span>&nbsp;<span style="color:#909090; "><? echo $article["length"]; ?>字</span>
476 </td>
477 <td>
478 </td>
479 </tr>
480 <tr height="2">
481 <td>
482 </td>
483 <td style="background-color:#909090;">
484 </td>
485 <td>
486 </td>
487 </tr>
488 <tr>
489 <td align="center" valign="top">
490 <img src="<? echo $article["photo_path"]; ?>" border="0">
491 </td>
492 <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">
493 <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true); ?>
494 </td>
495 <td>
496 </td>
497 </tr>
498 <tr>
499 <td>
500 </td>
501 <td style="color:#000000; ">
502 ========== * * * * * ==========
503 <br />
504 <?
505 foreach ($article["attachments"] as $attachment)
506 {
507 $filename = $attachment["filename"];
508 $ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0)));
509 ?>
510 <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"]; ?>字节)
511 <?
512 if ($attachment["check"] == 0)
513 {
514 ?><font color="red">未审核</font><?
515 }
516 else
517 {
518 switch ($ext)
519 {
520 case "bmp":
521 case "gif":
522 case "jpg":
523 case "jpeg":
524 case "png":
525 case "tif":
526 case "tiff":
527 ?>
528 <img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">
529 <?
530 break;
531 }
532 }
533
534 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
535 ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]) && (!$article["excerption"]))
536 {
537 ?>
538 <a class="s2" href="#" onclick="return upload_del(<? echo $attachment["aid"]; ?>);">删除</a>
539 <span id="err_msg_attachment_<? echo $attachment["aid"]; ?>" name="err_msg" style="color: red;"></span>
540 <?
541 }
542 ?>
543 <br /></span>
544 <?
545 }
546 ?>
547 </td>
548 <td>
549 </td>
550 </tr>
551 </table>
552 <?
553 }
554 ?>
555 <table cols="3" border="0" cellpadding="5" cellspacing="0" width="770">
556 <tr bgcolor="#d0d3F0" height="10">
557 <td colspan="3">
558 </td>
559 </tr>
560 <tr>
561 <td width="40%" style="color:#909090">
562 <form action="view_article.php" method="get" id="change_page" name="change_page">
563 <input type="hidden" id="id" name="id" value="<? echo $result_set["data"]["id"]; ?>">
564 <input type="hidden" id="ex" name="ex" value="<? echo $result_set["data"]["ex"]; ?>">
565 <input type="hidden" id="trash" name="trash" value="<? echo $result_set["data"]["trash"]; ?>">
566 每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">
567 <?
568 foreach ($BBS_view_rpp_options as $v)
569 {
570 echo ("<option value=\"$v\"" . ($v == $result_set["data"]["rpp"] ? " selected" : "") . ">$v</option>");
571 }
572 ?>
573 </select>条
574 <?
575 if ($result_set["data"]["page"] > 1)
576 {
577 ?>
578 <a class="s8" title="首页" href="" onclick="return ch_page(1);"><font face=webdings>9</font></a>
579 <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);"><font face=webdings>7</font></a>
580 <?
581 }
582 else
583 {
584 ?>
585 <font face=webdings>9 7</font>
586 <?
587 }
588 ?>
589 第<input id="page" name="page" value="<? echo ($result_set["data"]["page"]) ; ?>" style="width: 30px;">/<? echo $result_set["data"]["page_total"]; ?>页
590 <?
591 if ($result_set["data"]["page"] < $result_set["data"]["page_total"])
592 {
593 ?>
594 <a class="s8" title="下一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] + 1); ?>);"><font face=webdings>8</font></a>
595 <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);"><font face=webdings>:</font></a>
596 <?
597 }
598 else
599 {
600 ?>
601 <font face=webdings>8 :</font>
602 <?
603 }
604 ?>
605 </form>
606 </td>
607 <td width="35%" align="center">
608 <?
609 if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$result_set["data"]["excerption"]))
610 {
611 ?>
612 <form method="post" id="move_article" name="move_article" action="#">
613 <select id="sid" name="sid" size="1">
614 <?
615 echo $result_set["data"]["section_list_options"];
616 ?>
617 </select>
618 <input type="submit" value="移动">
619 <span id="err_msg_move" name="err_msg" style="color: red;"></span>
620 </form>
621 <?
622 }
623 ?> </td>
624 <td width="25%" align="right">
625 <a class="s2" href="#top" title="返回页首"><img src="images/gotop.gif" border="0">Top<img src="images/gotop.gif" border="0"></a>
626 </td>
627 </tr>
628 </table>
629 </center>
630 <?
631 include "./foot.inc.php";
632 ?>
633
634 <center>
635 <script type="text/javascript">
636 google_ad_client = "ca-pub-3013347141025996";
637 google_ad_slot = "7389632330";
638 google_ad_width = 728;
639 google_ad_height = 90;
640 </script>
641 <!-- fenglin_bbs_footer -->
642 <script type="text/javascript"
643 src="//pagead2.googlesyndication.com/pagead/show_ads.js">
644 </script>
645 </center>
646
647 </body>
648 </html>

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