/[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.27 by sysadm, Sat Apr 26 05:28:31 2025 UTC Revision 1.36 by sysadm, Mon Jun 2 03:30:26 2025 UTC
# Line 99  Line 99 
99                  font-size: 16px;                  font-size: 16px;
100                  text-decoration: line-through;                  text-decoration: line-through;
101          }          }
102            IMG.auto_adjust
103            {
104                    display: none;
105            }
106          </style>          </style>
         <script type="text/javascript" src="../js/img_adjust.js"></script>  
107          <script src="../js/polyfill.min.js"></script>          <script src="../js/polyfill.min.js"></script>
108          <script src="../js/axios.min.js"></script>          <script src="../js/axios.min.js"></script>
109            <script src="../js/jquery.min.js"></script>
110          <script type="text/javascript">          <script type="text/javascript">
111          function ch_page(page)          function ch_page(page)
112          {          {
# Line 321  Line 325 
325                  {                  {
326                          f.addEventListener("submit", (e) => {                          f.addEventListener("submit", (e) => {
327                                  e.preventDefault();                                  e.preventDefault();
328                                  move_article(f.sid.value);                                  if (f.sid.value > 0)
329                                    {
330                                            move_article(f.sid.value);
331                                    }
332                          });                          });
333                  }                  }
334          });          });
335    
336          </script>          $(document).ready(function() {
337          <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">                  $("img[class=auto_adjust]").on("load", function() {
338                            if ($(this).width() > {$BBS_img_max_width})
339                            {
340                                    $(this).width({$BBS_img_max_width});
341                            }
342                            $(this).show();
343                    })
344                    .on("mousewheel", function(e) {
345                            var zoom = parseFloat($(this).css("zoom"));
346                            zoom *= (1 + e.originalEvent.wheelDelta / 1000);
347                            if (zoom > 0)
348                            {
349                                    $(this).css("zoom", zoom);
350                            }
351                    });
352            });
353          </script>          </script>
354          </head>          </head>
355          <body>          <body>
# Line 418  Line 440 
440                                          <a class="s4" id="unset_ontop_{$article['aid']}" style="display: {$unset_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 0)" title="取消置顶">取消置顶</a>                                          <a class="s4" id="unset_ontop_{$article['aid']}" style="display: {$unset_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 0)" title="取消置顶">取消置顶</a>
441                                  HTML;                                  HTML;
442                          }                          }
443                          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) &&
444                                  ($_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"]))
445                          {                          {
446                                  $set_lock_display = ($article["lock"] ? "none" : "inline");                                  $set_lock_display = ($article["lock"] ? "none" : "inline");
# Line 453  Line 475 
475                  $nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8');                  $nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8');
476                  $title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />");                  $title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />");
477                  $title_class = ($article["visible"] ? "title_normal" : "title_deleted");                  $title_class = ($article["visible"] ? "title_normal" : "title_deleted");
478                  $content_f = LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80);                  $content_f = LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80);
479                  $content_class = ($article["visible"] ? "content_normal" : "content_deleted");                  $content_class = ($article["visible"] ? "content_normal" : "content_deleted");
480    
481                  $transship_info = "";                  $transship_info = "";
# Line 470  Line 492 
492                  foreach ($article["attachments"] as $attachment)                  foreach ($article["attachments"] as $attachment)
493                  {                  {
494                          $filename = $attachment["filename"];                          $filename = $attachment["filename"];
                         $ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0)));  
495    
496                          $atta_list .= <<<HTML                          $atta_list .= <<<HTML
497                                  <span id="attachment_{$attachment['aid']}"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid={$attachment['aid']}" target="_target">{$filename}</a> ({$attachment["size"]}字节)                                  <span id="attachment_{$attachment['aid']}"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid={$attachment['aid']}" target="_target">{$filename}</a> ({$attachment["size"]}字节)
# Line 494  Line 515 
515    
516                          if ($attachment["check"])                          if ($attachment["check"])
517                          {                          {
518                                    $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
519                                  switch ($ext)                                  switch ($ext)
520                                  {                                  {
521                                          case "bmp":                                          case "bmp":
# Line 505  Line 527 
527                                          case "tiff":                                          case "tiff":
528                                                  $atta_list .= <<<HTML                                                  $atta_list .= <<<HTML
529                                                          <br />                                                          <br />
530                                                          <img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid={$attachment['aid']}">                                                          <img class="auto_adjust" src="dl_file.php?aid={$attachment['aid']}">
531                                                  HTML;                                                  HTML;
532                                                  break;                                                  break;
533                                  }                                  }
# Line 533  Line 555 
555                                          作者:&nbsp;<a class="s2" href="view_user.php?uid={$article['uid']}" onclick='return {$user_viewable}' target=_blank title="查看用户资料">{$username}</a>                                          作者:&nbsp;<a class="s2" href="view_user.php?uid={$article['uid']}" onclick='return {$user_viewable}' target=_blank title="查看用户资料">{$username}</a>
556                                  </td>                                  </td>
557                                  <td width="75%" class="body">                                  <td width="75%" class="body">
558                                          <span style="color:#606060;">标题:</span>                                          <span style="color: #606060">标题:</span>
559                                          <img src="images/expression/{$article['icon']}.gif">                                          <img src="images/expression/{$article['icon']}.gif">
560                                          <span id="title_{$article['aid']}" class="{$title_class}">                                          <span id="title_{$article['aid']}" class="{$title_class}">
561                                                  {$title_f}                                                  {$title_f}
# Line 545  Line 567 
567                          </tr>                          </tr>
568                          <tr>                          <tr>
569                                  <td align="center">                                  <td align="center">
570                                          昵称:&nbsp;<span style="color: #909090;">{$nickname}</span>                                          昵称:&nbsp;<span style="color: #909090">{$nickname}</span>
571                                  </td>                                  </td>
572                                  <td class="body">                                  <td class="body">
573                                          <span style="color:#606060;">来自:</span>&nbsp;<span style="color: #909090; ">{$article["sub_ip"]}</span>                                          <span style="color: #606060">来自:</span>&nbsp;<span style="color: #909090">{$article["sub_ip"]}</span>
574                                  </td>                                  </td>
575                                  <td>                                  <td>
576                                  </td>                                  </td>
# Line 558  Line 580 
580                                          经验值:&nbsp;<span style="color:red;">{$article["exp"]}</span>                                          经验值:&nbsp;<span style="color:red;">{$article["exp"]}</span>
581                                  </td>                                  </td>
582                                  <td class="body">                                  <td class="body">
583                                          <span style="color:#606060;">发贴时间:</span>&nbsp;<span style="color: #909090; ">{$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">{$article["sub_dt"]->format("Y年m月d日 H:i:s (\U\T\C P)")}</span>
584                                  </td>                                  </td>
585                                  <td>                                  <td>
586                                  </td>                                  </td>
587                          </tr>                          </tr>
588                          <tr>                          <tr>
589                                  <td align="center">                                  <td align="center">
590                                          等级:&nbsp;<span style="color: #909090;">{$level}</span>                                          等级:&nbsp;<span style="color: #909090">{$level}</span>
591                                  </td>                                  </td>
592                                  <td class="body">                                  <td class="body">
593                                          <span style="color:#606060;">长度:</span>&nbsp;<span style="color: #909090; ">{$article["length"]}字</span>                                          <span style="color: #606060">长度:</span>&nbsp;<span style="color: #909090">{$article["length"]}字</span>
594                                  </td>                                  </td>
595                                  <td>                                  <td>
596                                  </td>                                  </td>
# Line 576  Line 598 
598                          <tr height="2">                          <tr height="2">
599                                  <td>                                  <td>
600                                  </td>                                  </td>
601                                  <td style="background-color: #909090;">                                  <td style="background-color: #909090">
602                                  </td>                                  </td>
603                                  <td>                                  <td>
604                                  </td>                                  </td>
# Line 594  Line 616 
616                          <tr>                          <tr>
617                                  <td>                                  <td>
618                                  </td>                                  </td>
619                                  <td style="color:#000000; ">                                  <td style="color: #000000">
620                                          ========== * * * * * ==========                                          ========== * * * * * ==========
621                                          <br />                                          <br />
622                                          {$atta_list}                                          {$atta_list}
# Line 701  Line 723 
723          </body>          </body>
724          </html>          </html>
725          HTML;          HTML;
 ?>  


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

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