/[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.34 by sysadm, Wed May 7 12:12:32 2025 UTC Revision 1.39 by sysadm, Sat Oct 11 02:25:22 2025 UTC
# Line 23  Line 23 
23    
24          $navigator_bar = <<<HTML          $navigator_bar = <<<HTML
25                  <a class="s2" href="main.php?sid={$result_set['data']['sid']}">{$BBS_name}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}">{$result_set["data"]["section_title"]}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}&ex={$result_set['data']['ex']}">{$section_scope}</a>                  <a class="s2" href="main.php?sid={$result_set['data']['sid']}">{$BBS_name}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}">{$result_set["data"]["section_title"]}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}&ex={$result_set['data']['ex']}">{$section_scope}</a>
26            HTML;
27    
28            if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
29                    (!$result_set["data"]["lock"]))
30            {
31            $navigator_bar .= <<<HTML
32                  <a class="s2" href="article_post.php?reply_id={$result_set['data']['id']}&quote=0" title="直接回复该文章">[快速回复]</a>                  <a class="s2" href="article_post.php?reply_id={$result_set['data']['id']}&quote=0" title="直接回复该文章">[快速回复]</a>
33          HTML;          HTML;
34            }
35    
36          if ($previous_id > 0)          if ($previous_id > 0)
37          {          {
38                  $navigator_bar .= <<<HTML                  $navigator_bar .= <<<HTML
# Line 179  Line 187 
187                          ["ontop", "article_service_ontop.php"],                          ["ontop", "article_service_ontop.php"],
188                          ["lock", "article_service_lock.php"],                          ["lock", "article_service_lock.php"],
189                          ["transship", "article_service_transship.php"],                          ["transship", "article_service_transship.php"],
190                            ["favorite", "article_service_favor.php"],
191                  ]);                  ]);
192    
193                  var opNeedRefresh = new Set([                  var opNeedRefresh = new Set([
# Line 311  Line 320 
320                  baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',                  baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',
321          });          });
322    
323          $(document).ready(function() {          window.addEventListener("load", () => {
324                  $("#ex_dir").on("change", function(e) {                  var s = document.getElementById("ex_dir");
325                          set_ex_dir($("#ex_dir").find(":selected").val());                  if (s)
326                  });                  {
327                            s.addEventListener("change", (e) => {
328                                    set_ex_dir(s.value);
329                            });
330                    }
331    
332                  $("#move_article").on("submit", (e) => {                  var f = document.getElementById("move_article");
333                          e.preventDefault();                  if (f)
334                          if ($("#move_article").find("#sid").find(":selected").val() > 0)                  {
335                          {                          f.addEventListener("submit", (e) => {
336                                  move_article($("#move_article").find("#sid").find(":selected").val());                                  e.preventDefault();
337                          }                                  if (f.sid.value > 0)
338                  });                                  {
339                                            move_article(f.sid.value);
340                                    }
341                            });
342                    }
343            });
344    
345            $(document).ready(function() {
346                  $("img[class=auto_adjust]").on("load", function() {                  $("img[class=auto_adjust]").on("load", function() {
347                          if ($(this).width() > {$BBS_img_max_width})                          if ($(this).width() > {$BBS_img_max_width})
348                          {                          {
# Line 341  Line 360 
360                  });                  });
361          });          });
362          </script>          </script>
         <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">  
         </script>  
363          </head>          </head>
364          <body>          <body>
365          <a name="top"></a>          <a name="top"></a>
# Line 406  Line 423 
423                                          <span id="set_delete_{$article['aid']}"><img src="images/del.gif" width="16" height="16"><a class="s4" href="" onclick="return article_op('delete', {$article['aid']}, 1, true);" title="删除该文章">删除</a></span>                                          <span id="set_delete_{$article['aid']}"><img src="images/del.gif" width="16" height="16"><a class="s4" href="" onclick="return article_op('delete', {$article['aid']}, 1, true);" title="删除该文章">删除</a></span>
424                                  HTML;                                  HTML;
425                          }                          }
426                          if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST))                          if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
427                                    (!$result_set["data"]["lock"]))
428                          {                          {
429                                  $article_ctrl_bar .= <<<HTML                                  $article_ctrl_bar .= <<<HTML
430                                          <img src="images/edit.gif" width="16" height="16"><a class="s4" href="article_post.php?reply_id={$article['aid']}" title="引用回复该文章">回复</a>                                          <img src="images/edit.gif" width="16" height="16"><a class="s4" href="article_post.php?reply_id={$article['aid']}" title="引用回复该文章">回复</a>
# Line 424  Line 442 
442                          }                          }
443                          if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))                          if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S))
444                          {                          {
445                                  $set_ontop_display = ($article["ontop"] ? "none" : "inline");                                  $set_ontop_display = ($result_set["data"]["ontop"] ? "none" : "inline");
446                                  $unset_ontop_display = ($article["ontop"] ? "inline" : "none");                                  $unset_ontop_display = ($result_set["data"]["ontop"] ? "inline" : "none");
447    
448                                  $article_ctrl_bar .= <<<HTML                                  $article_ctrl_bar .= <<<HTML
449                                          <a class="s4" id="set_ontop_{$article['aid']}" style="display: {$set_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 1, true)" title="置顶">置顶</a>                                          <a class="s4" id="set_ontop_{$article['aid']}" style="display: {$set_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 1, true)" title="置顶">置顶</a>
# Line 435  Line 453 
453                          if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&                          if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
454                                  ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]))                                  ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"]))
455                          {                          {
456                                  $set_lock_display = ($article["lock"] ? "none" : "inline");                                  $set_lock_display = ($result_set["data"]["lock"] ? "none" : "inline");
457                                  $unset_lock_display = ($article["lock"] ? "inline" : "none");                                  $unset_lock_display = ($result_set["data"]["lock"] ? "inline" : "none");
458    
459                                  $article_ctrl_bar .= <<<HTML                                  $article_ctrl_bar .= <<<HTML
460                                          <a class="s4" id="set_lock_{$article['aid']}" style="display: {$set_lock_display}" href="" onclick="return article_op('lock', {$article['aid']}, 1);" title="禁止回复">静默</a>                                          <a class="s4" id="set_lock_{$article['aid']}" style="display: {$set_lock_display}" href="" onclick="return article_op('lock', {$article['aid']}, 1);" title="禁止回复">静默</a>
# Line 452  Line 470 
470                                          <a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a>                                          <a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a>
471                                  HTML;                                  HTML;
472                          }                          }
473                            if ($article["tid"] == 0)
474                            {
475                                    $set_favorite_display = ($result_set["data"]["topic_favorite"] ? "none" : "inline");
476                                    $unset_favorite_display = ($result_set["data"]["topic_favorite"] ? "inline" : "none");
477    
478                                    $article_ctrl_bar .= <<<HTML
479                                            <a class="s4" id="set_favorite_{$article['aid']}" style="display: {$set_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 1);" title="收藏主题">收藏</a>
480                                            <a class="s4" id="unset_favorite_{$article['aid']}" style="display: {$unset_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 0);" title="取消收藏主题">取消收藏</a>
481                                    HTML;
482                            }
483                  }                  }
484                  else                  else
485                  {                  {


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

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