/[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.3 by sysadm, Sat Apr 12 14:05:40 2025 UTC Revision 1.9 by sysadm, Tue Apr 15 11:22:54 2025 UTC
# 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>
# Line 116  function article_op(op_type, id, set, co Line 116  function article_op(op_type, id, set, co
116                  ["excerption", "set_excerption.php"],                  ["excerption", "set_excerption.php"],
117                  ["ontop", "set_ontop.php"],                  ["ontop", "set_ontop.php"],
118                  ["lock", "lock.php"],                  ["lock", "lock.php"],
                 ["recommend", "set_recommend.php"],  
119                  ["transship", "set_transship.php"],                  ["transship", "set_transship.php"],
120          ]);          ]);
121    
# Line 270  window.addEventListener("load", () => { Line 269  window.addEventListener("load", () => {
269  });  });
270    
271  </script>  </script>
272    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">
273    </script>
274  </head>  </head>
275  <body>  <body>
276          <a name="top"></a>          <a name="top"></a>
277          <center>          <center>
278                  <span id="err_msg_prompt" name="err_msg" style="color: red;"></span>                  <span id="err_msg_prompt" name="err_msg" style="color: red;"></span>
279                  <table cols="2" border="0" cellpadding="0" cellspacing="0" width="770">                  <table cols="2" border="0" cellpadding="0" cellspacing="0" width="1050">
280                          <tr>                          <tr>
281                                  <td width="50%">                                  <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>                                          <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 325  window.addEventListener("load", () => { Line 326  window.addEventListener("load", () => {
326  ?>  ?>
327                                  </td>                                  </td>
328                          </tr>                          </tr>
329                          <tr bgcolor="#d0d3F0" height="20">                          <tr bgcolor="#d0d3F0" height="25">
330                                  <td colspan="2" align="center" class="title">                                  <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'); ?>                                          [<? echo $result_set["data"]["id"]; ?>]&nbsp;主题:&nbsp;<? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?>
332                                  </td>                                  </td>
# Line 336  window.addEventListener("load", () => { Line 337  window.addEventListener("load", () => {
337          {          {
338                  $color_index = ($color_index + 1) % count($color);                  $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)                  if ($article["tid"] != 0)
343                  {                  {
344  ?>  ?>
345                  <a name="<? echo $article["aid"]; ?>"></a>                  <a name="<? echo $article["aid"]; ?>"></a>
346                  <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">
347                          <tr height="1" bgcolor="#202020">                          <tr height="1" bgcolor="#202020">
348                                  <td colspan="3">                                  <td colspan="3">
349                                  </td>                                  </td>
# Line 349  window.addEventListener("load", () => { Line 352  window.addEventListener("load", () => {
352  <?  <?
353                  }                  }
354  ?>  ?>
355                  <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">
356                          <tr>                          <tr>
357                                  <td width="20%">                                  <td width="20%">
358                                  </td>                                  </td>
359                                  <td width="75%">                                  <td width="75%">
360  <?  <?
                 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>  
 <?  
                 }  
361                  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"])
362                  {                  {
363  ?>  ?>
# Line 410  window.addEventListener("load", () => { Line 407  window.addEventListener("load", () => {
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>                                          <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                          }                          }
                         if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) &&  
                                 $_SESSION["BBS_priv"]->checklevel(P_ADMIN_M | P_ADMIN_S))  
                         {  
 ?>  
                                         <a class="s4" id="set_recommend_<? echo $article["aid"]; ?>" style="display: <? echo ($article["recommend"] ? "none" : "inline"); ?>" href="" onclick="return article_op('recommend', <? echo $article["aid"]; ?>, 1, true);" title="推荐">推荐</a>  
                                         <a class="s4" id="unset_recommend_<? echo $article["aid"]; ?>" style="display: <? echo ($article["recommend"] ? "inline" : "none"); ?>" href="" onclick="return article_op('recommend', <? echo $article["aid"]; ?>, 0);" title="取消推荐">取消推荐</a>  
 <?  
                         }  
410                          if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$article["transship"]) && (!$article["excerption"]))                          if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S) && (!$article["transship"]) && (!$article["excerption"]))
411                          {                          {
412  ?>  ?>
# Line 443  window.addEventListener("load", () => { Line 432  window.addEventListener("load", () => {
432                          </tr>                          </tr>
433                          <tr>                          <tr>
434                                  <td width="20%" align="center">                                  <td width="20%" align="center">
435                                          作者:&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>
436                                  </td>                                  </td>
437                                  <td width="75%" class="body">                                  <td width="75%" class="body">
438                                          <span style="color:#606060;">标题:</span>                                          <span style="color:#606060;">标题:</span>
# Line 499  window.addEventListener("load", () => { Line 488  window.addEventListener("load", () => {
488                                          <img src="<? echo $article["photo_path"]; ?>" border="0">                                          <img src="<? echo $article["photo_path"]; ?>" border="0">
489                                  </td>                                  </td>
490                                  <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"); ?>">
491                                          <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true); ?>                                          <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80); ?>
492                                  </td>                                  </td>
493                                  <td>                                  <td>
494                                  </td>                                  </td>
# Line 534  window.addEventListener("load", () => { Line 523  window.addEventListener("load", () => {
523                                          case "tif":                                          case "tif":
524                                          case "tiff":                                          case "tiff":
525  ?>  ?>
526                                          <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"]; ?>">
527  <?  <?
528                                                  break;                                                  break;
529                                  }                                  }
# Line 561  window.addEventListener("load", () => { Line 550  window.addEventListener("load", () => {
550  <?  <?
551          }          }
552  ?>  ?>
553                  <table cols="3" border="0" cellpadding="5" cellspacing="0" width="770">                  <table cols="3" border="0" cellpadding="5" cellspacing="0" width="1050">
554                          <tr bgcolor="#d0d3F0" height="10">                          <tr bgcolor="#d0d3F0" height="10">
555                                  <td colspan="3">                                  <td colspan="3">
556                                  </td>                                  </td>
# Line 584  window.addEventListener("load", () => { Line 573  window.addEventListener("load", () => {
573          if ($result_set["data"]["page"] > 1)          if ($result_set["data"]["page"] > 1)
574          {          {
575  ?>  ?>
576                                          <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>
577                                          <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>
578  <?  <?
579          }          }
580          else          else
581          {          {
582  ?>  ?>
583                                          <font face=webdings>9 7</font>                                          |◀ ◀
584  <?  <?
585          }          }
586  ?>  ?>
# Line 600  window.addEventListener("load", () => { Line 589  window.addEventListener("load", () => {
589          if ($result_set["data"]["page"] < $result_set["data"]["page_total"])          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); ?>);"><font face=webdings>8</font></a>                                          <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"]); ?>);"><font face=webdings>:</font></a>                                          <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);">▶|</a>
594  <?  <?
595          }          }
596          else          else
597          {          {
598  ?>  ?>
599                                          <font face=webdings>8 :</font>                                          ▶ ▶|
600  <?  <?
601          }          }
602  ?>  ?>
# Line 637  window.addEventListener("load", () => { Line 626  window.addEventListener("load", () => {
626                  </table>                  </table>
627          </center>          </center>
628  <?  <?
         $display_ad = true;  
629          include "./foot.inc.php";          include "./foot.inc.php";
630  ?>  ?>
631  </body>  </body>


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

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