/[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.38 by sysadm, Thu Jun 19 09:19:34 2025 UTC Revision 1.44 by sysadm, Sat Nov 1 07:53:40 2025 UTC
# Line 187  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 469  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                  {                  {
# Line 484  Line 495 
495                  $nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8');                  $nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8');
496                  $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 />");
497                  $title_class = ($article["visible"] ? "title_normal" : "title_deleted");                  $title_class = ($article["visible"] ? "title_normal" : "title_deleted");
498                  $content_f = LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80);                  $content_f = LML($article["content"], 80);
499                  $content_class = ($article["visible"] ? "content_normal" : "content_deleted");                  $content_class = ($article["visible"] ? "content_normal" : "content_deleted");
500    
501                  $transship_info = "";                  $transship_info = "";


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

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