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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 by sysadm, Sun Apr 13 06:01:26 2025 UTC Revision 1.13 by sysadm, Wed Apr 23 05:03:57 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          // Prevent load standalone          // Prevent load standalone
3          if (!isset($result_set))          if (!isset($result_set))
4          {          {
# Line 33  SPAN.title_deleted Line 33  SPAN.title_deleted
33  }  }
34  TD.content_normal  TD.content_normal
35  {  {
36          font-size: 14px;          font-size: 16px;
37  }  }
38  TD.content_deleted  TD.content_deleted
39  {  {
40          font-size: 14px;          font-size: 16px;
41          text-decoration: line-through;          text-decoration: line-through;
42  }  }
43  </style>  </style>
 <script type="text/javascript" src="/js/nw_open.js"></script>  
44  <script type="text/javascript" src="../js/img_adjust.js"></script>  <script type="text/javascript" src="../js/img_adjust.js"></script>
45  <script src="../js/polyfill.min.js"></script>  <script src="../js/polyfill.min.js"></script>
46  <script src="../js/axios.min.js"></script>  <script src="../js/axios.min.js"></script>
# Line 111  function upload_del(id) Line 110  function upload_del(id)
110  function article_op(op_type, id, set, confirm = false)  function article_op(op_type, id, set, confirm = false)
111  {  {
112          var opService = new Map([          var opService = new Map([
113                  ["delete", "delete.php"],                  ["delete", "article_service_del.php"],
114                  ["restore", "restore.php"],                  ["restore", "restore.php"],
115                  ["excerption", "set_excerption.php"],                  ["excerption", "set_excerption.php"],
116                  ["ontop", "set_ontop.php"],                  ["ontop", "set_ontop.php"],
# Line 276  window.addEventListener("load", () => { Line 275  window.addEventListener("load", () => {
275          <a name="top"></a>          <a name="top"></a>
276          <center>          <center>
277                  <span id="err_msg_prompt" name="err_msg" style="color: red;"></span>                  <span id="err_msg_prompt" name="err_msg" style="color: red;"></span>
278                  <table cols="2" border="0" cellpadding="0" cellspacing="0" width="770">                  <table cols="2" border="0" cellpadding="0" cellspacing="0" width="1050">
279                          <tr>                          <tr>
280                                  <td width="50%">                                  <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>                                          <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>
# Line 326  window.addEventListener("load", () => { Line 325  window.addEventListener("load", () => {
325  ?>  ?>
326                                  </td>                                  </td>
327                          </tr>                          </tr>
328                          <tr bgcolor="#d0d3F0" height="20">                          <tr bgcolor="#d0d3F0" height="25">
329                                  <td colspan="2" align="center" class="title">                                  <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'); ?>                                          [<? echo $result_set["data"]["id"]; ?>]&nbsp;主题:&nbsp;<? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?>
331                                  </td>                                  </td>
# Line 337  window.addEventListener("load", () => { Line 336  window.addEventListener("load", () => {
336          {          {
337                  $color_index = ($color_index + 1) % count($color);                  $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)                  if ($article["tid"] != 0)
342                  {                  {
343  ?>  ?>
344                  <a name="<? echo $article["aid"]; ?>"></a>                  <a name="<? echo $article["aid"]; ?>"></a>
345                  <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="0" width="770">                  <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="0" width="1050">
346                          <tr height="1" bgcolor="#202020">                          <tr height="1" bgcolor="#202020">
347                                  <td colspan="3">                                  <td colspan="3">
348                                  </td>                                  </td>
# Line 350  window.addEventListener("load", () => { Line 351  window.addEventListener("load", () => {
351  <?  <?
352                  }                  }
353  ?>  ?>
354                  <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="10" width="770">                  <table bgcolor="<? echo $color[$color_index]; ?>" border="0" cellpadding="0" cellspacing="10" width="1050">
355                          <tr>                          <tr>
356                                  <td width="20%">                                  <td width="20%">
357                                  </td>                                  </td>
358                                  <td width="75%">                                  <td width="75%">
359  <?  <?
                 if ($_SESSION["BBS_uid"] > 0 && $_SESSION["BBS_uid"] != $article["uid"])  
                 {  
 ?>  
                                         <img src="images/profile.gif" width="16" height="16"><a class="s4" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看作者资料">资料</a>  
 <?  
                 }  
360                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])                  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="" onclick="return NW_open('send_msg.php?uid=<? echo $article["uid"]; ?>', 'send_msg', 500, 300);" title="给作者发消息">消息</a>                                          <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"])                  if ($article["visible"])
# Line 436  window.addEventListener("load", () => { Line 431  window.addEventListener("load", () => {
431                          </tr>                          </tr>
432                          <tr>                          <tr>
433                                  <td width="20%" align="center">                                  <td width="20%" align="center">
434                                          作者:&nbsp;<a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看用户资料"><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></a>                                          作者:&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>                                  </td>
436                                  <td width="75%" class="body">                                  <td width="75%" class="body">
437                                          <span style="color:#606060;">标题:</span>                                          <span style="color:#606060;">标题:</span>
# Line 451  window.addEventListener("load", () => { Line 446  window.addEventListener("load", () => {
446                          </tr>                          </tr>
447                          <tr>                          <tr>
448                                  <td align="center">                                  <td align="center">
449                                          昵称:&nbsp;<span style="color:#909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>                                          昵称:&nbsp;<span style="color: #909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>
450                                  </td>                                  </td>
451                                  <td class="body">                                  <td class="body">
452                                          <span style="color:#606060;">来自:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_ip"]; ?></span>                                          <span style="color:#606060;">来自:</span>&nbsp;<span style="color: #909090; "><? echo $article["sub_ip"]; ?></span>
453                                  </td>                                  </td>
454                                  <td>                                  <td>
455                                  </td>                                  </td>
# Line 464  window.addEventListener("load", () => { Line 459  window.addEventListener("load", () => {
459                                          经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>                                          经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>
460                                  </td>                                  </td>
461                                  <td class="body">                                  <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>                                          <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>                                  </td>
464                                  <td>                                  <td>
465                                  </td>                                  </td>
466                          </tr>                          </tr>
467                          <tr>                          <tr>
468                                  <td align="center">                                  <td align="center">
469                                          等级:&nbsp;<span style="color:#909090;"><? echo user_level($article["exp"]); ?></span>                                          等级:&nbsp;<span style="color: #909090;"><? echo user_level($article["exp"]); ?></span>
470                                  </td>                                  </td>
471                                  <td class="body">                                  <td class="body">
472                                          <span style="color:#606060;">长度:</span>&nbsp;<span style="color:#909090; "><? echo $article["length"]; ?>字</span>                                          <span style="color:#606060;">长度:</span>&nbsp;<span style="color: #909090; "><? echo $article["length"]; ?>字</span>
473                                  </td>                                  </td>
474                                  <td>                                  <td>
475                                  </td>                                  </td>
# Line 482  window.addEventListener("load", () => { Line 477  window.addEventListener("load", () => {
477                          <tr height="2">                          <tr height="2">
478                                  <td>                                  <td>
479                                  </td>                                  </td>
480                                  <td style="background-color:#909090;">                                  <td style="background-color: #909090;">
481                                  </td>                                  </td>
482                                  <td>                                  <td>
483                                  </td>                                  </td>
# Line 492  window.addEventListener("load", () => { Line 487  window.addEventListener("load", () => {
487                                          <img src="<? echo $article["photo_path"]; ?>" border="0">                                          <img src="<? echo $article["photo_path"]; ?>" border="0">
488                                  </td>                                  </td>
489                                  <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">                                  <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">
490                                          <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true); ?>                                          <pre><? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80); ?></pre>
491                                  </td>                                  </td>
492                                  <td>                                  <td>
493                                  </td>                                  </td>
# Line 527  window.addEventListener("load", () => { Line 522  window.addEventListener("load", () => {
522                                          case "tif":                                          case "tif":
523                                          case "tiff":                                          case "tiff":
524  ?>  ?>
525                                          <img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">                                          <br /><img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">
526  <?  <?
527                                                  break;                                                  break;
528                                  }                                  }
# Line 554  window.addEventListener("load", () => { Line 549  window.addEventListener("load", () => {
549  <?  <?
550          }          }
551  ?>  ?>
552                  <table cols="3" border="0" cellpadding="5" cellspacing="0" width="770">                  <table cols="3" border="0" cellpadding="5" cellspacing="0" width="1050">
553                          <tr bgcolor="#d0d3F0" height="10">                          <tr bgcolor="#d0d3F0" height="10">
554                                  <td colspan="3">                                  <td colspan="3">
555                                  </td>                                  </td>
556                          </tr>                          </tr>
557                          <tr>                          <tr>
558                                  <td width="40%" style="color:#909090">                                  <td width="40%" style="color: #909090">
559                                  <form action="view_article.php" method="get" id="change_page" name="change_page">                                  <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"]; ?>">                                          <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"]; ?>">                                          <input type="hidden" id="ex" name="ex" value="<? echo $result_set["data"]["ex"]; ?>">
# Line 577  window.addEventListener("load", () => { Line 572  window.addEventListener("load", () => {
572          if ($result_set["data"]["page"] > 1)          if ($result_set["data"]["page"] > 1)
573          {          {
574  ?>  ?>
575                                          <a class="s8" title="首页" href="" onclick="return ch_page(1);"><font face=webdings>9</font></a>                                          <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); ?>);"><font face=webdings>7</font></a>                                          <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);">◀</a>
577  <?  <?
578          }          }
579          else          else
580          {          {
581  ?>  ?>
582                                          <font face=webdings>9 7</font>                                          |◀ ◀
583  <?  <?
584          }          }
585  ?>  ?>
# Line 593  window.addEventListener("load", () => { Line 588  window.addEventListener("load", () => {
588          if ($result_set["data"]["page"] < $result_set["data"]["page_total"])          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); ?>);"><font face=webdings>8</font></a>                                          <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"]); ?>);"><font face=webdings>:</font></a>                                          <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);">▶|</a>
593  <?  <?
594          }          }
595          else          else
596          {          {
597  ?>  ?>
598                                          <font face=webdings>8 :</font>                                          ▶ ▶|
599  <?  <?
600          }          }
601  ?>  ?>


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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